/* SDLV Hub console. One stylesheet, no build step.
   World: the sign-off sheet. Every entry is a numbered sheet with a stamp that says what
   happened to it (Waiting, Accepted, Rejected, Deleted); the stamp is the only loud thing on
   the page. Light = drafting paper on a cool desk; dark = the qnaputilities.com rack. */

/* Self-hosted (SIL Open Font License): Barlow, Barlow Semi Condensed, JetBrains Mono. */
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/barlow-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-semi-condensed-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/barlow-semi-condensed-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-semi-condensed-600-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/barlow-semi-condensed-600-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-semi-condensed-700-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Barlow Semi Condensed'; font-style: normal; font-weight: 700; font-display: swap; src: url('fonts/barlow-semi-condensed-700-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/jetbrains-mono-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-500-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/jetbrains-mono-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ground: #E9EDEF;
  --sheet: #FFFFFF;
  --sheet-2: #F5F7F8;
  --sheet-3: #EDF1F3;
  --rule: #D6DDE1;
  --rule-strong: #B9C4CA;
  --ink: #111619;
  --ink-2: #3C4850;
  --ink-3: #5F6C75;
  --ink-inv: #FFFFFF;
  --accent: #FFB020;
  --accent-ink: #8A5800;
  --accent-wash: #FFF3D6;
  --ok: #17734A;
  --ok-wash: #E3F3EA;
  --bad: #B42318;
  --bad-wash: #FCE9E7;
  --gone: #5B6770;
  --gone-wash: #EDF0F2;
  --info: #1D5F8A;
  --info-wash: #E4F0F7;
  --shadow-lift: 0 1px 2px rgba(17, 22, 25, .06), 0 8px 24px -12px rgba(17, 22, 25, .18);
  --shadow-pop: 0 2px 6px rgba(17, 22, 25, .08), 0 18px 48px -18px rgba(17, 22, 25, .32);
  --scrim: rgba(17, 22, 25, .36);
  --sel: rgba(255, 176, 32, .32);

  --font: 'Barlow', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --font-cond: 'Barlow Semi Condensed', 'Barlow', ui-sans-serif, system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;

  --t-xs: .75rem;
  --t-sm: .8125rem;
  --t-md: .9375rem;
  --t-lg: 1.0625rem;
  --t-xl: 1.375rem;
  --t-2xl: 1.75rem;
  --t-3xl: 2.25rem;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --rail: 232px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0B1013;
    --sheet: #11191E;
    --sheet-2: #151F25;
    --sheet-3: #1A252C;
    --rule: #233038;
    --rule-strong: #34444E;
    --ink: #E4E9EC;
    --ink-2: #B6C1C8;
    --ink-3: #8A98A1;
    --ink-inv: #0B1013;
    --accent-ink: #FFC24D;
    --accent-wash: rgba(255, 176, 32, .12);
    --ok: #5CC28F;
    --ok-wash: rgba(92, 194, 143, .12);
    --bad: #F2766C;
    --bad-wash: rgba(242, 118, 108, .12);
    --gone: #8A98A1;
    --gone-wash: rgba(138, 152, 161, .12);
    --info: #6FB3E0;
    --info-wash: rgba(111, 179, 224, .12);
    --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
    --shadow-pop: 0 2px 8px rgba(0, 0, 0, .45), 0 22px 56px -20px rgba(0, 0, 0, .85);
    --scrim: rgba(0, 0, 0, .55);
    --sel: rgba(255, 176, 32, .28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0B1013;
  --sheet: #11191E;
  --sheet-2: #151F25;
  --sheet-3: #1A252C;
  --rule: #233038;
  --rule-strong: #34444E;
  --ink: #E4E9EC;
  --ink-2: #B6C1C8;
  --ink-3: #8A98A1;
  --ink-inv: #0B1013;
  --accent-ink: #FFC24D;
  --accent-wash: rgba(255, 176, 32, .12);
  --ok: #5CC28F;
  --ok-wash: rgba(92, 194, 143, .12);
  --bad: #F2766C;
  --bad-wash: rgba(242, 118, 108, .12);
  --gone: #8A98A1;
  --gone-wash: rgba(138, 152, 161, .12);
  --info: #6FB3E0;
  --info-wash: rgba(111, 179, 224, .12);
  --shadow-lift: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px -14px rgba(0, 0, 0, .7);
  --shadow-pop: 0 2px 8px rgba(0, 0, 0, .45), 0 22px 56px -20px rgba(0, 0, 0, .85);
  --scrim: rgba(0, 0, 0, .55);
  --sel: rgba(255, 176, 32, .28);
  color-scheme: dark;
}

/* ── base ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 var(--t-md)/1.45 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--sel); color: var(--ink); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
code, kbd, .mono { font-family: var(--font-mono); font-size: .86em; }
h1, h2, h3 { font-family: var(--font-cond); font-weight: 600; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-sm); }
* { scrollbar-width: thin; scrollbar-color: var(--rule-strong) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 10px; border: 3px solid transparent; background-clip: padding-box; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ── controls ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 14px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--sheet); color: var(--ink);
  font: 600 var(--t-sm)/1 var(--font); letter-spacing: .01em;
  cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease);
}
.btn:hover { border-color: var(--ink-3); background: var(--sheet-2); }
.btn:active { transform: scale(.98); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--ink); border-color: var(--ink); color: var(--ink-inv); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.btn-ok:hover { background: var(--ok-wash); border-color: var(--ok); }
.btn-bad { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-bad:hover { background: var(--bad-wash); border-color: var(--bad); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--sheet-3); border-color: transparent; }
.btn-sm { height: 28px; padding: 0 10px; font-size: var(--t-xs); }
.btn-block { width: 100%; height: 40px; font-size: var(--t-md); }
.btn .k { font: 500 10.5px/1 var(--font-mono); padding: 2px 4px; border-radius: 3px; border: 1px solid currentColor; opacity: .55; }

.fld { display: flex; flex-direction: column; gap: 6px; }
.fld > span { font: 600 var(--t-xs)/1.2 var(--font-cond); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
input[type="text"], input[type="password"], input[type="search"], input[type="number"], input:not([type]), select, textarea {
  height: 36px; width: 100%; padding: 0 11px;
  border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  background: var(--sheet); color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
textarea { height: auto; min-height: 96px; padding: 9px 11px; line-height: 1.45; resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent); }
input:-webkit-autofill { -webkit-box-shadow: 0 0 0 40px var(--sheet) inset; -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }
input, textarea { caret-color: var(--accent); }

/* ── login ────────────────────────────────────────────────────────────── */
.page-login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login { width: 100%; max-width: 380px; }
.login-sheet {
  display: flex; flex-direction: column; gap: 16px;
  padding: 28px 28px 22px;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
}
.login-mark { display: flex; align-items: center; gap: 10px; font: 700 var(--t-md)/1 var(--font-cond); letter-spacing: .02em; color: var(--ink-2); }
.mark-sq { width: 14px; height: 14px; border-radius: 3px; background: var(--accent); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 18%, transparent); }
.login-sheet h1 { font-size: var(--t-2xl); line-height: 1.1; }
.login-err { margin: 0; padding: 9px 12px; border-radius: var(--r-md); background: var(--bad-wash); color: var(--bad); font-weight: 500; font-size: var(--t-sm); }
.login-foot { margin: 4px 0 0; font-size: var(--t-xs); color: var(--ink-3); text-align: center; }
.login-note { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }


/* ── app shell ────────────────────────────────────────────────────────── */
.app { min-height: 100dvh; display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); grid-template-rows: 56px 1fr; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 30; padding: 8px 12px; background: var(--accent); color: #111; border-radius: var(--r-sm); font-weight: 600; }
.skip:focus { top: 8px; }
.top {
  grid-column: 1 / -1; position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px; padding: 0 16px 0 20px;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 10px; width: calc(var(--rail) - 36px); flex: none; text-decoration: none; font: 700 var(--t-lg)/1 var(--font-cond); letter-spacing: .01em; }
.crumb { display: flex; align-items: baseline; gap: 8px; min-width: 0; font: 600 var(--t-md)/1 var(--font-cond); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.crumb-sep { color: var(--rule-strong); }
.top-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.utc { font: 500 var(--t-xs)/1 var(--font-mono); color: var(--ink-3); padding: 4px 6px; border: 1px solid var(--rule); border-radius: var(--r-sm); }
.menu { position: relative; }
.who { gap: 8px; height: 34px; }
.who-name { font-weight: 600; }
.role-tag { font: 600 10.5px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 3px 5px; border: 1px solid var(--rule-strong); border-radius: 3px; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 210px; padding: 6px; z-index: 40;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-pop);
  display: flex; flex-direction: column;
}
.menu-pop a { box-sizing: border-box; padding: 9px 10px; border-radius: 6px; font-size: var(--t-sm); color: inherit; text-decoration: none; }
.menu-pop a:hover, .menu-pop a:focus-visible { background: var(--sheet-3); outline: none; }
.menu-pop button { all: unset; box-sizing: border-box; padding: 9px 10px; border-radius: 6px; cursor: pointer; font-size: var(--t-sm); }
.menu-pop button:hover, .menu-pop button:focus-visible { background: var(--sheet-3); outline: none; }
.menu-pop hr { border: 0; border-top: 1px solid var(--rule); margin: 6px 4px; }

.rail-toggle { display: none; }
.rail { grid-row: 2; position: sticky; top: 56px; height: calc(100dvh - 56px); overflow-y: auto; padding: 14px 10px; border-right: 1px solid var(--rule); background: var(--ground); }
.rail ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.rail a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: var(--r-md);
  color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: var(--t-sm);
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.rail a:hover { background: var(--sheet-3); color: var(--ink); }
.rail a[aria-current="page"] { background: var(--sheet); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule); font-weight: 600; }
.rail a[aria-current="page"] .ic { color: var(--accent-ink); }
.rail .ic { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.rail-n { margin-left: auto; font: 500 var(--t-xs)/1 var(--font-mono); color: var(--ink-3); }
.rail-n.hot { color: #111; background: var(--accent); padding: 3px 6px; border-radius: 10px; font-weight: 600; }

.view { grid-row: 2; min-width: 0; overflow-x: clip; padding: 26px 32px 64px; outline: none; max-width: 1240px; width: 100%; }
.loading { color: var(--ink-3); padding: 40px 0; }
.head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; margin-bottom: 10px; }
.head h1 { font-size: var(--t-3xl); line-height: 1.05; letter-spacing: -.02em; margin-right: auto; }
.lede { margin: 0 0 18px; color: var(--ink-2); max-width: 72ch; }
.note { margin: 10px 0; color: var(--ink-3); font-size: var(--t-sm); max-width: 72ch; }
.dim { color: var(--ink-3); font-size: var(--t-xs); }
.sm { font-size: var(--t-xs); }
.ic { width: 16px; height: 16px; flex: none; }
.btn-icon { width: 34px; padding: 0; }
.btn-iso { margin-left: 14px; }
.btn-iso:first-child { margin-left: 0; }
.chip { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--sheet-3); color: var(--ink-2); font-size: var(--t-xs); font-weight: 500; }
.chip.mono { font-family: var(--font-mono); font-size: 11px; }

/* ── blocks and the ledger strip ─────────────────────────────────────── */
.block { margin-top: 30px; }
.block-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.block-h { font-size: var(--t-xl); margin-bottom: 12px; }
.block-row .block-h { margin-right: auto; }
.more { font-size: var(--t-sm); color: var(--ink-2); }
.src { font: 400 var(--t-xs)/1 var(--font-mono); color: var(--ink-3); }
.ledger {
  margin: 0; display: flex; flex-wrap: wrap;
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden;
}
.led { flex: 1 1 168px; padding: 14px 16px 15px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 0 -1px -1px 0; min-width: 0; }
.led dt { font: 600 var(--t-xs)/1.25 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.led dd { margin: 8px 0 0; font: 600 var(--t-2xl)/1 var(--font-cond); letter-spacing: -.01em; }
.led dd a { text-decoration: none; }
.led dd a:hover { color: var(--accent-ink); }
.led-sub { display: block; margin-top: 6px; font: 400 var(--t-xs)/1.3 var(--font); color: var(--ink-3); letter-spacing: 0; }
.led.hot { background: linear-gradient(var(--accent-wash), var(--accent-wash)); }
.led.hot dd { color: var(--accent-ink); }

/* ── sheets: one row per entry ───────────────────────────────────────── */
.sheets { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.sheet-row {
  display: grid; grid-template-columns: 74px minmax(0, 1fr) auto auto; gap: 6px 18px; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--rule); cursor: pointer; outline: none;
  transition: background-color .15s var(--ease);
}
.sheets > .sheet-row:last-child, .sheets > .slip:last-child { border-bottom: 0; }
.sheet-row:hover { background: var(--sheet-2); }
.sheet-row:focus-visible { background: var(--sheet-2); box-shadow: inset 3px 0 0 var(--accent); }
.sr-ref { font-size: var(--t-xs); color: var(--ink-3); align-self: start; padding-top: 3px; }
.sr-title { font-weight: 600; overflow-wrap: anywhere; }
.sr-title .kind { margin-right: 8px; font: 600 10.5px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sr-detail { margin-top: 3px; color: var(--ink-2); font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
.sr-meta { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--ink-3); font-size: var(--t-xs); }
.sr-text { margin-top: 4px; color: var(--ink); font-size: var(--t-sm); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.sr-stars { letter-spacing: .06em; color: var(--accent-ink); }
.sr-act { display: flex; gap: 8px; justify-content: flex-end; }
.sr-act:empty { display: none; }

/* ── stamps ───────────────────────────────────────────────────────────── */
.stamp {
  display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1.5px solid currentColor; border-radius: 4px;
  font: 700 11px/1 var(--font-cond); letter-spacing: .09em; text-transform: uppercase; white-space: nowrap;
}
.st-wait { color: var(--accent-ink); background: var(--accent-wash); }
.st-ok { color: var(--ok); background: var(--ok-wash); }
.st-bad { color: var(--bad); background: var(--bad-wash); }
.st-gone { color: var(--gone); background: var(--gone-wash); }
.st-ink { color: var(--ink-2); background: transparent; }
.stamp-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.stamp-sig { font: 400 10.5px/1.2 var(--font-mono); color: var(--ink-3); white-space: nowrap; }
.stamp.landed { animation: stampIn .22s var(--ease-out) both; }
@keyframes stampIn { from { transform: scale(1.18); opacity: 0; } 60% { opacity: 1; } to { transform: none; opacity: 1; } }

/* ── the slip (inline confirmation) ──────────────────────────────────── */
.slip {
  margin: 0; padding: 14px 18px 16px 110px; background: var(--sheet-2);
  border-bottom: 1px solid var(--rule); animation: slipIn .2s var(--ease-out) both;
}
/* a slip under a table row: its own row, the cell without padding, the slip held at the visible left edge */
.tbl tr.slip-row > td { padding: 0 0 10px; border-bottom: 1px solid var(--rule); background: var(--sheet); }
.tbl tr.slip-row .slip { position: sticky; left: 0; box-sizing: border-box; max-width: 100%; margin: 0; padding-left: 18px; border-bottom: 0; }
.panel-act + .slip, .head + .slip, .head > .slip { padding-left: 18px; border: 1px solid var(--rule); border-radius: var(--r-md); margin-top: 10px; }
.slip-title { font: 600 var(--t-md)/1.3 var(--font-cond); margin-bottom: 8px; }
.slip-lines { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; margin: 0 0 12px; font-family: var(--font-mono); font-size: 12.5px; }
.slip-lines dt { color: var(--ink-3); }
.slip-lines dt::after { content: ':'; }
.slip-lines dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.slip-in { max-width: 420px; margin-bottom: 12px; }
.slip-in input.err { border-color: var(--bad); }
.slip-act { display: flex; gap: 8px; flex-wrap: wrap; }
@keyframes slipIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── legend of the three decisions ───────────────────────────────────── */
.legend { margin: 0 0 16px; padding: 12px 16px; border: 1px dashed var(--rule-strong); border-radius: var(--r-md); font-size: var(--t-sm); color: var(--ink-2); max-width: 760px; }
.legend p { margin: 2px 0; display: grid; grid-template-columns: 64px 1fr; gap: 10px; }
.legend b { font: 700 11px/1.7 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.legend .legend-foot { display: block; margin-top: 8px; color: var(--ink-3); font-size: var(--t-xs); }

/* ── tools row: segmented, select, search ─────────────────────────────── */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.tools select { width: auto; min-width: 150px; }
.seg { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 3px; gap: 2px; background: var(--sheet-3); border-radius: var(--r-md); }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; }
.seg button { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 6px; cursor: pointer; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); transition: background-color .15s var(--ease), color .15s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--sheet); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); font-weight: 600; }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.seg-n { font: 500 11px/1 var(--font-mono); color: var(--ink-3); }
.search { position: relative; flex: 1 1 220px; max-width: 340px; display: flex; align-items: center; }
.search .ic { position: absolute; left: 10px; color: var(--ink-3); pointer-events: none; }
.search input { padding-left: 32px; }
.exports { display: inline-flex; gap: 2px; margin-left: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 16px; color: var(--ink-3); font-size: var(--t-sm); }

/* ── tables ───────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.tbl th { position: sticky; top: 0; text-align: left; padding: 10px 14px; background: var(--sheet-2); border-bottom: 1px solid var(--rule); font: 600 var(--t-xs)/1.2 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr[data-bid] { cursor: pointer; }
.tbl tbody tr[data-bid]:hover, .tbl tbody tr[data-bid]:focus-visible { background: var(--sheet-2); outline: none; }
.tbl .n, .bars .n { text-align: right; white-space: nowrap; }
.tbl td.act { white-space: nowrap; text-align: right; }
.tbl td.when { white-space: nowrap; }
.tbl td.act .btn + .btn { margin-left: 6px; }
.tbl td.act .btn-iso { margin-left: 12px; }
.tbl select { height: 30px; width: auto; }
.nick { color: var(--accent-ink); font-weight: 500; font-size: var(--t-xs); }
.why { max-width: 260px; }
.flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.flag { display: inline-block; padding: 2px 6px; border-radius: 4px; background: var(--accent-wash); color: var(--accent-ink); font-size: 11px; line-height: 1.35; }
.flaglist { margin: 0 0 16px; padding: 10px 14px 10px 30px; background: var(--accent-wash); border-radius: var(--r-md); color: var(--accent-ink); font-size: var(--t-sm); }

/* ── breakdown bars and the daily chart ──────────────────────────────── */
.bars-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
/* Long and short lists side by side (the Rtorrent 16 page): columns fill the gaps a grid row would leave. */
.bars-flow { columns: 3 300px; column-gap: 16px; }
.bars-flow .bars-box { break-inside: avoid; margin-bottom: 16px; }
.bars { width: 100%; border-collapse: collapse; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; font-size: var(--t-sm); }
.bars-h { margin: 0 0 8px; font: 600 var(--t-xs)/1.2 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.bars th { text-align: left; font-weight: 500; padding: 7px 12px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 1px solid var(--rule); }
.bars td { padding: 7px 12px 7px 0; border-bottom: 1px solid var(--rule); }
.bars tr:last-child th, .bars tr:last-child td { border-bottom: 0; }
.bar-cell { width: 45%; }
.bar { display: block; height: 8px; border-radius: 0 4px 4px 0; background: var(--ink-3); opacity: .55; }
.bars tr:hover .bar { opacity: 1; background: var(--accent); }
.daily { margin: 16px 0 0; padding: 14px 16px 10px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.daily figcaption { display: flex; justify-content: space-between; font: 600 var(--t-xs)/1.2 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.daily .max { font: 400 11px/1 var(--font-mono); letter-spacing: 0; text-transform: none; }
.cols { list-style: none; margin: 0; padding: 0; height: 84px; display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; align-items: stretch; border-bottom: 1px solid var(--rule-strong); }
.cols li { height: 100%; display: flex; align-items: flex-end; }
.cols .col { display: block; width: 100%; border-radius: 4px 4px 0 0; background: var(--ink-3); opacity: .6; transition: opacity .15s var(--ease), background-color .15s var(--ease); }
.cols li:hover .col { opacity: 1; background: var(--accent); }
.axis { display: flex; justify-content: space-between; margin-top: 6px; font: 400 11px/1 var(--font-mono); color: var(--ink-3); }
.trend { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.trend .daily { margin: 0; min-width: 0; }

/* ── audit lines (DOS-style log) ─────────────────────────────────────── */
.audit { list-style: none; margin: 0; padding: 6px 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); font: 400 12.5px/1.6 var(--font-mono); }
.audit li { display: grid; grid-template-columns: 128px 140px 150px 96px 1fr; gap: 12px; padding: 3px 16px; }
.audit li > * { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit li > .a-det { white-space: normal; }
.audit time { color: var(--ink-3); }
.a-user { color: var(--ink-2); }
.a-act { font-weight: 500; }
.a-det { color: var(--ink-3); overflow-wrap: anywhere; }

/* ── empty states ─────────────────────────────────────────────────────── */
.empty { padding: 28px 22px; background: var(--sheet); border: 1px dashed var(--rule-strong); border-radius: var(--r-lg); color: var(--ink-3); }
.empty p { margin: 0; max-width: 60ch; overflow-wrap: anywhere; }
.empty .empty-h { color: var(--ink); font-weight: 600; margin-bottom: 4px; }

/* ── side panel ───────────────────────────────────────────────────────── */
.panel {
  position: fixed; z-index: 30; top: 56px; right: 0; bottom: 0; width: min(560px, 100vw);
  display: flex; flex-direction: column; background: var(--sheet); border-left: 1px solid var(--rule); box-shadow: var(--shadow-pop);
  transform: translateX(16px); opacity: 0; transition: transform .22s var(--ease-out), opacity .18s var(--ease);
}
.panel.in { transform: none; opacity: 1; }
.panel-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px 14px; border-bottom: 1px solid var(--rule); }
.panel-head > div { flex: 1; min-width: 0; }
.panel-head h2 { font-size: var(--t-xl); line-height: 1.2; overflow-wrap: anywhere; }
.panel-ref { font: 500 var(--t-xs)/1 var(--font-mono); color: var(--ink-3); }
.panel-body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.panel-stamp { margin: 0 0 14px; }
.panel-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--rule); outline: none; }
.sub-h { font-size: var(--t-md); margin: 22px 0 8px; }
.kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 7px 14px; margin: 0; font-size: var(--t-sm); }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd.pre { white-space: pre-wrap; background: var(--sheet-2); padding: 6px 8px; border-radius: var(--r-sm); font-size: 12px; }
.block-pre { margin: 0; padding: 10px 12px; max-height: 340px; overflow: auto; background: var(--sheet-2); border: 1px solid var(--rule); border-radius: var(--r-md); font: 400 12px/1.5 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.plain { margin: 0; padding-left: 18px; font-size: var(--t-sm); }

/* lifecycle strip: fixed stage positions */
.life { list-style: none; display: flex; margin: 0 0 14px; padding: 0; font: 600 11px/1 var(--font-cond); letter-spacing: .08em; text-transform: uppercase; }
.life li { flex: 1; position: relative; padding: 18px 0 0; color: var(--ink-3); }
.life li::before { content: ''; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--rule); }
.life li::after { content: ''; position: absolute; top: 1px; left: 0; width: 10px; height: 10px; border-radius: 50%; background: var(--sheet); border: 2px solid var(--rule-strong); }
.life li.past { color: var(--ink-2); }
.life li.past::before { background: var(--ink-3); }
.life li.past::after { background: var(--ink-3); border-color: var(--ink-3); }
.life li.now { color: var(--ink); }
.life li.now::after { background: var(--accent); border-color: var(--accent); }
.life li.off { color: var(--bad); }
.life li.off::after { background: var(--bad); border-color: var(--bad); }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; max-width: 560px; }
.form fieldset { border: 0; padding: 0; margin: 0 0 6px; display: flex; flex-direction: column; gap: 10px; }
.form legend { font: 600 var(--t-md)/1.3 var(--font-cond); margin-bottom: 8px; padding: 0; }
.form-act { display: flex; gap: 8px; margin-top: 4px; }
.radios label, .check { display: flex; align-items: baseline; gap: 8px; font-size: var(--t-sm); }
.radios .dim { margin-left: 4px; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--ink); width: 16px; height: 16px; }
.keyline { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.ai-form { max-width: 820px; margin-top: 24px; padding: 20px 22px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); }
.limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 16px; }
.unit-in { position: relative; display: flex; align-items: center; }
.unit-in input { padding-right: 78px; }
.unit-in i { position: absolute; right: 10px; font-style: normal; font-size: var(--t-xs); color: var(--ink-3); pointer-events: none; }
.reveal { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px; background: var(--accent-wash); border-radius: var(--r-md); }
.reveal code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.keys { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 0; font-size: var(--t-sm); }
kbd { display: inline-block; padding: 2px 6px; border: 1px solid var(--rule-strong); border-bottom-width: 2px; border-radius: 4px; background: var(--sheet-2); font-size: 12px; }

/* toast */
.toast {
  position: fixed; z-index: 50; left: 50%; bottom: 22px; transform: translateX(-50%); max-width: min(560px, calc(100vw - 32px));
  padding: 11px 16px; border-radius: var(--r-md); background: var(--ink); color: var(--ink-inv); font-size: var(--t-sm); font-weight: 500;
  box-shadow: var(--shadow-pop); animation: slipIn .2s var(--ease-out) both;
}
.toast-bad { background: var(--bad); color: #fff; }

/* ── narrow screens ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: 52px auto 1fr; }
  .top { padding: 0 12px 0 16px; gap: 12px; height: 52px; }
  .brand { width: auto; }
  .crumb, .utc { display: none; }
  /* the phone menu: one button with the current section, the list opens under it (hub.js renderRail) */
  .rail { grid-row: 2; position: sticky; top: 52px; z-index: 15; height: auto; padding: 6px 12px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--rule); background: color-mix(in srgb, var(--ground) 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .rail-toggle { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--sheet); color: var(--ink); font: 600 var(--t-sm)/1.2 var(--font); text-align: left; cursor: pointer; }
  .rail-toggle .ic { width: 18px; height: 18px; flex: none; color: var(--accent-ink); }
  .rail-cur { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rail-more { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; flex: none; color: var(--ink-3); font: 500 var(--t-xs)/1 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; }
  .rail-more .ic { width: 16px; height: 16px; color: var(--ink-3); transition: transform .18s var(--ease-out); }
  .rail-toggle .rail-n { margin: 0 4px 0 0; letter-spacing: 0; }
  .rail.open .rail-more .ic { transform: rotate(180deg); }
  .rail ul { display: none; }
  .rail.open ul { display: flex; flex-direction: column; gap: 2px; position: absolute; left: 12px; right: 12px; top: calc(100% - 4px); max-height: calc(100dvh - 120px); overflow-y: auto; padding: 6px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-md); box-shadow: var(--shadow-pop); }
  .rail.open a { min-height: 44px; }
  .view { grid-row: 3; padding: 18px 16px 56px; }
  .head h1 { font-size: var(--t-2xl); }
  .sheet-row { grid-template-columns: minmax(0, 1fr) auto; padding: 13px 14px; }
  .sr-ref { grid-column: 1 / -1; padding: 0; }
  .sr-main { grid-column: 1 / 2; }
  .sr-stamp { grid-column: 2; grid-row: 2; align-self: start; }
  .sr-act { grid-column: 1 / -1; justify-content: flex-start; }
  .slip { padding-left: 14px; }
  .panel { top: 0; width: 100vw; border-left: 0; z-index: 45; }
  .audit li { grid-template-columns: auto 1fr; grid-template-areas: 't u' 'a g' 'd d'; gap: 0 10px; padding: 7px 14px; border-bottom: 1px solid var(--rule); }
  .audit time { grid-area: t; } .a-user { grid-area: u; } .a-act { grid-area: a; } .a-tgt { grid-area: g; } .a-det { grid-area: d; }
  .audit li:last-child { border-bottom: 0; }
  .legend p { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; }
  .search { max-width: none; flex-basis: 100%; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 8px; }
  .led { flex-basis: 140px; }
  .bars-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 8px 0; border-bottom: 1px solid var(--rule); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { position: relative; padding: 4px 14px 4px 118px; border: 0; text-align: left !important; min-height: 26px; }
  .tbl td::before { content: attr(data-label); position: absolute; left: 14px; top: 6px; width: 96px; font: 600 11px/1.3 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
  .tbl td.act { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 14px 4px; }
  .tbl tr.slip-row { padding: 0; }
  .tbl tr.slip-row > td { padding: 0 0 8px; min-height: 0; }
  .tbl tr.slip-row > td::before { content: none; }
  .tbl td.act::before { display: none; }
  .tbl td.act:empty { display: none; }
  .tbl td.act .btn + .btn, .tbl td.act .btn-iso { margin-left: 0; }
}
@media (max-width: 420px) {
  .who-name { display: none; }
  .led dd { font-size: var(--t-xl); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
.tbl-wrap + .legend { margin-top: 16px; }

/* An account's own page (me.php, 2026-11-17): keys, downloads, extension, repository. One column on a phone. */
.page-me { min-height: 100dvh; background: var(--ground); color: var(--ink); }
.me-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--rule); background: var(--sheet); }
.me-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: var(--t-sm); }
.me-nav a { color: var(--ink-2); }
.me-who { font-weight: 600; }
.me { max-width: 1040px; margin: 0 auto; padding: 24px 20px 64px; }
.me h1 { margin: 0 0 20px; }
.me section { margin-top: 32px; }
.me h2 { margin: 0 0 12px; font-size: 1.15rem; }
.me-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.me-card { background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 16px 18px; min-width: 0; }
.me-card h3 { margin: 0 0 6px; font-size: 1rem; }
.me-lede { color: var(--ink-2); margin: 0 0 10px; }
.me-dim { color: var(--ink-3); font-size: var(--t-sm); margin: 4px 0; overflow-wrap: anywhere; }
.me-note { color: var(--ink-2); background: var(--accent-wash); border-radius: var(--r-md); padding: 8px 10px; }
.me-state { font-weight: 600; margin: 0 0 4px; }
.me-state.st-ok { color: var(--ok); }
.me-state.st-wait { color: var(--ink-2); }
.me-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 4px; }
.me-keyval { flex: 1 1 240px; min-width: 0; font: 500 var(--t-sm)/1.4 var(--font-mono, monospace); padding: 8px 10px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--sheet-2); color: var(--ink); }
.me-msg { min-height: 1.2em; margin: 4px 0; font-size: var(--t-sm); color: var(--ink-2); }
.me-msg.st-bad { color: var(--bad); }
.me-how { font-size: var(--t-sm); color: var(--ink-2); margin: 10px 0 0; }
.me-list { margin: 0; padding-left: 18px; }
.me-list li { margin: 6px 0; overflow-wrap: anywhere; }
.me-stores { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.me-steps { padding-left: 20px; }
.me-steps li { margin: 6px 0; }
.me-pw { display: grid; gap: 10px; max-width: 380px; }
.kout-key { flex: 1 1 240px; min-width: 0; padding: 6px 8px; border: 1px solid var(--rule-strong); border-radius: var(--r-md); background: var(--sheet-2); color: var(--ink); }

/* Keys and downloads inside the console (me.php?part=view, #me): the console's view gives the frame. */
.view .me { max-width: none; margin: 0; padding: 0; }

/* Start (welcome.php?part=view, #start, 2026-11-18): the first section after sign-in. What waits is one sheet of
   counters with hairline seams, amber only where an entry waits; StorageDiag N is one sheet of four cells; the store
   badges are the stores' own artwork, at least 40 px tall with a quarter of their height clear around them. */
.st { max-width: 1120px; }
.st-head h1 { margin-right: auto; }
.st-lang { font-size: var(--t-sm); color: var(--ink-2); text-underline-offset: 3px; }
.st-lang:hover { color: var(--ink); }
.st-lede { font-size: var(--t-lg); }
.st h3 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 var(--t-xl)/1.15 var(--font-cond); color: var(--ink); }
.st h3 .ic { width: 20px; height: 20px; flex: none; color: var(--ink-3); }
.st p { margin: 0; max-width: 68ch; }
.st-dim { color: var(--ink-3); font-size: var(--t-sm); }
.st-ver { font-weight: 600; font-variant-numeric: tabular-nums; }

.st-queue { margin-top: 8px; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.st-queue.is-hot { border-color: color-mix(in srgb, var(--accent) 60%, var(--rule)); }
.st-queue-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 16px 20px 14px; }
.st-queue-head h2 { margin: 0 auto 0 0; font-size: var(--t-xl); }
.st-total { font: 500 var(--t-sm)/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-2); }
.st-queue.is-hot .st-total { color: var(--accent-ink); background: var(--accent-wash); padding: 4px 8px; border-radius: var(--r-sm); }
.st-q { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--rule); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.st-q li { display: flex; background: var(--sheet); }
.st-q a { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 2px; align-items: baseline; padding: 14px 20px 16px; text-decoration: none; transition: background-color .16s var(--ease); }
.st-q a:hover { background: var(--sheet-2); }
.st-q-n { grid-row: 1 / span 2; font: 500 var(--t-2xl)/1 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.st-q-n.is-hot { color: var(--accent-ink); }
.st-q-l { font: 600 var(--t-md)/1.25 var(--font); color: var(--ink); }
.st-q-in { font-size: var(--t-xs); color: var(--ink-3); }
.st-q a:hover .st-q-l { text-decoration: underline; text-underline-offset: 3px; }
.st p.st-queue-foot { padding: 12px 20px 16px; font-size: var(--t-sm); color: var(--ink-3); max-width: 110ch; }

.st-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.st-cell { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; padding: 20px 22px 22px; background: var(--sheet); }
.st-cell .btn { margin-top: 2px; max-width: 100%; }
.st-cell .btn .ic { width: 16px; height: 16px; flex: none; }
.st-cell .me-steps { margin: 0; }
.st-cell .me-msg { margin: -4px 0 0; min-height: 0; }
.st-cell .me-msg:empty { display: none; }
.st-addr { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.st-addr .me-keyval { flex: 1 1 260px; font-size: var(--t-md); }
.st-cell a:not(.btn) { color: var(--ink); text-underline-offset: 3px; }

.st-badges { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.st-badges li { display: flex; }
.st-badge { display: block; border-radius: 8px; line-height: 0; transition: transform .12s var(--ease); }
.st-badge:hover { transform: translateY(-1px); }
.st-badge img { display: block; height: 48px; width: auto; }
.st-badge-none { max-width: 30ch; }
.st p.st-fine { margin-top: 14px; font-size: var(--t-xs); color: var(--ink-3); max-width: 96ch; }

.st-keys { list-style: none; margin: 0 0 14px; padding: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.st-key { display: grid; grid-template-columns: minmax(180px, 16rem) minmax(0, 1fr); column-gap: 18px; row-gap: 2px; padding: 14px 20px; }
.st-key + .st-key { border-top: 1px solid var(--rule); }
.st-key-t { grid-row: 1 / span 2; font: 600 var(--t-md)/1.3 var(--font); color: var(--ink); }
.st-key-s { color: var(--ink-2); }
.st-key-s.is-ok { color: var(--ok); font-weight: 600; }
.st-key-d { color: var(--ink-3); font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.st .btn .ic { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .st-sheet { grid-template-columns: 1fr; }
  .st-key { grid-template-columns: 1fr; }
  .st-key-t { grid-row: auto; }
}
@media (max-width: 420px) {
  .st-q a { padding: 12px 16px 14px; }
  .st-cell { padding: 18px 16px 20px; }
  .st-badges { gap: 14px 16px; }
  .st-badge img { height: 44px; }
  .st-addr .me-keyval { font-size: var(--t-sm); padding: 8px; }
}

/* ── languages, name and icons (2026-11-19, DECISION.md) ──────────────────
   Five languages: Barlow has no Chinese, so zh-Hant reads in the system's Traditional Chinese face (the page's CSP
   allows fonts from this host only); capitals and wide tracking are a Latin habit, so Chinese labels drop them.
   The name is StorageDiag with "Hub" a step quieter. Icons come from one map (lib/HubIcons.php) and sit before the
   label they explain, never instead of it. */
:root:lang(zh-Hant) {
  --font: 'Barlow', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Heiti TC', ui-sans-serif, system-ui, sans-serif;
  --font-cond: 'Barlow Semi Condensed', 'PingFang TC', 'Noto Sans TC', 'Microsoft JhengHei', 'Heiti TC', ui-sans-serif, system-ui, sans-serif;
}
:lang(zh-Hant) .fld > span, :lang(zh-Hant) .legend b, :lang(zh-Hant) .role-tag, :lang(zh-Hant) .stamp,
:lang(zh-Hant) .tbl th, :lang(zh-Hant) .tbl td::before, :lang(zh-Hant) .block-h { letter-spacing: .02em; }
:lang(zh-Hant) h1, :lang(zh-Hant) h2, :lang(zh-Hant) h3 { letter-spacing: 0; }
.brand-name { color: var(--ink); }
.brand-sub { margin-left: -4px; font-weight: 500; color: var(--ink-3); }
.login-mark .brand-sub { margin-left: -6px; }

.btn .ic { width: 15px; height: 15px; margin-left: -2px; }
.btn-sm .ic { width: 14px; height: 14px; }
.btn-icon .ic { margin: 0; width: 18px; height: 18px; }
.menu-pop button { display: flex; align-items: center; gap: 10px; }
.menu-pop button .ic { width: 16px; height: 16px; color: var(--ink-3); }

/* The language switch: each language in its own name, the chosen one marked; a link with ?lang=, so it works
   without the script and the choice is kept by the server. */
.lang { display: flex; align-items: flex-start; gap: 8px; }
.lang > .ic { margin-top: 7px; color: var(--ink-3); }
.lang ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.lang a { display: inline-block; padding: 5px 8px; border-radius: 6px; font-size: var(--t-sm); color: var(--ink-2); text-decoration: none; }
.lang a:hover { background: var(--sheet-3); color: var(--ink); }
.lang a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 600; background: var(--sheet-3); box-shadow: inset 0 -2px 0 var(--accent); }
.menu-lang { padding: 2px 4px; max-width: 250px; }
.page-login .lang { justify-content: center; margin-top: 18px; }

.login-err, .login-note { display: flex; gap: 8px; align-items: flex-start; }
.login-err .ic, .login-note .ic { margin-top: 2px; }

/* Legends: the button's icon and name, then what it does. The column fits the longest name in every language. */
.legend p { grid-template-columns: 9.5em 1fr; }
.legend b { display: inline-flex; align-items: center; gap: 6px; }
.legend b .ic { width: 14px; height: 14px; color: var(--ink-3); }

/* Empty states: one line icon of the family above what is missing. */
.empty .empty-ic { display: block; width: 26px; height: 26px; margin: 0 0 10px; color: var(--ink-3); stroke-width: 1.4; }
.note .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 6px; color: var(--ink-3); }
.block-h .ic { width: 16px; height: 16px; vertical-align: -2px; margin-right: 6px; color: var(--ink-3); }

/* Keys and downloads: the same headings with icons as Start. */
.me-card h3, .me h2 { display: flex; align-items: center; gap: 8px; }
.me-card h3 .ic { width: 18px; height: 18px; color: var(--ink-3); }
.me h2 .ic { width: 18px; height: 18px; color: var(--ink-3); }

/* get.php's error page */
.get-fail { max-width: 560px; margin: 12vh auto 0; padding: 0 20px; }
.get-fail .get-ic { width: 32px; height: 32px; color: var(--accent-ink); margin-bottom: 8px; }
@media (max-width: 900px) { .legend p { grid-template-columns: 1fr; } }
/* Phone tables: a column name that wraps (German "Letzte Anmeldung", French "Dernière connexion") makes its row
   taller instead of running into the next one: the name floats in the cell's left padding and the cell holds it. */
@media (max-width: 900px) {
  .tbl td { display: flow-root; }
  .tbl td::before { position: static; float: left; width: 96px; margin: 2px 0 0 -104px; }
}
.st .block-h .ic { width: 20px; height: 20px; vertical-align: -3px; margin-right: 8px; }

/* Critique round 2026-11-19: wrapped action cells in long languages, quiet notices, the legend on phones, CJK links. */
.tbl td.act { white-space: normal; }
.tbl td.act > .btn { margin: 3px 0 3px 6px; }
.tbl td.act .btn-iso { margin-left: 14px; }
@media (min-width: 901px) { .tbl td.act { min-width: 0; } .tbl td.act .btn { white-space: nowrap; } }
.sr-title { overflow-wrap: break-word; word-break: normal; }
.me-note { background: var(--sheet-2); border: 1px solid var(--rule); color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.me-note::before { content: ''; flex: none; width: 16px; height: 16px; margin-top: 2px; background: var(--ink-3);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 11v5M12 8h.01'/%3E%3C/svg%3E") center / contain no-repeat; }
details.legend > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font: 600 var(--t-xs)/1.4 var(--font-cond); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
details.legend > summary::-webkit-details-marker { display: none; }
details.legend > summary .ic { width: 14px; height: 14px; }
details.legend[open] > summary { margin-bottom: 8px; }
@media (min-width: 901px) { details.legend:not(.help) > summary { display: none; } }
/* the help of Published and the Workbench: closed until asked, at every width; the labels get room for a word */
details.legend.help { margin: 0 0 16px; }
details.legend.help > summary { display: flex; }
details.legend.help p { grid-template-columns: minmax(120px, 180px) 1fr; }
.chip-off { background: transparent; border: 1px dashed var(--rule-strong); color: var(--ink-2); }
@media (max-width: 900px) { details.legend.help p { grid-template-columns: 1fr; } }
.legend b { align-self: start; }
@media (max-width: 900px) {
  .seg { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .block-row .src { flex-basis: 100%; line-height: 1.4; overflow-wrap: anywhere; }
}
:lang(zh-Hant) a { word-break: keep-all; }
/* Touch: language links on the design scale's radius and 32 px tall; on phones the small buttons and tabs too. */
.lang a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 9px; border-radius: var(--r-sm); }
@media (max-width: 900px) {
  .btn-sm { height: 32px; }
  .seg button { height: 32px; }
}
/* a country: Rtorrent 16's flag and the name (Installs, Rtorrent 16 installs; DECISION.md 2026-11-19) */
.geo { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; }
.geo .flag { width: 20px; height: 15px; flex: none; align-self: center; border-radius: 2px; box-shadow: 0 0 0 1px var(--rule); object-fit: cover; }
.geo .ic { width: 15px; height: 15px; color: var(--ink-3); }
.geo-note { margin-top: 10px; }

