:root {
    --sms-canvas: #f4f5f7;
    --sms-surface: #ffffff;
    --sms-surface-soft: #f8f9fb;
    --sms-ink: #15171a;
    --sms-muted: #6c7179;
    --sms-faint: #9da3ac;
    --sms-line: rgba(21, 23, 26, 0.08);
    --sms-line-strong: rgba(21, 23, 26, 0.13);
    --sms-blue: #1769e0;
    --sms-blue-hover: #0f59c7;
    --sms-blue-soft: #edf4ff;
    --sms-green: #17855f;
    --sms-green-soft: #ebf7f1;
    --sms-orange: #ac6815;
    --sms-orange-soft: #fff5e8;
    --sms-red: #c5424f;
    --sms-red-soft: #fff0f2;
    --sms-radius-xl: 32px;
    --sms-radius-lg: 24px;
    --sms-radius-md: 18px;
    --sms-radius-sm: 14px;
    --sms-ease: cubic-bezier(.22, 1, .36, 1);
    --sms-sidebar: 248px;
    --sms-content: 1320px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: var(--sms-canvas);
}

body {
    min-width: 320px;
    margin: 0;
    background: var(--sms-canvas) !important;
    color: var(--sms-ink) !important;
    font-family: "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Microsoft YaHei", sans-serif !important;
    font-size: 14px;
    line-height: 1.55;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    color: var(--sms-ink);
    background: rgba(23, 105, 224, 0.16);
}

a,
button,
input,
select,
textarea {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

a,
button {
    transition: color .24s var(--sms-ease), background-color .24s var(--sms-ease), border-color .24s var(--sms-ease), opacity .24s var(--sms-ease);
}

a {
    color: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled,
textarea:disabled {
    cursor: not-allowed;
    opacity: .55;
}

h1,
h2,
h3,
h4,
p {
    letter-spacing: 0 !important;
}

h1,
h2,
h3,
h4 {
    color: var(--sms-ink) !important;
}

img,
svg {
    display: block;
}

svg {
    stroke-width: 1.75;
}

code,
pre,
.font-mono {
    font-family: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace !important;
}

/* Tailwind compatibility: all legacy pages resolve to the same visual language. */
.bg-white {
    background-color: var(--sms-surface) !important;
}

.bg-gray-50 {
    background-color: var(--sms-surface-soft) !important;
}

.bg-blue-50,
.bg-blue-100 {
    background-color: var(--sms-blue-soft) !important;
}

.bg-green-50,
.bg-green-100 {
    background-color: var(--sms-green-soft) !important;
}

.bg-yellow-50,
.bg-yellow-100,
.bg-orange-50,
.bg-orange-100 {
    background-color: var(--sms-orange-soft) !important;
}

.bg-red-50,
.bg-red-100 {
    background-color: var(--sms-red-soft) !important;
}

.bg-blue-600,
.bg-blue-700,
.bg-purple-600,
.bg-purple-700 {
    background-color: var(--sms-blue) !important;
    color: #fff !important;
}

.bg-purple-100,
.bg-indigo-100,
.bg-cyan-100 {
    background-color: var(--sms-blue-soft) !important;
}

.bg-gray-600,
.bg-gray-700 {
    background-color: #30343a !important;
    color: #fff !important;
}

.text-gray-900,
.text-gray-800,
.text-gray-700 {
    color: var(--sms-ink) !important;
}

.text-gray-600,
.text-gray-500,
.text-gray-400 {
    color: var(--sms-muted) !important;
}

.text-blue-500,
.text-blue-600,
.text-blue-700,
.text-blue-800,
.text-purple-500,
.text-purple-600,
.text-purple-700,
.text-purple-800,
.text-indigo-500,
.text-indigo-600,
.text-indigo-700,
.text-indigo-800,
.text-cyan-500,
.text-cyan-600,
.text-cyan-700,
.text-cyan-800 {
    color: var(--sms-blue) !important;
}

.text-green-500,
.text-green-600,
.text-green-700,
.text-green-800 {
    color: var(--sms-green) !important;
}

.text-yellow-500,
.text-yellow-600,
.text-yellow-700,
.text-yellow-800,
.text-orange-500,
.text-orange-600,
.text-orange-700,
.text-orange-800 {
    color: var(--sms-orange) !important;
}

.text-red-500,
.text-red-600,
.text-red-700,
.text-red-800 {
    color: var(--sms-red) !important;
}

.border,
.border-b,
.border-t,
.border-gray-100,
.border-gray-200,
.border-gray-300,
.border-blue-200,
.border-green-200,
.border-yellow-200,
.border-orange-200,
.border-red-200,
.divide-y > :not([hidden]) ~ :not([hidden]) {
    border-color: var(--sms-line) !important;
}

.shadow,
.shadow-sm,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl {
    box-shadow: none !important;
}

.rounded,
.rounded-lg,
.rounded-xl,
.rounded-2xl {
    border-radius: var(--sms-radius-md) !important;
}

.inline-block.rounded,
span.rounded,
.rounded-full {
    border-radius: 999px !important;
}

.hover\:bg-blue-700:hover,
.hover\:bg-blue-800:hover,
.hover\:bg-purple-700:hover,
.hover\:bg-purple-800:hover {
    background-color: var(--sms-blue-hover) !important;
}

.hover\:bg-gray-50:hover,
.hover\:bg-gray-100:hover {
    background-color: #f1f3f6 !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(23, 105, 224, .18);
    outline-offset: 3px;
}

input,
select,
textarea {
    min-height: 48px;
    border: 1px solid var(--sms-line-strong) !important;
    border-radius: var(--sms-radius-sm) !important;
    outline: 0;
    background: var(--sms-surface) !important;
    color: var(--sms-ink) !important;
    transition: border-color .22s var(--sms-ease), box-shadow .22s var(--sms-ease), background-color .22s var(--sms-ease);
}

textarea {
    min-height: 112px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--sms-faint);
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(23, 105, 224, .58) !important;
    box-shadow: 0 0 0 4px rgba(23, 105, 224, .09) !important;
}

input[type="checkbox"],
input[type="radio"] {
    width: 18px;
    min-height: 18px;
    accent-color: var(--sms-blue);
}

input[type="file"] {
    padding: 8px;
}

label {
    color: var(--sms-ink) !important;
}

pre {
    max-width: 100%;
    margin: 14px 0;
    padding: 22px !important;
    overflow: auto;
    border: 0 !important;
    border-radius: var(--sms-radius-md) !important;
    background: #171a20 !important;
    color: #e9edf3 !important;
    font-size: 13px;
    line-height: 1.75;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: #fafbfc !important;
}

th {
    color: var(--sms-muted) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

th,
td {
    border-color: var(--sms-line) !important;
    vertical-align: middle;
}

.sms-signature-type-matrix {
    width: 228px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 8px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-signature-type-column {
    min-width: 0;
    display: grid;
    justify-items: center;
    gap: 5px;
}

.sms-signature-type-matrix__carrier {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--sms-faint);
    text-align: center;
    font-size: 10px;
    font-weight: 650;
}

.sms-signature-type-column__types {
    min-height: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.sms-signature-type-empty {
    color: var(--sms-faint);
    font-size: 12px;
    line-height: 24px;
}

.sms-signature-type-chip {
    min-width: 34px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0 5px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 650;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: transform .22s var(--sms-ease), background-color .22s var(--sms-ease), color .22s var(--sms-ease);
}

.sms-signature-type-chip:hover {
    transform: translateY(-1px);
}

.sms-signature-type-chip.is-pending {
    background: #eef0f3;
    color: #737983;
}

.sms-signature-type-chip.is-success {
    background: var(--sms-green-soft);
    color: var(--sms-green);
}

.sms-signature-type-chip.is-failed {
    background: var(--sms-red-soft);
    color: var(--sms-red);
}

tbody tr {
    transition: background-color .22s var(--sms-ease);
}

tbody tr:hover {
    background: #fafbfc !important;
}

.overflow-x-auto {
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 23, 26, .18) transparent;
}

/* Shared buttons */
.sms-primary,
.sms-secondary,
.sms-danger,
.sms-icon-button,
.sms-mobile-menu,
.sms-logout {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 18px;
    border: 0;
    border-radius: var(--sms-radius-sm) !important;
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.sms-primary {
    background: var(--sms-blue) !important;
    color: #fff !important;
}

.sms-primary:hover {
    background: var(--sms-blue-hover) !important;
}

.sms-secondary {
    border: 1px solid var(--sms-line-strong);
    background: var(--sms-surface) !important;
    color: var(--sms-ink) !important;
}

.sms-secondary:hover {
    background: var(--sms-surface-soft) !important;
}

.sms-danger {
    background: var(--sms-red-soft) !important;
    color: var(--sms-red) !important;
}

.sms-primary svg,
.sms-secondary svg,
.sms-danger svg {
    width: 17px;
    height: 17px;
}

.sms-primary-large {
    min-height: 52px;
    padding: 0 24px;
    border-radius: 16px !important;
    font-size: 14px;
}

/* Application shell */
.sms-app-page {
    overflow-x: hidden;
}

.sms-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sms-sidebar) minmax(0, 1fr);
}

.sms-sidebar {
    width: var(--sms-sidebar);
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: 22px 14px 16px;
    background: var(--sms-surface);
}

.sms-brand {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 10px 14px;
}

.sms-brand-logo {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 12px;
    object-fit: cover;
}

.sms-brand > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sms-sidebar-close {
    width: 40px;
    height: 40px;
    display: none;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: var(--sms-surface-soft);
    color: var(--sms-muted);
}

.sms-sidebar-close:hover,
.sms-sidebar-close:active {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-sidebar-close svg {
    width: 18px;
    height: 18px;
}

.sms-brand-title,
.sms-auth-brand-title {
    color: var(--sms-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.sms-brand-subtitle {
    margin-top: 2px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-nav {
    flex: 1;
    overflow: auto;
    padding: 10px 0;
    scrollbar-width: none;
}

.sms-nav::-webkit-scrollbar {
    display: none;
}

.sms-nav-group {
    margin-bottom: 22px;
}

.sms-nav-label {
    padding: 0 13px 7px;
    color: var(--sms-faint);
    font-size: 10px;
    font-weight: 650;
}

.sms-nav-item {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 11px;
    margin: 2px 0;
    padding: 0 13px;
    border-radius: var(--sms-radius-sm) !important;
    color: var(--sms-muted) !important;
    font-size: 13px;
    font-weight: 560;
    text-decoration: none;
}

.sms-nav-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.sms-nav-item:hover {
    background: var(--sms-surface-soft);
    color: var(--sms-ink) !important;
}

.sms-nav-item.is-active {
    background: var(--sms-blue-soft);
    color: var(--sms-blue) !important;
    font-weight: 650;
}

.sms-profile {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    gap: 10px;
    padding: 12px 8px 0;
    border-top: 1px solid var(--sms-line);
}

.sms-avatar {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #262a30;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.sms-profile-copy {
    min-width: 0;
}

.sms-profile-name {
    overflow: hidden;
    color: var(--sms-ink);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-profile-role {
    margin-top: 1px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-logout {
    width: 36px;
    min-height: 36px;
    padding: 0;
    color: var(--sms-muted) !important;
}

.sms-logout:hover {
    background: var(--sms-surface-soft);
    color: var(--sms-red) !important;
}

.sms-logout svg {
    width: 17px;
    height: 17px;
}

.sms-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.sms-topbar {
    height: 76px;
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 0 clamp(24px, 4vw, 56px);
    background: rgba(244, 245, 247, .86);
    backdrop-filter: blur(18px) saturate(130%);
}

.sms-topbar-context {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-topbar-title {
    margin-top: 1px;
    color: var(--sms-ink);
    font-size: 14px;
    font-weight: 680;
}

.sms-topbar-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--sms-muted);
    font-size: 11px;
}

.sms-topbar-status::before {
    width: 7px;
    height: 7px;
    content: "";
    border-radius: 50%;
    background: var(--sms-green);
}

.sms-mobile-menu {
    width: 42px;
    min-height: 42px;
    display: none;
    padding: 0;
    background: var(--sms-surface);
    color: var(--sms-ink);
}

.sms-mobile-menu svg {
    width: 19px;
    height: 19px;
}

.sms-content {
    width: min(100%, var(--sms-content));
    min-height: calc(100vh - 76px);
    flex: 1;
    margin: 0 auto;
    padding: 34px clamp(24px, 4vw, 56px) 72px;
}

.sms-legal-footer {
    width: min(100%, var(--sms-content));
    margin: 0 auto;
    padding: 0 clamp(24px, 4vw, 56px) 28px;
    color: var(--sms-faint);
    font-size: 10px;
    text-align: center;
}

.sms-legal-footer a,
.sms-auth-footer a,
.sms-site-legal a {
    color: inherit !important;
    text-decoration: none;
}

.sms-legal-footer a:hover,
.sms-auth-footer a:hover,
.sms-site-legal a:hover {
    color: var(--sms-ink) !important;
}

.sms-content > h1,
.sms-content > .flex h1 {
    margin: 0;
    font-size: 31px !important;
    font-weight: 700 !important;
    line-height: 1.15;
}

.sms-content > .flex.justify-between.items-center.mb-8,
.sms-content > .mb-6.flex.justify-between.items-center {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px !important;
}

.sms-content > .flex.justify-between.items-center.mb-8 button,
.sms-content > .mb-6.flex.justify-between.items-center button,
.sms-app-page button.bg-blue-600,
.sms-app-page a.bg-blue-600,
.sms-app-page button.bg-purple-600,
.sms-app-page a.bg-purple-600,
.sms-auth-page button.bg-blue-600 {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: var(--sms-radius-sm) !important;
    background: var(--sms-blue) !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
}

.sms-app-page button.bg-gray-200,
.sms-app-page button.bg-gray-300,
.sms-app-page a.bg-gray-200,
.sms-app-page button.bg-white {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px !important;
    border: 1px solid var(--sms-line-strong) !important;
    border-radius: var(--sms-radius-sm) !important;
    background: var(--sms-surface) !important;
    color: var(--sms-ink) !important;
    font-size: 13px;
    font-weight: 620;
}

.sms-app-page button.bg-red-600,
.sms-app-page a.bg-red-600 {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: var(--sms-radius-sm) !important;
    background: var(--sms-red) !important;
    color: #fff !important;
}

.sms-content > .flex.gap-2.mb-6,
.sms-content > .flex.gap-4.mb-6 {
    display: flex;
    gap: 6px !important;
    margin-bottom: 24px !important;
    padding: 5px;
    overflow-x: auto;
    border-radius: 16px;
    background: #eaecf0;
    scrollbar-width: none;
}

.sms-content > .flex.gap-2.mb-6 > a,
.sms-content > .flex.gap-4.mb-6 > a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px !important;
    border: 0 !important;
    border-radius: 12px !important;
    box-shadow: none !important;
    font-size: 12px;
    font-weight: 620;
    white-space: nowrap;
}

.sms-content > .flex.gap-2.mb-6 > a.bg-blue-600,
.sms-content > .flex.gap-4.mb-6 > a.bg-blue-600 {
    background: var(--sms-surface) !important;
    color: var(--sms-ink) !important;
}

.sms-content > .bg-white,
.sms-content > .grid > .bg-white,
.sms-content > .space-y-6 > .bg-white,
.sms-content > .max-w-4xl .bg-white,
.sms-content > .max-w-5xl .bg-white,
.sms-content > form > .bg-white,
.sms-content > form > .space-y-6 > .bg-white {
    border: 0 !important;
    border-radius: var(--sms-radius-lg) !important;
    background: var(--sms-surface) !important;
    box-shadow: none !important;
}

.sms-content > .bg-white.p-6,
.sms-content > .grid > .bg-white.p-6,
.sms-content > .space-y-6 > .bg-white.p-6,
.sms-content > .max-w-4xl .bg-white.p-6,
.sms-content > form > .bg-white.p-6,
.sms-content > form > .space-y-6 > .bg-white.p-6 {
    padding: 26px !important;
}

.sms-content h2.text-xl,
.sms-content h3.text-lg {
    font-size: 17px !important;
    font-weight: 680 !important;
}

.sms-content > .grid {
    gap: 16px !important;
}

.sms-content > .grid.grid-cols-1.md\:grid-cols-5 > .bg-white,
.sms-content > .grid.grid-cols-1.lg\:grid-cols-4 > .bg-white,
.sms-content > .grid.grid-cols-1.md\:grid-cols-4 > .bg-white {
    min-height: 116px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px !important;
}

.sms-content > .bg-blue-50,
.sms-content > .bg-green-50,
.sms-content > .bg-red-50,
.sms-content > .bg-yellow-50,
.sms-content > .bg-orange-50,
.sms-content .bg-blue-50.border,
.sms-content .bg-green-50.border,
.sms-content .bg-red-50.border,
.sms-content .bg-yellow-50.border,
.sms-content .bg-orange-50.border {
    border: 0 !important;
    border-radius: var(--sms-radius-md) !important;
}

.sms-alert {
    margin-bottom: 22px;
    padding: 14px 17px;
    border: 0 !important;
    border-radius: var(--sms-radius-sm);
    font-size: 13px;
}

.sms-alert-success {
    background: var(--sms-green-soft);
    color: var(--sms-green);
}

.sms-alert-error {
    background: var(--sms-red-soft);
    color: var(--sms-red);
}

/* Account funding and affiliate */
.sms-money-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 16px;
}

.sms-recharge-panel,
.sms-balance-summary,
.sms-aff-hero,
.sms-aff-metrics > div,
.sms-record-section,
.sms-user-filters,
.sms-user-list,
.sms-admin-metrics > div {
    border: 0;
    border-radius: var(--sms-radius-lg);
    background: var(--sms-surface);
    box-shadow: none;
}

.sms-recharge-panel,
.sms-balance-summary {
    min-height: 420px;
    padding: 30px;
}

.sms-recharge-panel > label {
    display: block;
    margin: 34px 0 8px !important;
    color: var(--sms-muted);
}

.sms-money-input {
    height: 82px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 22px;
    border: 1px solid var(--sms-line-strong);
    border-radius: 20px;
    background: var(--sms-surface-soft);
}

.sms-money-input:focus-within {
    border-color: rgba(23, 105, 224, .42);
    background: var(--sms-surface);
}

.sms-money-input span {
    color: var(--sms-muted);
    font-size: 24px;
}

.sms-money-input input {
    width: 100%;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--sms-ink);
    font-size: 38px !important;
    font-weight: 680;
}

.sms-money-input input::-webkit-inner-spin-button {
    display: none;
}

.sms-amount-presets {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}

.sms-amount-presets button {
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #eceef2;
    color: var(--sms-muted);
    font-size: 12px;
    font-weight: 650;
}

.sms-amount-presets button:hover,
.sms-amount-presets button.is-active {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-pay-method {
    min-height: 72px;
    display: grid;
    grid-template-columns: 42px 1fr 24px;
    align-items: center;
    gap: 13px;
    margin-top: 25px;
    padding: 14px 16px;
    border: 1px solid rgba(23, 105, 224, .18);
    border-radius: 18px;
    background: var(--sms-blue-soft);
}

.sms-pay-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--sms-blue);
    color: #fff;
}

.sms-pay-icon svg,
.sms-method-check {
    width: 21px;
    height: 21px;
}

.sms-pay-method strong,
.sms-pay-method small {
    display: block;
}

.sms-pay-method strong {
    font-size: 13px;
}

.sms-pay-method small {
    margin-top: 3px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-method-check {
    color: var(--sms-blue);
}

.sms-balance-warning,
.sms-security-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    padding: 13px 14px;
    border-radius: 14px;
    background: var(--sms-orange-soft);
    color: var(--sms-orange);
    font-size: 11px;
}

.sms-balance-warning svg,
.sms-security-notice svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.sms-pay-submit {
    width: 100%;
    margin-top: 20px;
}

.sms-pay-submit svg {
    width: 18px;
    height: 18px;
}

.sms-balance-summary {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #20242a;
    color: #fff;
}

.sms-balance-summary .sms-panel-label,
.sms-balance-summary > p,
.sms-balance-summary dt {
    color: #aeb5bf;
}

.sms-balance-summary > strong {
    margin-top: 24px;
    color: #fff;
    font-size: 44px;
    line-height: 1;
}

.sms-balance-summary > strong small {
    margin-right: 5px;
    color: #aeb5bf;
    font-size: 18px;
}

.sms-balance-summary > p {
    margin: 12px 0 0;
    font-size: 11px;
}

.sms-balance-summary dl {
    margin: auto 0 0;
}

.sms-balance-summary dl div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    font-size: 11px;
}

.sms-balance-summary dl div:last-child {
    border-bottom: 0;
}

.sms-record-section {
    margin-top: 16px;
    padding: 26px;
}

.sms-admin-records {
    padding: 0;
}

.sms-admin-records > .sms-section-bar {
    padding: 26px 26px 20px;
}

.sms-record-total {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-admin-record-table {
    min-width: 1040px;
    table-layout: fixed;
}

.sms-admin-record-table th {
    padding: 0 16px 12px;
    text-align: left;
}

.sms-admin-record-table td {
    padding: 16px;
}

.sms-admin-record-table th:nth-child(1) {
    width: 170px;
}

.sms-admin-record-table th:nth-child(2) {
    width: 125px;
}

.sms-admin-record-table th:nth-child(3) {
    width: 31%;
}

.sms-admin-record-table th:nth-child(4) {
    width: 105px;
}

.sms-admin-record-table th:nth-child(5) {
    width: 80px;
}

.sms-admin-record-table th:nth-child(6) {
    width: 95px;
}

.sms-admin-record-table th:nth-child(7) {
    width: 165px;
}

.sms-record-account strong,
.sms-record-account small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-record-account strong {
    color: var(--sms-ink);
    font-size: 12px;
}

.sms-record-account small,
.sms-record-note,
.sms-record-time {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-record-account small {
    margin-top: 4px;
}

.sms-record-mobile,
.sms-record-time {
    white-space: nowrap;
}

.sms-record-mobile {
    color: var(--sms-ink);
    font-size: 11px;
}

.sms-record-content {
    overflow: hidden;
    color: var(--sms-ink);
    font-size: 12px;
    line-height: 1.55;
    word-break: break-word;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sms-record-note {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-state.is-muted {
    background: #f0f1f3;
    color: var(--sms-muted);
}

.sms-record-type {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 9px;
    border-radius: 999px;
    background: #f0f1f3;
    color: var(--sms-muted);
    font-size: 10px;
    font-weight: 680;
}

.sms-record-type.is-test {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-record-cost {
    color: var(--sms-ink);
    font-family: "SFMono-Regular", "SF Mono", Menlo, monospace;
    font-size: 11px;
}

.sms-responsive-table {
    overflow-x: auto;
}

.sms-responsive-table table {
    width: 100%;
    border-collapse: collapse;
}

.sms-empty-cell {
    height: 140px;
    color: var(--sms-muted);
    text-align: center;
}

.sms-state {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 680;
}

.sms-state.is-success {
    background: var(--sms-green-soft);
    color: var(--sms-green);
}

.sms-state.is-pending {
    background: var(--sms-orange-soft);
    color: var(--sms-orange);
}

.sms-state.is-danger {
    background: var(--sms-red-soft);
    color: var(--sms-red);
}

.sms-invite-applied {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--sms-green-soft);
    color: var(--sms-green);
    font-size: 12px;
    font-weight: 620;
}

.sms-invite-applied svg {
    width: 18px;
    height: 18px;
}

.sms-aff-hero {
    min-height: 230px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 24px;
    padding: 30px;
}

.sms-copy-field {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.sms-copy-field input {
    width: 100%;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 0;
    border-radius: 15px;
    outline: 0;
    background: var(--sms-surface-soft);
    color: var(--sms-ink);
    font-family: "SFMono-Regular", "SF Mono", Menlo, monospace;
    font-size: 11px;
}

.sms-copy-field button,
.sms-user-actions button,
.sms-dialog-head > button {
    border: 0;
    background: var(--sms-surface-soft);
    color: var(--sms-muted);
}

.sms-copy-field button {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
}

.sms-copy-field button:hover,
.sms-copy-field button.is-copied {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-copy-field svg,
.sms-user-actions svg,
.sms-dialog-head button svg {
    width: 19px;
    height: 19px;
}

.sms-aff-hero > div > p {
    margin: 9px 0 0;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-aff-code {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    border-radius: 20px;
    background: #20242a;
    color: #fff;
}

.sms-aff-code span {
    color: #aeb5bf;
    font-size: 10px;
}

.sms-aff-code strong {
    margin-top: 17px;
    font-family: "SFMono-Regular", "SF Mono", Menlo, monospace;
    font-size: 25px;
}

.sms-aff-metrics,
.sms-admin-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.sms-aff-metrics > div,
.sms-admin-metrics > div {
    min-height: 126px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
}

.sms-aff-metrics span,
.sms-admin-metrics span {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-aff-metrics strong,
.sms-admin-metrics strong {
    margin-top: 10px;
    font-size: 27px;
}

.sms-aff-metrics strong small {
    margin-right: 3px;
    color: var(--sms-muted);
    font-size: 13px;
}

.sms-aff-metrics div > small {
    margin-top: 4px;
    color: var(--sms-faint);
    font-size: 9px;
}

.sms-aff-metrics .is-accent {
    background: #20242a;
    color: #fff;
}

.sms-aff-metrics .is-accent strong {
    color: #fff;
}

.sms-positive {
    color: var(--sms-green);
    font-weight: 680;
}

/* User administration */
.sms-user-filters {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 180px 180px auto;
    align-items: end;
    gap: 12px;
    margin-top: 16px;
    padding: 18px;
}

.sms-user-filters label,
.sms-dialog-body label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: var(--sms-muted);
    font-size: 11px;
    font-weight: 620;
}

.sms-user-filters input,
.sms-user-filters select,
.sms-dialog-body input,
.sms-dialog-body select {
    width: 100%;
    min-height: 44px;
    padding: 0 13px;
    border: 1px solid var(--sms-line-strong);
    border-radius: 13px;
    outline: 0;
    background: var(--sms-surface-soft);
    color: var(--sms-ink);
    font-size: 12px;
}

.sms-user-filters input:focus,
.sms-user-filters select:focus,
.sms-dialog-body input:focus,
.sms-dialog-body select:focus {
    border-color: rgba(23, 105, 224, .42);
    background: var(--sms-surface);
}

.sms-user-filters > div {
    display: flex;
    gap: 8px;
}

.sms-user-list {
    margin-top: 16px;
    overflow: hidden;
}

.sms-user-row {
    min-height: 104px;
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) 120px 170px 100px 162px;
    align-items: center;
    gap: 18px;
    padding: 17px 20px;
    border-bottom: 1px solid var(--sms-line);
}

.sms-user-row:last-child {
    border-bottom: 0;
}

.sms-user-row.is-blocked {
    background: #fcf7f8;
}

.sms-user-identity {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;
}

.sms-user-avatar {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: #20242a;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.sms-user-identity strong,
.sms-user-identity small,
.sms-user-balance span,
.sms-user-balance strong,
.sms-user-aff span,
.sms-user-aff strong,
.sms-user-aff small,
.sms-user-status small {
    display: block;
}

.sms-user-identity strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
}

.sms-user-identity small,
.sms-user-aff small,
.sms-user-status small {
    margin-top: 4px;
    color: var(--sms-muted);
    font-size: 9px;
}

.sms-user-balance span,
.sms-user-aff span {
    color: var(--sms-muted);
    font-size: 9px;
}

.sms-user-balance strong,
.sms-user-aff strong {
    margin-top: 6px;
    font-size: 13px;
}

.sms-user-aff strong.is-muted {
    color: var(--sms-muted);
    font-weight: 550;
}

.sms-user-actions {
    width: 162px;
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.sms-user-actions button,
.sms-dialog-head > button {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
}

.sms-user-actions button:hover,
.sms-dialog-head > button:hover {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-empty-state {
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--sms-muted);
}

.sms-empty-state svg {
    width: 30px;
    height: 30px;
}

.sms-empty-state strong {
    margin-top: 16px;
    color: var(--sms-ink);
}

.sms-empty-state span {
    margin-top: 5px;
    font-size: 10px;
}

.sms-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-pagination div {
    display: flex;
    gap: 6px;
}

.sms-pagination a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--sms-surface);
    text-decoration: none;
}

.sms-pagination a.is-active {
    background: #20242a;
    color: #fff;
}

.sms-admin-dialog {
    width: min(620px, 100%);
}

.sms-admin-dialog.is-compact {
    width: min(480px, 100%);
}

.sms-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 18px;
}

.sms-dialog-head span {
    color: var(--sms-blue);
    font-size: 9px;
    font-weight: 680;
}

.sms-dialog-head h2 {
    margin: 5px 0 0;
}

.sms-dialog-body {
    padding: 0 26px 26px;
}

.sms-dialog-body > label + label,
.sms-dialog-body > .sms-dialog-grid,
.sms-dialog-body > .sms-security-notice,
.sms-dialog-body > .sms-aff-preview {
    margin-top: 16px;
}

.sms-dialog-body label small {
    color: var(--sms-faint);
    font-size: 9px;
    font-weight: 450;
}

.sms-dialog-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.sms-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

.sms-switch-row {
    min-height: 72px;
    flex-direction: row !important;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sms-surface-soft);
}

.sms-switch-row strong,
.sms-switch-row small {
    display: block;
}

.sms-switch-row strong {
    color: var(--sms-ink);
    font-size: 12px;
}

.sms-switch-row small {
    margin-top: 4px;
    color: var(--sms-muted);
    font-size: 9px;
}

.sms-switch {
    position: relative;
    width: 46px;
    height: 28px;
    flex: 0 0 46px;
}

.sms-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.sms-switch i {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d9dde3;
    transition: background-color .25s var(--sms-ease);
}

.sms-switch i::after {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    content: "";
    border-radius: 50%;
    background: #fff;
    transition: transform .3s var(--sms-ease);
}

.sms-switch input:checked ~ i {
    background: var(--sms-blue);
}

.sms-switch input:checked ~ i::after {
    transform: translateX(18px);
}

.sms-aff-preview {
    padding: 13px 14px;
    border-radius: 14px;
    background: var(--sms-blue-soft);
}

.sms-aff-preview span,
.sms-aff-preview code {
    display: block;
}

.sms-aff-preview span {
    color: var(--sms-blue);
    font-size: 9px;
}

.sms-aff-preview code {
    margin-top: 6px;
    overflow-wrap: anywhere;
    color: var(--sms-ink);
    font-size: 10px;
}

.sms-security-notice {
    margin-top: 0;
    background: var(--sms-red-soft);
    color: var(--sms-red);
}

@media (max-width: 1100px) {
    .sms-user-row {
        grid-template-columns: minmax(210px, 1.4fr) 110px 150px 162px;
    }

    .sms-user-status {
        display: none;
    }
}

@media (max-width: 820px) {
    .sms-money-layout,
    .sms-aff-hero {
        grid-template-columns: 1fr;
    }

    .sms-balance-summary {
        min-height: 360px;
    }

    .sms-aff-metrics,
    .sms-admin-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .sms-user-filters {
        grid-template-columns: 1fr 1fr;
    }

    .sms-user-filters label:first-child,
    .sms-user-filters > div {
        grid-column: 1 / -1;
    }

    .sms-user-row {
        grid-template-columns: 1fr auto;
        gap: 14px;
    }

    .sms-user-balance,
    .sms-user-aff {
        padding-left: 55px;
    }

    .sms-user-actions {
        width: 36px;
        grid-column: 2;
        grid-row: 1 / span 3;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .sms-recharge-panel,
    .sms-balance-summary,
    .sms-aff-hero,
    .sms-record-section {
        padding: 21px;
    }

    .sms-amount-presets {
        grid-template-columns: 1fr 1fr;
    }

    .sms-aff-metrics,
    .sms-admin-metrics,
    .sms-user-filters,
    .sms-dialog-grid {
        grid-template-columns: 1fr;
    }

    .sms-user-filters label:first-child,
    .sms-user-filters > div {
        grid-column: auto;
    }

    .sms-aff-code {
        min-height: 150px;
    }

    .sms-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .sms-dialog-head {
        padding: 20px 20px 15px;
    }

    .sms-dialog-body {
        padding: 0 20px 20px;
    }
}

/* Data tables */
.sms-content > .bg-white.overflow-hidden,
.sms-content > .space-y-6 > .bg-white.overflow-hidden {
    overflow: auto !important;
}

.sms-app-page th {
    padding: 13px 18px !important;
}

.sms-app-page td {
    padding: 16px 18px !important;
    font-size: 12px;
}

.sms-app-page tbody tr:last-child td {
    border-bottom: 0;
}

.sms-app-page td button.text-blue-600,
.sms-app-page td button.text-green-600,
.sms-app-page td button.text-red-600,
.sms-app-page td a.text-blue-600,
.sms-app-page td a.text-green-600,
.sms-app-page td a.text-red-600 {
    min-height: 30px;
    padding: 0 8px;
    border: 0;
    border-radius: 9px;
    background: transparent !important;
    font-size: 11px;
    font-weight: 650;
}

.sms-app-page td button:hover,
.sms-app-page td a:hover {
    background: var(--sms-surface-soft) !important;
}

.sms-inline-action {
    display: inline-flex;
    margin: 0;
}

.sms-public-badge {
    width: max-content;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin-top: 7px;
    padding: 0 9px;
    border-radius: 999px;
    background: #edf5ff;
    color: #1769c2;
    font-size: 9px;
    font-weight: 680;
    white-space: nowrap;
}

.sms-public-guide {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 18px;
    background: #f1f6fc;
    color: var(--sms-ink);
}

.sms-public-guide > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--sms-blue);
    stroke-width: 1.7;
}

.sms-public-guide strong {
    display: block;
    font-size: 12px;
    font-weight: 680;
}

.sms-public-guide p {
    margin: 6px 0 0 !important;
    color: var(--sms-muted);
    font-size: 11px !important;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

/* Forms, filters and settings */
.sms-app-page form.flex.items-end,
.sms-app-page form.flex.gap-4.items-end {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: end !important;
    gap: 14px !important;
}

.sms-app-page form.flex.items-end > div:not(.flex-1),
.sms-app-page form.flex.gap-4.items-end > div:not(.flex-1) {
    display: flex;
    gap: 8px;
}

.sms-app-page form.flex.items-end > div:not(.flex-1) > *,
.sms-app-page form.flex.gap-4.items-end > div:not(.flex-1) > * {
    flex: 1;
}

.sms-content > .max-w-4xl {
    width: 100%;
    max-width: 1080px !important;
}

.sms-content .border-t.flex.items-center.justify-between {
    gap: 16px;
}

.sms-content .border-t.flex.items-center.justify-between > .flex {
    max-width: 100%;
    overflow-x: auto;
    padding: 2px;
    scrollbar-width: none;
}

.sms-content .border-t.flex.items-center.justify-between > .flex::-webkit-scrollbar {
    display: none;
}

.sms-content .border-t.flex.items-center.justify-between a {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.sms-content .space-y-4 > div + div,
.sms-content .space-y-6 > div + div {
    margin-top: 18px;
}

.sms-content form label {
    margin-bottom: 7px !important;
    font-size: 12px !important;
    font-weight: 620 !important;
}

.sms-content form p.text-xs {
    margin-top: 6px !important;
}

/* Modal system */
.fixed.inset-0.bg-black {
    z-index: 100 !important;
    padding: 24px;
    background: rgba(20, 22, 26, .42) !important;
    backdrop-filter: blur(12px);
}

.fixed.inset-0.bg-black > div {
    max-height: calc(100vh - 48px);
    overflow: auto;
    border: 0 !important;
    border-radius: var(--sms-radius-lg) !important;
    background: var(--sms-surface) !important;
    box-shadow: 0 24px 80px rgba(20, 22, 26, .18) !important;
}

.fixed.inset-0.bg-black > div > .border-b,
.fixed.inset-0.bg-black > div > .border-t {
    border-color: var(--sms-line) !important;
}

.fixed.inset-0.bg-black h2 {
    font-size: 19px !important;
    font-weight: 680 !important;
}

/* Dashboard overview */
.sms-dashboard-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.sms-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.sms-kicker {
    margin: 0 0 9px;
    color: var(--sms-blue) !important;
    font-size: 11px;
    font-weight: 680;
}

.sms-dashboard-heading h1 {
    margin: 0;
    font-size: 34px !important;
    font-weight: 700 !important;
    line-height: 1.1;
}

.sms-dashboard-heading > div > p:last-child {
    margin: 10px 0 0;
    color: var(--sms-muted);
    font-size: 13px;
}

.sms-overview-grid {
    display: grid;
    grid-template-columns: 1.28fr .86fr .86fr;
    gap: 16px;
}

.sms-balance-panel,
.sms-metric-panel,
.sms-resource-panel,
.sms-workflow-panel,
.sms-account-panel,
.sms-admin-summary,
.sms-review-summary,
.sms-admin-actions {
    border-radius: var(--sms-radius-lg);
    background: var(--sms-surface);
}

.sms-balance-panel,
.sms-metric-panel,
.sms-resource-panel,
.sms-admin-summary,
.sms-review-summary {
    min-height: 280px;
    padding: 26px;
}

.sms-balance-panel {
    background: #20242a;
    color: #fff;
}

.sms-panel-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--sms-muted);
    font-size: 10px;
    font-weight: 620;
}

.sms-balance-panel .sms-panel-label,
.sms-balance-panel > p {
    color: #aeb5bf;
}

.sms-status-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sms-status-dot::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: #55c995;
}

.sms-balance-value {
    display: block;
    margin-top: 30px;
    color: #fff;
    font-size: 48px;
    font-weight: 650;
    line-height: 1;
}

.sms-balance-value small {
    margin-right: 5px;
    color: #aeb5bf;
    font-size: 19px;
}

.sms-balance-panel > p {
    max-width: 400px;
    margin: 10px 0 0;
    font-size: 11px;
}

.sms-balance-actions {
    display: flex;
    gap: 8px;
    margin-top: 27px;
}

.sms-balance-panel .sms-secondary {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .09) !important;
    color: #fff !important;
}

.sms-metric-primary,
.sms-review-count,
.sms-admin-primary-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 30px;
}

.sms-metric-primary strong,
.sms-review-count strong,
.sms-admin-primary-metric strong {
    color: var(--sms-ink);
    font-size: 46px;
    font-weight: 650;
    line-height: 1;
}

.sms-metric-primary span,
.sms-review-count span,
.sms-admin-primary-metric span,
.sms-metric-row span {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-metric-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--sms-line);
}

.sms-metric-row > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.sms-metric-row strong {
    font-size: 18px;
}

.sms-resource-panel {
    display: flex;
    flex-direction: column;
}

.sms-resource-panel > a {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 17px 0;
    border-bottom: 1px solid var(--sms-line);
    color: var(--sms-ink) !important;
    text-decoration: none;
}

.sms-resource-panel > a:first-of-type {
    margin-top: 20px;
}

.sms-resource-panel > a:last-child {
    border-bottom: 0;
}

.sms-resource-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-resource-icon svg {
    width: 19px;
    height: 19px;
}

.sms-resource-panel > a > span:nth-child(2),
.sms-admin-action-grid > a > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sms-resource-panel strong {
    font-size: 17px;
}

.sms-resource-panel small,
.sms-resource-panel em {
    color: var(--sms-muted);
    font-size: 10px;
    font-style: normal;
}

.sms-dashboard-lower {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, .55fr);
    gap: 16px;
    margin-top: 16px;
}

.sms-workflow-panel,
.sms-account-panel,
.sms-admin-actions {
    padding: 26px;
}

.sms-section-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.sms-section-bar h2 {
    margin: 0;
    font-size: 17px !important;
    font-weight: 680 !important;
}

.sms-section-bar p {
    margin: 5px 0 0;
    color: var(--sms-muted);
    font-size: 11px;
}

.sms-section-bar > a {
    color: var(--sms-blue) !important;
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
}

.sms-workflow-steps,
.sms-admin-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin-top: 24px;
}

.sms-workflow-steps a,
.sms-admin-action-grid > a {
    min-height: 142px;
    display: flex;
    flex-direction: column;
    padding: 18px;
    border-radius: var(--sms-radius-md);
    background: var(--sms-surface-soft);
    color: var(--sms-ink) !important;
    text-decoration: none;
}

.sms-workflow-steps a:hover,
.sms-admin-action-grid > a:hover {
    background: var(--sms-blue-soft);
}

.sms-workflow-steps span {
    color: var(--sms-blue);
    font-family: "SF Mono", Menlo, monospace;
    font-size: 9px;
}

.sms-workflow-steps strong {
    margin-top: auto;
    font-size: 13px;
}

.sms-workflow-steps small,
.sms-admin-action-grid small {
    margin-top: 4px;
    color: var(--sms-muted);
    font-size: 9px;
    line-height: 1.5;
}

.sms-account-panel dl {
    margin: 20px 0 0;
}

.sms-account-panel dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--sms-line);
}

.sms-account-panel dl > div:last-child {
    border-bottom: 0;
}

.sms-account-panel dt {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-account-panel dd {
    max-width: 180px;
    margin: 0;
    overflow: hidden;
    color: var(--sms-ink);
    font-size: 10px;
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-admin-overview {
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 16px;
}

.sms-admin-summary {
    background: #20242a;
}

.sms-admin-summary .sms-panel-label,
.sms-admin-summary .sms-admin-primary-metric span {
    color: #aeb5bf;
}

.sms-admin-summary .sms-admin-primary-metric strong {
    color: #fff;
}

.sms-admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 27px;
}

.sms-admin-metric-grid > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px;
    border-radius: var(--sms-radius-sm);
    background: rgba(255, 255, 255, .08);
}

.sms-admin-metric-grid strong {
    color: #fff;
    font-size: 18px;
}

.sms-admin-metric-grid span {
    color: #aeb5bf;
    font-size: 9px;
}

.sms-review-links {
    margin-top: 24px;
}

.sms-review-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--sms-line);
    color: var(--sms-ink) !important;
    font-size: 10px;
    text-decoration: none;
}

.sms-review-links a:last-child {
    border-bottom: 0;
}

.sms-review-links strong {
    color: var(--sms-blue);
    font-size: 17px;
}

.sms-admin-actions {
    margin-top: 16px;
}

.sms-admin-action-grid > a {
    gap: 18px;
}

.sms-admin-action-grid strong {
    font-size: 13px;
}

/* Authentication */
.sms-auth-page {
    min-height: 100vh;
    background: #eef0f3 !important;
}

.sms-auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 56px 20px;
}

.sms-auth-wrap {
    width: min(100%, 440px);
}

.sms-auth-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-bottom: 22px;
}

.sms-auth-brand .sms-brand-logo {
    width: 36px;
    height: 36px;
}

.sms-auth-card {
    padding: 34px;
    border-radius: var(--sms-radius-xl);
    background: var(--sms-surface);
}

.sms-auth-card h2 {
    margin-top: 0;
    font-size: 25px !important;
    font-weight: 700 !important;
}

.sms-auth-card form button[type="submit"] {
    min-height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 15px !important;
    background: var(--sms-blue) !important;
    color: #fff !important;
    font-weight: 650;
    opacity: 1 !important;
    visibility: visible !important;
}

.sms-auth-card a {
    opacity: 1 !important;
    visibility: visible !important;
}

.sms-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 120px;
    align-items: center;
    gap: 8px;
}

.sms-captcha-row input {
    width: 100%;
    min-width: 0;
}

.sms-auth-card #captcha-img {
    width: 120px;
    height: 48px;
    flex: 0 0 120px;
    border: 0 !important;
    border-radius: var(--sms-radius-sm) !important;
    background: #f3fbfe;
    object-fit: contain;
    object-position: center;
}

.sms-auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 0;
    color: var(--sms-muted);
    font-size: 10px;
    text-align: center;
}

/* Public site */
.sms-home-page {
    overflow-x: hidden;
    background: #f7f8fa !important;
}

.sms-site-header {
    width: 100%;
    height: 76px;
    position: fixed;
    inset: 0 0 auto;
    z-index: 80;
    background: rgba(247, 248, 250, .84);
    backdrop-filter: blur(20px) saturate(130%);
}

.sms-site-header-inner {
    width: min(calc(100% - 48px), 1240px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    margin: 0 auto;
}

.sms-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--sms-ink) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sms-site-brand .sms-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.sms-site-nav,
.sms-site-actions {
    display: flex;
    align-items: center;
    gap: 28px;
}

.sms-site-nav a,
.sms-text-link {
    color: var(--sms-muted) !important;
    font-size: 12px;
    font-weight: 560;
    text-decoration: none;
}

.sms-site-nav a:hover,
.sms-text-link:hover {
    color: var(--sms-ink) !important;
}

.sms-site-actions {
    gap: 16px;
}

.sms-site-actions .sms-primary {
    min-height: 40px;
    padding: 0 17px;
}

.sms-home-hero {
    min-height: min(900px, 94vh);
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(500px, 1.08fr);
    align-items: center;
    gap: clamp(48px, 7vw, 100px);
    padding: 142px max(24px, calc((100vw - 1240px) / 2)) 84px;
    background: #f7f8fa;
}

.sms-home-hero-copy {
    max-width: 610px;
}

.sms-home-hero h1 {
    margin: 0;
    color: #111317 !important;
    font-size: 68px !important;
    font-weight: 680 !important;
    line-height: 1.04;
}

.sms-home-lead {
    max-width: 540px;
    margin: 24px 0 0;
    color: var(--sms-muted);
    font-size: 17px;
    line-height: 1.75;
}

.sms-home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.sms-flow-stage {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 36px;
    background: #e9ebef;
}

.sms-flow-track {
    width: 2px;
    height: calc(100% - 80px);
    position: absolute;
    top: 40px;
    left: 50%;
    overflow: hidden;
    background: rgba(21, 23, 26, .08);
}

.sms-flow-pulse {
    width: 2px;
    height: 72px;
    display: block;
    background: var(--sms-blue);
}

.sms-flow-node {
    min-height: 210px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
    border-radius: var(--sms-radius-lg);
    background: var(--sms-surface);
}

.sms-flow-node.is-current {
    background: #20242a;
}

.sms-flow-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: auto;
    border-radius: 14px;
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-flow-node.is-current .sms-flow-icon {
    background: rgba(255, 255, 255, .1);
    color: #fff;
}

.sms-flow-icon svg {
    width: 20px;
    height: 20px;
}

.sms-flow-node strong {
    color: var(--sms-ink);
    font-size: 15px;
}

.sms-flow-node > span:last-child {
    margin-top: 4px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-flow-node.is-current strong {
    color: #fff;
}

.sms-flow-node.is-current > span:last-child {
    color: #aeb5bf;
}

.sms-signal-band {
    width: min(calc(100% - 48px), 1240px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto;
    padding: 30px 0;
    border-top: 1px solid var(--sms-line);
    border-bottom: 1px solid var(--sms-line);
}

.sms-signal-band > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 0 28px;
    border-right: 1px solid var(--sms-line);
}

.sms-signal-band > div:first-child {
    padding-left: 0;
}

.sms-signal-band > div:last-child {
    border-right: 0;
}

.sms-signal-band strong {
    font-size: 20px;
    font-weight: 660;
}

.sms-signal-band span {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-home-section {
    width: min(calc(100% - 48px), 1240px);
    margin: 0 auto;
    padding: 120px 0;
}

.sms-section-heading {
    max-width: 660px;
}

.sms-section-heading h2,
.sms-api-copy h2,
.sms-final-cta h2 {
    margin: 0;
    font-size: 48px !important;
    font-weight: 650 !important;
    line-height: 1.1;
}

.sms-section-heading > p:last-child,
.sms-api-copy > p:not(.sms-kicker) {
    max-width: 560px;
    margin: 20px 0 0;
    color: var(--sms-muted);
    font-size: 15px;
    line-height: 1.75;
}

.sms-capabilities-section {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: clamp(50px, 9vw, 130px);
    align-items: start;
}

.sms-capability-list {
    border-top: 1px solid var(--sms-line);
}

.sms-capability-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 18px;
    padding: 28px 0;
    border-bottom: 1px solid var(--sms-line);
}

.sms-capability-index {
    align-self: start;
    padding-top: 3px;
    color: var(--sms-faint);
    font-family: "SF Mono", Menlo, monospace;
    font-size: 10px;
}

.sms-capability-item h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 660;
}

.sms-capability-item p {
    margin: 7px 0 0;
    color: var(--sms-muted);
    font-size: 12px;
    line-height: 1.7;
}

.sms-capability-item > svg {
    width: 20px;
    height: 20px;
    color: var(--sms-faint);
}

.sms-pricing-section {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    align-items: center;
    gap: clamp(56px, 9vw, 132px);
}

.sms-pricing-copy {
    max-width: 560px;
}

.sms-pricing-copy h2 {
    margin: 0;
    font-size: 48px !important;
    font-weight: 650 !important;
    line-height: 1.1;
}

.sms-pricing-copy > p:last-child {
    margin: 20px 0 0;
    color: var(--sms-muted);
    font-size: 15px;
    line-height: 1.75;
}

.sms-price-panel {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    padding: 34px;
    border-radius: var(--sms-radius-xl);
    background: #20242a;
    color: #fff;
}

.sms-price-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sms-price-heading span {
    font-size: 14px;
    font-weight: 650;
}

.sms-price-heading small {
    color: #aeb5bf;
    font-size: 10px;
}

.sms-price-value {
    display: flex;
    align-items: baseline;
    margin-top: 62px;
}

.sms-price-value > span {
    margin-right: 8px;
    color: #aeb5bf;
    font-size: 22px;
}

.sms-price-value strong {
    color: #fff;
    font-size: 68px;
    font-weight: 650;
    line-height: 1;
}

.sms-price-value small {
    margin-left: 9px;
    color: #aeb5bf;
    font-size: 13px;
}

.sms-price-rule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 48px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}

.sms-price-rule span {
    color: #aeb5bf;
    font-size: 11px;
}

.sms-price-rule strong {
    color: #fff;
    font-size: 15px;
}

.sms-price-panel .sms-primary {
    width: 100%;
    margin-top: auto;
    background: #fff !important;
    color: #20242a !important;
}

.sms-price-panel .sms-primary:hover {
    background: #eef0f3 !important;
}

.sms-product-section {
    width: 100%;
    max-width: none;
    padding: 116px max(24px, calc((100vw - 1240px) / 2));
    background: #eef0f3;
}

.sms-section-heading-centered {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.sms-section-heading-centered > p:last-child {
    margin-right: auto;
    margin-left: auto;
}

.sms-product-preview {
    max-width: 1080px;
    min-height: 570px;
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    margin: 64px auto 0;
    overflow: hidden;
    border-radius: var(--sms-radius-xl);
    background: var(--sms-surface);
    box-shadow: 0 28px 80px rgba(21, 23, 26, .1);
}

.sms-preview-sidebar {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 24px 14px;
    background: #f8f9fb;
}

.sms-preview-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 680;
}

.sms-preview-brand img {
    width: 28px;
    height: 28px;
    border-radius: 9px;
}

.sms-preview-sidebar > span {
    padding: 10px 12px;
    border-radius: 11px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-preview-sidebar > span.is-active {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-preview-main {
    min-width: 0;
    padding: 30px;
}

.sms-preview-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sms-preview-head > div {
    display: flex;
    flex-direction: column;
}

.sms-preview-head small,
.sms-preview-head > span,
.sms-preview-metrics span,
.sms-preview-chart small,
.sms-preview-tasks > span,
.sms-preview-tasks small {
    color: var(--sms-muted);
    font-size: 9px;
}

.sms-preview-head > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sms-preview-head > span::before {
    width: 6px;
    height: 6px;
    content: "";
    border-radius: 50%;
    background: var(--sms-green);
}

.sms-preview-head strong {
    font-size: 18px;
}

.sms-preview-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 28px;
}

.sms-preview-metrics > div {
    min-height: 106px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 17px;
    border-radius: 17px;
    background: var(--sms-surface-soft);
}

.sms-preview-metrics strong {
    font-size: 20px;
}

.sms-preview-body {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(190px, .5fr);
    gap: 10px;
    margin-top: 10px;
}

.sms-preview-chart,
.sms-preview-tasks {
    min-height: 280px;
    padding: 18px;
    border-radius: 17px;
    background: var(--sms-surface-soft);
}

.sms-preview-chart > div {
    display: flex;
    justify-content: space-between;
}

.sms-preview-chart svg {
    width: 100%;
    height: 190px;
    margin-top: 22px;
    color: var(--sms-blue);
}

.sms-preview-tasks {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.sms-preview-tasks > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 17px;
    border-radius: 14px;
    background: var(--sms-surface);
}

.sms-preview-tasks strong {
    font-size: 20px;
}

.sms-api-section {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    align-items: center;
    gap: clamp(60px, 10vw, 140px);
}

.sms-api-copy .sms-primary {
    margin-top: 28px;
}

.sms-code-sample {
    overflow: hidden;
    border-radius: var(--sms-radius-xl);
    background: #171a20;
}

.sms-code-sample > div {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.sms-code-sample > div > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #616873;
}

.sms-code-sample small {
    margin-left: auto;
    color: #939ba7;
    font-family: "SF Mono", Menlo, monospace;
    font-size: 9px;
}

.sms-code-sample pre {
    margin: 0;
    padding: 28px !important;
    border-radius: 0 !important;
}

.sms-final-cta {
    width: min(calc(100% - 48px), 1240px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin: 0 auto 92px;
    padding: 64px;
    border-radius: var(--sms-radius-xl);
    background: #20242a;
}

.sms-final-cta h2 {
    color: #fff !important;
}

.sms-site-footer {
    width: min(calc(100% - 48px), 1240px);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: end;
    gap: 50px;
    margin: 0 auto;
    padding: 42px 0;
    border-top: 1px solid var(--sms-line);
}

.sms-site-footer > div > p,
.sms-site-footer > p {
    margin: 8px 0 0;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-site-legal {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 5px;
    color: var(--sms-muted);
    font-size: 10px;
    text-align: right;
}

.sms-site-legal p {
    margin: 0;
}

.sms-site-footer nav {
    display: flex;
    gap: 24px;
}

.sms-site-footer nav a {
    color: var(--sms-muted);
    font-size: 11px;
    text-decoration: none;
}

.sms-site-footer .sms-friend-links {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-top: 4px;
}

.sms-friend-links span {
    color: var(--sms-text);
    font-size: 11px;
    font-weight: 600;
}

.sms-site-footer nav a:hover {
    color: var(--sms-text);
}

/* API documentation */
.sms-docs-page {
    background: #f4f5f7 !important;
}

.sms-docs-page > .sms-shell {
    display: block;
}

.sms-docs-page > .sms-shell .sms-main {
    width: 100%;
}

.sms-docs-page > .sms-shell .sms-site-header {
    position: sticky;
    top: 0;
}

.sms-docs-header-inner {
    width: min(calc(100% - 48px), 1240px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0 auto;
}

.sms-docs-page .sms-site-nav a[aria-current="page"] {
    color: var(--sms-ink) !important;
    font-weight: 650;
}

.sms-docs-page > .sms-shell .sms-content {
    width: min(calc(100% - 48px), 1120px);
    min-height: auto;
    margin: 0 auto;
    padding: 54px 0 80px;
}

.sms-docs-page .sms-home-nav {
    background: rgba(244, 245, 247, .88) !important;
    backdrop-filter: blur(18px);
}

.sms-docs-page .sms-home-nav > div {
    max-width: 1240px !important;
}

.sms-docs-page .sms-home-nav h1 {
    font-size: 14px !important;
    font-weight: 680 !important;
}

.sms-docs-page .sticky.bg-white {
    padding: 18px !important;
    border-radius: var(--sms-radius-md) !important;
}

.sms-docs-page .sticky.bg-white nav a {
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 11px;
    text-decoration: none;
}

.sms-docs-page .sticky.bg-white nav a:hover {
    background: var(--sms-blue-soft);
}

.sms-docs-page .api-section,
.sms-docs-page .sms-content > .bg-white,
.sms-docs-page .sms-content > .space-y-6 > .bg-white {
    margin-bottom: 14px !important;
    padding: 28px !important;
    border: 0 !important;
    border-radius: var(--sms-radius-lg) !important;
    background: var(--sms-surface) !important;
    box-shadow: none !important;
    scroll-margin-top: 92px;
}

.sms-docs-page .api-section h2 {
    font-size: 23px !important;
    font-weight: 680 !important;
}

.sms-docs-page .api-section h3,
.sms-docs-page .sms-content h3 {
    font-size: 15px !important;
    font-weight: 660 !important;
}

.sms-docs-page table {
    min-width: 620px;
}

/* Responsive */
@media (max-width: 1180px) {
    .sms-overview-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sms-resource-panel {
        grid-column: 1 / -1;
        min-height: auto;
    }

    .sms-dashboard-lower {
        grid-template-columns: 1fr;
    }

    .sms-home-hero {
        grid-template-columns: 1fr 1fr;
        gap: 42px;
    }

    .sms-home-hero h1 {
        font-size: 58px !important;
    }
}

@media (max-width: 980px) {
    :root {
        --sms-sidebar: 224px;
    }

    .sms-workflow-steps,
    .sms-admin-action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sms-home-hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 154px;
    }

    .sms-home-hero-copy {
        max-width: 720px;
    }

    .sms-flow-stage {
        max-width: 760px;
    }

    .sms-capabilities-section,
    .sms-api-section,
    .sms-pricing-section {
        grid-template-columns: 1fr;
        gap: 54px;
    }

    .sms-section-heading {
        max-width: 720px;
    }

    .sms-product-preview {
        min-height: 520px;
    }

    .sms-docs-page .pt-20 .flex.gap-8 {
        display: block;
    }

    .sms-docs-page .pt-20 .w-64 {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --sms-radius-xl: 26px;
        --sms-radius-lg: 22px;
    }

    .sms-shell {
        display: block;
    }

    .sms-sidebar {
        width: min(88vw, 320px);
        height: 100vh;
        height: 100dvh;
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        padding: max(14px, env(safe-area-inset-top)) 14px max(14px, env(safe-area-inset-bottom));
        overflow: hidden;
        border-radius: 0 28px 28px 0;
        background: rgba(255, 255, 255, .98);
        transform: translateX(-105%);
        will-change: transform;
    }

    .sms-sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: none;
        border: 0;
        background: rgba(20, 22, 26, .34);
        backdrop-filter: blur(8px);
        cursor: default;
    }

    .sms-menu-open {
        overflow: hidden;
    }

    .sms-menu-open .sms-sidebar-backdrop {
        display: block;
    }

    .sms-menu-open .sms-sidebar {
        transform: translateX(0);
    }

    .sms-sidebar .sms-brand,
    .sms-sidebar .sms-nav,
    .sms-sidebar .sms-nav-group,
    .sms-sidebar .sms-nav-item,
    .sms-sidebar .sms-profile {
        visibility: visible;
    }

    .sms-sidebar .sms-brand {
        min-height: 66px;
        padding: 0 4px 12px 8px;
    }

    .sms-sidebar-close {
        display: inline-flex;
    }

    .sms-sidebar .sms-nav {
        padding-top: 8px;
        overscroll-behavior: contain;
    }

    .sms-sidebar .sms-nav-group {
        margin-bottom: 18px;
    }

    .sms-sidebar .sms-profile {
        padding-bottom: 2px;
    }

    .sms-topbar {
        height: 68px;
        padding: 0 18px;
    }

    .sms-mobile-menu {
        display: inline-flex;
    }

    .sms-topbar-status {
        font-size: 0;
    }

    .sms-content {
        min-height: calc(100vh - 68px);
        padding: 24px 16px 48px;
    }

    .sms-legal-footer {
        padding: 0 16px 22px;
    }

    .sms-content > .flex.justify-between.items-center.mb-8,
    .sms-content > .mb-6.flex.justify-between.items-center,
    .sms-dashboard-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .sms-content > .flex.justify-between.items-center.mb-8 button,
    .sms-content > .mb-6.flex.justify-between.items-center button,
    .sms-dashboard-heading > a,
    .sms-dashboard-heading > button {
        width: 100%;
    }

    .sms-heading-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }

    .sms-heading-actions > * {
        width: 100%;
    }

    .sms-app-page form.flex.items-end > div:not(.flex-1),
    .sms-app-page form.flex.gap-4.items-end > div:not(.flex-1) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        margin-left: 0 !important;
    }

    .sms-content .border-t.flex.items-center.justify-between {
        align-items: stretch !important;
        flex-direction: column;
        padding: 16px !important;
    }

    .sms-content .border-t.flex.items-center.justify-between > .flex {
        width: 100%;
    }

    .fixed.inset-0.bg-black .flex.justify-end.gap-3 {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .fixed.inset-0.bg-black .flex.justify-end.gap-3 > button {
        width: 100%;
        margin: 0 !important;
    }

    .sms-overview-grid,
    .sms-admin-overview {
        grid-template-columns: 1fr;
    }

    .sms-resource-panel {
        grid-column: auto;
    }

    .sms-balance-panel,
    .sms-metric-panel,
    .sms-resource-panel,
    .sms-admin-summary,
    .sms-review-summary {
        min-height: auto;
        padding: 22px;
    }

    .sms-balance-value {
        font-size: 42px;
    }

    .sms-balance-actions {
        flex-direction: column;
    }

    .sms-balance-actions > * {
        width: 100%;
    }

    .sms-workflow-panel,
    .sms-account-panel,
    .sms-admin-actions {
        padding: 22px;
    }

    .sms-workflow-steps,
    .sms-admin-action-grid {
        grid-template-columns: 1fr;
    }

    .sms-workflow-steps a,
    .sms-admin-action-grid > a {
        min-height: 122px;
    }

    .sms-admin-metric-grid {
        grid-template-columns: 1fr;
    }

    .sms-app-page .overflow-x-auto > table,
    .sms-app-page .sms-content > .bg-white > table,
    .sms-app-page .sms-content table {
        min-width: 720px;
    }

    .fixed.inset-0.bg-black {
        align-items: flex-end !important;
        padding: 12px;
    }

    .fixed.inset-0.bg-black > div {
        width: 100% !important;
        max-height: calc(100vh - 24px);
        margin: 0 !important;
        border-radius: 24px !important;
    }

    .sms-auth-shell {
        padding: 32px 14px;
    }

    .sms-auth-card {
        padding: 26px 22px;
    }

    .sms-site-header {
        height: 66px;
    }

    .sms-site-header-inner {
        width: calc(100% - 28px);
        gap: 12px;
    }

    .sms-site-brand {
        min-width: 0;
        gap: 8px;
        font-size: 12px;
    }

    .sms-site-brand .sms-brand-logo {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    .sms-site-brand > span {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .sms-site-actions {
        flex: 0 0 auto;
    }

    .sms-site-nav,
    .sms-site-actions .sms-text-link {
        display: none;
    }

    .sms-site-actions {
        gap: 0;
    }

    .sms-site-actions .sms-primary {
        min-height: 36px;
        padding: 0 12px;
        font-size: 11px;
    }

    .sms-home-hero {
        width: 100%;
        gap: 42px;
        padding: 120px 16px 58px;
    }

    .sms-home-hero-copy,
    .sms-home-actions,
    .sms-flow-stage {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .sms-home-hero h1 {
        font-size: 44px !important;
    }

    .sms-home-lead {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .sms-home-actions {
        flex-direction: column;
    }

    .sms-home-actions > a {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .sms-flow-stage {
        display: flex;
        gap: 10px;
        padding: 10px;
        overflow-x: auto;
        border-radius: 28px;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .sms-flow-stage::-webkit-scrollbar {
        display: none;
    }

    .sms-flow-track {
        display: none;
    }

    .sms-flow-node {
        width: 82%;
        min-width: 82%;
        min-height: 190px;
        scroll-snap-align: center;
    }

    .sms-signal-band {
        width: calc(100% - 32px);
        grid-template-columns: 1fr 1fr;
    }

    .sms-signal-band > div {
        padding: 18px;
        border-bottom: 1px solid var(--sms-line);
    }

    .sms-signal-band > div:first-child {
        padding-left: 18px;
    }

    .sms-signal-band > div:nth-child(2) {
        border-right: 0;
    }

    .sms-signal-band > div:nth-child(3),
    .sms-signal-band > div:nth-child(4) {
        border-bottom: 0;
    }

    .sms-home-section {
        width: calc(100% - 32px);
        padding: 82px 0;
    }

    .sms-section-heading h2,
    .sms-api-copy h2,
    .sms-final-cta h2,
    .sms-pricing-copy h2 {
        font-size: 36px !important;
    }

    .sms-pricing-section {
        gap: 36px;
    }

    .sms-price-panel {
        min-height: 390px;
        padding: 28px 24px;
    }

    .sms-price-value {
        margin-top: 50px;
    }

    .sms-price-value strong {
        font-size: 54px;
    }

    .sms-capability-item {
        grid-template-columns: 28px minmax(0, 1fr) 20px;
        gap: 12px;
        padding: 22px 0;
    }

    .sms-product-section {
        width: 100%;
        padding: 80px 16px;
    }

    .sms-product-preview {
        min-height: auto;
        display: block;
        margin-top: 44px;
    }

    .sms-preview-sidebar {
        display: none;
    }

    .sms-preview-main {
        padding: 18px;
    }

    .sms-preview-metrics {
        grid-template-columns: 1fr;
    }

    .sms-preview-metrics > div:not(:first-child) {
        display: none;
    }

    .sms-preview-body {
        grid-template-columns: 1fr;
    }

    .sms-preview-tasks {
        min-height: auto;
    }

    .sms-api-section {
        gap: 36px;
    }

    .sms-final-cta {
        width: calc(100% - 32px);
        align-items: stretch;
        flex-direction: column;
        margin-bottom: 60px;
        padding: 34px 26px;
    }

    .sms-site-footer {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
    }

    .sms-site-footer .sms-friend-links {
        grid-column: 1;
    }

    .sms-site-legal {
        align-items: flex-start;
        text-align: left;
    }

    .sms-auth-footer {
        flex-direction: column;
        gap: 5px;
    }

    .sms-docs-page .pt-20 {
        padding-top: 76px !important;
    }

    .sms-docs-header-inner,
    .sms-docs-page > .sms-shell .sms-content {
        width: calc(100% - 28px);
    }

    .sms-docs-page > .sms-shell .sms-content {
        padding: 34px 0 54px;
    }

    .sms-docs-page .pt-20 > div {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .sms-docs-page .api-section {
        padding: 22px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

/* Template audit workspace */
.sms-template-heading {
    align-items: flex-end;
}

.sms-template-heading > div > p:last-child {
    margin-top: 10px;
}

.sms-template-audit-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.sms-template-audit-card {
    display: flex;
    min-height: 150px;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 22px;
    border-radius: var(--sms-radius-lg);
    color: var(--sms-ink);
    background: var(--sms-surface);
    text-decoration: none;
    transition: transform .32s var(--sms-ease), background-color .32s var(--sms-ease);
}

.sms-template-audit-card:hover {
    transform: translateY(-2px);
}

.sms-template-audit-card.is-pending {
    background: #fff8eb;
}

.sms-template-audit-card.is-approved {
    background: #edf8f2;
}

.sms-template-audit-card.is-rejected {
    background: #fff0f2;
}

.sms-template-audit-card-label,
.sms-template-list-head .sms-panel-label {
    color: var(--sms-muted);
    font-size: 11px;
    font-weight: 680;
    letter-spacing: .02em;
}

.sms-template-audit-card strong {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: -.05em;
    line-height: 1;
}

.sms-template-audit-card small {
    color: var(--sms-muted);
    font-size: 12px;
}

.sms-template-filters {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: 100%;
    margin-bottom: 16px;
    padding: 4px;
    overflow-x: auto;
    border-radius: 16px;
    background: #e8e8ed;
    scrollbar-width: none;
}

.sms-template-filters::-webkit-scrollbar {
    display: none;
}

.sms-template-filters a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-radius: 12px;
    color: var(--sms-muted);
    font-size: 12px;
    font-weight: 620;
    text-decoration: none;
    white-space: nowrap;
}

.sms-template-filters a:hover,
.sms-template-filters a.is-active {
    color: var(--sms-ink);
    background: var(--sms-surface);
}

.sms-template-filters a.is-active {
    color: var(--sms-blue);
}

.sms-template-filters span {
    color: var(--sms-faint);
    font-variant-numeric: tabular-nums;
}

.sms-template-list {
    overflow: hidden;
    border-radius: var(--sms-radius-lg);
    background: var(--sms-surface);
}

.sms-template-list-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 18px;
}

.sms-template-list-head > div {
    display: grid;
    gap: 6px;
}

.sms-template-list-head strong {
    font-size: 18px;
    font-weight: 680;
}

.sms-template-list-note {
    color: var(--sms-faint);
    font-size: 12px;
}

.sms-template-table-wrap {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 23, 26, .16) transparent;
}

.sms-template-table {
    width: 100%;
    min-width: 1040px;
    border-collapse: collapse;
    table-layout: fixed;
}

.sms-template-table th {
    padding: 11px 18px;
    color: var(--sms-faint);
    background: var(--sms-surface-soft);
    font-size: 10px;
    font-weight: 680;
    letter-spacing: .04em;
    text-align: left;
    white-space: nowrap;
}

.sms-template-table th:nth-child(1) {
    width: 13%;
}

.sms-template-table th:nth-child(2) {
    width: 13%;
}

.sms-template-table th:nth-child(3) {
    width: 13%;
}

.sms-template-table th:nth-child(4) {
    width: 22%;
}

.sms-template-table th:nth-child(5) {
    width: 8%;
}

.sms-template-table th:nth-child(6) {
    width: 12%;
}

.sms-template-table th:nth-child(7) {
    width: 7%;
}

.sms-template-table th.is-action-column {
    width: 12%;
}

.sms-template-table td {
    padding: 18px;
    vertical-align: top;
    color: var(--sms-ink);
    font-size: 13px;
}

.sms-template-table tbody tr {
    transition: background-color .24s var(--sms-ease);
}

.sms-template-table tbody tr:hover {
    background: #fbfbfc;
}

.sms-template-table tbody tr + tr td {
    border-top: 1px solid var(--sms-line);
}

.sms-template-user-inner,
.sms-template-name-inner,
.sms-template-status-inner {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.sms-template-user strong,
.sms-template-name strong {
    overflow: hidden;
    font-weight: 660;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-template-user span,
.sms-template-upstream-id,
.sms-template-status small,
.sms-template-time {
    color: var(--sms-muted);
    font-size: 11px;
}

.sms-template-content span {
    display: -webkit-box;
    overflow: hidden;
    color: #30343a;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sms-template-signature span {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    color: var(--sms-ink);
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-template-signature .is-unlinked {
    color: var(--sms-faint);
    font-weight: 500;
}

.sms-template-upstream-id {
    overflow: hidden;
    color: var(--sms-blue);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-public-badge,
.sms-template-status-pill,
.sms-template-type > span {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 650;
}

.sms-template-type > span {
    color: var(--sms-blue);
    background: var(--sms-blue-soft);
}

.sms-template-status-pill.is-pending {
    color: var(--sms-orange);
    background: var(--sms-orange-soft);
}

.sms-template-status-pill.is-approved {
    color: var(--sms-green);
    background: var(--sms-green-soft);
}

.sms-template-status-pill.is-rejected {
    color: var(--sms-red);
    background: var(--sms-red-soft);
}

.sms-template-status small {
    display: -webkit-box;
    max-width: 170px;
    overflow: hidden;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.sms-template-actions {
    min-width: 0;
}

.sms-template-actions-inner {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 5px 10px;
}

.sms-inline-action {
    display: inline-flex;
    margin: 0;
}

.sms-table-action {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    justify-content: center;
    padding: 0 7px;
    border: 0;
    border-radius: 9px;
    color: var(--sms-muted);
    background: transparent;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
}

.sms-table-action:hover {
    color: var(--sms-ink);
    background: #ededf1;
}

.sms-table-action.is-primary {
    color: var(--sms-blue);
}

.sms-table-action.is-primary:hover {
    color: #fff;
    background: var(--sms-blue);
}

.sms-table-action.is-danger {
    color: var(--sms-red);
}

.sms-table-action.is-danger:hover {
    color: #fff;
    background: var(--sms-red);
}

.sms-submit-spinner {
    width: 14px;
    height: 14px;
    margin-right: 6px;
}

.sms-template-empty {
    height: 260px;
    color: var(--sms-muted);
    text-align: center;
}

.sms-template-empty svg {
    width: 34px;
    height: 34px;
    margin: 0 auto 14px;
    color: var(--sms-faint);
}

.sms-template-empty strong,
.sms-template-empty span {
    display: block;
}

.sms-template-empty strong {
    margin-bottom: 4px;
    color: var(--sms-ink);
    font-size: 14px;
}

.sms-template-empty span {
    font-size: 12px;
}

.sms-template-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 24px 22px;
    color: var(--sms-muted);
    font-size: 12px;
}

.sms-template-pagination-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.sms-template-modal {
    padding: 18px;
}

.sms-template-modal > div {
    width: min(100%, 680px);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: 28px !important;
}

.sms-template-modal.sms-template-modal-compact > div {
    width: min(100%, 460px);
}

.sms-template-modal .sms-template-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px;
}

.sms-template-modal .sms-template-modal-head h2 {
    margin: 0;
}

.sms-template-modal .sms-template-modal-head > button {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 11px;
    color: var(--sms-muted);
    background: transparent;
}

.sms-template-modal .sms-template-modal-head > button:hover {
    color: var(--sms-ink);
    background: #ededf1;
}

.sms-template-modal .sms-template-modal-head > button svg {
    width: 17px;
    height: 17px;
}

.sms-template-modal .sms-template-modal-form {
    padding: 0 24px 24px;
}

.sms-template-modal .sms-template-modal-body {
    padding: 0 24px 24px;
}

.sms-template-modal .sms-template-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 0 24px 24px;
}

.sms-template-modal .sms-template-modal-head + form {
    padding-top: 0;
}

@media (max-width: 760px) {
    .sms-template-audit-overview {
        grid-template-columns: 1fr;
    }

    .sms-template-audit-card {
        min-height: 126px;
    }

    .sms-template-list-head {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px;
    }

    .sms-template-table {
        min-width: 980px;
    }

    .sms-template-table td {
        padding: 15px 14px;
    }

    .sms-template-pagination {
        align-items: flex-start;
        flex-direction: column;
        padding: 16px 18px 18px;
    }

    .sms-template-modal {
        padding: 10px;
    }

    .sms-template-modal > div {
        max-height: calc(100vh - 20px);
    }

    .sms-template-modal .sms-template-modal-head {
        padding: 18px;
    }

    .sms-template-modal .sms-template-modal-body,
    .sms-template-modal .sms-template-modal-form,
    .sms-template-modal .sms-template-modal-actions {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* Final system pass: one restrained visual language across public, user and admin views. */
:root {
    --sms-canvas: #f5f5f7;
    --sms-surface: #ffffff;
    --sms-surface-soft: #f5f5f7;
    --sms-ink: #1d1d1f;
    --sms-muted: #6e6e73;
    --sms-faint: #8e8e93;
    --sms-line: rgba(29, 29, 31, .08);
    --sms-line-strong: rgba(29, 29, 31, .14);
    --sms-blue: #0071e3;
    --sms-blue-hover: #0077ed;
    --sms-blue-soft: #eef6ff;
    --sms-radius-xl: 32px;
    --sms-radius-lg: 26px;
    --sms-radius-md: 20px;
    --sms-radius-sm: 15px;
    --sms-content: 1360px;
    --sms-page-gutter: clamp(22px, 4vw, 54px);
}

body,
.sms-app-page,
.sms-auth-page,
.sms-home-page,
.sms-docs-page {
    background: var(--sms-canvas) !important;
}

button,
a,
input,
select,
textarea {
    transition-duration: .22s;
    transition-timing-function: var(--sms-ease);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 113, 227, .2) !important;
    outline-offset: 2px;
}

.sms-sidebar {
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(24px) saturate(145%);
}

.sms-topbar {
    padding-right: max(var(--sms-page-gutter), calc((100% - var(--sms-content)) / 2 + var(--sms-page-gutter)));
    padding-left: max(var(--sms-page-gutter), calc((100% - var(--sms-content)) / 2 + var(--sms-page-gutter)));
    background: rgba(245, 245, 247, .86);
    backdrop-filter: blur(24px) saturate(145%);
}

.sms-content,
.sms-legal-footer {
    width: min(100%, var(--sms-content));
    padding-right: var(--sms-page-gutter);
    padding-left: var(--sms-page-gutter);
}

.sms-content {
    padding-top: 38px;
}

.sms-dashboard-heading {
    width: 100%;
    align-items: flex-end;
}

.sms-dashboard-heading h1,
.sms-content > h1,
.sms-content > .flex h1 {
    font-size: clamp(28px, 3vw, 38px) !important;
    font-weight: 700 !important;
    letter-spacing: -.035em !important;
}

.sms-primary,
.sms-secondary,
.sms-danger,
.sms-app-page button.bg-blue-600,
.sms-app-page a.bg-blue-600,
.sms-app-page button.bg-gray-200,
.sms-app-page button.bg-gray-300,
.sms-app-page a.bg-gray-200,
.sms-app-page button.bg-white {
    min-height: 44px;
    border-radius: var(--sms-radius-sm) !important;
    box-shadow: none !important;
}

.sms-primary:hover,
.sms-app-page button.bg-blue-600:hover,
.sms-app-page a.bg-blue-600:hover {
    background: var(--sms-blue-hover) !important;
}

.sms-secondary,
.sms-app-page button.bg-gray-200,
.sms-app-page button.bg-gray-300,
.sms-app-page a.bg-gray-200,
.sms-app-page button.bg-white {
    border-color: transparent !important;
    background: #e8e8ed !important;
}

.sms-secondary:hover,
.sms-app-page button.bg-gray-200:hover,
.sms-app-page button.bg-gray-300:hover,
.sms-app-page a.bg-gray-200:hover,
.sms-app-page button.bg-white:hover {
    background: #dedee3 !important;
}

.sms-content > .bg-white,
.sms-content > .grid > .bg-white,
.sms-content > .space-y-6 > .bg-white,
.sms-content > .max-w-4xl .bg-white,
.sms-content > .max-w-5xl .bg-white,
.sms-content > form > .bg-white,
.sms-content > form > .space-y-6 > .bg-white,
.sms-recharge-panel,
.sms-balance-summary,
.sms-aff-hero,
.sms-aff-metrics > div,
.sms-record-section,
.sms-user-filters,
.sms-user-list,
.sms-admin-metrics > div,
.api-section {
    border: 0 !important;
    border-radius: var(--sms-radius-lg) !important;
    background: var(--sms-surface) !important;
    box-shadow: none !important;
}

.sms-content input:not([type="checkbox"]):not([type="radio"]),
.sms-content select,
.sms-content textarea,
.sms-auth-card input:not([type="checkbox"]):not([type="radio"]),
.sms-auth-card select,
.sms-auth-card textarea,
.sms-dialog-body input:not([type="checkbox"]):not([type="radio"]),
.sms-dialog-body select,
.sms-dialog-body textarea {
    min-height: 46px;
    border: 1px solid transparent !important;
    border-radius: 15px !important;
    background: var(--sms-surface-soft) !important;
    box-shadow: none !important;
}

.sms-content input:focus,
.sms-content select:focus,
.sms-content textarea:focus,
.sms-auth-card input:focus,
.sms-auth-card select:focus,
.sms-auth-card textarea:focus,
.sms-dialog-body input:focus,
.sms-dialog-body select:focus,
.sms-dialog-body textarea:focus {
    border-color: rgba(0, 113, 227, .34) !important;
    background: #fff !important;
}

.sms-admin-metrics,
.sms-user-filters,
.sms-user-list,
.sms-pagination {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.sms-admin-metrics {
    margin-top: 0;
}

.sms-user-filters,
.sms-user-list {
    margin-top: 14px;
}

.sms-user-list {
    overflow: hidden;
}

.sms-user-row {
    width: 100%;
    grid-template-columns: minmax(230px, 1.35fr) minmax(105px, .55fr) minmax(145px, .72fr) minmax(98px, .48fr) auto;
    gap: clamp(12px, 1.5vw, 22px);
    padding: 18px 22px;
}

.sms-user-identity > span:last-child,
.sms-user-balance,
.sms-user-aff,
.sms-user-status {
    min-width: 0;
}

.sms-user-actions {
    width: auto;
    min-width: max-content;
}

.sms-user-actions button,
.sms-dialog-head > button,
.sms-logout,
.sms-mobile-menu {
    border: 0 !important;
    background: transparent;
    box-shadow: none !important;
}

.sms-user-actions button:hover,
.sms-dialog-head > button:hover,
.sms-logout:hover,
.sms-mobile-menu:hover {
    background: var(--sms-blue-soft);
}

.sms-captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 124px;
    align-items: stretch;
    gap: 10px;
}

.sms-captcha-refresh {
    width: 124px;
    height: 46px;
    min-height: 46px !important;
    display: grid;
    place-items: center;
    padding: 0 !important;
    overflow: hidden;
    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.sms-captcha-refresh #captcha-img,
.sms-auth-card #captcha-img {
    width: 120px !important;
    height: 40px !important;
    max-width: none;
    object-fit: contain;
}

.sms-content > .bg-white.overflow-hidden,
.sms-content > .space-y-6 > .bg-white.overflow-hidden,
.sms-app-page .overflow-x-auto,
.sms-docs-page .overflow-x-auto {
    overflow-x: auto !important;
    overflow-y: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 29, 31, .18) transparent;
}

.sms-app-page table,
.sms-docs-page table {
    width: 100%;
}

.sms-app-page th,
.sms-app-page td,
.sms-docs-page th,
.sms-docs-page td {
    border-color: var(--sms-line) !important;
}

.sms-api-key-once,
.sms-mfa-setup,
.sms-recovery-codes,
.sms-security-notice,
.sms-security-state,
.sms-public-guide,
.sms-invite-applied {
    border: 0 !important;
    border-radius: var(--sms-radius-md) !important;
    box-shadow: none !important;
}

.sms-api-key-once code,
.sms-mfa-setup code,
.sms-recovery-codes code {
    overflow-wrap: anywhere;
}

.fixed.inset-0.bg-black {
    padding: 22px;
    background: rgba(15, 15, 18, .28) !important;
    backdrop-filter: blur(10px);
}

.fixed.inset-0.bg-black > div {
    border: 0 !important;
    border-radius: 28px !important;
    background: #fff !important;
    box-shadow: none !important;
}

.sms-auth-card {
    border-radius: 28px;
    box-shadow: none;
}

.sms-auth-card form button[type="submit"] {
    border-radius: 15px !important;
}

.sms-balance-value.is-status {
    font-size: clamp(32px, 4vw, 46px);
}

@media (max-width: 1180px) {
    .sms-user-row {
        grid-template-columns: minmax(0, 1fr) repeat(3, minmax(96px, auto)) auto;
        gap: 12px;
    }
}

@media (max-width: 980px) {
    .sms-user-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sms-user-filters > div {
        grid-column: 1 / -1;
    }

    .sms-user-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: center;
    }

    .sms-user-identity {
        grid-column: 1 / 3;
    }

    .sms-user-actions {
        grid-column: 3;
        justify-self: end;
    }
}

@media (max-width: 760px) {
    :root {
        --sms-page-gutter: 16px;
    }

    .sms-content {
        padding-top: 26px;
        padding-bottom: 54px;
    }

    .sms-topbar {
        padding-right: var(--sms-page-gutter);
        padding-left: var(--sms-page-gutter);
    }

    .sms-admin-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sms-user-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .sms-user-filters > div,
    .sms-user-filters label:first-child {
        grid-column: auto;
    }

    .sms-user-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 14px 10px;
        padding: 18px;
    }

    .sms-user-identity {
        grid-column: 1;
    }

    .sms-user-actions {
        grid-column: 2;
        grid-row: 1;
    }

    .sms-user-balance,
    .sms-user-aff,
    .sms-user-status {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 92px minmax(0, 1fr);
        align-items: center;
    }

    .sms-user-balance strong,
    .sms-user-aff strong,
    .sms-user-aff small,
    .sms-user-status small {
        margin-top: 0;
    }

    .sms-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .fixed.inset-0.bg-black {
        padding: 10px;
    }
}

@media (max-width: 430px) {
    .sms-admin-metrics {
        grid-template-columns: 1fr;
    }

    .sms-user-actions {
        display: grid;
        grid-template-columns: repeat(2, 36px);
    }

    .sms-captcha-row {
        grid-template-columns: minmax(0, 1fr) 112px;
    }

    .sms-captcha-refresh {
        width: 112px;
    }

    .sms-captcha-refresh #captcha-img,
    .sms-auth-card #captcha-img {
        width: 108px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Template form selects */
.sms-public-guide.hidden {
    display: none !important;
}

.sms-select-control {
    position: relative;
    width: 100%;
}

.sms-select-control select {
    width: 100%;
    min-height: 48px;
    padding: 0 46px 0 16px !important;
    border: 1px solid transparent !important;
    border-radius: 16px !important;
    outline: 0;
    appearance: none;
    -webkit-appearance: none;
    background: var(--sms-surface-soft) !important;
    color: var(--sms-ink);
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
    transition: background-color .22s var(--sms-ease), border-color .22s var(--sms-ease);
}

.sms-select-control select:hover {
    background: #f2f3f5 !important;
}

.sms-select-control select:focus {
    border-color: rgba(0, 113, 227, .34) !important;
    background: var(--sms-surface) !important;
    outline: 3px solid rgba(0, 113, 227, .1);
    outline-offset: 2px;
    box-shadow: none !important;
}

.sms-select-control select:disabled {
    cursor: not-allowed;
    opacity: .56;
}

.sms-select-control__chevron {
    position: absolute;
    top: 50%;
    right: 16px;
    width: 18px;
    height: 18px;
    color: var(--sms-muted);
    pointer-events: none;
    transform: translateY(-50%);
    transition: color .22s var(--sms-ease), transform .22s var(--sms-ease);
}

.sms-select-control:hover .sms-select-control__chevron,
.sms-select-control:focus-within .sms-select-control__chevron {
    color: var(--sms-blue);
}

.sms-select-control:focus-within .sms-select-control__chevron {
    transform: translateY(-50%) rotate(180deg);
}

.sms-select-control select option {
    background: #fff;
    color: var(--sms-ink);
}

@media (max-width: 560px) {
    .sms-select-control select {
        min-height: 50px;
        font-size: 16px;
    }

    .sms-select-control__chevron {
        right: 17px;
    }
}

/* Enhanced template dropdowns */
.sms-select-control.is-enhanced {
    z-index: 1;
}

.sms-select-control.is-enhanced.is-open {
    z-index: 50;
}

.sms-select-control.is-enhanced > select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0 !important;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.sms-select-trigger {
    position: relative;
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    padding: 0 46px 0 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    outline: 0;
    background: var(--sms-surface-soft);
    color: var(--sms-ink);
    text-align: left;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.35;
}

.sms-select-trigger:hover,
.sms-select-control.is-open .sms-select-trigger {
    background: #f2f3f5;
}

.sms-select-control.is-open .sms-select-trigger {
    border-color: rgba(0, 113, 227, .34);
    background: var(--sms-surface);
}

.sms-select-trigger:focus-visible {
    outline: 3px solid rgba(0, 113, 227, .1);
    outline-offset: 2px;
}

.sms-select-trigger.is-placeholder {
    color: var(--sms-muted);
}

.sms-select-control.is-enhanced:focus-within .sms-select-trigger > .sms-select-control__chevron {
    transform: translateY(-50%);
}

.sms-select-trigger > .sms-select-control__chevron {
    top: 50%;
    right: 16px;
    width: 18px;
    height: 18px;
    transition: color .22s var(--sms-ease), transform .22s var(--sms-ease);
}

.sms-select-control.is-open .sms-select-trigger > .sms-select-control__chevron {
    color: var(--sms-blue);
    transform: translateY(-50%) rotate(180deg);
}

.sms-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 60;
    width: 100%;
    max-height: min(240px, 38vh);
    display: grid;
    gap: 2px;
    padding: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border-radius: 18px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 28px rgba(21, 23, 26, .13);
    transform-origin: top center;
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 23, 26, .18) transparent;
}

.sms-select-menu[hidden] {
    display: none !important;
}

.sms-select-control.is-open-upward .sms-select-menu {
    top: auto;
    bottom: calc(100% + 8px);
    transform-origin: bottom center;
}

.sms-select-option {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--sms-ink);
    text-align: left;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.35;
}

.sms-select-option:hover,
.sms-select-option.is-selected {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-select-option:focus-visible {
    outline: 2px solid rgba(0, 113, 227, .28);
    outline-offset: -2px;
}

.sms-select-option:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.sms-select-option__label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-select-option__meta {
    flex: 0 0 auto;
    margin-left: auto;
    padding: 3px 7px;
    border-radius: 999px;
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
    font-size: 10px;
    line-height: 1.2;
}

.sms-select-option__check {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    display: grid;
    place-items: center;
    margin-left: auto;
    color: var(--sms-blue);
    opacity: 0;
}

.sms-select-option__check svg {
    width: 16px;
    height: 16px;
}

.sms-select-option.is-selected .sms-select-option__check {
    opacity: 1;
}

@media (max-width: 560px) {
    .sms-select-trigger {
        min-height: 50px;
        font-size: 16px;
    }

    .sms-select-option {
        min-height: 46px;
        font-size: 16px;
    }
}

/* Shared feedback, file controls and site navigation */
.sms-alert {
    position: relative;
    min-height: 52px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px 16px 14px 14px;
    overflow: hidden;
}

.sms-alert__icon,
.sms-toast__icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: grid;
    place-items: center;
    margin-top: 1px;
}

.sms-alert__icon svg,
.sms-toast__icon svg {
    width: 18px;
    height: 18px;
}

.sms-alert__body,
.sms-toast__body {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.sms-alert__close,
.sms-toast__close {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    display: grid;
    place-items: center;
    margin: -2px -5px 0 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: currentColor;
    opacity: .58;
}

.sms-alert__close:hover,
.sms-toast__close:hover {
    background: rgba(21, 23, 26, .08);
    opacity: 1;
}

.sms-alert__close svg,
.sms-toast__close svg {
    width: 15px;
    height: 15px;
}

.sms-toast-region {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 300;
    width: min(380px, calc(100vw - 44px));
    display: grid;
    gap: 10px;
    pointer-events: none;
}

.sms-toast {
    min-height: 56px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 15px 16px 15px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    color: var(--sms-ink);
    box-shadow: 0 12px 28px rgba(21, 23, 26, .13);
    pointer-events: auto;
}

.sms-toast-success .sms-toast__icon {
    color: var(--sms-green);
}

.sms-toast-error .sms-toast__icon {
    color: var(--sms-red);
}

.sms-toast-info .sms-toast__icon {
    color: var(--sms-blue);
}

.sms-toast__body {
    padding-top: 2px;
    font-size: 12px;
    line-height: 1.55;
}

.sms-file-control {
    position: relative;
    display: grid;
    gap: 8px;
}

.sms-file-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
}

.sms-file-trigger {
    min-height: 58px;
    display: flex !important;
    align-items: center;
    gap: 11px;
    margin: 0 !important;
    padding: 9px 14px;
    border: 1px dashed var(--sms-line-strong);
    border-radius: 16px;
    background: var(--sms-surface-soft);
    color: var(--sms-muted) !important;
    cursor: pointer;
    font-size: 12px;
    font-weight: 560;
    transition: color .22s var(--sms-ease), background-color .22s var(--sms-ease), border-color .22s var(--sms-ease);
}

.sms-file-trigger:hover,
.sms-file-control.is-dragging .sms-file-trigger {
    border-color: rgba(0, 113, 227, .42);
    background: var(--sms-blue-soft);
    color: var(--sms-blue) !important;
}

.sms-file-trigger:focus-within {
    outline: 3px solid rgba(0, 113, 227, .1);
    outline-offset: 2px;
}

.sms-file-trigger svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
}

.sms-file-trigger__copy {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-file-name {
    min-height: 17px;
    padding: 0 2px;
    overflow: hidden;
    color: var(--sms-faint);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-file-control.has-file .sms-file-name {
    color: var(--sms-blue);
}

.sms-select-trigger__value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-select-trigger.is-invalid {
    outline: 3px solid rgba(197, 66, 79, .16);
    outline-offset: 2px;
}

.sms-file-control input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.sms-file-trigger:focus-visible {
    outline: 3px solid rgba(0, 113, 227, .18);
    outline-offset: 3px;
}

.sms-site-header-inner {
    position: relative;
}

.sms-site-nav a {
    position: relative;
}

.sms-site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -7px;
    left: 0;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: var(--sms-blue);
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .22s var(--sms-ease), transform .22s var(--sms-ease);
}

.sms-site-nav a:hover::after,
.sms-site-nav a[aria-current="page"]::after {
    opacity: 1;
    transform: scaleX(1);
}

.sms-site-nav {
    will-change: transform, opacity;
}

@media (max-width: 760px) {
    .sms-site-header.is-nav-open .sms-site-nav a::after {
        display: none;
    }

    .sms-site-header.is-nav-open .sms-site-nav {
        box-shadow: 0 16px 34px rgba(21, 23, 26, .12);
    }

    .sms-site-actions {
        margin-left: auto;
    }
}

.sms-site-menu {
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 13px;
    background: transparent;
    color: var(--sms-ink);
}

.sms-site-menu:hover,
.sms-site-header.is-nav-open .sms-site-menu {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-site-menu svg {
    width: 19px;
    height: 19px;
}

.sms-nav-item {
    position: relative;
}

.sms-nav-item.is-active::before {
    width: 3px;
    height: 18px;
    position: absolute;
    left: 4px;
    content: "";
    border-radius: 999px;
    background: var(--sms-blue);
}

@media (max-width: 760px) {
    .sms-toast-region {
        top: 14px;
        right: 14px;
        width: calc(100vw - 28px);
    }

    .sms-site-menu {
        display: inline-flex;
        flex: 0 0 40px;
    }

    .sms-site-header.is-nav-open .sms-site-nav {
        position: absolute;
        top: calc(100% + 8px);
        right: 14px;
        left: 14px;
        z-index: 10;
        display: grid;
        gap: 2px;
        padding: 7px;
        border-radius: 20px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 12px 28px rgba(21, 23, 26, .13);
    }

    .sms-site-header.is-nav-open .sms-site-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
        padding: 0 13px;
        border-radius: 13px;
        font-size: 13px;
    }

    .sms-site-header.is-nav-open .sms-site-nav a:hover,
    .sms-site-header.is-nav-open .sms-site-nav a[aria-current="page"] {
        background: var(--sms-blue-soft);
        color: var(--sms-blue) !important;
    }
}

/* Global scrollbar: quiet, narrow and consistent with the light interface. */
html,
body,
body * {
    scrollbar-width: thin;
    scrollbar-color: rgba(29, 29, 31, .22) transparent;
}

::-webkit-scrollbar {
    width: 9px;
    height: 9px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    min-height: 42px;
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(29, 29, 31, .22);
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(29, 29, 31, .38);
    background-clip: padding-box;
}

pre,
.sms-sidebar,
.sms-select-menu {
    scrollbar-color: rgba(29, 29, 31, .22) transparent;
}

pre::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .24);
    background-clip: padding-box;
}

pre::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, .42);
    background-clip: padding-box;
}

/* Refined recharge and account settings surfaces. */
.sms-money-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .55fr);
    align-items: stretch;
}

.sms-recharge-panel,
.sms-balance-summary {
    min-height: 390px;
    padding: 28px;
}

.sms-recharge-form {
    display: flex;
    flex-direction: column;
    min-height: 390px;
}

.sms-recharge-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.sms-recharge-heading > div > span,
.sms-section-kicker {
    color: var(--sms-blue);
    font-size: 10px;
    font-weight: 680;
}

.sms-recharge-heading h2 {
    margin: 6px 0 0;
    color: var(--sms-ink);
    font-size: 20px;
    font-weight: 680;
    letter-spacing: -.02em;
}

.sms-recharge-heading > span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
    font-size: 10px;
    font-weight: 680;
}

.sms-recharge-form .sms-field-label {
    display: block;
    margin: 0 0 8px !important;
    color: var(--sms-muted);
    font-size: 11px !important;
    font-weight: 620 !important;
}

.sms-recharge-form {
    color: var(--sms-ink);
    background: #fff !important;
}

.sms-recharge-form .sms-recharge-heading,
.sms-recharge-form .sms-field-label,
.sms-recharge-form .sms-pay-method > span:not(.sms-pay-icon),
.sms-recharge-form .sms-pay-method strong {
    color: var(--sms-ink);
}

.sms-recharge-form .sms-field-label {
    color: var(--sms-muted);
}

.sms-recharge-form .sms-money-input {
    margin-top: 0;
    height: 74px;
}

.sms-recharge-form .sms-pay-method {
    min-height: 64px;
    grid-template-columns: 38px 1fr 20px;
    margin-top: 19px;
    padding: 11px 14px;
    border: 0;
    background: var(--sms-surface-soft);
}

.sms-recharge-form .sms-pay-icon,
.sms-recharge-form .sms-pay-icon.sms-alipay-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
}

.sms-recharge-form .sms-pay-icon.sms-alipay-icon svg {
    width: 38px;
    height: 38px;
}

.sms-recharge-form .sms-pay-submit {
    margin-top: auto;
    min-height: 46px;
}

.sms-balance-summary .sms-panel-label a {
    color: #fff !important;
    font-size: 10px;
    font-weight: 620;
    text-decoration: none;
}

.sms-balance-summary {
    background: #20242a !important;
    color: #fff !important;
}

.sms-balance-summary .sms-panel-label,
.sms-balance-summary .sms-panel-label span,
.sms-balance-summary .sms-balance-summary-foot,
.sms-balance-summary .sms-balance-summary-foot span,
.sms-balance-summary > p,
.sms-balance-summary > strong,
.sms-balance-summary > strong small {
    color: #fff !important;
}

.sms-balance-summary .sms-panel-label,
.sms-balance-summary .sms-balance-summary-foot,
.sms-balance-summary > p {
    color: #b9c0ca !important;
}

.sms-balance-summary > strong {
    margin: auto 0;
    color: #fff !important;
}

.sms-balance-summary > strong small {
    color: #b9c0ca !important;
}

.sms-balance-summary-foot .sms-status-dot {
    color: #d9ffeb !important;
}

.sms-recharge-records .sms-empty-cell {
    height: 94px;
}

.sms-recharge-empty-state {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 0;
    color: var(--sms-muted);
    font-size: 11px;
}

.sms-recharge-empty-state svg {
    width: 17px;
    height: 17px;
    color: var(--sms-faint);
}

.sms-pay-icon.sms-alipay-icon {
    background: transparent;
}

.sms-pay-icon.sms-alipay-icon svg {
    width: 38px;
    height: 38px;
}

.sms-balance-summary .sms-panel-label a:hover {
    color: #dbeaff !important;
}

.sms-balance-summary-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: #aeb5bf;
    font-size: 10px;
}

.sms-balance-summary-foot .sms-status-dot {
    color: #fff;
    font-size: 10px;
}

.sms-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sms-settings-subnav {
    width: max-content;
    max-width: 100%;
    display: flex;
    align-items: center;
    gap: 4px;
    margin: -4px 0 22px;
    padding: 5px;
    overflow-x: auto;
    border-radius: 18px;
    background: #e8e9ed;
    scrollbar-width: none;
}

.sms-settings-subnav::-webkit-scrollbar {
    display: none;
}

.sms-settings-subnav a {
    min-height: 38px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 0 14px;
    border-radius: 13px;
    color: var(--sms-muted);
    font-size: 11px;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
}

.sms-settings-subnav a:hover {
    color: var(--sms-ink);
}

.sms-settings-subnav a.is-active {
    background: var(--sms-surface);
    color: var(--sms-ink);
}

.sms-settings-subnav svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    color: currentColor;
}

.sms-settings-card[id] {
    scroll-margin-top: 92px;
}

.sms-settings-panels {
    display: block;
}

.sms-settings-panels .sms-settings-card {
    width: 100%;
}

.sms-settings-panels .sms-settings-card[hidden] {
    display: none !important;
}

.sms-settings-panels .sms-settings-card.is-active {
    display: flex;
}

.sms-settings-card {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 26px;
    border-radius: var(--sms-radius-lg);
    background: var(--sms-surface);
}

.sms-settings-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.sms-settings-card-head > div > span {
    color: var(--sms-blue);
    font-size: 10px;
    font-weight: 680;
}

.sms-settings-card-head h2 {
    margin: 6px 0 0;
    font-size: 18px;
    font-weight: 680;
    letter-spacing: -.02em;
}

.sms-settings-card-note {
    padding-top: 3px;
    color: var(--sms-muted);
    font-size: 10px;
    white-space: nowrap;
}

.sms-settings-identity {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 30px;
    padding: 16px;
    border-radius: var(--sms-radius-md);
    background: var(--sms-surface-soft);
}

.sms-settings-avatar {
    width: 44px;
    height: 44px;
    display: grid;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 15px;
    background: #20242a;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.sms-settings-identity strong,
.sms-settings-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-settings-identity strong {
    color: var(--sms-ink);
    font-size: 13px;
}

.sms-settings-identity small {
    margin-top: 3px;
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-settings-facts {
    margin: 18px 0 0;
}

.sms-settings-facts > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--sms-line);
}

.sms-settings-facts > div:last-child {
    border-bottom: 0;
}

.sms-settings-facts dt {
    color: var(--sms-muted);
    font-size: 10px;
}

.sms-settings-facts dd {
    margin: 0;
    color: var(--sms-ink);
    font-size: 11px;
    font-weight: 620;
    text-align: right;
}

.sms-settings-facts dd.is-balance {
    color: var(--sms-blue);
    font-family: "SFMono-Regular", "SF Mono", Menlo, monospace;
}

.sms-settings-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 17px;
    margin-top: 28px;
}

.sms-settings-form label,
.sms-credential-field label,
.sms-settings-rotate-form > label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 !important;
    color: var(--sms-muted);
    font-size: 11px !important;
    font-weight: 620 !important;
}

.sms-settings-form input,
.sms-credential-field input,
.sms-settings-rotate-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid transparent !important;
    border-radius: 15px !important;
    outline: 0;
    background: var(--sms-surface-soft) !important;
    color: var(--sms-ink);
    font-size: 12px;
    box-shadow: none !important;
}

.sms-settings-form input:focus,
.sms-credential-field input:focus,
.sms-settings-rotate-form input:focus {
    border-color: rgba(0, 113, 227, .34) !important;
    background: #fff !important;
}

.sms-settings-form button {
    width: 100%;
    margin-top: auto;
}

.sms-settings-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.sms-settings-api {
    grid-column: 1 / -1;
}

.sms-settings-api-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(250px, .8fr);
    align-items: end;
    gap: 16px;
    margin-top: 28px;
}

.sms-credential-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sms-credential-row input {
    min-width: 0;
    flex: 1;
}

.sms-credential-copy {
    width: 48px;
    height: 48px;
    display: grid;
    flex: 0 0 48px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 15px;
    background: var(--sms-surface-soft);
    color: var(--sms-muted);
}

.sms-credential-copy:hover,
.sms-credential-copy.is-copied {
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-credential-copy svg {
    width: 18px;
    height: 18px;
}

.sms-settings-rotate-form {
    display: grid;
    gap: 7px;
}

.sms-settings-rotate-form button {
    width: 100%;
    margin-top: 5px;
}

.sms-settings-api .sms-api-key-once {
    margin-top: 18px;
    padding: 15px 16px;
    border-radius: var(--sms-radius-md);
    background: var(--sms-blue-soft);
    color: var(--sms-blue);
}

.sms-settings-api .sms-api-key-once strong {
    display: block;
    font-size: 11px;
}

.sms-settings-api .sms-api-key-once .sms-credential-row {
    margin-top: 10px;
}

@media (max-width: 980px) {
    .sms-settings-grid {
        grid-template-columns: 1fr;
    }

    .sms-settings-api {
        grid-column: auto;
    }

    .sms-settings-api-grid {
        grid-template-columns: 1fr 1fr;
    }

    .sms-settings-rotate-form {
        grid-column: 1 / -1;
    }
}

@media (max-width: 820px) {
    .sms-recharge-panel,
    .sms-balance-summary,
    .sms-recharge-form {
        min-height: 360px;
    }
}

@media (max-width: 560px) {
    .sms-settings-subnav {
        width: 100%;
        margin-top: -2px;
    }

    .sms-settings-subnav a {
        padding: 0 12px;
    }

    .sms-recharge-form,
    .sms-settings-card {
        padding: 22px;
    }

    .sms-settings-form-row,
    .sms-settings-api-grid {
        grid-template-columns: 1fr;
    }

    .sms-settings-rotate-form {
        grid-column: auto;
    }

    .sms-settings-card-note {
        white-space: normal;
        text-align: right;
    }
}

/* Signature pages: stable columns, quiet hierarchy, and contained scrolling. */
.sms-signatures-page {
    min-width: 0;
}

.sms-signatures-page .sms-dashboard-heading {
    align-items: center;
    margin-bottom: 20px;
}

.sms-signatures-page .sms-dashboard-heading h1 {
    font-size: 30px !important;
    letter-spacing: -.025em !important;
}

.sms-signatures-card {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    border-radius: 24px !important;
    background: var(--sms-surface) !important;
    scrollbar-width: thin;
    scrollbar-color: rgba(21, 23, 26, .16) transparent;
}

.sms-signatures-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

.sms-signatures-user-page .sms-signatures-table {
    min-width: 1060px;
}

.sms-signatures-admin-page .sms-signatures-table {
    min-width: 1320px;
}

.sms-signatures-user-page .sms-signatures-table th:nth-child(1) { width: 15%; }
.sms-signatures-user-page .sms-signatures-table th:nth-child(2) { width: 15%; }
.sms-signatures-user-page .sms-signatures-table th:nth-child(3) { width: 12%; }
.sms-signatures-user-page .sms-signatures-table th:nth-child(4) { width: 11%; }
.sms-signatures-user-page .sms-signatures-table th:nth-child(5) { width: 24%; }
.sms-signatures-user-page .sms-signatures-table th:nth-child(6) { width: 10%; }
.sms-signatures-user-page .sms-signatures-table th:nth-child(7) { width: 13%; }

.sms-signatures-admin-page .sms-signatures-table th:nth-child(1) { width: 5%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(2) { width: 12%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(3) { width: 14%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(4) { width: 13%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(5) { width: 22%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(6) { width: 9%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(7) { width: 9%; }
.sms-signatures-admin-page .sms-signatures-table th:nth-child(8) { width: 16%; }

.sms-signatures-table th {
    height: 48px;
    padding: 0 18px !important;
    background: #fafbfc !important;
    color: var(--sms-faint) !important;
    font-size: 10px !important;
    font-weight: 680 !important;
    white-space: nowrap;
}

.sms-signatures-table th,
.sms-signatures-table td {
    text-align: center !important;
}

.sms-signatures-table td {
    height: 92px;
    padding: 15px 18px !important;
    overflow: hidden;
    color: var(--sms-ink);
    font-size: 12px;
}

.sms-signatures-table tbody tr {
    transition: background-color .24s var(--sms-ease), transform .24s var(--sms-ease);
}

.sms-signatures-table tbody tr:hover {
    background: #fbfcfd !important;
}

.sms-signature-primary-cell,
.sms-signature-secondary-cell,
.sms-signature-id-cell {
    vertical-align: middle !important;
}

.sms-signature-primary,
.sms-signature-secondary {
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-signature-primary {
    color: var(--sms-ink);
    font-size: 13px;
    font-weight: 680;
}

.sms-signature-secondary {
    color: #34383e;
    font-size: 12px;
    font-weight: 590;
}

.sms-signature-secondary-note {
    overflow: hidden;
    margin-top: 5px;
    color: var(--sms-muted);
    font-size: 10px;
    line-height: 1.35;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-signature-id-cell {
    color: var(--sms-muted) !important;
    font-family: "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
    font-size: 11px !important;
}

.sms-signature-status {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 0 10px !important;
    border-radius: 999px !important;
    font-size: 10px !important;
    font-weight: 680 !important;
    white-space: nowrap;
}

.sms-signature-actions-cell {
    overflow: visible !important;
    white-space: normal !important;
}

.sms-signature-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 3px 4px;
    min-width: 0;
}

.sms-signature-actions > button,
.sms-signature-actions > a,
.sms-signature-actions > form,
.sms-signature-actions > form button {
    margin: 0 !important;
}

.sms-signature-actions > button,
.sms-signature-actions > a,
.sms-signature-actions > form button {
    min-height: 29px !important;
    padding: 0 7px !important;
    border-radius: 9px !important;
    font-size: 10px !important;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
}

.sms-signature-actions > button:hover,
.sms-signature-actions > a:hover,
.sms-signature-actions > form button:hover {
    transform: translateY(-1px);
}

.sms-signature-type-matrix {
    width: 100%;
    max-width: 258px;
    margin-inline: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.sms-signatures-page .sms-signatures-table th:nth-child(5) {
    text-align: center !important;
}

.sms-signature-type-column {
    width: 100%;
    gap: 6px;
}

.sms-signature-type-column__types {
    width: 100%;
    display: grid;
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    gap: 5px;
}

.sms-signature-type-chip {
    width: 100%;
    min-width: 0;
    min-height: 25px;
    padding: 0 5px;
    font-size: 9px;
}

.sms-signature-filters {
    width: fit-content;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin: 0 0 18px;
    padding: 4px;
    border-radius: 16px;
    background: var(--sms-surface-soft);
}

.sms-signature-filter {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 11px;
    color: var(--sms-muted);
    font-size: 11px;
    font-weight: 650;
    white-space: nowrap;
}

.sms-signature-filter:hover {
    background: #eef2f6;
    color: var(--sms-ink);
}

.sms-signature-filter.is-active {
    background: var(--sms-ink);
    color: #fff;
}

.sms-signature-filter.is-active:hover {
    background: #25292e;
    color: #fff;
}

@media (max-width: 760px) {
    .sms-signatures-page .sms-dashboard-heading {
        gap: 14px;
        margin-bottom: 16px;
    }

    .sms-signatures-page .sms-dashboard-heading h1 {
        font-size: 27px !important;
    }

    .sms-signatures-card {
        margin-right: -1px;
        border-radius: 20px !important;
    }

    .sms-signatures-table th {
        height: 44px;
        padding: 0 14px !important;
    }

    .sms-signatures-table td {
        height: 86px;
        padding: 13px 14px !important;
    }

    .sms-signature-filters {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }

    .sms-signature-filters::-webkit-scrollbar {
        display: none;
    }

    .sms-signature-filter {
        flex: 0 0 auto;
    }
}

@media (max-width: 760px) {
    .sms-sidebar {
        background: rgba(255, 255, 255, .98);
        box-shadow: none;
    }
}

/* Admin send records keep the five status metrics on a balanced grid. */
.sms-record-metrics {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .sms-record-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .sms-record-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .sms-record-metrics {
        grid-template-columns: 1fr;
    }
}
