:root {
  color-scheme: light;
  font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
  color: #14213d;
  background: #edf2f7;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { width: min(1720px, calc(100% - 64px)); margin: 0 auto; padding: 32px 0 56px; }
.hero { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(30px, 5vw, 48px); letter-spacing: -0.03em; }
.eyebrow { margin: 0; color: #5b6b88; font-size: 11px; font-weight: 700; letter-spacing: 0.16em; }
.muted { color: #667085; font-size: 14px; line-height: 1.55; }
.pill, .status { border-radius: 999px; padding: 7px 11px; font-size: 12px; white-space: nowrap; background: #e6edf8; color: #365486; }
.status[data-tone="success"] { background: #dcfce7; color: #166534; }
.status[data-tone="error"] { background: #fee2e2; color: #991b1b; }
.card { background: #fff; border: 1px solid #d9e1ec; border-radius: 18px; padding: 22px; margin: 14px 0; box-shadow: 0 10px 28px rgb(20 33 61 / 6%); }
.auth-card { max-width: 520px; margin: 12vh auto 0; }
.auth-card h1 { margin: 0 0 8px; font-size: clamp(30px, 5vw, 42px); }
.auth-card .status { display: inline-block; margin-top: 14px; }
.auth-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 22px; }
.auth-columns h2 { font-size: 16px; }
.summary-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.summary-card > div { display: grid; gap: 5px; }
.summary-card strong { font-size: 28px; }
.secondary { background: #e7edf5; color: #14213d; }
.records { display: grid; gap: 9px; }
.record-row { border: 1px solid #e5eaf1; border-radius: 10px; padding: 10px 12px; color: #475467; font-size: 13px; }
.form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.heading-actions { display: flex; align-items: center; gap: 10px; }
.heading-actions button { padding: 8px 11px; font-size: 12px; }
h2, h3 { margin: 0 0 6px; }
h2 { font-size: 20px; }
h3 { font-size: 18px; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: grid; gap: 7px; color: #344054; font-size: 13px; font-weight: 600; }
input, select, textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #111827; padding: 11px 12px; font: inherit; font-size: 14px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgb(59 130 246 / 18%); border-color: #3b82f6; }
.wide { grid-column: 1 / -1; }
.hint { color: #98a2b3; font-weight: 400; }
.form-actions { display: flex; align-items: end; justify-content: flex-end; }
button { border: 0; border-radius: 10px; padding: 11px 16px; background: #14213d; color: #fff; cursor: pointer; font-weight: 700; }
button:hover { background: #263d6b; }
button:disabled { cursor: wait; opacity: .6; }
button.primary { background: #0f766e; }
.preview { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 22px; padding: 18px; border: 1px solid #8bd5ca; border-radius: 14px; background: #f0fdfa; }
.hidden { display: none; }
.footnote { color: #667085; font-size: 12px; line-height: 1.6; }
.customer-nav { display: inline-flex; gap: 4px; margin: 4px 0 8px; padding: 4px; border: 1px solid #d9e1ec; border-radius: 12px; background: #f5f8fb; }
.customer-nav-item { padding: 9px 16px; border-radius: 8px; background: transparent; color: #667085; }
.customer-nav-item:hover { background: #e7edf5; color: #14213d; }
.customer-nav-item.active { background: #14213d; color: #fff; }
.customer-view { min-height: 120px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; }
.toggle-field input { width: auto; accent-color: #0f766e; }
.blacklist-row, .api-key-row, .schedule-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.blacklist-remove, .api-key-revoke { padding: 7px 11px; font-size: 12px; }
.schedule-cancel { padding: 7px 11px; font-size: 12px; }
.secret-reveal { margin-top: 14px; padding: 12px 14px; border: 1px solid #f0c36c; border-radius: 10px; background: #fff8e5; color: #854d0e; font-size: 13px; overflow-wrap: anywhere; }
.api-credential-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; padding: 14px 0; border-bottom: 1px solid #e7edf3; }
.api-credential-row:last-child { border-bottom: 0; }
.api-credential-row label { gap: 5px; }
.api-credential-row input { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .04em; }
.api-credential-row button { padding: 9px 12px; font-size: 12px; white-space: nowrap; }
.api-docs-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 480px; overflow: hidden; border: 1px solid #d9e1ec; border-radius: 14px; background: #fff; }
.api-docs-nav { padding: 10px 0; border-right: 1px solid #e5eaf1; background: #f7faf8; }
.api-docs-nav button { display: block; width: 100%; padding: 14px 18px; border-radius: 0; background: transparent; color: #475467; text-align: left; font-weight: 600; }
.api-docs-nav button:hover, .api-docs-nav button.active { background: #e0f5e9; color: #087f5b; }
.api-docs-nav small { display: block; margin-top: 3px; color: #98a2b3; font-weight: 400; font-size: 11px; }
.api-docs-detail { min-width: 0; padding: 26px 30px 34px; }
.api-docs-detail > h2 { margin-bottom: 8px; font-size: 27px; }
.api-docs-detail > h3 { margin-top: 26px; }
.api-docs-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.api-docs-meta > div { display: grid; gap: 6px; padding: 11px 13px; border: 1px solid #e5eaf1; background: #f8fafc; }
.api-docs-meta span { color: #667085; font-size: 12px; font-weight: 700; }
.api-docs-meta code { overflow-wrap: anywhere; color: #344054; font: 13px ui-monospace, SFMono-Regular, Consolas, monospace; }
.api-docs-table { overflow-x: auto; border: 1px solid #e5eaf1; border-radius: 8px; }
.api-docs-table table { width: 100%; border-collapse: collapse; min-width: 540px; }
.api-docs-table th, .api-docs-table td { padding: 11px 13px; border-bottom: 1px solid #e5eaf1; text-align: left; font-size: 13px; }
.api-docs-table th { background: #f7f9fc; color: #475467; font-weight: 700; }
.api-docs-table tr:last-child td { border-bottom: 0; }
.api-docs-table code { padding: 3px 6px; border-radius: 5px; background: #e5f7ed; color: #087f5b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.api-docs-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 26px; }
.api-docs-section-heading h3 { margin: 0; }
.api-docs-copy { padding: 7px 11px; font-size: 12px; }
.api-docs-code { margin: 10px 0 0; padding: 16px; overflow: auto; border-radius: 8px; background: #162238; color: #e5f2ff; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; }
@media (max-width: 780px) { .api-docs-layout { grid-template-columns: 1fr; } .api-docs-nav { display: flex; overflow-x: auto; border-right: 0; border-bottom: 1px solid #e5eaf1; } .api-docs-nav button { min-width: 170px; } .api-docs-meta { grid-template-columns: 1fr; } .api-credential-row { grid-template-columns: 1fr auto; } .api-credential-row label { grid-column: 1 / -1; } }
@media (max-width: 720px) { .hero, .card-heading, .preview { flex-direction: column; } .form-grid.two, .form-grid.three, .auth-columns, .summary-card { grid-template-columns: 1fr; } .wide { grid-column: auto; } .form-actions { justify-content: stretch; } .form-actions button { width: 100%; } }

/* Public landing page */
.auth-gate { min-height: calc(100vh - 88px); }
.landing-page { padding: 8px 0 28px; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 2px 0 52px; }
.brand-lockup { display: inline-flex; align-items: center; gap: 11px; color: #14213d; }
.brand-lockup > span:last-child { display: grid; gap: 1px; }
.brand-lockup strong { font-size: 19px; letter-spacing: -.04em; }
.brand-lockup small { color: #74809a; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #fff; background: #14213d; box-shadow: 0 8px 18px rgb(20 33 61 / 20%); font-size: 18px; font-weight: 800; }
.landing-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); align-items: center; gap: 42px; min-height: 390px; }
.landing-copy { padding: 4px 0 18px; }
.landing-copy h1 { max-width: 820px; margin: 13px 0 18px; color: #14213d; font-size: clamp(42px, 4vw, 76px); line-height: 1.08; letter-spacing: -.065em; }
.landing-copy h1 em { color: #0f766e; font-style: normal; }
.landing-lead { max-width: 470px; margin: 0; color: #63708a; font-size: 17px; line-height: 1.8; }
.home-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.home-actions button { min-width: 142px; padding: 13px 18px; border-radius: 12px; }
.home-actions button:first-child { box-shadow: 0 11px 22px rgb(20 33 61 / 15%); }
.home-actions button span { margin-left: 12px; font-size: 18px; }
.landing-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #75819a; font-size: 12px; }
.secure-dot { width: 7px; height: 7px; border-radius: 50%; background: #1fa774; box-shadow: 0 0 0 4px rgb(31 167 116 / 12%); }
.hero-visual { position: relative; min-height: 360px; display: grid; place-items: center; }
.visual-glow { position: absolute; width: 310px; height: 310px; border-radius: 50%; background: radial-gradient(circle, rgb(173 231 221 / 75%), rgb(227 242 244 / 0) 67%); filter: blur(2px); }
.signal-panel { position: relative; z-index: 1; width: min(300px, 76%); min-height: 240px; padding: 24px; border: 1px solid rgb(255 255 255 / 85%); border-radius: 25px; background: linear-gradient(145deg, #182949, #263e64); box-shadow: 0 28px 48px rgb(26 52 86 / 25%); transform: rotate(-4deg); }
.signal-panel-top { display: flex; align-items: center; justify-content: space-between; color: #bdc9dc; font-size: 11px; }
.signal-live { display: inline-flex; align-items: center; gap: 7px; color: #c9f4df; }
.signal-live i { width: 6px; height: 6px; border-radius: 50%; background: #47d597; box-shadow: 0 0 0 4px rgb(71 213 151 / 14%); }
.signal-menu { letter-spacing: 2px; }
.signal-number { margin-top: 38px; color: #fff; font-size: 58px; font-weight: 800; letter-spacing: -.08em; }
.signal-number span { color: #8be0cb; font-size: 26px; letter-spacing: -.04em; }
.signal-number.signal-ready { font-size: 46px; letter-spacing: -.05em; }
.signal-label { margin-top: -2px; color: #bdc9dc; font-size: 12px; }
.signal-bars { display: flex; align-items: end; gap: 7px; height: 50px; margin-top: 22px; }
.signal-bars i { display: block; width: 18px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#85e2cf, #4ab89e); }
.signal-bars i:nth-child(1) { height: 35%; opacity: .6; }.signal-bars i:nth-child(2) { height: 58%; opacity: .7; }.signal-bars i:nth-child(3) { height: 45%; opacity: .8; }.signal-bars i:nth-child(4) { height: 75%; }.signal-bars i:nth-child(5) { height: 54%; }.signal-bars i:nth-child(6) { height: 88%; }.signal-bars i:nth-child(7) { height: 100%; }
.floating-chip { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 14px 10px 10px; border: 1px solid rgb(255 255 255 / 88%); border-radius: 13px; background: rgb(255 255 255 / 92%); box-shadow: 0 14px 26px rgb(20 33 61 / 14%); }
.floating-chip b, .floating-chip small { display: block; }.floating-chip b { color: #243656; font-size: 12px; }.floating-chip small { margin-top: 3px; color: #8290a8; font-size: 10px; }
.chip-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 9px; color: #0f766e; background: #dff8f1; font-weight: 800; }
.chip-template { top: 50px; right: 1px; }.chip-record { bottom: 45px; left: 0; }.chip-record .chip-icon { color: #365486; background: #e8eefc; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 38px; }
.feature-grid article { display: flex; gap: 13px; padding: 18px; border: 1px solid #dce5ee; border-radius: 16px; background: rgb(255 255 255 / 72%); }
.feature-grid h2 { margin: 0 0 5px; font-size: 15px; }.feature-grid p { margin: 0; color: #728098; font-size: 12px; line-height: 1.6; }
.feature-icon { display: grid; flex: 0 0 auto; place-items: center; width: 31px; height: 31px; border-radius: 10px; color: #0f766e; background: #e0f6f0; font-weight: 800; }
.feature-grid article:nth-child(2) .feature-icon { color: #35578e; background: #e7eefc; }.feature-grid article:nth-child(3) .feature-icon { color: #9a6b1e; background: #fff4d9; }
.process-strip { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 30px 0 0; color: #7a879d; font-size: 12px; }.process-strip i { color: #a9b4c4; font-style: normal; }.process-strip strong { color: #14213d; font-weight: 700; }
.back-link { margin-bottom: 28px; padding: 0; color: #667085; background: transparent; font-weight: 600; }.back-link:hover { color: #14213d; background: transparent; }
.login-view { margin: 7vh auto 0; }
@media (max-width: 820px) { .landing-hero { grid-template-columns: 1fr; gap: 20px; }.landing-copy { text-align: center; }.landing-copy h1, .landing-lead { margin-left: auto; margin-right: auto; }.home-actions, .landing-note { justify-content: center; }.hero-visual { min-height: 300px; }.feature-grid { grid-template-columns: 1fr; }.process-strip { flex-wrap: wrap; gap: 10px; } }
@media (max-width: 520px) { .shell { width: calc(100% - 32px); }.landing-nav { padding-bottom: 34px; }.landing-nav .pill { display: none; }.landing-copy h1 { font-size: 42px; }.landing-lead { font-size: 15px; }.hero-visual { transform: scale(.9); margin: -20px 0; }.chip-template { right: -2px; }.chip-record { left: -2px; }.home-actions { flex-direction: column; align-items: stretch; }.home-actions button { width: 100%; }.auth-card { margin-top: 5vh; } }

/* Aurora landing theme */
body.home-mode { color-scheme: dark; background: #040a15; color: #edf5ff; }
body.home-mode .shell { width: min(2040px, calc(100% - 48px)); padding: 24px 0 40px; }
body.home-mode .auth-gate { min-height: calc(100vh - 64px); }
.landing-page[data-theme="aurora"] { position: relative; isolation: isolate; overflow: hidden; min-height: calc(100vh - 64px); padding: 26px clamp(24px, 5vw, 88px) 38px; border: 1px solid rgb(164 201 232 / 16%); border-radius: 32px; background: linear-gradient(125deg, #071323 0%, #091a2c 47%, #06121f 100%); box-shadow: 0 30px 90px rgb(0 0 0 / 34%), inset 0 1px rgb(255 255 255 / 6%); }
.landing-page[data-theme="aurora"]::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 0%, rgb(62 203 201 / 12%), transparent 32%), radial-gradient(circle at 90% 90%, rgb(215 169 99 / 10%), transparent 30%), linear-gradient(90deg, transparent 0 49.8%, rgb(255 255 255 / 3%) 50%, transparent 50.2%); pointer-events: none; }
.landing-page[data-theme="aurora"]::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; box-shadow: inset 0 -160px 160px rgb(2 7 15 / 36%), inset 0 0 90px rgb(2 7 15 / 26%); pointer-events: none; }
.ambient-field { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.ambient-orb { position: absolute; display: block; border-radius: 50%; filter: blur(8px); opacity: .8; }
.orb-cyan { top: -18%; left: 24%; width: 38vw; height: 38vw; max-width: 720px; max-height: 720px; background: radial-gradient(circle, rgb(34 211 204 / 20%), rgb(34 211 204 / 0%) 68%); animation: aurora-drift 16s ease-in-out infinite alternate; }
.orb-gold { right: -12%; bottom: -30%; width: 44vw; height: 44vw; max-width: 760px; max-height: 760px; background: radial-gradient(circle, rgb(232 181 107 / 14%), rgb(232 181 107 / 0%) 68%); animation: aurora-drift 20s ease-in-out -5s infinite alternate-reverse; }
.ambient-grid { position: absolute; inset: 0; background-image: linear-gradient(rgb(153 206 225 / 8%) 1px, transparent 1px), linear-gradient(90deg, rgb(153 206 225 / 8%) 1px, transparent 1px); background-size: 54px 54px; mask-image: linear-gradient(to bottom, rgb(0 0 0 / 90%), transparent 88%); opacity: .5; }
.ambient-noise { position: absolute; inset: 0; opacity: .08; background-image: radial-gradient(rgb(255 255 255 / 75%) .6px, transparent .7px); background-size: 5px 5px; mix-blend-mode: soft-light; }
.ambient-scanline { position: absolute; top: 12%; left: -10%; width: 120%; height: 1px; background: linear-gradient(90deg, transparent, rgb(78 220 210 / 28%), transparent); transform: rotate(-8deg); box-shadow: 0 0 24px rgb(78 220 210 / 22%); opacity: .65; }
@keyframes aurora-drift { from { transform: translate3d(-2%, -1%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
.landing-page[data-theme="aurora"] .landing-nav { position: relative; z-index: 2; padding: 2px 0 68px; }
.landing-page[data-theme="aurora"] .brand-lockup { color: #edf5ff; }
.landing-page[data-theme="aurora"] .brand-lockup small { color: #89a6c2; }
.landing-page[data-theme="aurora"] .brand-mark { color: #061321; background: linear-gradient(145deg, #b9fff0, #50c9bd); box-shadow: 0 12px 28px rgb(39 210 192 / 18%); }
.landing-page[data-theme="aurora"] .brand-mark.brand-logo { display: block; width: 42px; height: 42px; padding: 0; border-radius: 12px; background: transparent; box-shadow: none; object-fit: contain; }
.landing-nav-meta { display: inline-flex; align-items: center; gap: 16px; }
.nav-signal { display: inline-flex; align-items: center; gap: 8px; color: #a7d8d0; font-size: 12px; letter-spacing: .04em; }
.nav-signal i { width: 7px; height: 7px; border-radius: 50%; background: #53d6b3; box-shadow: 0 0 0 4px rgb(83 214 179 / 12%), 0 0 18px rgb(83 214 179 / 58%); }
.landing-page[data-theme="aurora"] .pill { border: 1px solid rgb(161 206 245 / 13%); background: rgb(119 175 221 / 8%); color: #a9c9e5; }
.landing-page[data-theme="aurora"] .landing-hero { grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); gap: clamp(32px, 5vw, 112px); min-height: 470px; }
.landing-page[data-theme="aurora"] .landing-copy { position: relative; z-index: 1; padding: 4px 0 34px; }
.landing-page[data-theme="aurora"] .eyebrow { color: #7fa2c5; }
.landing-page[data-theme="aurora"] .landing-copy h1 { max-width: 900px; margin: 16px 0 22px; color: #f1f7ff; font-size: clamp(48px, 5.35vw, 92px); line-height: 1.03; letter-spacing: -.075em; }
.landing-page[data-theme="aurora"] .landing-copy h1 em { color: #4fe0c5; text-shadow: 0 0 32px rgb(79 224 197 / 18%); }
.landing-page[data-theme="aurora"] .landing-lead { max-width: 540px; margin: 0; color: #a0b8cf; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.85; }
.landing-page[data-theme="aurora"] .home-actions { margin-top: 32px; }
.landing-page[data-theme="aurora"] .home-actions button { min-width: 164px; padding: 14px 20px; border: 1px solid rgb(157 255 235 / 14%); border-radius: 12px; background: linear-gradient(135deg, #b7fff0, #55cdbb); color: #061522; box-shadow: 0 14px 30px rgb(40 211 187 / 18%); }
.landing-page[data-theme="aurora"] .home-actions button:hover { background: linear-gradient(135deg, #d0fff6, #70e3d0); }
.landing-page[data-theme="aurora"] .home-actions button span { color: #0d5e5c; }
.home-text-link { display: inline-flex; align-items: center; gap: 8px; padding: 12px 4px; color: #9bb6ce; font-size: 13px; text-decoration: none; }
.home-text-link:hover { color: #e7f8ff; }
.home-text-link span { color: #57d7c2; font-size: 16px; }
.landing-page[data-theme="aurora"] .hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; color: #8faac3; font-size: 12px; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i { color: #4ed7c1; font-size: 10px; font-style: normal; letter-spacing: .1em; }
.signal-stage { position: relative; display: grid; min-height: 470px; place-items: center; isolation: isolate; }
.signal-stage::before { content: ""; position: absolute; width: min(34vw, 520px); aspect-ratio: 1; border: 1px solid rgb(91 211 213 / 16%); border-radius: 50%; box-shadow: 0 0 90px rgb(26 196 193 / 10%), inset 0 0 80px rgb(26 196 193 / 8%); }
.signal-stage::after { content: ""; position: absolute; width: min(23vw, 360px); aspect-ratio: 1; border: 1px dashed rgb(231 192 126 / 26%); border-radius: 50%; transform: rotate(23deg); }
.signal-orbit { position: absolute; width: min(30vw, 460px); aspect-ratio: 1; border: 1px solid rgb(126 200 218 / 13%); border-radius: 50%; transform: rotate(-22deg); }
.signal-orbit::after { content: ""; position: absolute; top: 8%; left: 19%; width: 6px; height: 6px; border-radius: 50%; background: #57dbc5; box-shadow: 0 0 0 5px rgb(87 219 197 / 11%), 0 0 18px rgb(87 219 197 / 70%); }
.orbit-a { animation: orbit-spin 22s linear infinite; }.orbit-b { width: min(24vw, 370px); transform: rotate(66deg); border-color: rgb(229 191 126 / 16%); animation: orbit-spin 28s linear infinite reverse; }.orbit-c { width: min(18vw, 280px); transform: rotate(-48deg); border-style: dashed; opacity: .7; animation: orbit-spin 34s linear infinite; }
@keyframes orbit-spin { to { transform: rotate(338deg); } }
.signal-core { position: relative; z-index: 1; display: flex; flex-direction: column; width: min(310px, 62%); min-height: 258px; padding: 24px 25px 22px; border: 1px solid rgb(203 236 255 / 20%); border-radius: 24px; background: linear-gradient(145deg, rgb(18 46 72 / 92%), rgb(7 21 38 / 94%)); box-shadow: 0 26px 60px rgb(0 0 0 / 42%), inset 0 1px rgb(255 255 255 / 12%); transform: rotate(-4deg); }
.signal-core::before { content: ""; position: absolute; inset: 1px; z-index: -1; border-radius: inherit; background: linear-gradient(120deg, rgb(68 227 207 / 10%), transparent 42%, rgb(221 177 107 / 8%)); }
.core-top { display: flex; align-items: center; justify-content: space-between; color: #91b2cc; font-size: 10px; letter-spacing: .05em; }.core-index { color: #6d90ab; }
.signal-core .signal-live { display: inline-flex; align-items: center; gap: 7px; color: #b8e4d8; }.signal-core .signal-live i { width: 6px; height: 6px; border-radius: 50%; background: #55d5b4; box-shadow: 0 0 0 4px rgb(85 213 180 / 12%); }
.core-kicker { margin-top: 38px; color: #78a3c2; font-size: 10px; letter-spacing: .2em; }.signal-core strong { margin-top: 7px; color: #f3f9ff; font-size: clamp(48px, 5vw, 66px); line-height: 1; letter-spacing: -.08em; }.core-caption { margin-top: 10px; color: #a7bfd2; font-size: 12px; }.core-wave { display: flex; align-items: end; gap: 6px; height: 44px; margin-top: auto; }.core-wave i { flex: 1; min-width: 8px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#67e4c9, #279886); opacity: .8; }.core-wave i:nth-child(1) { height: 25%; }.core-wave i:nth-child(2) { height: 42%; }.core-wave i:nth-child(3) { height: 32%; }.core-wave i:nth-child(4) { height: 65%; }.core-wave i:nth-child(5) { height: 49%; }.core-wave i:nth-child(6) { height: 80%; }.core-wave i:nth-child(7) { height: 62%; }.core-wave i:nth-child(8) { height: 96%; }
.signal-node { position: absolute; z-index: 2; display: grid; gap: 4px; min-width: 132px; padding: 12px 14px; border: 1px solid rgb(195 226 244 / 14%); border-radius: 13px; background: rgb(12 34 54 / 82%); box-shadow: 0 16px 30px rgb(0 0 0 / 24%), inset 0 1px rgb(255 255 255 / 7%); backdrop-filter: blur(12px); }.signal-node::before { content: ""; width: 7px; height: 7px; margin-bottom: 2px; border-radius: 50%; background: #55d5b4; box-shadow: 0 0 0 4px rgb(85 213 180 / 10%); }.signal-node b { color: #d9edf7; font-size: 12px; }.signal-node small { color: #7797b3; font-size: 10px; }.node-template { top: 8%; right: 2%; }.node-record { bottom: 12%; left: 0; }.node-channel { right: 1%; bottom: 3%; }.node-channel::before { background: #e2b875; box-shadow: 0 0 0 4px rgb(226 184 117 / 10%); }
.landing-page[data-theme="aurora"] .feature-grid { position: relative; z-index: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.landing-page[data-theme="aurora"] .feature-grid article { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; min-height: 126px; padding: 21px 20px; border: 1px solid rgb(176 216 238 / 13%); border-radius: 17px; background: linear-gradient(145deg, rgb(22 50 75 / 62%), rgb(8 24 42 / 72%)); box-shadow: inset 0 1px rgb(255 255 255 / 5%); }
.landing-page[data-theme="aurora"] .feature-grid article:hover { border-color: rgb(89 211 200 / 30%); transform: translateY(-2px); transition: transform .25s ease, border-color .25s ease; }
.feature-index { color: #57d8c1; font-size: 11px; font-weight: 800; letter-spacing: .12em; }.landing-page[data-theme="aurora"] .feature-grid h2 { margin: 0 0 8px; color: #e3f1fa; font-size: 16px; }.landing-page[data-theme="aurora"] .feature-grid p { margin: 0; color: #86a5bd; font-size: 12px; line-height: 1.7; }.feature-arrow { color: #668da8; font-size: 17px; }
.landing-page[data-theme="aurora"] .process-strip { position: relative; z-index: 1; margin: 27px 0 0; color: #6687a1; }.landing-page[data-theme="aurora"] .process-strip strong { color: #c7e8e2; }.landing-page[data-theme="aurora"] .process-strip i { color: #426077; }
body.home-mode button:focus-visible, body.home-mode a:focus-visible { outline: 3px solid rgb(93 229 205 / 70%); outline-offset: 4px; }
@media (max-width: 980px) { .landing-page[data-theme="aurora"] .landing-hero { grid-template-columns: 1fr; gap: 12px; }.landing-page[data-theme="aurora"] .landing-copy { padding-bottom: 0; }.landing-page[data-theme="aurora"] .landing-copy h1 { font-size: clamp(50px, 9vw, 78px); }.signal-stage { min-height: 430px; }.landing-page[data-theme="aurora"] .feature-grid { grid-template-columns: 1fr; }.landing-page[data-theme="aurora"] .feature-grid article { min-height: auto; } }
@media (max-width: 640px) { body.home-mode .shell { width: calc(100% - 24px); padding-top: 12px; }.landing-page[data-theme="aurora"] { min-height: calc(100vh - 24px); padding: 20px 18px 28px; border-radius: 24px; }.landing-page[data-theme="aurora"] .landing-nav { padding-bottom: 48px; }.landing-page[data-theme="aurora"] .brand-mark.brand-logo { width: 38px; height: 38px; }.landing-nav-meta .nav-signal { display: none; }.landing-page[data-theme="aurora"] .landing-copy h1 { margin-top: 13px; font-size: clamp(42px, 13vw, 64px); }.landing-page[data-theme="aurora"] .landing-lead { font-size: 15px; }.landing-page[data-theme="aurora"] .home-actions { flex-direction: column; align-items: stretch; }.landing-page[data-theme="aurora"] .home-actions button { width: 100%; }.home-text-link { justify-content: center; }.landing-page[data-theme="aurora"] .hero-proof { gap: 12px; margin-top: 28px; font-size: 11px; }.signal-stage { min-height: 350px; margin: 0 -8px; transform: scale(.94); }.signal-stage::before { width: 86vw; }.signal-orbit { width: 78vw; }.orbit-b { width: 64vw; }.orbit-c { width: 48vw; }.signal-core { width: min(286px, 72%); min-height: 238px; }.node-template { right: -2px; top: 5%; }.node-record { left: -2px; bottom: 15%; }.node-channel { right: 0; bottom: 1%; }.signal-node { min-width: 116px; padding: 10px 11px; }.signal-node small { font-size: 9px; }.landing-page[data-theme="aurora"] .process-strip { gap: 8px; font-size: 11px; } }
@media (prefers-reduced-motion: reduce) { .orb-cyan, .orb-gold, .orbit-a, .orbit-b, .orbit-c { animation: none; }.landing-page[data-theme="aurora"] .feature-grid article:hover { transform: none; transition: none; } }

/* Merchant authentication ------------------------------------------------
   Keep the public gate calm and deliberate: a small product statement on the
   left, one focused form on the right. Registration uses a server-issued
   image captcha and deliberately does not ask for a phone number. */
.auth-card { max-width: 960px; margin: 8vh auto 0; padding: 30px; border-color: #d9e4ef; background: rgb(255 255 255 / 94%); box-shadow: 0 24px 70px rgb(20 43 72 / 12%); }
.auth-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(340px, .8fr); align-items: center; gap: clamp(32px, 6vw, 92px); margin: 12px auto 0; }
.auth-intro { padding: 30px 0; }
.auth-brand-logo { display: block; width: 116px; height: 116px; margin: 0 0 24px; border-radius: 28px; object-fit: contain; filter: drop-shadow(0 14px 22px rgb(20 43 72 / 14%)); }
.auth-intro h1 { max-width: 420px; margin: 14px 0 16px; color: #12233f; font-size: clamp(42px, 5vw, 64px); line-height: 1.02; letter-spacing: -.07em; }
.auth-intro > .muted { max-width: 390px; margin: 0; font-size: 16px; }
.auth-points { display: grid; gap: 12px; margin-top: 34px; color: #607995; font-size: 13px; }
.auth-points span { display: flex; align-items: center; gap: 10px; }
.auth-points i { min-width: 24px; color: #0d958b; font-size: 10px; font-style: normal; font-weight: 800; letter-spacing: .08em; }
.auth-panel { padding: 24px; border: 1px solid #e0e8f1; border-radius: 18px; background: #fbfdff; box-shadow: 0 12px 28px rgb(20 43 72 / 6%); }
.auth-tabs { display: flex; align-items: center; gap: 4px; margin: -4px 0 24px; padding-bottom: 12px; border-bottom: 1px solid #e5ebf2; }
.auth-tab { padding: 7px 4px; border-radius: 0; color: #8192a7; background: transparent; font-size: 13px; }
.auth-tab:hover { color: #16385e; background: transparent; }
.auth-tab.active { color: #0d817b; background: transparent; box-shadow: inset 0 -2px #19a99d; }
.auth-form-heading { margin-bottom: 3px; }
.auth-form-heading h2 { margin-bottom: 4px; color: #14213d; font-size: 22px; }
.auth-form-heading .muted { margin: 0; font-size: 12px; }
.auth-panel .form-actions { margin-top: 4px; }
.auth-panel .form-actions button { width: 100%; padding: 13px 16px; background: linear-gradient(135deg, #142e53, #0e766f); box-shadow: 0 9px 18px rgb(18 67 96 / 15%); }
.auth-panel .form-actions button:hover { background: linear-gradient(135deg, #1a3f6c, #129287); }
.auth-panel .form-actions button span { margin-left: 8px; color: #9df1dc; }
.auth-switch { margin: 3px 0 0; color: #8292a6; font-size: 12px; text-align: center; }
.text-button { padding: 0; border-radius: 0; color: #0b817a; background: transparent; font-size: inherit; }
.text-button:hover { color: #07534f; background: transparent; text-decoration: underline; }
.captcha-field { display: grid; gap: 7px; }
.captcha-field > label { display: block; }
.captcha-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.captcha-refresh { padding: 10px 11px; border: 1px solid #cbd5e1; color: #365486; background: #fff; font-size: 12px; white-space: nowrap; }
.captcha-refresh:hover { color: #0d817b; border-color: #8bd5ca; background: #f0fdfa; }
.captcha-image { display: block; width: 180px; height: 56px; border: 1px solid #dce5ef; border-radius: 9px; background: #eef4f8; cursor: pointer; object-fit: cover; }
@media (max-width: 760px) { .auth-card { margin-top: 4vh; padding: 20px; }.auth-layout { grid-template-columns: 1fr; gap: 12px; }.auth-intro { padding: 8px 0 14px; }.auth-brand-logo { width: 82px; height: 82px; margin-bottom: 18px; border-radius: 21px; }.auth-intro h1 { font-size: 44px; }.auth-points { grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; font-size: 11px; }.auth-panel { padding: 18px; } }
@media (max-width: 460px) { .auth-points { grid-template-columns: 1fr; }.captcha-row { grid-template-columns: 1fr; }.captcha-refresh { width: 100%; } }

/* Merchant dashboard -----------------------------------------------------
   The merchant app is a compact desktop shell.  Keep these rules scoped to
   merchant-mode so the public landing page, login and admin views retain
   their own visual system. */
body.merchant-mode {
  min-height: 100dvh;
  overflow: hidden;
  background: #edf3f7;
  color: #12233f;
}
body.merchant-mode .shell {
  width: 100%;
  max-width: none;
  height: 100dvh;
  margin: 0;
  padding: 0;
}
body.merchant-mode #app-shell {
  height: 100dvh;
  min-height: 0;
  background: #f5f8fb;
}
body.merchant-mode #app-shell.hidden { display: none; }
body.merchant-mode #app-shell > .hero,
body.merchant-mode #app-shell > .footnote { display: none; }

body.merchant-mode .merchant-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  height: 100dvh;
  min-height: 0;
  background: #f5f8fb;
}
body.merchant-mode .merchant-shell.hidden { display: none; }
body.merchant-mode #merchant-sidebar {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: 100dvh;
  border-right: 1px solid #dce5ef;
  background: linear-gradient(180deg, #f9fbfd 0%, #f1f6fa 100%);
}
body.merchant-mode #admin-sidebar {
  position: relative;
  z-index: 3;
  min-width: 0;
  height: 100dvh;
  border-right: 1px solid #dce5ef;
  background: linear-gradient(180deg, #f9fbfd 0%, #f1f6fa 100%);
}
body.merchant-mode #merchant-sidebar.merchant-sidebar,
body.merchant-mode #merchant-sidebar .merchant-sidebar,
body.merchant-mode #admin-sidebar.merchant-sidebar,
body.merchant-mode #admin-sidebar .merchant-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 24px 14px 16px;
}
.merchant-brand { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 10px 27px; }
.merchant-brand .brand-logo,
.merchant-brand .brand-mark { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 12px; object-fit: contain; }
.merchant-brand .brand-logo { background: transparent; }
.merchant-brand strong { display: block; color: #12233f; font-size: 19px; line-height: 1.05; letter-spacing: -.05em; }
.merchant-brand small { display: block; margin-top: 4px; color: #7c91a8; font-size: 9px; font-weight: 800; letter-spacing: .17em; }
.merchant-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin: 0 4px 22px; padding: 4px; border: 1px solid #dbe5ee; border-radius: 11px; background: #eaf1f6; }
.merchant-mode-switch .customer-nav-item { min-width: 0; padding: 9px 8px; border-radius: 8px; color: #71839b; font-size: 12px; white-space: nowrap; }
.merchant-mode-switch .customer-nav-item:hover { color: #12233f; background: #f8fbfd; }
.merchant-mode-switch .customer-nav-item.active { color: #0c6f6c; background: #fff; box-shadow: 0 3px 10px rgb(25 55 83 / 8%); }
.merchant-menu { display: grid; gap: 4px; min-height: 0; }
.merchant-menu.hidden { display: none; }
.merchant-menu-label { margin: 0 12px 7px; color: #91a2b5; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.merchant-menu-item { display: flex; align-items: center; gap: 11px; min-width: 0; width: 100%; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; color: #647993; background: transparent; text-align: left; font-size: 13px; font-weight: 650; }
.merchant-menu-item:hover { color: #0d5367; background: #e8f5f5; }
.merchant-menu-item.active { color: #087a73; border-color: #c4ebe3; background: #e1f7f1; box-shadow: inset 3px 0 0 #22a99a; }
.merchant-menu-item .menu-icon { display: grid; flex: 0 0 auto; place-items: center; width: 21px; height: 21px; color: currentColor; }
.merchant-menu-item .menu-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.merchant-menu-item > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-sidebar-footer { margin-top: auto; padding-top: 20px; }
.merchant-profile { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 10px; border: 1px solid #dfe8f0; border-radius: 12px; background: rgb(255 255 255 / 74%); }
.merchant-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 10px; color: #fff; background: linear-gradient(145deg, #1b9f9a, #173d6a); font-size: 13px; font-weight: 800; }
.merchant-profile-info { min-width: 0; display: grid; gap: 3px; }
.merchant-profile-info strong,
.merchant-profile-info span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-profile-info strong { color: #273b58; font-size: 12px; }
.merchant-profile-info span { color: #7890a8; font-size: 11px; }
.merchant-profile-balance { margin-left: auto; color: #0d7a72; font-size: 12px; font-weight: 800; }

body.merchant-mode .merchant-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: hidden; }
.merchant-topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 76px; padding: 16px 32px; border-bottom: 1px solid #e0e8ef; background: rgb(255 255 255 / 78%); }
.merchant-topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
#merchant-sidebar-toggle { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid #dce5ed; border-radius: 9px; color: #667b94; background: #fff; font-size: 16px; }
#merchant-sidebar-toggle:hover { color: #0b7d76; border-color: #bce6df; background: #effbf8; }
.merchant-breadcrumb { display: grid; gap: 3px; min-width: 0; }
.merchant-breadcrumb small { color: #8b9caf; font-size: 11px; }
.merchant-breadcrumb h1 { overflow: hidden; margin: 0; color: #142640; font-size: 20px; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.merchant-topbar-actions { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.merchant-balance-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #cdece7; border-radius: 999px; color: #0a746e; background: #ebfbf7; font-size: 12px; font-weight: 700; }
.merchant-balance-chip strong { color: #064f5b; font-size: 14px; }
.merchant-logout { padding: 8px 12px; color: #667990; background: transparent; font-size: 12px; }
.merchant-logout:hover { color: #b34b4b; background: #fff1f1; }
body.merchant-mode .merchant-content { flex: 1; min-height: 0; overflow: auto; padding: 28px 32px 42px; }
.merchant-content-inner { width: min(1380px, 100%); margin: 0 auto; }
.merchant-page { min-width: 0; }
.merchant-page.hidden { display: none; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 22px; }
.page-intro .eyebrow { margin-bottom: 7px; color: #199b91; }
.page-intro h1,
.page-intro h2 { margin: 0; color: #132842; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.05em; }
.page-intro > p.muted { max-width: 640px; margin: 7px 0 0; color: #74879e; font-size: 13px; line-height: 1.65; }
.merchant-card { margin: 0 0 18px; padding: 22px; border: 1px solid #dce6ef; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgb(19 51 78 / 5%); }
.merchant-card:last-child { margin-bottom: 0; }
.merchant-card .card-heading { align-items: center; margin-bottom: 16px; }
.merchant-card .card-heading h3,
.merchant-card .card-heading h2 { margin: 0; color: #203752; font-size: 16px; }
.section-kicker { display: block; margin-bottom: 6px; color: #148d85; font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-note { margin: 4px 0 0; color: #8292a8; font-size: 12px; line-height: 1.55; }
.number-step { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 8px; color: #0b8278; background: #dff6f0; font-size: 11px; font-weight: 800; }
.merchant-card .form-grid { gap: 12px; }
.merchant-card .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.merchant-card label { gap: 6px; font-size: 12px; }
.merchant-card input,
.merchant-card select,
.merchant-card textarea { padding: 10px 11px; border-color: #d5e0ea; border-radius: 9px; font-size: 13px; }
.merchant-card input:focus,
.merchant-card select:focus,
.merchant-card textarea:focus { outline: 3px solid rgb(46 183 165 / 16%); border-color: #2aa997; }
.variable-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 8px; }
.variable-editor textarea { min-width: 0; }
.variable-editor button { align-self: stretch; min-width: 104px; white-space: nowrap; }
.merchant-card button { border-radius: 9px; font-size: 12px; }
.send-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: start; gap: 18px; }
.send-main { min-width: 0; }
.merchant-aside { display: grid; gap: 14px; min-width: 0; }
.aside-card { padding: 19px; border: 1px solid #dce6ef; border-radius: 15px; background: #fff; box-shadow: 0 8px 24px rgb(19 51 78 / 4%); }
.aside-card h3 { margin: 0 0 9px; color: #203752; font-size: 15px; }
.aside-card p { margin: 0; color: #7b8ea5; font-size: 12px; line-height: 1.65; }
.aside-balance { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; padding: 16px; border-color: #bfe8e2; background: linear-gradient(145deg, #effcf9, #f8fbff); }
.aside-balance strong { color: #0e786f; font-size: 29px; letter-spacing: -.05em; }
.aside-balance span { color: #7f91a4; font-size: 11px; }
.aside-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.aside-steps li { display: grid; grid-template-columns: 25px 1fr; align-items: start; gap: 9px; color: #687e98; font-size: 12px; line-height: 1.45; }
.aside-steps li::before { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 7px; color: #0c8178; background: #e0f7f1; content: counter(list-item, decimal-leading-zero); font-size: 10px; font-weight: 800; }
.send-tip { margin: 16px 0 0; padding: 11px 13px; border: 1px solid #f2dca8; border-radius: 9px; color: #87651f; background: #fff9eb; font-size: 12px; line-height: 1.55; }
.send-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #ebf0f4; }
.send-footer .muted { margin: 0; font-size: 11px; }
.send-footer button { min-width: 130px; }
.merchant-content .preview { align-items: center; margin-top: 16px; padding: 14px; border-color: #bfe8df; border-radius: 11px; }
.merchant-content .preview h3 { margin: 0; font-size: 15px; }
.merchant-content .preview p { margin: 4px 0 0; font-size: 12px; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); align-items: start; gap: 18px; }
.account-card { min-width: 0; }
.account-identity { display: flex; align-items: center; gap: 13px; padding-bottom: 18px; border-bottom: 1px solid #ebf0f4; }
.account-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 55px; height: 55px; border-radius: 16px; color: #fff; background: linear-gradient(145deg, #1eaaa0, #17365f); font-size: 21px; font-weight: 800; box-shadow: 0 10px 20px rgb(20 102 107 / 16%); }
.account-detail { min-width: 0; }
.account-detail strong { display: block; overflow: hidden; color: #1a304c; font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.account-detail span { display: block; margin-top: 4px; overflow: hidden; color: #8192a7; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.account-balance-block { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding: 22px 0 18px; }
.account-balance-block > div { display: grid; gap: 6px; }
.account-balance-block small { color: #8494a7; font-size: 11px; }
#account-balance,
#account-balance-overview { color: #112d4b; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.07em; }
.balance-unit { color: #73869d; font-size: 12px; }
.account-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.account-stats div { padding: 11px; border: 1px solid #e6edf3; border-radius: 10px; background: #f8fafc; }
.account-stats small { display: block; color: #8999ab; font-size: 11px; }.account-stats strong { display: block; margin-top: 5px; color: #37536f; font-size: 16px; }
.quick-links { display: grid; gap: 7px; }
.quick-links button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px; border: 1px solid #e4ebf2; border-radius: 10px; color: #38516e; background: #fafcfd; text-align: left; font-size: 12px; }
.quick-links button:hover { color: #0a756f; border-color: #bfe8e1; background: #f0fbf8; }
.quick-links button span:last-child { color: #8ca1b5; font-size: 15px; }
.overview-note { margin-top: 14px; padding: 11px 13px; border-left: 3px solid #2eb7a5; border-radius: 3px 8px 8px 3px; color: #71859c; background: #f2faf9; font-size: 11px; line-height: 1.6; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.list-heading h3 { margin: 0; color: #243b58; font-size: 15px; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 31px 18px; border: 1px dashed #d7e2ec; border-radius: 11px; color: #8496a9; text-align: center; }
.empty-state .empty-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #25958c; background: #e5f7f3; font-size: 18px; }
.empty-state strong { color: #4e6982; font-size: 13px; }.empty-state p { margin: 0; font-size: 12px; }
.merchant-card .records { max-height: 290px; overflow: auto; }
.merchant-card .record-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-color: #e7edf3; background: #fbfcfd; font-size: 12px; }
.merchant-record-main, .merchant-record-time { min-width: 0; }
.merchant-record-main { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.merchant-record-time { flex: 0 0 auto; color: #8798ab; font-size: 11px; white-space: nowrap; }
.admin-metric-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.admin-metric-card { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3px 10px; margin: 0; padding: 18px; }
.admin-metric-card strong { grid-row: span 2; color: #16375a; font-size: 38px; letter-spacing: -.06em; }
.admin-metric-card small { color: #8394a8; font-size: 11px; }
.admin-metric-success strong { color: #0e8277; }
.admin-metric-failed strong { color: #b34b4b; }
.admin-metric-unknown strong { color: #9a6a1c; }
.admin-metric-pending strong { color: #536f9d; }
.admin-send-row { align-items: center; }
.admin-send-main, .admin-send-result { display: grid; gap: 3px; min-width: 0; }
.admin-send-main strong { overflow: hidden; color: #304a66; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.admin-send-main small, .admin-send-result small { color: #8798ab; font-size: 11px; }
.admin-send-result { color: #667b91; text-align: right; }
.admin-send-result.is-success { color: #0a7d73; }
.admin-send-result.is-failed { color: #b34b4b; }
.admin-filter-form { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; padding: 12px; border: 1px solid #e5edf3; border-radius: 10px; background: #f8fbfd; }
.admin-filter-form label { display: grid; flex: 1 1 230px; gap: 5px; color: #56718b; font-size: 11px; font-weight: 700; }
.admin-filter-form input, .admin-filter-form select { min-height: 38px; }
.admin-filter-form .form-actions { display: flex; flex: 0 0 auto; gap: 7px; align-items: center; margin: 0; }
.admin-customer-row { align-items: center; }
.admin-customer-main { display: grid; flex: 1 1 auto; gap: 4px; min-width: 0; }
.admin-customer-main strong { overflow: hidden; color: #304a66; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.admin-customer-main small { color: #8798ab; font-size: 11px; }
.admin-customer-actions { display: flex; flex: 0 0 auto; gap: 7px; }
.admin-customer-actions button { white-space: nowrap; }
.admin-password-modal { position: fixed; z-index: 20; inset: 0; display: grid; place-items: center; padding: 20px; background: rgb(11 32 53 / 35%); }
.admin-password-modal.hidden { display: none; }
.admin-password-dialog { width: min(100%, 500px); padding: 20px; border: 1px solid #dce7ef; border-radius: 16px; background: #fff; box-shadow: 0 24px 70px rgb(14 44 70 / 26%); }
.admin-password-dialog .card-heading { margin-bottom: 16px; }
.admin-password-dialog .card-heading h2 { margin: 0; }
.admin-password-dialog .form-grid { gap: 13px; }
.admin-record-pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #e7edf3; }
.admin-record-pager > div { display: flex; gap: 7px; }
.toggle-field { display: flex; align-items: center; justify-content: space-between; min-height: 42px; padding: 10px 12px; border: 1px solid #d5e0ea; border-radius: 9px; background: #f9fbfc; }
.toggle-field input { width: 18px; height: 18px; accent-color: #159a8f; }
body.merchant-mode button:focus-visible,
body.merchant-mode a:focus-visible,
body.merchant-mode input:focus-visible,
body.merchant-mode select:focus-visible,
body.merchant-mode textarea:focus-visible { outline: 3px solid rgb(42 169 151 / 28%); outline-offset: 2px; }

/* Collapsed nav keeps icons available instead of removing functionality. */
body.merchant-mode.sidebar-collapsed .merchant-shell { grid-template-columns: 72px minmax(0, 1fr); }
body.merchant-mode.sidebar-collapsed #merchant-sidebar.merchant-sidebar,
body.merchant-mode.sidebar-collapsed #merchant-sidebar .merchant-sidebar { padding-inline: 10px; }
body.merchant-mode.sidebar-collapsed .merchant-brand { justify-content: center; padding-inline: 0; }
body.merchant-mode.sidebar-collapsed .merchant-brand > span,
body.merchant-mode.sidebar-collapsed .merchant-mode-switch .customer-nav-item > span,
body.merchant-mode.sidebar-collapsed .merchant-menu-label,
body.merchant-mode.sidebar-collapsed .merchant-menu-item > span:last-child,
body.merchant-mode.sidebar-collapsed .merchant-profile-info,
body.merchant-mode.sidebar-collapsed .merchant-profile-balance { display: none; }
body.merchant-mode.sidebar-collapsed .merchant-mode-switch { display: grid; grid-template-columns: 1fr; margin-inline: 0; padding: 3px; }
body.merchant-mode.sidebar-collapsed .merchant-mode-switch .customer-nav-item { padding-inline: 5px; font-size: 0; }
body.merchant-mode.sidebar-collapsed .merchant-mode-switch .customer-nav-item::before { font-size: 13px; content: "•"; }
body.merchant-mode.sidebar-collapsed .merchant-menu-item { justify-content: center; padding-inline: 8px; }
body.merchant-mode.sidebar-collapsed .merchant-profile { justify-content: center; padding-inline: 5px; }
body.merchant-mode .admin-shell.sidebar-collapsed { grid-template-columns: 72px minmax(0, 1fr); }
body.merchant-mode .admin-shell.sidebar-collapsed #admin-sidebar { padding-inline: 10px; }
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-brand { justify-content: center; padding-inline: 0; }
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-brand > span,
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-menu-label,
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-menu-item > span:last-child,
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-profile-info { display: none; }
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-mode-switch { grid-template-columns: 1fr; margin-inline: 0; }
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-mode-switch .customer-nav-item { padding: 7px 0; font-size: 10px; }
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-menu-item { justify-content: center; padding-inline: 8px; }
body.merchant-mode .admin-shell.sidebar-collapsed .merchant-profile { justify-content: center; padding-inline: 5px; }

@media (max-width: 1100px) {
  body.merchant-mode .merchant-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .send-workspace { grid-template-columns: minmax(0, 1fr) 250px; }
  .admin-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.merchant-mode .merchant-content { padding-inline: 24px; }
}
@media (max-width: 900px) {
  body.merchant-mode .merchant-shell { grid-template-columns: 68px minmax(0, 1fr); }
  body.merchant-mode #merchant-sidebar.merchant-sidebar,
  body.merchant-mode #merchant-sidebar .merchant-sidebar { padding-inline: 9px; }
  .merchant-brand { justify-content: center; padding-inline: 0; }
  .merchant-brand > span,
  .merchant-mode-switch .customer-nav-item > span,
  .merchant-menu-label,
  .merchant-menu-item > span:last-child,
  .merchant-profile-info,
  .merchant-profile-balance { display: none; }
  .merchant-mode-switch { grid-template-columns: 1fr; margin-inline: 0; padding: 3px; }
  .merchant-mode-switch .customer-nav-item { padding-inline: 5px; font-size: 0; }
  .merchant-mode-switch .customer-nav-item::before { font-size: 13px; content: "•"; }
  .merchant-menu-item { justify-content: center; padding-inline: 8px; }
  .merchant-profile { justify-content: center; padding-inline: 5px; }
  .merchant-topbar { padding-inline: 20px; }
  .send-workspace { grid-template-columns: 1fr; }
  .merchant-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aside-balance { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  body.merchant-mode .merchant-topbar { min-height: 66px; padding: 12px 16px; }
  .merchant-breadcrumb h1 { font-size: 17px; }
  .merchant-topbar-actions .merchant-balance-chip { display: none; }
  body.merchant-mode .merchant-content { padding: 20px 16px 32px; }
  .page-intro { display: block; margin-bottom: 16px; }
  .page-intro h2 { font-size: 25px; }
  .merchant-card { padding: 17px; }
  .merchant-card .form-grid.two,
  .overview-grid,
  .merchant-aside { grid-template-columns: 1fr; }
  .admin-metric-grid { grid-template-columns: 1fr; }
  .aside-balance { grid-column: auto; }
  .merchant-card .form-actions { justify-content: stretch; }
  .merchant-card .form-actions button { width: 100%; }
  .account-balance-block { align-items: flex-start; flex-direction: column; gap: 12px; }
  .send-footer { align-items: stretch; flex-direction: column; }
  .send-footer button { width: 100%; }
  .merchant-card .record-row { align-items: flex-start; }
  .merchant-record-main { white-space: normal; }
  .merchant-record-time { white-space: normal; text-align: right; }
}
@media (max-width: 720px) {
  .variable-editor { grid-template-columns: 1fr; }
  .variable-editor button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  body.merchant-mode *, body.merchant-mode *::before, body.merchant-mode *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
/* Manual signature assignment and balance summary */
.account-summary-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-bottom:18px; }
.summary-card { padding:20px; display:flex; flex-direction:column; gap:10px; }
.summary-card span { color:var(--muted,#718096); font-size:.9rem; }
.summary-card strong { font-size:2rem; line-height:1; }
.assignment-row { display:grid; grid-template-columns:minmax(180px,1.2fr) minmax(180px,1fr) minmax(220px,1fr) auto; gap:14px; align-items:center; }
.assignment-row small { display:block; color:var(--muted,#718096); margin-top:4px; }
.assignment-row select { min-width:0; }
.admin-send-content { white-space:pre-wrap; word-break:break-word; margin-top:8px; color:var(--text,#1f2937); }
.admin-send-phone { color:var(--muted,#718096); }
@media (max-width: 900px) { .account-summary-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .assignment-row { grid-template-columns:1fr; } }
