/* gar-portal: the account in the style of the product's page (W2). Needs shared/tokens.css first.
   The light set of the tokens; the dark only for the entry pages' left part and the admin bar.
   No inline styles anywhere (CSP style-src 'self'): every look is a class here. */

:root {
  --danger: #b3261e;
  --danger-wash: #fdecea;
  --ok-ink: #0f6b4b;
  --card: #ffffff;
  --field-line: #cfd0ca;
  --side-w: 208px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  font-size: var(--fs-md);
  line-height: var(--lh-text);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01" on, "cv11" on;
}
img, svg { display: block; }
a { color: var(--accent-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(62, 230, 168, .32); }
code, pre, kbd { font-family: var(--mono); font-size: .92em; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--s-4); top: -60px; z-index: 20; padding: var(--s-2) var(--s-4);
  background: var(--ink); color: #fff; border-radius: var(--r-md); font-weight: 600; text-decoration: none;
}
.skip:focus { top: var(--s-4); }

h1 { font-size: 30px; line-height: 1.12; letter-spacing: -.028em; font-weight: 740; margin: 0 0 var(--s-6); text-wrap: balance; }
h2 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -.012em; font-weight: 680; margin: 0 0 var(--s-3); }
h3 { font-size: var(--fs-md); margin: 0 0 var(--s-2); }
p { margin: 0 0 var(--s-3); }
.small, .pow-status { font-size: var(--fs-sm); color: var(--ink-muted); }
.muted { color: var(--ink-muted); }
.lead-small { color: var(--ink-muted); font-size: var(--fs-sm); max-width: 720px; margin: calc(-1 * var(--s-3)) 0 var(--s-6); }
.kicker {
  font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: var(--track-caps); text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 var(--s-3);
}
.back { margin: calc(-1 * var(--s-3)) 0 var(--s-5); font-size: var(--fs-sm); }
.back a::before { content: "← "; }

/* ---------- the brand ---------- */
.brand {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit;
  font-weight: 700; font-size: var(--fs-lg); letter-spacing: -.015em;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }

/* ---------- messages ---------- */
.error, .notice {
  position: relative; border-radius: var(--r-md); padding: 11px 14px 11px 42px; font-size: var(--fs-sm); line-height: 1.45;
  margin: 0 0 var(--s-5);
}
.error { color: var(--danger); background: var(--danger-wash); }
.notice { color: var(--ok-ink); background: var(--accent-wash); }
.error::before, .notice::before {
  content: "!"; position: absolute; left: 13px; top: 11px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font: 700 12px/1 var(--sans); color: #fff; background: var(--danger);
}
.notice::before { content: "✓"; background: var(--accent-deep); font-size: 11px; }
noscript .error, .token-missing { margin-top: var(--s-3); }

/* ---------- forms ---------- */
form.stack, form.card { display: flex; flex-direction: column; align-items: stretch; }
label { font-size: var(--fs-sm); font-weight: 560; color: var(--ink); margin: var(--s-4) 0 6px; }
form.stack > label:first-of-type, form.card > label:first-of-type { margin-top: var(--s-1); }
input[type=text], input[type=email], input[type=password], select, textarea {
  font: inherit; font-size: var(--fs-md); color: var(--ink);
  min-height: 44px; padding: 9px 12px; border: 1px solid var(--field-line); border-radius: var(--r-md);
  background: #fff; width: 100%; max-width: 100%;
  transition: border-color .12s, box-shadow .12s;
}
select { width: auto; min-width: 180px; padding-right: 32px; }
input:hover, select:hover, textarea:hover { border-color: #a9aba4; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent-deep); box-shadow: 0 0 0 3px rgba(18, 128, 90, .18);
}
input:user-invalid { border-color: var(--danger); }

/* ---------- buttons ---------- */
button, .button {
  font: 600 var(--fs-sm)/1.2 var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; margin-top: var(--s-5); border: 1px solid var(--accent-deep); border-radius: var(--r-md);
  background: var(--accent-deep); color: #fff; text-decoration: none; cursor: pointer; align-self: flex-start;
  transition: background-color .12s, border-color .12s, color .12s;
}
button:hover, .button:hover { background: #0e6a4a; border-color: #0e6a4a; }
button:disabled { opacity: .5; cursor: wait; }
button.wide, .button.wide { align-self: stretch; }
a.button.wide { display: flex; }
button.quiet { background: #fff; color: var(--ink); border-color: var(--field-line); }
button.quiet:hover { border-color: var(--ink); background: #fff; }
button.danger { background: #fff; color: var(--danger); border-color: rgba(179, 38, 30, .55); }
button.danger:hover { background: var(--danger-wash); border-color: var(--danger); }
button.danger.filled { background: var(--danger); color: #fff; border-color: var(--danger); }
button.danger.filled:hover { background: #962019; }
button.link {
  background: none; border: 0; color: var(--accent-deep); padding: 0; margin: 0; min-height: 0;
  font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
button.link:hover { background: none; }
button.small-btn { min-height: 34px; padding: 0 12px; margin: 0; font-size: var(--fs-sm); }
form.inline { display: inline; }

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--paper-line); border-radius: var(--r-lg);
  padding: var(--s-6); margin: 0 0 var(--s-5);
}
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-3); }
.card-head h2 { margin: 0; }
.card-head .more { font-size: var(--fs-sm); white-space: nowrap; }
.card-head .more::after { content: " →"; }
.row-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }

.tag {
  display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill);
  font: 500 12px/1 var(--sans); color: var(--ink-muted); background: var(--paper-2); border: 1px solid var(--paper-line);
  white-space: nowrap;
}
.tag-ok { color: var(--ok-ink); background: var(--accent-wash); border-color: #c6eedd; }
.tag-warn { color: var(--warn-ink); background: var(--warn-bg); border-color: #f3e2b0; }
.tag-secret { color: #f3f4f6; background: var(--ink); border-color: var(--ink); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--s-2)); padding: 0 var(--s-2); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { text-align: left; padding: 10px 10px; border-bottom: 1px solid var(--paper-line); vertical-align: top; }
th:first-child, td:first-child { padding-left: 0; }
thead th {
  font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted);
  border-bottom: 2px solid var(--ink); white-space: nowrap;
}
td { overflow-wrap: break-word; }
table.keys td:nth-child(-n+3), table.keys td:nth-child(n+5):not(:last-child) { white-space: nowrap; }
table.keys td:first-child { white-space: normal; min-width: 8em; }
table.keys thead th { white-space: normal; vertical-align: bottom; }
table.keys td:nth-child(6), table.usage tr.day > td:nth-child(2) { font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
table.usage th:nth-child(2), table.usage tr.day > td:nth-child(2) { text-align: right; padding-right: 24px; }
table.usage tr.day > td { font-weight: 600; }
table.usage tr.day > td:first-child { white-space: nowrap; width: 5.5em; }
table.usage tr.day > td { vertical-align: top; }
table.usage tr.day > td:first-child { font-family: var(--mono); font-weight: 500; }
tr.gone td { color: var(--ink-muted); }
table.sessions td:nth-child(-n+3) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qr { image-rendering: pixelated; border: 1px solid var(--paper-line); border-radius: var(--r-sm); }
ul.codes { columns: 2; font-size: var(--fs-md); padding-left: 1.2em; }
ul.codes code { font-size: 1em; }

/* ---------- banners ---------- */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 10px var(--gutter);
  background: var(--warn-bg); color: var(--warn-ink); border-bottom: 1px solid #f0dca0; font-size: var(--fs-sm);
}
.banner button.link { color: var(--warn-ink); }
.banner.off { background: var(--danger-wash); color: var(--danger); border-bottom-color: #f3c1bc; }

/* ---------- the account layout ---------- */
body.account header.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: 64px; padding: 0 max(var(--gutter), calc((100% - var(--side-w) - 960px - var(--s-10)) / 2)); background: rgba(250, 250, 247, .94); border-bottom: 1px solid var(--paper-line);
  backdrop-filter: saturate(1.2) blur(8px);
}
.who { display: flex; align-items: center; gap: var(--s-4); min-width: 0; }
.who-email { font-size: var(--fs-sm); color: var(--ink-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shell {
  display: grid; grid-template-columns: var(--side-w) minmax(0, 960px); gap: 0 var(--s-10);
  max-width: calc(var(--side-w) + 960px + var(--s-10) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-10) var(--gutter) var(--s-16);
}
nav.side { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 96px; align-self: start; }
nav.side a {
  display: flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--r-md);
  color: var(--ink-muted); text-decoration: none; font-weight: 520; font-size: 15px;
}
nav.side a:hover { color: var(--ink); background: var(--paper-2); }
nav.side a[aria-current=page] { color: var(--accent-deep); background: var(--accent-wash); font-weight: 640; }
body.account main { min-width: 0; }
.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px;
  max-width: calc(var(--side-w) + 960px + var(--s-10) + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-6) var(--gutter) var(--s-10);
  border-top: 1px solid var(--paper-line); color: var(--ink-muted); font-size: 13px;
}

/* the overview: today's meter */
.today { padding-bottom: var(--s-5); }
.meter-line { font-size: var(--fs-lg); color: var(--ink-muted); margin-bottom: var(--s-3); }
.meter-line .big {
  font-size: 40px; line-height: 1; font-weight: 720; letter-spacing: -.03em; color: var(--ink);
  font-variant-numeric: tabular-nums; margin-right: 4px;
}
svg.meter { width: 100%; height: 6px; margin: 0 0 var(--s-4); }
.meter-track { fill: var(--paper-2); stroke: none; }
.meter-fill { fill: var(--accent-deep); }

/* first steps */
ol.steps { list-style: none; margin: var(--s-2) 0 0; padding: 0; counter-reset: step; }
ol.steps li {
  counter-increment: step; display: flex; align-items: center; gap: 14px; padding: 12px 0;
  border-top: 1px solid var(--paper-line);
}
ol.steps li:first-child { border-top: 0; }
ol.steps .mark {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid #c9cbc6; color: var(--ink-muted); font: 600 13px/1 var(--mono);
}
ol.steps .mark::before { content: counter(step); }
ol.steps li.done .mark { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
ol.steps li.done .mark::before { content: "✓"; font-family: var(--sans); }
ol.steps li.done .step-text { color: var(--ink-muted); }

/* the quick start's code */
.tabs { margin-top: var(--s-4); }
.tab-panel + .tab-panel { margin-top: var(--s-4); }
.tabbed .tab-panel + .tab-panel { margin-top: 0; }
.tab-name { font: 500 11px/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.tab-list { display: flex; gap: 4px; border-bottom: 1px solid var(--paper-line); margin-bottom: var(--s-3); overflow-x: auto; }
button.tab {
  margin: 0 0 -1px; min-height: 40px; padding: 0 14px; background: none; color: var(--ink-muted);
  border: 0; border-bottom: 2px solid transparent; border-radius: 0; font-weight: 560; align-self: auto;
}
button.tab:hover { background: none; color: var(--ink); }
button.tab[aria-selected=true] { color: var(--ink); border-bottom-color: var(--accent-deep); }
pre.code {
  margin: 0; background: var(--bg-2); color: #c9cfdb; border-radius: var(--r-md); padding: 16px 20px;
  font: 13px/1.7 var(--mono); overflow-x: auto; white-space: pre; tab-size: 4;
}
pre.code code { font-size: inherit; }
.tab-panel:focus-visible { outline-offset: 4px; }

/* short key rows */
ul.key-list { list-style: none; margin: 0; padding: 0; }
ul.key-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 4px 16px;
  padding: 12px 0; border-top: 1px solid var(--paper-line);
}
ul.key-list li:first-child { border-top: 0; }
ul.key-list .tag { justify-self: end; }
.key-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.key-name { color: var(--ink); text-decoration: none; }
a.key-name:hover { color: var(--accent-deep); text-decoration: underline; }
.key-prefix { font-family: var(--mono); font-size: 13px; color: var(--ink-muted); white-space: nowrap; }
.key-today { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); text-align: right; min-width: 104px; }
.key-today .unit { font-family: var(--sans); color: var(--ink-muted); font-size: 12px; }

/* products */
.product {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start;
  padding: var(--s-4) 0 0; border-top: 2px solid var(--ink);
}
.product-name { font-weight: 680; font-size: var(--fs-md); margin: 0 0 2px; }
.product .small { margin: 0; }
.product-links { grid-column: 1 / -1; display: flex; gap: var(--s-5); font-size: var(--fs-sm); margin: var(--s-2) 0 0; }

/* the keys page */
.wide-only { display: block; }
.narrow-only { display: none; }
.make { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); align-items: start; }
.make .card { margin: 0; }
.make .card > .small { min-height: 4.4em; }
h2 svg.lock { display: inline-block; vertical-align: -2px; margin-right: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
ul.key-cards { list-style: none; margin: 0; padding: 0; }
ul.key-cards li { padding: var(--s-4) 0; border-top: 1px solid var(--paper-line); }
ul.key-cards li:first-child { border-top: 0; padding-top: 0; }
.kc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
dl.kc { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 12px 0 0; font-size: var(--fs-sm); }
dl.kc div { min-width: 0; }
dl.kc dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
dl.kc dd { margin: 2px 0 0; word-break: break-word; }

/* one key, a new key */
.key-head .key-prefix { font-size: 15px; color: var(--ink); }
.danger-zone { border-color: #efc9c5; }
.danger-zone h2 { color: var(--danger); }
.newkey-card { border-color: #bfe8d6; box-shadow: 0 0 0 4px var(--accent-wash); }
.newkey-box {
  display: flex; align-items: stretch; gap: var(--s-3); margin: var(--s-2) 0 var(--s-3);
}
code.newkey {
  flex: 1; display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: var(--r-md);
  background: var(--bg-2); color: var(--accent); font: 500 16px/1.45 var(--mono); word-break: break-all; user-select: all;
}
.newkey-box button { margin: 0; align-self: stretch; min-height: 56px; }

/* the usage chart */
.chart-card .card-head { margin-bottom: var(--s-4); }
.legend { display: flex; gap: var(--s-4); margin: 0; font-size: 13px; color: var(--ink-muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 12px; height: 12px; border-radius: 3px; }
.lg-today::before { background: var(--accent-deep); }
.lg-limit::before { height: 0; border-top: 2px dashed var(--warn-ink); border-radius: 0; }
svg.chart { width: 100%; height: auto; overflow: visible; }
svg.chart .bar { fill: #c9ccc4; }
svg.chart .bar:hover { fill: #a9aca3; }
svg.chart .bar.today { fill: var(--accent-deep); }
svg.chart .bar.over { fill: var(--warn-ink); }
svg.chart .bar.zero { fill: #e2e2dc; }
svg.chart line.base { stroke: var(--ink); stroke-width: 1; }
svg.chart line.limit { stroke: var(--warn-ink); stroke-width: 1.5; stroke-dasharray: 6 5; }
svg.chart line.top { stroke: var(--paper-line); stroke-width: 1; }
svg.chart text { font: 500 11px var(--mono); fill: var(--ink-muted); }
svg.chart text.limit-text { fill: var(--warn-ink); }
.summary { display: flex; flex-wrap: wrap; gap: 2px 10px; margin: calc(-1 * var(--s-2)) 0 var(--s-5); font-size: var(--fs-sm); color: var(--ink-muted); }
.summary strong { color: var(--ink); font-weight: 680; font-variant-numeric: tabular-nums; }
.summary .sep { color: #b7b9b2; }
.narrow-only svg.chart { min-height: 140px; }
details.lines summary {
  cursor: pointer; width: max-content; font-size: 13px; color: var(--accent-deep); font-weight: 560;
  list-style: none; display: inline-flex; align-items: center; gap: 6px; border-radius: 4px;
}
details.lines summary::-webkit-details-marker { display: none; }
details.lines summary::before { content: "▸"; font-size: 11px; }
details.lines[open] summary::before { transform: rotate(90deg); }
table.lines { margin: 6px 0 2px; font-size: 13px; }
table.lines td { border-bottom: 0; padding: 3px 12px 3px 0; color: var(--ink-muted); font-weight: 400; background: none; }
table.lines td:first-child { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; color: var(--ink); width: 1%; padding-left: 0; }

/* the security page */
details.about { padding: 0; }
details.about summary {
  cursor: pointer; padding: var(--s-5) var(--s-6); font-weight: 680; font-size: var(--fs-lg); list-style: none;
  display: flex; justify-content: space-between; align-items: center; border-radius: var(--r-lg);
}
details.about summary::-webkit-details-marker { display: none; }
details.about summary::after { content: "+"; font: 400 22px/1 var(--sans); color: var(--ink-muted); }
details.about[open] summary::after { content: "−"; }
details.about form { padding: 0 var(--s-6) var(--s-6); }
details.about form > label:first-of-type { margin-top: var(--s-2); }

/* ---------- the entry layout (logged out) ---------- */
body.entry { background: var(--paper); }
.entry-grid { display: grid; grid-template-columns: minmax(380px, 46%) 1fr; min-height: 100vh; }
.side-dark {
  position: relative; overflow: hidden; isolation: isolate; background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; padding: 28px var(--side-pad) 40px;
}
/* the dark side's inner padding: one fixed value on every wide screen (not a share of the width) */
.entry-grid { --side-pad: 56px; }
@media (max-width: 1100px) { .entry-grid { --side-pad: 40px; } }
.side-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 45% at 40% 72%, rgba(124, 156, 255, .10), transparent 70%),
              radial-gradient(40% 30% at 20% 30%, rgba(62, 230, 168, .05), transparent 70%);
}
.side-dark header.top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.entry-nav { display: flex; gap: var(--s-5); font-size: var(--fs-sm); }
.entry-nav a { color: var(--muted); text-decoration: none; }
.entry-nav a:hover { color: var(--text); text-decoration: underline; }
.side-dark :focus-visible { outline-color: var(--accent); }
.pitch { position: relative; z-index: 2; margin-top: clamp(48px, 12vh, 140px); max-width: 520px; }
.eyebrow { font: 500 var(--fs-xs)/1.4 var(--mono); letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--accent); margin: 0 0 var(--s-5); }
.pitch-head { font-size: clamp(32px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -.035em; font-weight: 760; margin: 0 0 var(--s-8); text-wrap: balance; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: var(--fs-md); }
.points li { display: flex; align-items: center; gap: 12px; }
.points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(62, 230, 168, .6); }
.map-still {
  position: absolute; z-index: -1; left: -6%; bottom: -4%; width: 118%; height: auto; max-width: none;
  pointer-events: none; user-select: none;
}
body.entry main { display: flex; align-items: center; justify-content: center; padding: var(--s-12) var(--gutter); }
.entry-card { width: 100%; max-width: 420px; }
.entry-card h1 { font-size: 32px; margin-bottom: var(--s-5); }
.entry-card .card { background: none; border: 0; padding: 0; border-radius: 0; margin: 0 0 var(--s-5); }
.entry-card .intro { margin: calc(-1 * var(--s-2)) 0 var(--s-5); }
.links { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: var(--fs-sm); color: var(--ink-muted); }
.pow { margin-top: var(--s-4); }
.pow-status { margin: 0; display: flex; align-items: center; gap: 8px; }
.pow-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-deep); opacity: .7; }

/* ---------- the admin program (A42): the account's shell, a dark bar, a wider column ---------- */
body.admin { --admin-w: 1160px; }
body.admin header.top {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  height: 64px; padding: 0 max(var(--gutter), calc((100% - var(--side-w) - var(--admin-w) - var(--s-10)) / 2));
  background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line);
}
body.admin header.top :focus-visible { outline-color: var(--accent); }
body.admin .tag-role { color: var(--muted); background: transparent; border-color: var(--line); }
body.admin .shell {
  grid-template-columns: var(--side-w) minmax(0, var(--admin-w));
  max-width: calc(var(--side-w) + var(--admin-w) + var(--s-10) + 2 * var(--gutter));
}
body.admin .foot { max-width: calc(var(--side-w) + var(--admin-w) + var(--s-10) + 2 * var(--gutter)); }
body.admin main { min-width: 0; }
body.admin h1 { font-size: 26px; }
body.admin .card form { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
body.admin label { margin-top: var(--s-2); }
body.admin button { margin-top: var(--s-3); }
body.admin header.top button { margin: 0; }
/* the tables: the numbers right and in the mono font, the times and the machine ids on one line, the states as tags */
body.admin table.num td.n, body.admin table.num th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.admin td.t { white-space: nowrap; font-variant-numeric: tabular-nums; }
body.admin td.v { white-space: nowrap; }
body.admin code.id { white-space: nowrap; }
body.admin td .tag + .tag, body.admin td .chip + .chip { margin-left: 6px; }
/* the fields' widths: a 6-digit code, a number, a text of a line */
body.admin input.f-code { width: 8.5em; letter-spacing: .12em; font-family: var(--mono); }
body.admin input.f-num { width: 12em; }
body.admin input.f-mid, body.admin select.f-mid { width: 100%; max-width: 28rem; }
body.admin textarea { min-height: 0; }
/* the login, 2FA and invite pages: one card on the dark background */
body.admin-entry { min-height: 100vh; display: grid; place-items: center; background: var(--bg); padding: var(--s-8) var(--gutter); }
body.admin-entry main { width: 100%; max-width: 420px; }
body.admin-entry .entry-card { max-width: 420px; margin: 0; padding: var(--s-8); }
body.admin-entry .entry-card .brand { margin-bottom: var(--s-6); color: var(--ink); }
body.admin-entry form.card, body.admin-entry .entry-card section.card { border: 0; padding: 0; margin: 0; background: none; }
p.pager { display: flex; gap: 1.5rem; }
/* the incidents of the status page (W4b): an open one's colour is its level */
.tag-down { color: var(--danger); background: var(--danger-wash); border-color: #f4c7c3; }
section.incident { border-left: 4px solid #c48a00; }
section.incident-down { border-left-color: var(--danger); }
ol.incident-texts { list-style: none; margin: var(--s-3) 0 var(--s-4); padding: 0; }
ol.incident-texts li { padding: var(--s-2) 0; border-top: 1px solid var(--paper-line); }
ol.incident-texts p { margin: 0; }
p.incident-text { white-space: pre-line; overflow-wrap: anywhere; }
details.incident-closed { border-top: 1px solid var(--paper-line); padding: var(--s-2) 0; }
details.incident-closed summary { cursor: pointer; font-weight: 600; }
body.admin form.inc-close { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--paper-line); }
/* the audit log: the filters as four columns and the button, labels above their fields; the details as a line
   of changes, the raw JSON in a closed details */
body.admin form.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: 4px var(--s-4); align-items: end; }
body.admin form.filters label { grid-row: 1; margin: 0; }
body.admin form.filters input, body.admin form.filters select { grid-row: 2; width: 100%; min-width: 0; max-width: none; }
body.admin form.filters button { grid-row: 2; margin: 0; }
@media (max-width: 1200px) {
  body.admin form.filters { grid-template-columns: 1fr; }
  body.admin form.filters label, body.admin form.filters input, body.admin form.filters select, body.admin form.filters button { grid-row: auto; }
  body.admin form.filters label { margin-top: var(--s-2); }
  body.admin form.filters label:first-of-type { margin-top: 0; }
  body.admin form.filters button { margin-top: var(--s-3); }
}
body.admin td.d { min-width: 16rem; }
body.admin td.actor { white-space: nowrap; }
body.admin span.changes { overflow-wrap: anywhere; }
body.admin details.raw summary { cursor: pointer; font-size: 13px; color: var(--accent-deep); }
body.admin details.raw code.details { display: block; margin-top: 4px; }
/* a narrow audit table (the customer page's column, a phone): each row as lines, the details under the rest */
body.admin div.audit-wrap { container-type: inline-size; }
@container (max-width: 900px) {
  body.admin table.audit, body.admin table.audit tbody { display: block; }
  body.admin table.audit thead {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  body.admin table.audit tr { display: flex; flex-wrap: wrap; gap: 2px var(--s-4); padding: 10px 0; border-bottom: 1px solid var(--paper-line); }
  body.admin table.audit td { padding: 0; border: 0; }
  body.admin table.audit td:empty { display: none; }
  body.admin table.audit td.d { flex-basis: 100%; min-width: 0; }
}
div.forms { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
div.forms form { display: flex; flex-direction: column; gap: 0.3rem; }
code.details { font-size: 0.8rem; word-break: break-all; }


/* ---------- the ideas board (W5) ---------- */
/* the page without a session: the account's top bar with the log-in links, one centred column */
.pub-nav { display: flex; align-items: center; gap: var(--s-5); font-size: var(--fs-sm); }
.pub-nav a:not(.button) { color: var(--ink-muted); text-decoration: none; font-weight: 560; }
.pub-nav a:not(.button):hover { color: var(--ink); text-decoration: underline; }
.pub-nav .button { margin: 0; min-height: 36px; padding: 0 14px; }
body.public header.top { padding: 0 max(var(--gutter), calc((100% - 960px) / 2)); }
.public-main { max-width: calc(960px + 2 * var(--gutter)); margin: 0 auto; padding: var(--s-10) var(--gutter) var(--s-16); }
body.public .foot { max-width: calc(960px + 2 * var(--gutter)); }

.ideas-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4) var(--s-8); flex-wrap: wrap;
  margin: calc(-1 * var(--s-3)) 0 var(--s-6);
}
.ideas-lead { margin: 0; max-width: 560px; text-wrap: pretty; color: var(--ink-muted); font-size: var(--fs-lg); line-height: 1.45; }
.ideas-actions { display: flex; align-items: center; gap: var(--s-5); }
.ideas-actions .button { margin: 0; }
.quiet-link { font-size: var(--fs-sm); font-weight: 600; }
.mine-actions { margin: 0 0 var(--s-5); }

/* how it works: three steps in one quiet strip */
ol.how {
  list-style: none; margin: 0 0 var(--s-6); padding: 0; counter-reset: how;
  display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--paper-line); border-radius: var(--r-lg);
  background: var(--paper-2); overflow: hidden;
}
ol.how li {
  counter-increment: how; display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: baseline;
  padding: 14px 18px; font-size: var(--fs-sm); color: var(--ink-muted);
}
ol.how li + li { border-left: 1px solid var(--paper-line); }
ol.how li::before { content: counter(how, decimal-leading-zero); grid-row: 1 / 3; font: 600 13px/1.6 var(--mono); color: var(--accent-deep); }
ol.how strong { color: var(--ink); font-weight: 650; }

/* the tabs */
.idea-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--paper-line); margin: 0 0 var(--s-4); overflow-x: auto; }
.idea-tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-bottom: -1px; white-space: nowrap;
  color: var(--ink-muted); text-decoration: none; font-weight: 560; font-size: 15px; border-bottom: 2px solid transparent;
}
.idea-tabs a:hover { color: var(--ink); }
.idea-tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--accent-deep); font-weight: 640; }

/* the list: one card, a row per idea */
ol.idea-list {
  list-style: none; margin: 0 0 var(--s-5); padding: 0; background: var(--card);
  border: 1px solid var(--paper-line); border-radius: var(--r-lg);
}
.idea-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 0 var(--s-5); align-items: center;
  padding: 16px var(--s-6) 16px var(--s-5);
}
.idea-row + .idea-row { border-top: 1px solid var(--paper-line); }
.idea-row:target { background: var(--accent-wash); }
.idea-row:first-child { border-radius: var(--r-lg) var(--r-lg) 0 0; }
.idea-row:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.idea-title {
  display: block; color: var(--ink); text-decoration: none; font-weight: 640; font-size: 17px; line-height: 1.35;
  letter-spacing: -.01em; margin: 0 0 6px; overflow-wrap: anywhere;
}
a.idea-title:hover { color: var(--accent-deep); text-decoration: underline; }
.idea-no { font: 500 13px/1 var(--mono); color: var(--ink-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.idea-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-muted); }
.meta-product::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin-right: 14px; opacity: .6; }
.meta-reply { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-deep); font-weight: 560; }
.meta-reply svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }

/* the vote: a tall counter, a form button (no script needed) */
.vote-form { margin: 0; }
.vote {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  width: 58px; min-height: 62px; margin: 0; padding: 6px 0 8px; border: 1px solid var(--field-line); border-radius: 12px;
  background: #fff; color: var(--ink); text-decoration: none; font: inherit; cursor: pointer;
  transition: border-color .12s, background-color .12s, color .12s, box-shadow .12s;
}
.vote:hover { border-color: var(--accent-deep); background: #fff; color: var(--accent-deep); box-shadow: 0 0 0 3px var(--accent-wash); }
.vote-arrow { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.vote:hover .vote-arrow { transform: translateY(-2px); }
.vote-count { font: 650 15px/1.2 var(--mono); font-variant-numeric: tabular-nums; }
.vote.voted { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.vote.voted:hover { background: #0e6a4a; border-color: #0e6a4a; color: #fff; box-shadow: none; }
.vote.closed { cursor: default; background: var(--paper-2); border-color: var(--paper-line); color: var(--ink-muted); }
.vote.closed .vote-arrow { opacity: .45; }

/* the state chips: a dot of the state's colour */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px 0 8px; border-radius: var(--r-pill);
  font: 560 12px/1 var(--sans); color: var(--ink); background: var(--paper-2); border: 1px solid var(--paper-line); white-space: nowrap;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #8d9199; }
.chip-planned { background: #eef2ff; border-color: #d7defb; }
.chip-planned::before { background: #4c63d2; }
.chip-doing { background: var(--warn-bg); border-color: #f3e2b0; color: var(--warn-ink); }
.chip-doing::before { background: #d39b10; }
.chip-done { background: var(--accent-wash); border-color: #c6eedd; color: var(--ok-ink); }
.chip-done::before { background: var(--accent-deep); }
.chip-declined, .chip-rejected { color: var(--ink-muted); }
.chip-declined::before, .chip-rejected::before { background: var(--danger); opacity: .7; }
.chip-waiting { background: #fff; border-style: dashed; border-color: #c9cbc6; }
.chip-waiting::before { background: transparent; border: 1.5px solid #8d9199; width: 5px; height: 5px; }
.chip-duplicate { color: var(--ink-muted); }
.chip-hidden { color: var(--danger); background: var(--danger-wash); border-color: #f3c1bc; }
.chip-hidden::before { background: var(--danger); }

.card.empty { text-align: center; padding: var(--s-10) var(--s-6); }
.empty-title { font-weight: 650; font-size: var(--fs-lg); margin-bottom: 4px; }

/* one idea */
.idea-card { padding: var(--s-6) var(--s-8) var(--s-8); }
.idea-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--s-5); align-items: center; margin-bottom: var(--s-5); }
.idea-byline { margin: 0 0 8px; font-size: 13px; color: var(--ink-muted); }
.idea-byline .no { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.idea-body { max-width: 68ch; font-size: 17px; line-height: 1.6; overflow-wrap: anywhere; }
.idea-body p { margin: 0 0 var(--s-4); }
.idea-body p:last-child { margin-bottom: 0; }
.idea-note {
  margin: var(--s-6) 0 0; padding: 12px 16px; border-radius: var(--r-md); background: var(--paper-2);
  font-size: var(--fs-sm); color: var(--ink-muted);
}
.idea-note p { margin: 0; }
.idea-note p + p { margin-top: 8px; }
.idea-note.reason { background: var(--danger-wash); color: var(--danger); }
.idea-note.reason strong { color: var(--danger); }
.card.reply { border-left: 3px solid var(--accent-deep); padding-left: calc(var(--s-6) + 2px); }
.card.reply p { max-width: 68ch; }
.changelog-link { font-size: var(--fs-sm); font-weight: 600; }
.changelog-link a::after { content: " →"; }
.idea-login { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: var(--fs-sm); color: var(--ink-muted); }

/* the new idea's form */
.idea-form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-5); align-items: start; }
.idea-form-grid .card { margin: 0; }
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--ink-muted); }
.check { display: flex; align-items: center; gap: 10px; margin: var(--s-5) 0 0; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent-deep); flex: none; }
.check label { margin: 0; font-weight: 560; }
.moderation {
  display: flex; align-items: center; gap: 10px; margin: var(--s-5) 0 0; padding: 10px 14px; border-radius: var(--r-md);
  background: var(--accent-wash); color: var(--ok-ink); font-size: var(--fs-sm);
}
.moderation svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
.tips h2 { font-size: var(--fs-md); }
.tips ul { margin: 0 0 var(--s-4); padding-left: 1.1em; font-size: var(--fs-sm); color: var(--ink-muted); display: grid; gap: 8px; }
.idea-edit { max-width: 640px; }

/* the account's own ideas */
ul.mine-list { list-style: none; margin: 0; padding: 0; }
.mine-item { padding: var(--s-5) var(--s-6); }
.mine-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-4); }
.mine-line { margin: 8px 0 0; }
.mine-tools { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.mine-tools .button, .mine-tools button { margin: 0; }
a.button.quiet-btn { min-height: 34px; padding: 0 12px; background: #fff; color: var(--ink); border-color: var(--field-line); }
a.button.quiet-btn:hover { border-color: var(--ink); background: #fff; }
.reason-line { margin: var(--s-3) 0 0; font-size: var(--fs-sm); color: var(--danger); }
#mail { scroll-margin-top: 96px; }

/* the admin program's plans (W6): the numbers right-aligned in the mono figures */
table.plans td:nth-child(n+2), table.plans th:nth-child(n+2) { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.plans td:nth-child(n+2) { font-family: var(--mono); }
/* the admin program's queue */
.queue-item { border-top: 1px solid var(--paper-line); padding: var(--s-4) 0; }
.queue-item:first-of-type { border-top: 0; }
.queue-meta a { margin-left: .3em; }
.queue-head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 2px; }
.queue-text { margin: var(--s-3) 0; padding: 12px 16px; background: var(--paper-2); border-radius: var(--r-md); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.queue-text p:last-child { margin-bottom: 0; }
form.filter { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: var(--s-4); }
body.admin .card form.filter { flex-direction: row; align-items: flex-end; }
body.admin form.filter label { margin: 0; align-self: center; }
body.admin form.filter button { margin: 0; }
body.admin form.cell-form { flex-direction: row; align-items: center; gap: 6px; margin: 0; }
body.admin form.cell-form button { margin: 0; }
body.admin form.cell-form input { min-height: 34px; padding-top: 4px; padding-bottom: 4px; }
body.admin .table-wrap { position: relative; }
body.admin-entry code#secret { overflow-wrap: anywhere; }
body.admin .check label { margin: 0; }
body.admin dl.tiles { margin: 0; }
body.admin .tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-4); }
body.admin .tile { display: flex; flex-direction: column-reverse; gap: 4px; padding: var(--s-4); border: 1px solid var(--paper-line); border-radius: var(--r-md); background: var(--paper); }
body.admin .tile dt { font-weight: 400; }
body.admin .tile dd { margin: 0; }
body.admin .tile .big { font-size: 32px; line-height: 1; font-weight: 720; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
/* the customers: the search on one line; one customer in two columns (the facts, keys, chart and audit; the forms) */
body.admin form.search .row-line { align-items: flex-end; }
body.admin form.search button { margin: 0; }
body.admin .cust-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s-5); align-items: start; }
body.admin .cust-side .card, body.admin .cust-main .card { margin-bottom: var(--s-5); }
body.admin dl.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
body.admin .key-forms { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: var(--s-3) var(--s-5); align-items: end; margin-top: var(--s-3); }
body.admin .key-forms form { gap: 4px; }
body.admin ul.key-cards li.gone { color: var(--ink-muted); }
body.admin .danger-zone h3 { color: var(--danger); font-size: var(--fs-md); margin-top: var(--s-4); }
body.admin .danger-zone hr { border: 0; border-top: 1px solid var(--paper-line); margin: var(--s-5) 0 0; }
/* the owner's remove forms: the machine, then its code field and button in one row */
body.admin .rm-line { padding: var(--s-3) 0; border-top: 1px solid var(--paper-line); justify-content: space-between; }
body.admin .rm-line form { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: var(--s-3); }
body.admin .rm-line label { margin: 0; align-self: center; }
body.admin .rm-line label, body.admin .rm-line button { white-space: nowrap; }
body.admin .rm-line button { margin: 0; }
body.admin .rm-line div.forms { gap: var(--s-4) var(--s-6); }
@media (max-width: 820px) {
  body.admin .rm-line div.forms { flex-direction: column; align-items: flex-start; }
  body.admin .rm-line div.forms form + form { border-top: 1px solid var(--paper-line); padding-top: var(--s-4); width: 100%; }
}
/* the machines table: the headers may wrap, so the ten columns fit their card */
body.admin table.machines thead th { white-space: normal; }
body.admin table.machines th, body.admin table.machines td { padding-left: 6px; padding-right: 6px; }
body.admin table.machines th:first-child, body.admin table.machines td:first-child { padding-left: 0; }
@media (max-width: 1200px) { body.admin .cust-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) { body.admin dl.facts { grid-template-columns: 1fr 1fr; } }
/* the key forms' labels end on one line where the forms stand side by side */
@media (min-width: 821px) { body.admin .key-forms label { min-height: 2.6em; display: flex; align-items: flex-end; } }
/* the review forms: the publish button and the reject reason side by side, the reason wide */
@media (min-width: 821px) {
  body.admin .key-forms.review-forms { grid-template-columns: max-content minmax(0, 30rem); }
  body.admin .key-forms.review-forms label { min-height: 0; }
}

/* ---------- narrow screens ---------- */
@media (max-width: 960px) {
  .make { grid-template-columns: 1fr; }
  .make .card > .small { min-height: 0; }
  .idea-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  :root { --gutter: 20px; }
  .entry-grid { grid-template-columns: 1fr; min-height: 0; }
  .side-dark { height: 72px; padding: 0 var(--gutter); justify-content: center; }
  .pitch, .map-still { display: none; }
  body.entry main { align-items: flex-start; padding: var(--s-8) var(--gutter) var(--s-12); }
  .entry-card h1 { font-size: 28px; }

  body.account header.top { height: 56px; }
  .who-email { display: none; }
  .shell { display: block; padding: 0 0 var(--s-12); }
  nav.side {
    position: sticky; top: 56px; z-index: 4; flex-direction: row; gap: 0; overflow-x: auto;
    background: var(--paper); border-bottom: 1px solid var(--paper-line); padding: 0 var(--s-2); margin-bottom: var(--s-6);
  }
  nav.side a {
    flex: 1 0 auto; justify-content: center; min-height: 48px; padding: 0 8px; border-radius: 0; font-size: 14px;
    border-bottom: 2px solid transparent; margin-bottom: -1px;
  }
  nav.side a[aria-current=page] { background: none; border-bottom-color: var(--accent-deep); }
  body.account main { padding: 0 var(--gutter); }
  body.admin header.top { height: 56px; }
  body.admin .tiles { grid-template-columns: 1fr; gap: var(--s-2); }
  body.admin .tile { flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 8px; }
  body.admin .tile .big { font-size: 26px; }
  body.admin:not(.admin-entry) main { padding: 0 var(--gutter); }
  body.admin-entry .entry-card { padding: var(--s-6); }
  .banner { padding: 10px var(--gutter); }
  h1 { font-size: 26px; margin-bottom: var(--s-5); }
  .card { padding: var(--s-5); border-radius: 12px; }
  details.about summary { padding: var(--s-4) var(--s-5); }
  details.about form { padding: 0 var(--s-5) var(--s-5); }
  .wide-only { display: none; }
  table.usage { font-size: 13px; }
  table.usage th, table.usage tr.day > td { padding: 8px 6px; }
  table.usage th:nth-child(2), table.usage tr.day > td:nth-child(2) { padding-right: 10px; }
  table.usage tr.day > td:first-child { width: auto; }
  svg.chart text { font-size: 12px; }
  .summary { font-size: 14px; flex-direction: column; gap: 0; }
  .summary .sep { display: none; }
  .chart-card .card-head { flex-wrap: wrap; }
  table.sessions thead { display: none; }
  table.sessions tr { display: grid; grid-template-columns: auto 1fr; gap: 2px 16px; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
  table.sessions td { display: block; border: 0; padding: 0; }
  table.sessions td:nth-child(2) { color: var(--ink-muted); }
  table.sessions td:nth-child(n+3) { grid-column: 1 / -1; font-size: 13px; color: var(--ink-muted); }
  .narrow-only { display: block; }
  ul.key-list li { grid-template-columns: minmax(0, 1fr) auto; }
  ul.key-list .key-prefix { grid-column: 1; }
  ul.key-list .key-today { grid-column: 2; grid-row: 2; }
  .meter-line .big { font-size: 34px; }
  .newkey-box { flex-direction: column; }
  .newkey-box button { min-height: 44px; align-self: flex-start; }
  pre.code { font-size: 12px; padding: 14px 16px; }
  .foot { padding: var(--s-5) var(--gutter) var(--s-8); }
  body.public main.public-main { padding: var(--s-6) var(--gutter) var(--s-12); }
  .idea-tabs a { padding: 0 10px; font-size: 14px; }
  .pub-nav { gap: var(--s-4); }
  .ideas-head { align-items: stretch; flex-direction: column; margin-top: 0; }
  .ideas-lead { font-size: var(--fs-md); }
  .ideas-actions { justify-content: space-between; }
  ol.how { grid-template-columns: 1fr; }
  ol.how li + li { border-left: 0; border-top: 1px solid var(--paper-line); }
  ol.how li { padding: 10px 14px; }
  .idea-tabs { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 0 calc(var(--gutter) - 14px); }
  .idea-row { grid-template-columns: auto minmax(0, 1fr); gap: 0 var(--s-4); padding: 14px 16px; align-items: start; }
  .idea-row .idea-no { display: none; }
  .vote { width: 50px; min-height: 56px; }
  .idea-title { font-size: 16px; }
  .idea-card { padding: var(--s-5); }
  .idea-top { align-items: start; gap: var(--s-4); }
  .idea-body { font-size: 16px; }
  .mine-item { padding: var(--s-4) var(--s-5); }
}
