/* Linkit console - one stylesheet, always light. Plain CSS (no build step), served from the binary.
   Brand: Linkit blue #1a4be0, Funnel Display (headings), Funnel Sans (text), DM Mono (keys, codes, numbers). */

@font-face { font-family: "Funnel Display"; src: url("fonts/funnel-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Funnel Sans"; src: url("fonts/funnel-sans-var.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("fonts/dm-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f4f5f7; --card: #ffffff; --ink: #111111; --ink-2: #3d4046; --muted: #666a73;
  --line: #e3e5ea; --line-strong: #cfd3da;
  --accent: #1a4be0; --accent-hover: #1943c3; --accent-soft: #eef2fe; --accent-line: #c9d6fb;
  --ok: #0a6e39; --ok-bg: #e6f4ec; --no: #b42318; --no-bg: #fdecea; --no-line: #f4c7c1;
  --wait: #7a4a00; --wait-bg: #fff3df; --wait-line: #f1d9a8; --quiet-bg: #eceef2;
  --display: "Funnel Display", "Segoe UI", system-ui, sans-serif;
  --text: "Funnel Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "DM Mono", Consolas, "Lucida Console", ui-monospace, monospace;
  --r: 10px; --r-sm: 6px;
  --shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 1px 1px rgba(17, 17, 17, .03);
  --side: 248px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--text); -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.02em; margin: 0; color: var(--ink); }
h1 { font-size: 30px; line-height: 1.15; }
h2 { font-size: 19px; line-height: 1.3; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-hover); }
b { font-weight: 600; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.warn-text { color: var(--wait); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ico { flex: none; }
.js-only { display: none !important; }
.js .js-only { display: inline-flex !important; }
.js .no-js { display: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: var(--r-sm); z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- frame: menu on the left, on top on a phone ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--card); border-right: 1px solid var(--line); padding: 22px 14px 16px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 10px; text-decoration: none; }
.brand img { display: block; }
.brand-tag { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font: inherit; font-weight: 500; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.nav-item:hover { background: var(--bg); color: var(--ink); }
.nav-item.is-current { background: var(--accent-soft); color: var(--accent); }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.who { display: flex; align-items: center; gap: 12px; padding: 6px 10px; color: var(--muted); font-size: 14px; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.content { min-width: 0; }
.main { max-width: 1120px; padding: 36px 40px 72px; }
.strip { display: flex; align-items: flex-start; gap: 10px; background: var(--wait-bg); color: var(--wait); border-bottom: 1px solid var(--wait-line); padding: 9px 40px; font-size: 14px; }

/* ---------- page head, messages ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.lead { color: var(--muted); font-size: 16px; margin-top: 8px; max-width: 62ch; }
.lead b { color: var(--ink); }
.lead-rest { margin-left: 6px; }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); text-decoration: none; font-size: 14px; margin: -8px 0 14px -6px; padding: 4px 8px 4px 2px; border-radius: var(--r-sm); }
.back:hover { color: var(--ink); background: var(--quiet-bg); }
.banner { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); border: 1px solid; margin-bottom: 20px; font-weight: 500; animation: drop .28s cubic-bezier(.22, 1, .36, 1); }
.banner p { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.banner-ok { background: var(--ok-bg); border-color: #b9dfc8; color: var(--ok); }
.banner-no { background: var(--no-bg); border-color: var(--no-line); color: var(--no); }
.banner-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 0; border-radius: 4px; opacity: .7; }
.banner-x:hover { opacity: 1; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .banner { animation: none; } * { transition: none !important; } }
.note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); font-size: 14px; }
.note-wait { background: var(--wait-bg); color: var(--wait); }
.result-note { color: var(--muted); margin: -4px 0 16px; }

/* ---------- cards and layout ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card > h2 { margin-bottom: 6px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-lead { color: var(--muted); margin-bottom: 16px; }
.card-quiet { background: transparent; box-shadow: none; }
.card-table { padding: 0; overflow: hidden; }
.cols { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.section { margin-top: 36px; }
.section > h2 { margin-bottom: 6px; }
.section > h2 + .card, .section > h2 + .empty { margin-top: 14px; }
.section-lead { color: var(--muted); margin-bottom: 14px; max-width: 70ch; }
.more-link { display: inline-flex; align-items: center; gap: 2px; text-decoration: none; font-weight: 500; font-size: 14px; }
.eyebrow { font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---------- home ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 20px 22px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.stat:hover { border-color: var(--accent-line); color: var(--ink); }
.stat-n { font-family: var(--display); font-size: 38px; line-height: 1.1; letter-spacing: -.03em; }
.stat-l { font-weight: 600; margin-top: 10px; }
.stat-s { color: var(--muted); font-size: 14px; }
.rows, .todo, .links, .files, .plain { list-style: none; }
.rows { margin: 0 -10px -8px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.row:hover { background: var(--bg); color: var(--ink); }
.rows li + li { border-top: 1px solid var(--line); }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main b, .row-main .muted { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main .muted { font-size: 14px; }
.todo, .links { margin: 4px -10px -8px; }
.todo a, .links a { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.todo a:hover, .links a:hover { background: var(--bg); }
.card-quiet .links a:hover { background: var(--quiet-bg); }
.todo .ico { color: var(--wait); margin-top: 1px; }
.links .ico { color: var(--muted); margin-top: 1px; }
.plain li { position: relative; padding: 3px 0 3px 18px; }
.plain li::before { content: ""; position: absolute; left: 3px; top: .78em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border-radius: var(--r-sm); border: 1px solid transparent; font: inherit; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .12s, border-color .12s, color .12s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-line { background: var(--card); border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink-2); color: var(--ink); }
.btn-ghost { background: none; color: var(--ink-2); }
.btn-ghost:hover { background: var(--quiet-bg); color: var(--ink); }
.btn-danger { background: var(--no); color: #fff; }
.btn-danger:hover { background: #971c13; color: #fff; }
.btn-danger-line { color: var(--no); border-color: var(--no-line); }
.btn-danger-line:hover { border-color: var(--no); color: var(--no); }
.btn-sm { min-height: 32px; padding: 4px 12px; font-size: 14px; }
.btn-block { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
.stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }

/* ---------- forms ---------- */
label, legend, .sublabel { font-weight: 600; font-size: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
input, select, textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-strong); border-radius: var(--r-sm); padding: 9px 12px; min-height: 40px; width: 100%; }
input.mono, select.mono, textarea.mono { font-family: var(--mono); }
textarea { resize: vertical; line-height: 1.45; overflow-wrap: anywhere; }
input::placeholder, textarea::placeholder { color: #9a9ea7; }
input:hover, select:hover, textarea:hover { border-color: #aab0ba; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); border-radius: var(--r-sm); }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; min-height: 0; padding: 0; accent-color: var(--accent); flex: none; margin: 2px 0 0; }
.input-short { max-width: 140px; }
.hint { color: var(--muted); font-size: 14px; }
.form-narrow { max-width: 720px; padding: 28px; }
.group { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.group legend { display: flex; align-items: center; gap: 10px; font: 400 19px/1.3 var(--display); letter-spacing: -.02em; padding: 0; margin-bottom: 14px; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 400 14px var(--mono); }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 16px; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice-in { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; margin: 0; }
.choice { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 12px 42px; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; position: relative; font-weight: 400; font-size: 15px; }
.choice b { font-weight: 600; }
.choice span { color: var(--muted); font-size: 14px; }
.choice::before { content: ""; position: absolute; left: 14px; top: 14px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #9a9ea7; background: var(--card); }
.choice:hover { border-color: #aab0ba; }
.choice-in:checked + .choice { border-color: var(--accent); background: var(--accent-soft); }
.choice-in:checked + .choice::before { border: 5.5px solid var(--accent); }
.choice-in:focus-visible + .choice { outline: 2px solid var(--accent); outline-offset: 2px; }
.days { display: none; grid-column: 1 / -1; margin: 6px 0 0; }
#term-term:checked ~ .days { display: flex; }
.sublabel { margin: 18px 0 8px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 15px; cursor: pointer; margin-bottom: 16px; }
.checks .check { margin-bottom: 0; }
.form-end { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; margin-top: 6px; }
.form-end .hint { flex-basis: 100%; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; align-items: start; }
.form-row .form-end, .form-row .check { grid-column: 1 / -1; }
.search { display: flex; align-items: center; gap: 10px; position: relative; margin-bottom: 14px; }
.search > .ico { position: absolute; left: 13px; color: var(--muted); pointer-events: none; }
.search input { padding-left: 42px; }
.card .search { margin: 12px 0 10px; }
.code-form { display: flex; gap: 10px; align-items: center; }
.code-in { font-family: var(--mono); font-size: 20px; letter-spacing: .28em; text-align: center; max-width: 190px; padding-left: 16px; }
.code-form-big { margin-bottom: 14px; }
.code-form-big .code-in { font-size: 26px; max-width: 230px; min-height: 52px; }
.code-form-big .btn { min-height: 52px; }

/* ---------- details (less used forms) ---------- */
.more { border-top: 1px solid var(--line); }
.more > summary { cursor: pointer; padding: 14px 2px; font-weight: 600; color: var(--ink-2); list-style-position: inside; border-radius: 4px; }
.more > summary:hover { color: var(--accent); }
.more[open] > summary { color: var(--ink); }
.more > .form, .more > .field, .more > .facts, .more > .hint { margin-bottom: 16px; }
.details-list { padding: 4px 24px; margin-top: 14px; }
.details-list .more:first-child { border-top: 0; }
.card:not(.details-list) > .more:last-child { margin-bottom: -10px; }
.card:not(.details-list) > .more { margin-top: 18px; }

/* ---------- badges, chips, tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 9px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.5; white-space: nowrap; vertical-align: middle; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-ok { background: var(--ok-bg); color: var(--ok); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-wait { background: var(--wait-bg); color: var(--wait); }
.badge-no { background: var(--no-bg); color: var(--no); }
.badge-muted { background: var(--quiet-bg); color: #4d5159; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--card); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.chip:hover { border-color: var(--ink-2); color: var(--ink); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-n { font-family: var(--mono); font-size: 13px; opacity: .7; }
.chip-link { margin-left: auto; border-style: dashed; }
.tag { display: inline-block; background: var(--quiet-bg); border-radius: 4px; padding: 1px 7px; font-size: 13px; margin: 1px 0; }

/* ---------- tables: rows on a laptop, stacked cards on a phone ---------- */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.table td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.sub { display: block; color: var(--muted); font-size: 13px; }
.cell-link { color: var(--ink); text-decoration: none; }
.cell-link:hover { color: var(--accent); text-decoration: underline; }
.cell-go { text-align: right; white-space: nowrap; width: 1%; }
.cell-text { overflow-wrap: anywhere; min-width: 200px; }
.clip { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.table-log td { padding: 8px 16px; }

/* ---------- empty states ---------- */
.empty { text-align: center; padding: 40px 24px; color: var(--muted); }
.empty p + p { margin-top: 6px; }
.empty b { color: var(--ink); font-size: 16px; }
.empty .btn { margin-top: 14px; }
.card > .empty { padding: 24px 0 8px; }
.empty-page { padding-top: 96px; }
.empty-page h1 { margin-bottom: 10px; }

/* ---------- the new key, facts, confirmation, steps ---------- */
.keycard { border-color: var(--accent-line); padding: 28px; }
.key { display: block; font-family: var(--mono); font-size: clamp(20px, 3.4vw, 34px); letter-spacing: -.01em; line-height: 1.25; margin: 6px 0 18px; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.keycard-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.keycard textarea.out { margin: 8px 0 14px; background: #fafbfc; font-size: 13px; }
.facts { margin: 10px 0 0; }
.facts > div { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts + .hint { margin-top: 12px; }
.confirm { border-color: var(--accent-line); border-left: 4px solid var(--accent); scroll-margin-top: 16px; }
.confirm-danger { border-color: var(--no-line); border-left-color: var(--no); }
.confirm h2 { margin-bottom: 10px; }
.confirm .hint { margin-top: 10px; }
.confirm-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.steps { list-style: none; counter-reset: s; margin: 12px 0 16px; }
.steps li { counter-increment: s; position: relative; padding: 5px 0 5px 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--quiet-bg); color: var(--ink-2); font: 400 13px/24px var(--mono); text-align: center; }
.files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.files li { display: inline-flex; align-items: center; gap: 6px; background: var(--quiet-bg); border-radius: var(--r-sm); padding: 4px 10px 4px 6px; font-size: 13px; color: var(--ink-2); }
.files .ico { width: 16px; height: 16px; color: var(--muted); }

/* ---------- help session ---------- */
.timeline { list-style: none; margin: 14px 0 12px; }
.tl { position: relative; padding: 0 0 18px 24px; border-left: 2px solid var(--line); margin-left: 5px; }
.tl:last-child { border-left-color: transparent; padding-bottom: 4px; }
.tl::before { content: ""; position: absolute; left: -7px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); }
.tl-command::before, .tl-joined::before { border-color: var(--accent); }
.tl-result::before { border-color: var(--ok); background: var(--ok); }
.tl-refused::before { border-color: var(--no); background: var(--no); }
.tl-head { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.tl-head .muted { font-size: 13px; }
.tl-text { color: var(--ink-2); overflow-wrap: anywhere; }
pre.out { font: 13px/1.5 var(--mono); background: #fafbfc; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; margin: 8px 0 0; max-height: 340px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }

/* ---------- updates ---------- */
.meter progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; background: var(--quiet-bg); overflow: hidden; display: block; margin: 4px 0 12px; }
.meter progress::-webkit-progress-bar { background: var(--quiet-bg); }
.meter progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; }
.meter progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: flex; flex-direction: column; }
.login-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 56px; }
.login-card { width: 100%; max-width: 400px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(17, 17, 17, .04), 0 18px 40px -22px rgba(17, 17, 17, .22); padding: 36px 32px 32px; }
.login-logo { display: block; margin-bottom: 28px; }
.login-card .lead { margin-bottom: 24px; }
.login-card .banner { margin-bottom: 18px; font-size: 14px; }
.login-card .btn { margin-top: 6px; min-height: 44px; }
.login-card .code-in { max-width: none; text-align: left; }
.login-note { color: var(--muted); font-size: 13px; margin-top: 18px; }
.login .strip { justify-content: center; }

/* ---------- narrower screens ---------- */
@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols { grid-template-columns: minmax(0, 1fr); }
  .main { padding: 32px 28px 64px; }
  .strip { padding-left: 28px; padding-right: 28px; }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .side { position: static; height: auto; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 0; align-items: center; }
  .brand { padding-left: 16px; }
  .side-foot { margin: 0; border: 0; padding: 0 8px 0 0; flex-direction: row; align-items: center; grid-row: 1; grid-column: 2; }
  .brand { grid-row: 1; grid-column: 1; }
  .who { display: none; }
  .nav-out { padding: 8px 10px; color: var(--muted); }
  .nav { grid-row: 2; grid-column: 1 / -1; flex-direction: row; gap: 0; overflow-x: auto; padding: 0 8px; scrollbar-width: none; border-top: 1px solid var(--line); }
  .nav::-webkit-scrollbar { display: none; }
  .nav-item { width: auto; white-space: nowrap; }
  .nav .nav-item { border-radius: 0; padding: 12px 10px; gap: 8px; border-bottom: 2px solid transparent; }
  .nav .nav-item.is-current { background: none; border-bottom-color: var(--accent); }
  .main { padding: 24px 16px 56px; }
  .strip { padding: 8px 16px; font-size: 13px; }
  h1 { font-size: 26px; }
  .page-head { margin-bottom: 20px; align-items: flex-start; }
  .card { padding: 18px 16px; }
  .card-table { padding: 0; }
  .form-narrow { padding: 20px 16px; }
  .details-list { padding: 2px 16px; }
  .keycard { padding: 20px 16px; }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .facts > div { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .chip-link { margin-left: 0; }
  .search .btn { display: none; }

  .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table, .table tbody, .table tr, .table td { display: block; width: auto; }
  .table tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .table tbody tr:last-child { border-bottom: 0; }
  .table td { border: 0; padding: 3px 0 3px 128px; position: relative; min-height: 28px; overflow-wrap: anywhere; }
  .table td::before { content: attr(data-label); position: absolute; left: 0; top: 5px; width: 120px; color: var(--muted); font-size: 13px; }
  .table td.cell-main { padding: 0 0 8px; font-size: 16px; }
  .table td.cell-main::before { content: none; }
  .table td.cell-go { text-align: left; width: auto; padding: 10px 0 0; }
  .table td.cell-go::before { content: none; }
  .table td.cell-go .btn { width: 100%; min-height: 40px; }
  .cell-text { min-width: 0; }
  .clip { max-width: 100%; }
}
@media (max-width: 480px) {
  .stats { gap: 10px; }
  .stat { padding: 14px 14px; }
  .stat-n { font-size: 30px; }
  .page-actions, .page-actions .btn { width: 100%; }
  .code-form-big { flex-direction: column; align-items: stretch; }
  .code-form-big .code-in { max-width: none; }
  .confirm-actions .btn { width: 100%; }
}
