/* GTransit attribution console — deep-space navy, brand red for actions, relay cyan for "linked". */
:root {
  color-scheme: light;
  --space-0: #060d24;
  --space-1: #0b1838;
  --space-2: #12295a;
  --space-line: rgba(173, 196, 255, .14);
  --ink: #17203f;
  --ink-2: #4a5476;
  --muted: #747c99;
  --line: #e2e6f1;
  --line-soft: #edf0f7;
  --paper: #f2f4fa;
  --surface: #ffffff;
  --brand: #e5404e;
  --brand-hover: #c9303f;
  --brand-tint: #fdecee;
  --relay: #57d9d5;
  --blue: #3451d1;
  --blue-tint: #eaeefc;
  --teal: #0f8f8b;
  --teal-tint: #e2f5f4;
  --amber: #946006;
  --amber-tint: #fbf1dc;
  --rose: #c2334a;
  --rose-tint: #fbe8eb;
  --series-1: #3451d1;
  --series-2: #14a3a0;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.55; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
code, pre { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
:focus-visible { outline: 3px solid #8fa0ff; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
canvas.starfield { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -.01em; position: relative; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: #fff; overflow: hidden; flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-mark img { width: 100%; height: 100%; display: block; }
.brand-mark.has-logo { background: transparent; border-radius: 0; }
.brand-light { color: #fff; }

/* ---------- buttons & fields ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, box-shadow .15s; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary, .btn-brand { background: var(--brand); color: #fff; }
.btn-primary:hover:not(:disabled), .btn-brand:hover:not(:disabled) { background: var(--brand-hover); }
.btn-brand { box-shadow: 0 10px 28px rgba(229, 64, 78, .35); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover:not(:disabled) { border-color: #c7cde0; background: #fafbfe; }
.btn-danger { color: var(--rose); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-block { width: 100%; height: 46px; font-size: 15px; }
.link-btn { background: none; border: 0; padding: 0; color: #9aa6c9; cursor: pointer; font-size: 12.5px; }
.link-btn:hover { color: #fff; }
.icon-btn { background: none; border: 0; font-size: 22px; line-height: 1; width: 32px; height: 32px; border-radius: 8px; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--paper); color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span, .field-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.field em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 9px 12px; font-size: 14px; min-height: 40px; }
.field textarea { resize: vertical; font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); outline: 3px solid var(--blue-tint); outline-offset: 0; }
.field.compact { margin: 0; }
.field.compact input, .field.compact select { min-height: 36px; padding: 6px 10px; font-size: 13px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); }
.input-with-btn { display: flex; gap: 8px; }
.form-error { color: var(--rose); background: var(--rose-tint); border-radius: 9px; padding: 9px 12px; font-size: 13px; margin: 4px 0 12px; }
.hint { font-size: 12.5px; color: var(--muted); margin: 6px 0 14px; }
.hint code { background: var(--paper); padding: 2px 6px; border-radius: 5px; color: var(--ink); }

/* ---------- login: deep space ---------- */
.login { position: relative; min-height: 100vh; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 70% 10%, #163063 0%, #0d1d45 45%, #081232 80%, var(--space-0) 100%); display: flex; flex-direction: column; }
.space { position: absolute; inset: 0; pointer-events: none; }
.planet { position: absolute; display: block; }
.planet-giant { width: min(44vw, 560px); left: max(-16vw, -210px); top: -18%; filter: drop-shadow(0 0 60px rgba(201, 120, 110, .25)); }
.planet-amber { width: clamp(110px, 12vw, 190px); right: 9%; top: 5%; filter: drop-shadow(0 0 40px rgba(217, 148, 74, .3)); }
.planet-pale { width: clamp(90px, 10vw, 160px); right: -2.5%; top: 18%; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46vh; }
.login-top { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 8vw, 168px); border-bottom: 1px solid var(--space-line); background: rgba(8, 16, 42, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.login-top-note { color: #aab5d6; font-size: 13px; }
.login-body { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, 400px); gap: clamp(32px, 6vw, 96px); align-items: center; padding: 40px clamp(20px, 8vw, 168px) 22vh; }
.login-claim { font-size: clamp(32px, 4vw, 54px); line-height: 1.18; letter-spacing: -.02em; font-weight: 700; margin: 0 0 18px; text-shadow: 0 2px 30px rgba(5, 10, 30, .6); }
.login-sub { color: #c4cdea; font-size: 16px; line-height: 1.75; max-width: 34em; margin: 0 0 30px; }
.login-points { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; max-width: 640px; }
.login-points li { border-left: 2px solid var(--relay); padding-left: 12px; }
.login-points strong { display: block; font-size: 14px; }
.login-points span { color: #a9b4d6; font-size: 12.5px; }
.login-card { background: rgba(15, 28, 66, .62); border: 1px solid rgba(173, 196, 255, .22); border-radius: 20px; padding: 30px 28px 24px; backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); box-shadow: 0 30px 80px rgba(3, 8, 28, .55); }
.login-card h2 { margin: 0 0 4px; font-size: 22px; }
.login-card-sub { margin: 0 0 22px; color: #a9b4d6; font-size: 13.5px; }
.field-dark > span { color: #c9d2ee; }
.field-dark input { background: rgba(6, 13, 36, .55); border-color: rgba(173, 196, 255, .24); color: #fff; }
.field-dark input:focus { border-color: var(--relay); outline-color: rgba(87, 217, 213, .25); }
.hint-dark { color: #a9b4d6; }
.hint-dark code { background: rgba(255, 255, 255, .08); color: #fff; }
.login .form-error { background: rgba(229, 64, 78, .16); color: #ffb3ba; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(to right, var(--space-1) 252px, var(--paper) 252px); }
.rail { position: sticky; top: 0; height: 100vh; overflow: hidden; background: linear-gradient(170deg, #10214b 0%, var(--space-1) 45%, var(--space-0) 100%); color: #dfe5f7; padding: 22px 16px 18px; display: flex; flex-direction: column; gap: 22px; }
.rail > *:not(canvas) { position: relative; }
.rail > .brand { padding: 0 6px; }
.client-picker { background: rgba(255, 255, 255, .06); border: 1px solid var(--space-line); border-radius: 12px; padding: 10px 12px 12px; }
.picker-label { display: block; font-size: 11.5px; color: #93a0c6; margin-bottom: 5px; }
.client-picker select { width: 100%; border: 1px solid rgba(173, 196, 255, .22); border-radius: 9px; padding: 7px 9px; background: rgba(6, 13, 36, .55); color: #fff; font-weight: 600; font-size: 14px; }
.client-picker select option { color: var(--ink); background: #fff; }
.client-fixed { margin: 0; font-weight: 650; font-size: 15px; color: #fff; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: #b5c0e0; font-weight: 550; }
.nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #fff; }
.nav a[aria-current="page"]::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.nav-group { margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-heading { font-size: 11.5px; color: #7f8cb3; padding: 0 12px 4px; }
.rail-foot { margin-top: auto; border-top: 1px solid var(--space-line); padding-top: 14px; }
.me { display: flex; align-items: center; gap: 10px; }
.me strong { display: block; font-size: 13.5px; color: #fff; }
.me small { color: #93a0c6; font-size: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #ff6a74, #c9303f); color: #fff; display: grid; place-items: center; font-weight: 700; }
.rail-actions { display: flex; gap: 16px; margin-top: 10px; padding-left: 44px; }
.main { padding: 26px 36px 48px; min-width: 0; outline: none; }
.view { max-width: 1240px; margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 20px; }
.page-head h1 { font-size: 26px; letter-spacing: -.02em; margin: 0 0 4px; }
.page-head p { margin: 0; }
.demo-banner { max-width: 1240px; margin: 0 auto 16px; background: var(--amber-tint); color: var(--amber); border-radius: 10px; padding: 9px 14px; font-size: 13px; }
.toast { position: fixed; right: 24px; bottom: 24px; background: var(--space-1); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 13.5px; z-index: 50; max-width: 420px; box-shadow: 0 10px 30px rgba(6, 13, 36, .3); }
.toast.error { background: var(--rose); }

/* overview header: a small piece of the login sky */
.hero { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-radius: 20px; padding: 26px 28px 64px; margin-bottom: -40px; color: #fff; background: radial-gradient(90% 140% at 85% 0%, #1b3a7a 0%, #10224f 45%, var(--space-1) 100%); }
.hero-planet { position: absolute; right: -60px; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f6d9a3 0%, #d9944a 45%, #8a4a22 100%); box-shadow: 0 0 60px rgba(217, 148, 74, .35); opacity: .9; }
.hero-text, .hero .pill { position: relative; }
.hero h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.02em; }
.hero p { margin: 0; color: #b9c4e6; font-size: 13.5px; }
header.hero .pill { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); }
header.hero .pill.dry_run { color: #ffd88a; }
header.hero .pill.test { color: #c3ceff; }
header.hero .pill.live { color: #7ff0e3; }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.dry_run { color: var(--amber); background: var(--amber-tint); border-color: transparent; }
.pill.test { color: var(--blue); background: var(--blue-tint); border-color: transparent; }
.pill.live { color: var(--teal); background: var(--teal-tint); border-color: transparent; }
.pill.off { color: var(--muted); }
.status { font-size: 12.5px; font-weight: 600; padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.status.ok { color: var(--teal); background: var(--teal-tint); }
.status.warn { color: var(--amber); background: var(--amber-tint); }
.status.bad { color: var(--rose); background: var(--rose-tint); }
.status.idle { color: var(--muted); background: var(--paper); }

/* ---------- overview ---------- */
.filters { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 14px 16px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px rgba(11, 24, 56, .08); }
.filters .grow { flex: 1 1 160px; max-width: 260px; }
.filters .btn { height: 36px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.kpi { padding: 18px 22px 16px; display: flex; flex-direction: column; gap: 2px; }
.kpi + .kpi { border-left: 1px solid var(--line-soft); }
.kpi span { font-size: 13px; color: var(--ink-2); font-weight: 550; }
.kpi strong { font-size: 34px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px 20px; margin-bottom: 16px; min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.panel-head h2 { font-size: 15.5px; margin: 0; letter-spacing: -.01em; }
.panel-text { color: var(--ink-2); margin: -4px 0 14px; max-width: 70ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }

.legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; display: inline-block; }
.chart { position: relative; height: 250px; }
.chart > .empty { height: 100%; display: grid; place-items: center; margin: 0; background: var(--paper); border-radius: 10px; }
.chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart .grid line { stroke: var(--line-soft); }
.chart .axis text { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { opacity: .08; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.chart .end-label { font-size: 11.5px; font-weight: 600; fill: var(--ink-2); }
.chart .cross { stroke: #c3c8dc; stroke-dasharray: 3 3; }
.tooltip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 12.5px; box-shadow: 0 8px 24px rgba(11, 24, 56, .14); min-width: 140px; z-index: 5; }
.tooltip b { display: block; margin-bottom: 4px; }
.tooltip div { display: flex; justify-content: space-between; gap: 14px; font-variant-numeric: tabular-nums; }
.tooltip i { width: 10px; height: 3px; display: inline-block; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.table-toggle { margin-top: 10px; font-size: 13px; }
.table-toggle summary { cursor: pointer; color: var(--muted); }
.table-toggle table { margin-top: 8px; }

.funnel { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.funnel li { display: grid; grid-template-columns: 96px minmax(0, 1fr) 62px 56px; align-items: center; gap: 12px; font-variant-numeric: tabular-nums; }
.funnel .label { font-size: 13px; color: var(--ink-2); }
.funnel .bar { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.funnel .bar i { display: block; height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; }
.funnel li:first-child .bar i { background: #a3b1ec; }
.funnel strong { text-align: right; font-size: 14px; }
.funnel small { text-align: right; color: var(--teal); font-weight: 650; font-size: 12.5px; }
.queue-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 12px; }
.queue-stats div { background: var(--paper); border-radius: 11px; padding: 10px 12px; }
.queue-stats dt { font-size: 12px; color: var(--muted); }
.queue-stats dd { margin: 2px 0 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.queue-stats .bad dd { color: var(--rose); }
.queue-stats .ok dd { color: var(--teal); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #f8f9fd; }
.panel.flush th:first-child, .panel.flush td:first-child { padding-left: 22px; }
.panel.flush th:last-child, .panel.flush td:last-child { padding-right: 22px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
td.rate { color: var(--teal); font-weight: 650; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.cell-title { font-weight: 650; display: block; }
.cell-sub { color: var(--muted); font-size: 12px; display: block; }
.mono { font-family: "SF Mono", ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--muted); }
.row-actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.err-text { color: var(--rose); font-size: 12.5px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }

/* ---------- integration ---------- */
.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 0 0 16px; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; word-break: break-all; }
.kv code { background: var(--paper); padding: 3px 7px; border-radius: 6px; }
.code { position: relative; }
.code pre { background: linear-gradient(160deg, #10214b, var(--space-0)); color: #dfe5ff; border-radius: 14px; padding: 16px 18px; overflow-x: auto; margin: 0; line-height: 1.6; white-space: pre; }
.code .copy { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .18); }
.code .copy:hover:not(:disabled) { background: rgba(255, 255, 255, .2); }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--ink); background: var(--surface); box-shadow: 0 24px 64px rgba(6, 13, 36, .35); }
dialog::backdrop { background: rgba(6, 13, 36, .55); backdrop-filter: blur(2px); }
.drawer { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(520px, 100vw); border-radius: 18px 0 0 18px; }
.drawer form, .modal form { display: flex; flex-direction: column; height: 100%; }
.modal { width: min(460px, calc(100vw - 32px)); border-radius: 18px; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 17px; }
.drawer-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.drawer-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); }
fieldset { border: 0; margin: 0 0 18px; padding: 0; }
legend { font-weight: 700; font-size: 14px; margin-bottom: 12px; padding: 0; }
.segmented { display: inline-grid; grid-auto-flow: column; background: var(--paper); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; padding: 6px 16px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(11, 24, 56, .16); }
.segmented input:focus-visible + span { outline: 3px solid #8fa0ff; }

/* ---------- motion & responsive ---------- */
@media (prefers-reduced-motion: no-preference) {
  .login-body > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .login-card { animation-delay: .12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (max-width: 1080px) {
  .split { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .login-body { grid-template-columns: 1fr; padding-bottom: 26vh; }
  .login-copy { max-width: 640px; }
  .login-card { max-width: 420px; width: 100%; }
}
@media (max-width: 860px) {
  .login-points { display: none; }
  .login-sub { font-size: 14.5px; margin-bottom: 8px; }
  .login-body { padding-top: 24px; gap: 24px; }
  .planet-giant { width: 70vw; left: -32vw; top: -12%; }
  .planet-pale { display: none; }
  .login-top-note { display: none; }
  .shell { grid-template-columns: 1fr; background: var(--paper); }
  .rail { position: relative; height: auto; gap: 14px; }
  .nav { flex-direction: row; flex-wrap: wrap; }
  .nav-group { flex-direction: row; margin-top: 0; }
  .nav-heading { display: none; }
  .nav a[aria-current="page"]::before { display: none; }
  .rail-foot { margin-top: 0; }
  .main { padding: 18px 14px 40px; }
  .hero { padding: 20px 18px 56px; }
  .filters { margin: 0 6px 16px; }
  .kv { grid-template-columns: 1fr; }
  .funnel li { grid-template-columns: 80px minmax(0, 1fr) 52px 50px; gap: 8px; }
}
