:root {
  --ink: #f4f7ff;
  --muted: #a1b4d1;
  --dim: #6b82a6;
  --bg: #060b18;
  --panel: #0d1628;
  --panel-2: #121e34;
  --line: #233451;
  --acid: #4da3ff;
  --acid-soft: rgba(77, 163, 255, .14);
  --cyan: #57d4ff;
  --orange: #ffad5a;
  --red: #ff5a55;
  --shadow: 0 24px 80px rgba(0, 5, 20, .42);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 82% -10%, rgba(38,100,210,.18), transparent 38%), radial-gradient(circle at -10% 55%, rgba(26,80,170,.1), transparent 34%), var(--bg); color: var(--ink); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .22; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(to bottom, black, transparent 85%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .56; }

.topbar { height: 76px; padding: 0 clamp(20px, 4vw, 64px); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; background: rgba(6,11,24,.92); backdrop-filter: blur(18px); }
.wordmark { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 13px; letter-spacing: .08em; }
.wordmark i { font-style: normal; color: var(--muted); font-weight: 500; }
.brand-mark { width: 54px; height: 54px; display: inline-grid; place-items: center; border: 1px solid rgba(77,163,255,.42); border-radius: 50%; position: relative; background: var(--acid-soft); box-shadow: inset 0 0 24px rgba(77,163,255,.08); }
.brand-mark::before, .brand-mark::after, .brand-mark span { content: ""; position: absolute; width: 19px; height: 2px; background: var(--acid); transform-origin: right center; right: 17px; }
.brand-mark::before { transform: rotate(35deg); }
.brand-mark::after { transform: rotate(-35deg); }
.brand-mark span { width: 23px; }
.brand-mark.small { width: 34px; height: 34px; }
.brand-mark.small::before, .brand-mark.small::after, .brand-mark.small span { right: 10px; width: 13px; }
.brand-mark.small span { width: 16px; }
.main-nav { display: flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: #0a1324; }
.nav-link { color: var(--muted); border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-size: 13px; }
.nav-link.active { color: #06111f; background: var(--acid); font-weight: 750; }
.top-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.current-user { max-width: 150px; overflow: hidden; color: var(--dim); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.service-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.service-pill i, .live-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.service-pill.online i, .live-badge i { background: var(--acid); box-shadow: 0 0 0 5px rgba(77,163,255,.13); animation: pulse 2s infinite; }
.service-pill.paused i { background: var(--orange); }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(77,163,255,0); } }

main { width: min(1500px, 100%); margin: 0 auto; padding: 0 clamp(20px, 4vw, 64px) 80px; }
.view { display: none; }
.view.active { display: block; animation: reveal .35s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.hero-grid { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(430px, .95fr); gap: clamp(36px, 6vw, 100px); align-items: center; border-bottom: 1px solid var(--line); }
.hero-copy { padding: 72px 0; }
.eyebrow, .section-kicker { margin: 0 0 18px; font-size: 11px; font-weight: 800; letter-spacing: .19em; color: var(--acid); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 28px; font-size: clamp(58px, 7vw, 110px); line-height: .88; letter-spacing: -.065em; font-weight: 760; }
h1 em { color: var(--acid); font-style: normal; font-weight: 360; }
.hero-lead, .page-intro > p:last-child { max-width: 650px; color: var(--muted); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.58; }
.service-actions { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.primary, .secondary, .ghost, .danger, .text-button { border: 0; border-radius: 9px; min-height: 42px; padding: 0 18px; font-weight: 760; transition: .2s ease; }
.primary { color: #05101f; background: var(--acid); }
.primary:hover { background: #77baff; transform: translateY(-1px); }
.secondary { color: var(--ink); background: #17243a; border: 1px solid #2e4262; }
.secondary:hover, .ghost:hover { border-color: #45638f; background: #132039; }
.ghost { color: var(--muted); background: transparent; border: 1px solid var(--line); }
.danger { color: #fff; background: #a32d2b; border: 1px solid #d64b48; }
.danger:hover { background: #c03a37; transform: translateY(-1px); }
.wide { width: 100%; }
.text-button { color: var(--acid); background: transparent; padding: 0; min-height: auto; }
.continuity-note { margin: 34px 0 0; color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 10px; }
.continuity-note span { font-size: 24px; color: var(--acid); }

.transfer-card { background: linear-gradient(145deg, #101d33, #0a1222); border: 1px solid #253b5b; border-radius: 24px; padding: clamp(24px, 3vw, 44px); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.transfer-card::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; top: -180px; right: -110px; background: rgba(77,163,255,.17); filter: blur(35px); }
.card-heading, .section-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.heading-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.card-heading h2, .section-heading h2, .danger-card h2, .activity-card h2 { margin-bottom: 0; font-size: clamp(21px, 2vw, 30px); letter-spacing: -.035em; }
.section-kicker { color: var(--dim); margin-bottom: 8px; }
.live-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--acid); font-size: 10px; font-weight: 850; letter-spacing: .14em; }
.transfer-visual { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 28px; margin: 38px 0; }
.progress-ring { --progress: 0deg; width: min(210px, 100%); aspect-ratio: 1; border-radius: 50%; padding: 15px; background: conic-gradient(var(--acid) var(--progress), #22324a 0); display: grid; place-items: center; }
.progress-ring::before { content: ""; grid-area: 1/1; width: 100%; height: 100%; background: #0b1527; border-radius: 50%; }
.progress-ring div { grid-area: 1/1; z-index: 1; text-align: center; }
.progress-ring strong { display: block; font-size: clamp(34px, 4vw, 52px); letter-spacing: -.06em; }
.progress-ring span, .speed-stack span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.speed-stack { display: grid; gap: 20px; }
.speed-stack div + div { border-top: 1px solid var(--line); padding-top: 20px; }
.speed-stack strong { font-size: 35px; letter-spacing: -.05em; margin-right: 5px; }
.speed-stack small { color: var(--muted); }
.transfer-bars { display: grid; gap: 17px; }
.transfer-bars span { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.transfer-bars b { color: var(--ink); }
progress { appearance: none; width: 100%; height: 6px; border: 0; border-radius: 9px; overflow: hidden; background: #22324a; }
progress::-webkit-progress-bar { background: #22324a; }
progress::-webkit-progress-value { background: var(--acid); border-radius: 9px; }
progress::-moz-progress-bar { background: var(--acid); border-radius: 9px; }

.route-section { padding: 70px 0; border-bottom: 1px solid var(--line); }
.section-heading { align-items: end; margin-bottom: 32px; }
.route-grid { display: grid; grid-template-columns: 1fr 140px 1fr; align-items: stretch; }
.account-card { padding: 30px; min-height: 176px; display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); }
.account-card.source { border-radius: 18px 0 0 18px; }
.account-card.destination { border-radius: 0 18px 18px 0; }
.account-number { color: var(--acid); font: 700 12px/1 ui-monospace, monospace; align-self: start; }
.account-role { color: var(--muted); font-size: 10px; letter-spacing: .16em; font-weight: 800; }
.account-card h3 { margin: 8px 0 6px; font-size: 22px; }
.account-card p { margin: 0; color: var(--dim); font-size: 13px; word-break: break-word; }
.account-status { align-self: start; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 9px; letter-spacing: .12em; font-weight: 800; }
.account-status.ok { color: var(--acid); border-color: rgba(77,163,255,.36); background: var(--acid-soft); }
.account-status.warn { color: var(--orange); border-color: rgba(255,120,77,.3); }
.route-arrow { display: grid; place-items: center; align-content: center; gap: 12px; background: var(--panel); border-block: 1px solid var(--line); }
.route-arrow span { width: 72px; height: 1px; background: var(--acid); position: relative; }
.route-arrow span::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 1px solid var(--acid); border-right: 1px solid var(--acid); transform: rotate(45deg); }
.route-arrow b { color: var(--dim); font-size: 8px; letter-spacing: .1em; text-align: center; }
.overview-bottom { display: grid; grid-template-columns: 1.4fr .8fr; gap: 20px; padding: 36px 0; }
.activity-card, .danger-card { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: var(--panel); }
.activity-line { margin: 28px 0 0; padding: 18px; border-left: 2px solid var(--acid); background: #0a1426; color: #c9d8f0; font: 12px/1.7 ui-monospace, monospace; }
.error-line { margin: 12px 0 0; color: var(--red); font-size: 12px; }
.danger-card { border-color: rgba(255,90,85,.26); background: linear-gradient(145deg, rgba(255,90,85,.08), var(--panel)); }
.danger-card p:not(.section-kicker) { color: var(--muted); line-height: 1.55; font-size: 13px; }
.delete-progress { margin-top: 18px; }
.delete-progress span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }

.page-intro { padding: 82px 0 54px; border-bottom: 1px solid var(--line); }
.page-intro h1 { font-size: clamp(54px, 7vw, 96px); max-width: 1100px; }
.page-intro.compact { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: end; }
.page-intro.compact .eyebrow { grid-column: 1/-1; margin-bottom: -10px; }
.page-intro.compact h1 { font-size: clamp(50px, 6vw, 86px); margin-bottom: 0; }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px 0 20px; }
.setup-card { margin: 0; padding: clamp(24px, 3vw, 38px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.setup-card legend { padding: 0 12px; font-size: 12px; letter-spacing: .14em; font-weight: 800; }
.setup-card legend span { color: var(--acid); margin-right: 8px; }
label { display: grid; gap: 8px; margin-bottom: 19px; color: #c4d0e3; font-size: 12px; font-weight: 700; }
label small { color: var(--dim); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid #2c4060; border-radius: 9px; color: var(--ink); background: #081120; outline: none; }
textarea { min-height: 92px; padding: 12px 14px; resize: vertical; font: inherit; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--acid); box-shadow: 0 0 0 3px rgba(77,163,255,.13); }
.inline-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.mini-state { color: var(--dim); font-size: 11px; }
.mini-state.ok { color: var(--acid); }
.mini-state.warn { color: var(--orange); }
.topic-option { margin: 0 0 20px; padding: clamp(24px, 3vw, 34px); display: grid; grid-template-columns: 1fr auto; gap: 10px 34px; align-items: center; border: 1px solid rgba(77,163,255,.34); border-radius: 16px; background: linear-gradient(135deg, rgba(77,163,255,.13), var(--panel)); }
.topic-option h2 { margin-bottom: 10px; font-size: clamp(22px, 2.3vw, 32px); letter-spacing: -.035em; }
.topic-option > div > p:last-child { max-width: 820px; margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.topic-switch { margin: 0; display: flex; align-items: center; gap: 12px; cursor: pointer; }
.topic-switch input { position: absolute; width: 1px; min-height: 1px; opacity: 0; pointer-events: none; }
.switch-track { width: 54px; height: 30px; padding: 3px; display: block; border: 1px solid #3a5274; border-radius: 999px; background: #15243a; transition: .2s ease; }
.switch-track span { width: 22px; height: 22px; display: block; border-radius: 50%; background: var(--muted); transition: .2s ease; }
.topic-switch input:checked + .switch-track { border-color: var(--acid); background: var(--acid-soft); }
.topic-switch input:checked + .switch-track span { transform: translateX(24px); background: var(--acid); }
.topic-switch input:focus-visible + .switch-track { outline: 3px solid rgba(77,163,255,.25); outline-offset: 3px; }
.topic-switch strong { min-width: 74px; color: var(--muted); font-size: 12px; }
.topic-switch input:checked ~ strong { color: var(--acid); }
.topic-warning { grid-column: 1 / -1; margin: 10px 0 0; padding-top: 14px; border-top: 1px solid rgba(77,163,255,.15); color: var(--orange); font-size: 11px; line-height: 1.55; }
.topic-option-inline { margin: 22px 0 0; padding: 19px; grid-template-columns: 1fr auto; gap: 12px 16px; }
.topic-option-inline h2 { font-size: 19px; line-height: 1.08; }
.topic-option-inline > div > p:last-child { font-size: 11px; }
.topic-option-inline .topic-warning { display: none; }
.topic-option-inline .topic-switch { align-self: start; }
.topic-switch input:disabled + .switch-track { opacity: .45; cursor: not-allowed; }
.topic-availability { grid-column: 1 / -1; margin: 2px 0 0; padding-top: 12px; border-top: 1px solid rgba(77,163,255,.15); color: var(--dim); font-size: 11px; line-height: 1.45; }
.topic-availability[data-tone="ok"] { color: var(--acid); }
.topic-availability[data-tone="error"] { color: var(--red); }
.caption-option { margin: 0 0 20px; padding: clamp(24px, 3vw, 34px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(77,122,255,.14), var(--panel)); }
.caption-heading { display: grid; grid-template-columns: 1fr minmax(260px, .38fr); gap: 30px; align-items: end; }
.caption-heading h2 { margin-bottom: 9px; font-size: clamp(24px, 2.7vw, 36px); letter-spacing: -.035em; }
.caption-heading p:last-child { max-width: 850px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.caption-mode-label { margin: 0; }
.caption-panel, .caption-combine { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.caption-panel > label, .caption-combine { margin-bottom: 0; }
.caption-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.caption-panel-title > div { display: grid; gap: 5px; }
.caption-panel-title span { color: var(--muted); font-size: 11px; }
.caption-rule-list { display: grid; gap: 12px; }
.caption-rule { display: grid; grid-template-columns: 140px 1fr 36px; gap: 12px; align-items: start; padding: 14px; border: 1px solid #263b5c; border-radius: 12px; background: rgba(4,9,20,.55); }
.caption-rule.random-rule { grid-template-columns: 1fr 36px; }
.caption-rule label { margin: 0; }
.remove-rule { width: 36px; min-height: 36px; border: 1px solid rgba(255,90,85,.28); border-radius: 9px; color: var(--red); background: rgba(255,90,85,.06); cursor: pointer; font-size: 20px; }
.check-row { display: flex; align-items: center; gap: 10px; margin: 15px 0 0; }
.check-row input { width: 18px; min-height: 18px; accent-color: var(--acid); }
.caption-combine { max-width: 520px; }
.caption-limit { margin: 16px 0 0; color: var(--dim); font-size: 11px; }
.advanced-card { margin: 0 0 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.advanced-card summary { cursor: pointer; padding: 22px 26px; font-weight: 750; }
.advanced-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0 26px 8px; }
.save-bar { position: sticky; bottom: 18px; margin-top: 22px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 18px 20px; border: 1px solid #2d4263; border-radius: 14px; background: rgba(10,18,34,.95); backdrop-filter: blur(16px); box-shadow: var(--shadow); }
.save-bar div { display: grid; gap: 4px; }
.save-bar span { color: var(--muted); font-size: 12px; }
.terminal-card { margin-top: 36px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #030817; box-shadow: var(--shadow); }
.terminal-head { min-height: 54px; padding: 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: #0d1728; border-bottom: 1px solid var(--line); }
.terminal-head > span { display: flex; gap: 7px; }
.terminal-head > span i { width: 10px; height: 10px; border-radius: 50%; background: #3a4d69; }
.terminal-head > span i:first-child { background: var(--red); }
.terminal-head > span i:nth-child(2) { background: #ffbd44; }
.terminal-head > span i:nth-child(3) { background: var(--acid); }
.terminal-head strong { color: var(--muted); font: 11px/1 ui-monospace, monospace; }
.terminal-head button { justify-self: end; min-height: 32px; font-size: 11px; }
pre { height: min(62vh, 680px); margin: 0; padding: 24px; overflow: auto; color: #8fd1ff; background: #030817; font: 12px/1.75 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }

.commercial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 36px 0 20px; }
.commercial-card { padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.commercial-card h2 { margin-bottom: 26px; font-size: clamp(24px, 2.5vw, 34px); letter-spacing: -.035em; }
.commercial-card form { margin: 0; }
.commercial-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.license-list-section { margin-top: 20px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.license-list { display: grid; gap: 10px; margin-top: 24px; }
.license-row { display: grid; grid-template-columns: minmax(210px, 1.4fr) minmax(100px, .45fr) minmax(180px, .75fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid #263b5c; border-radius: 12px; background: rgba(4,9,20,.55); }
.license-row.inactive { opacity: .62; }
.license-identity, .license-stat { min-width: 0; display: grid; gap: 6px; }
.license-identity strong { overflow: hidden; font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.license-identity code { color: var(--acid); font: 11px/1.3 ui-monospace, Consolas, monospace; }
.license-stat strong { font-size: 14px; }
.license-stat span { color: var(--dim); font-size: 10px; }
.license-actions { display: flex; justify-content: flex-end; gap: 8px; }
.compact-button { min-height: 42px; }
.empty-state { margin: 0; padding: 28px; border: 1px dashed #31496d; border-radius: 12px; color: var(--dim); text-align: center; }
.license-key-card { border-top: 3px solid var(--acid); }
.license-key-output { display: block; margin: 22px 0 16px; padding: 18px; border: 1px solid rgba(77,163,255,.36); border-radius: 10px; color: var(--acid); background: #071020; font: 700 14px/1.6 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }

dialog { width: min(520px, calc(100vw - 28px)); border: 1px solid #2d4263; border-radius: 18px; padding: 0; color: var(--ink); background: var(--panel); box-shadow: 0 30px 120px #000; }
dialog::backdrop { background: rgba(2,5,16,.84); backdrop-filter: blur(8px); }
.dialog-card { position: relative; padding: 34px; }
.dialog-card h2 { font-size: 32px; margin-bottom: 12px; }
.dialog-card > p:not(.section-kicker):not(.form-error) { color: var(--muted); line-height: 1.55; }
.dialog-close { position: absolute; right: 18px; top: 16px; border: 0; background: transparent; color: var(--muted); font-size: 30px; }
.danger-dialog { border-top: 3px solid var(--red); }
.form-error { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: min(420px, calc(100vw - 48px)); padding: 14px 18px; border: 1px solid rgba(77,163,255,.34); border-radius: 10px; color: var(--ink); background: #10203a; box-shadow: var(--shadow); opacity: 0; transform: translateY(14px); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast[data-tone="error"] { border-color: rgba(255,90,85,.55); }
.hidden { display: none !important; }

.login-body { display: grid; min-height: 100vh; place-items: center; padding: 32px; overflow: hidden; }
.login-body::after { content: ""; position: fixed; width: 70vw; aspect-ratio: 1; border: 1px solid rgba(77,163,255,.1); border-radius: 50%; left: -35vw; top: -20vw; box-shadow: 0 0 0 10vw rgba(77,163,255,.026), 0 0 0 20vw rgba(77,163,255,.016); }
.login-shell { width: min(1100px, 100%); padding: 0; display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: clamp(50px, 9vw, 140px); position: relative; z-index: 1; }
.login-brand .brand-mark { margin-bottom: 34px; }
.login-brand h1 { font-size: clamp(68px, 9vw, 124px); }
.login-copy { max-width: 550px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.signal-line { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: var(--muted); font-size: 12px; }
.signal-line i { width: 7px; height: 7px; background: var(--acid); border-radius: 50%; box-shadow: 0 0 0 6px var(--acid-soft); }
.login-card { padding: clamp(28px, 4vw, 48px); border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(145deg, #111f38, #091224); box-shadow: var(--shadow); }
.login-card h2 { margin-bottom: 10px; font-size: 34px; letter-spacing: -.04em; }
.login-card > p:not(.section-kicker):not(.microcopy) { color: var(--muted); line-height: 1.5; }
.login-card form { margin-top: 30px; }
.password-wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.password-wrap .icon-button { min-height: 48px; }
.microcopy { margin: 20px 0 0; color: var(--dim); font-size: 10px; line-height: 1.5; }

.commercial-grid > .commercial-card:first-child { display: none; }
.commercial-grid { grid-template-columns: minmax(0, 760px); }
.site-device-list-section { margin-top: 20px; padding: clamp(24px, 3vw, 36px); border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.site-device-intro { max-width: 850px; margin: -12px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.device-row-code { color: var(--acid); font: 700 11px/1.55 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; user-select: all; }
.device-status-approved { color: var(--acid); }
.device-status-pending { color: var(--orange); }
.device-status-revoked { color: var(--red); }

.device-login-shell { width: min(1240px, 100%); grid-template-columns: minmax(320px, 1fr) minmax(420px, .92fr); gap: clamp(38px, 7vw, 110px); }
.login-access-stack { display: grid; gap: 16px; max-height: calc(100vh - 48px); overflow: auto; padding: 4px; scrollbar-width: thin; }
.device-card { padding: clamp(24px, 3.2vw, 36px); border: 1px solid rgba(77,163,255,.3); border-radius: 20px; background: linear-gradient(145deg, rgba(18,35,65,.96), rgba(7,16,32,.98)); box-shadow: var(--shadow); }
.device-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.device-card-heading h2 { margin: 0; font-size: clamp(21px, 2.3vw, 29px); letter-spacing: -.035em; }
.device-status-pill { flex: 0 0 auto; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.device-status-pill.approved { color: var(--acid); border-color: rgba(77,163,255,.42); background: var(--acid-soft); }
.device-status-pill.pending { color: var(--orange); border-color: rgba(255,173,90,.35); background: rgba(255,173,90,.08); }
.device-status-pill.revoked { color: var(--red); border-color: rgba(255,90,85,.4); background: rgba(255,90,85,.08); }
.browser-hwid { display: block; margin: 24px 0 14px; padding: 18px; border: 1px solid rgba(77,163,255,.34); border-radius: 12px; color: #91c8ff; background: rgba(3,9,20,.72); font: 750 clamp(13px, 1.4vw, 16px)/1.65 ui-monospace, Consolas, monospace; letter-spacing: .045em; overflow-wrap: anywhere; text-align: center; user-select: all; }
.copy-hwid-button { text-transform: uppercase; letter-spacing: .08em; }
.device-status-copy { margin: 18px 0 0; color: var(--ink); font-size: 13px; line-height: 1.55; }
.device-help { margin: 8px 0 0; color: var(--dim); font-size: 10px; line-height: 1.55; }

@media (max-width: 1000px) {
  .topbar { grid-template-columns: 1fr auto; }
  .main-nav { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 50; background: rgba(8,16,31,.97); box-shadow: var(--shadow); }
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 60px; }
  .hero-copy { padding-bottom: 0; }
  .route-grid { grid-template-columns: 1fr; }
  .account-card.source, .account-card.destination { border-radius: 16px; }
  .route-arrow { min-height: 80px; border: 0; background: transparent; transform: rotate(90deg); }
  .overview-bottom, .setup-grid, .page-intro.compact, .commercial-grid { grid-template-columns: 1fr; }
  .page-intro.compact .eyebrow { grid-column: auto; }
  .caption-heading { grid-template-columns: 1fr; }
  .advanced-grid { grid-template-columns: 1fr 1fr; }
  .license-row { grid-template-columns: 1fr 1fr; }
  .license-identity, .license-actions { grid-column: 1 / -1; }
  .license-actions { justify-content: flex-start; }
}

@media (max-width: 680px) {
  .topbar { height: 66px; padding-inline: 16px; }
  .wordmark i, .service-pill span, .top-actions .ghost, .current-user { display: none; }
  main { padding-inline: 16px; padding-bottom: 110px; }
  .main-nav { width: calc(100% - 24px); justify-content: center; }
  .nav-link { flex: 1; padding-inline: 8px; }
  .hero-grid { min-height: auto; gap: 28px; }
  .hero-copy { padding-top: 54px; }
  h1 { font-size: clamp(52px, 17vw, 76px); }
  .transfer-card { border-radius: 17px; padding: 22px; }
  .transfer-visual { grid-template-columns: 1fr; }
  .progress-ring { width: 170px; margin: 0 auto; }
  .speed-stack { grid-template-columns: 1fr 1fr; }
  .speed-stack div + div { border-top: 0; border-left: 1px solid var(--line); padding: 0 0 0 18px; }
  .route-section { padding-block: 52px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .account-card { grid-template-columns: auto 1fr; padding: 22px; }
  .account-status { grid-column: 2; justify-self: start; }
  .overview-bottom { padding-bottom: 0; }
  .page-intro { padding-top: 56px; }
  .setup-grid { padding-top: 24px; }
  .topic-option { grid-template-columns: 1fr; }
  .topic-switch { justify-content: space-between; }
  .caption-option { padding: 21px; }
  .caption-panel-title { align-items: stretch; flex-direction: column; }
  .caption-rule, .caption-rule.random-rule { grid-template-columns: 1fr 38px; }
  .caption-rule > label:first-child { grid-column: 1 / -1; }
  .caption-rule .remove-rule { grid-column: 2; grid-row: 2; }
  .commercial-form-row, .license-row { grid-template-columns: 1fr; }
  .license-identity, .license-actions { grid-column: auto; }
  .license-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .advanced-grid { grid-template-columns: 1fr; }
  .save-bar { position: static; align-items: stretch; flex-direction: column; }
  .terminal-head { grid-template-columns: 1fr auto; }
  .terminal-head strong { display: none; }
  .login-body { padding: 20px; }
  .login-shell { grid-template-columns: 1fr; gap: 30px; }
  .login-access-stack { max-height: none; overflow: visible; }
  .login-brand h1 { font-size: 60px; margin-bottom: 20px; }
  .login-brand .brand-mark, .login-copy { display: none; }
  .signal-line { margin-top: 0; }
  .device-card-heading { align-items: flex-start; }
  .browser-hwid { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
