/* GlueScope, tactical display. A dark command console: cyan instrument lines, amber kept for the one priority
   objective, squared panels with corner brackets, and a coloured stripe on anything that carries a verdict.
   Reading text stays in a high-legibility face; only labels and headings wear the uniform. */
:root {
  --paper: #060c12; --surface: #0c1620; --sunk: #14222f; --raise: #101d29;
  --ink: #e2eef5; --ink-2: #93abba; --ink-3: #647d8d; --line: #1f3a4d; --line-2: #2c5169;
  --hud: #4fd8ff; --hud-soft: rgba(79, 216, 255, 0.1); --hud-dim: #2a8fb0;
  --glue: #ffb224; --glue-soft: rgba(255, 178, 36, 0.12); --glue-deep: #ffc65c;
  --worked: #3ddc84; --worked-soft: rgba(61, 220, 132, 0.12); --didnt: #ff5f4f; --didnt-soft: rgba(255, 95, 79, 0.13);
  --mixed: #8fa3b1; --mixed-soft: rgba(143, 163, 177, 0.13); --idea: #6aa8ff; --idea-soft: rgba(106, 168, 255, 0.13);
  --display: "Chakra Petch", "Arial Narrow", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 3px; --r-s: 2px; --rail: 268px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); font: 400 16px/1.55 var(--body);
  background:
    radial-gradient(1100px 520px at 62% -140px, rgba(79, 216, 255, 0.09), transparent 70%),
    linear-gradient(rgba(79, 216, 255, 0.028) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(79, 216, 255, 0.028) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  background-attachment: fixed; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.14; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem); letter-spacing: 0.01em; text-transform: uppercase; }
h2 { font-size: 1.25rem; letter-spacing: 0.06em; text-transform: uppercase; }
h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.015em; }
p { margin: 0 0 0.75em; max-width: 68ch; }
a { color: inherit; text-decoration-color: var(--hud-dim); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--hud); text-decoration-color: var(--hud); }
:focus-visible { outline: 2px solid var(--hud); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--hud); color: #04121a; }
.muted { color: var(--ink-2); } .small { font-size: 0.875rem; } .nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- frame */
.frame { display: grid; grid-template-columns: var(--rail) minmax(0, 1fr); min-height: 100vh; }
.rail { background: rgba(4, 9, 14, 0.94); border-right: 1px solid var(--line); padding: 20px 14px 22px; position: sticky; top: 0; height: 100vh;
  overflow-y: auto; display: flex; flex-direction: column; gap: 22px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 2px 8px; text-decoration: none; color: var(--ink);
  font: 700 1.3125rem/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand svg { width: 30px; height: 30px; flex: none; filter: drop-shadow(0 0 6px rgba(79, 216, 255, 0.55)); }
.rail nav { display: flex; flex-direction: column; gap: 2px; }
.rail .label { font: 500 0.6875rem/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--hud-dim); padding: 0 10px 9px;
  display: flex; align-items: center; gap: 8px; }
.rail .label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.rail a.item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-2); }
.rail a.item:hover { background: var(--hud-soft); color: var(--ink); }
.rail a.item.on { background: var(--hud-soft); color: #fff; border-left-color: var(--hud); font-weight: 600; }
.dot { width: 9px; height: 9px; flex: none; background: var(--c, var(--hud)); box-shadow: 0 0 8px var(--c, var(--hud)); transform: rotate(45deg); }
.rail .sub { margin: 2px 0 8px 14px; padding-left: 12px; border-left: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 1px; }
.rail .sub a { padding: 6px 10px; text-decoration: none; color: var(--ink-2); font-size: 0.9375rem; border-left: 2px solid transparent; }
.rail .sub a:hover { color: var(--ink); background: var(--hud-soft); }
.rail .sub a.on { color: var(--hud); background: var(--hud-soft); border-left-color: var(--hud); font-weight: 600; }
.rail .who { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 0; border-top: 1px solid var(--line); font-size: 0.875rem; color: var(--ink-2); }
.rail .who img { width: 30px; height: 30px; border-radius: 2px; border: 1px solid var(--line-2); }
.rail .who form { margin-left: auto; }
.rail .who button { background: none; border: 0; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; padding: 4px; }
.rail .who button:hover { color: var(--hud); }
.main { padding: 20px clamp(16px, 4vw, 48px) 80px; min-width: 0; }
.topbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-bottom: 28px;
  padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.status { display: flex; align-items: center; gap: 10px; font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.status .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--worked); box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6); animation: pulse 2.4s ease-out infinite; }
.status [data-clock] { color: var(--hud); }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.lookup { display: flex; width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line-2); padding: 3px 3px 3px 12px; align-items: center; gap: 8px; }
.lookup::before { content: ">"; font: 600 0.9375rem var(--mono); color: var(--hud); }
.lookup:focus-within { border-color: var(--hud); box-shadow: 0 0 0 3px var(--hud-soft); }
.lookup input[type=text] { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: inherit; outline: none; padding: 6px 0; border-radius: 0; box-shadow: none; }
.menu-toggle { display: none; }

/* ---------- pieces */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 0.875rem/1 var(--display); letter-spacing: 0.08em;
  text-transform: uppercase; padding: 11px 16px; border-radius: var(--r-s); border: 1px solid var(--hud); background: var(--hud); color: #04121a;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: #8be6ff; border-color: #8be6ff; color: #04121a; box-shadow: 0 0 18px rgba(79, 216, 255, 0.35); }
.btn.quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.quiet:hover { border-color: var(--hud); color: var(--hud); background: var(--hud-soft); box-shadow: none; }
.btn.glue { background: var(--glue); border-color: var(--glue); color: #1a1100; }
.btn.glue:hover { background: #ffc65c; border-color: #ffc65c; box-shadow: 0 0 18px rgba(255, 178, 36, 0.35); }
.btn.small { padding: 8px 11px; font-size: 0.8125rem; }
.btn.danger { background: transparent; border-color: var(--didnt); color: var(--didnt); }
.btn.danger:hover { background: var(--didnt-soft); box-shadow: none; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--ink-3); text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: var(--didnt); }
form.inline { display: inline; }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 26px; }
.head p { margin: 10px 0 0; color: var(--ink-2); }
.crumb { font: 500 0.75rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crumb a { text-decoration: none; } .crumb a:hover { text-decoration: underline; }
section { margin-top: 40px; }
section > h2, section > .spread > h2 { display: flex; align-items: center; gap: 10px; }
section > h2::before, section > .spread > h2::before { content: ""; width: 4px; height: 1.05em; background: var(--hud); box-shadow: 0 0 10px var(--hud); flex: none; }
section > h2 { margin-bottom: 8px; }
section > h2 + p { color: var(--ink-2); margin-bottom: 16px; }
.panel { position: relative; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
/* corner brackets: the instrument-panel look */
.panel::before, .panel::after { content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none; border: 0 solid var(--hud); }
.panel::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.panel::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.panel + .panel { margin-top: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px; align-items: start; }
.cols.wide-left { grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr); }
.cols > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; }
.flash { padding: 12px 16px; border-radius: var(--r-s); margin-bottom: 20px; background: var(--worked-soft); border: 1px solid rgba(61, 220, 132, 0.35); border-left: 4px solid var(--worked); }
.flash.err { background: var(--didnt-soft); border-color: rgba(255, 95, 79, 0.4); border-left-color: var(--didnt); }
.empty { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 26px; color: var(--ink-2); background: rgba(12, 22, 32, 0.5); }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px;
  border-radius: var(--r-s); border: 1px solid var(--line-2); background: var(--sunk); color: var(--ink-2); white-space: nowrap; text-decoration: none; }
a.chip:hover { border-color: var(--hud); color: var(--hud); }
.chip.ads, .chip.watch, .chip.compare { background: var(--glue-soft); color: var(--glue-deep); border-color: rgba(255, 178, 36, 0.4); }
.chip.worked, .chip.running, .chip.ready { background: var(--worked-soft); color: var(--worked); border-color: rgba(61, 220, 132, 0.4); }
.chip.didnt { background: var(--didnt-soft); color: #ff8a7d; border-color: rgba(255, 95, 79, 0.45); }
.chip.mixed, .chip.planned, .chip.browse { background: var(--mixed-soft); color: #b4c4cf; border-color: rgba(143, 163, 177, 0.35); }
.chip.idea, .chip.learn, .chip.finished { background: var(--idea-soft); color: #9cc4ff; border-color: rgba(106, 168, 255, 0.4); }
.pick .chip, details .chip { white-space: normal; }

/* the priority objective: the one amber thing on the screen */
.step { position: relative; background: linear-gradient(100deg, rgba(255, 178, 36, 0.13), rgba(255, 178, 36, 0.03) 60%), var(--surface);
  border: 1px solid rgba(255, 178, 36, 0.45); border-left: 4px solid var(--glue); border-radius: var(--r);
  padding: clamp(24px, 3vw, 36px); padding-top: clamp(30px, 3vw, 42px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 32px; align-items: end; }
.step::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 7px; opacity: 0.85;
  background: repeating-linear-gradient(-45deg, var(--glue) 0 10px, transparent 10px 20px); }
.step .kicker { font: 500 0.75rem/1 var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--glue); margin-bottom: 12px; }
.step h2 { font-size: clamp(1.5rem, 1.05rem + 2vw, 2.5rem); letter-spacing: 0.015em; color: #fff; text-shadow: 0 0 26px rgba(255, 178, 36, 0.3); }
.step p { margin: 12px 0 0; max-width: 62ch; font-size: 1.0625rem; color: var(--ink); }
.step .btn { background: var(--glue); border-color: var(--glue); color: #1a1100; }
.step .btn:hover { background: #ffc65c; border-color: #ffc65c; box-shadow: 0 0 18px rgba(255, 178, 36, 0.4); }
.step.compact { padding: 22px 18px 16px; grid-template-columns: 1fr; gap: 12px; }
.step.compact::before { height: 5px; }
.step.compact h2 { font-size: 1.1875rem; text-shadow: none; }
.step.compact p { font-size: 0.9375rem; margin-top: 6px; }

/* anything with a verdict wears a stripe */
.entry { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--stripe, var(--line-2)); border-radius: var(--r); padding: 14px 18px; }
.entry + .entry { margin-top: 10px; }
.entry.worked { --stripe: var(--worked); } .entry.didnt { --stripe: var(--didnt); } .entry.mixed { --stripe: var(--mixed); }
.entry.idea { --stripe: var(--idea); } .entry.watch { --stripe: var(--glue); } .entry.running { --stripe: var(--worked); }
.entry.planned, .entry.finished { --stripe: var(--line-2); }
.entry.worked, .entry.didnt, .entry.running { box-shadow: -6px 0 16px -10px var(--stripe); }
.entry h3 a { text-decoration: none; } .entry h3 a:hover { text-decoration: underline; }
.entry .meta { font-size: 0.875rem; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; margin-top: 6px; }
.entry .body { white-space: pre-wrap; margin: 0; max-width: 72ch; }
.figs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 10px; }
.fig b { display: block; font: 700 1.3125rem/1.2 var(--display); font-variant-numeric: tabular-nums; color: var(--hud); letter-spacing: 0.02em; }
.fig span { font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); }
.figs.big .fig b { font-size: 2rem; text-shadow: 0 0 22px rgba(79, 216, 255, 0.4); }
.read { background: var(--hud-soft); border-left: 3px solid var(--hud); border-radius: var(--r-s); padding: 12px 16px; margin-top: 16px; max-width: none; }

/* forms */
label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 5px; }
label .hint, .hint { display: block; font-weight: 400; font-size: 0.875rem; color: var(--ink-2); margin-top: 2px; }
input[type=text], input[type=url], input[type=date], input[type=number], input[type=search], textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: #081119; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 9px 12px; }
input::placeholder, textarea::placeholder { color: var(--ink-3); opacity: 1; }
input:focus, textarea:focus, select:focus { border-color: var(--hud); outline: none; box-shadow: 0 0 0 3px var(--hud-soft); }
textarea { min-height: 84px; resize: vertical; }
.field { margin-bottom: 16px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches label { margin: 0; cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 30px; height: 30px; border-radius: 2px; background: var(--c); border: 3px solid var(--surface); box-shadow: 0 0 0 1px var(--line-2); }
.swatches input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 14px var(--c); }
.swatches input:focus-visible + span { box-shadow: 0 0 0 2px var(--hud); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.tags label { margin: 0; cursor: pointer; }
.tags input { position: absolute; opacity: 0; }
.tags span { display: block; padding: 7px 12px; border-radius: var(--r-s); border: 1px solid var(--line-2); font: 500 0.75rem/1.2 var(--mono); letter-spacing: 0.08em;
  text-transform: uppercase; background: #081119; color: var(--ink-2); }
.tags label:hover span { border-color: var(--hud); color: var(--ink); }
.tags input:checked + span { background: var(--hud); border-color: var(--hud); color: #04121a; font-weight: 700; }
.tags input:focus-visible + span { outline: 2px solid var(--hud); outline-offset: 2px; }
details > summary { cursor: pointer; font-weight: 600; }
details > summary:hover { color: var(--hud); }
details[open] > summary { margin-bottom: 14px; }
input[type=checkbox], input[type=radio] { accent-color: var(--hud); }

/* tables */
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
th { text-align: left; font: 500 0.6875rem/1.3 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--hud-dim); padding: 11px 14px;
  border-bottom: 1px solid var(--line-2); white-space: nowrap; background: rgba(79, 216, 255, 0.04); }
td { padding: 10px 14px; border-bottom: 1px solid var(--sunk); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(79, 216, 255, 0.045); }
td.r, th.r { text-align: right; }
td input[type=checkbox], th input[type=checkbox] { width: 18px; height: 18px; }
.bar { height: 8px; border-radius: 1px; background: linear-gradient(90deg, var(--hud-dim), var(--hud)); min-width: 3px; box-shadow: 0 0 10px rgba(79, 216, 255, 0.35); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.checklist li { counter-increment: step; border-bottom: 1px solid var(--sunk); }
.checklist li:last-child { border-bottom: 0; }
.checklist button { display: grid; grid-template-columns: 28px 1fr; gap: 12px; width: 100%; text-align: left; background: none; border: 0; font: inherit; color: inherit;
  padding: 11px 4px; cursor: pointer; align-items: start; }
.checklist button::before { content: counter(step, decimal-leading-zero); width: 28px; height: 26px; border-radius: var(--r-s); border: 1px solid var(--line-2);
  display: grid; place-items: center; font: 500 0.75rem/1 var(--mono); color: var(--hud); }
.checklist li.done button { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-3); }
.checklist li.done button::before { content: "✓"; background: var(--worked); border-color: var(--worked); color: #04121a; font-weight: 700; }
.checklist button:hover::before { border-color: var(--hud); box-shadow: 0 0 10px rgba(79, 216, 255, 0.4); }

/* scan report */
.fix { border-left: 4px solid var(--line-2); padding: 4px 0 4px 16px; margin-bottom: 18px; }
.fix.high { border-color: var(--didnt); } .fix.medium { border-color: var(--glue); } .fix.low { border-color: var(--mixed); }
.fix h3 { margin-bottom: 4px; } .fix p { margin: 0 0 4px; color: var(--ink-2); }
.fix .how { font-weight: 600; color: var(--ink); }
.takeaways { margin: 0; padding-left: 0; list-style: none; }
.takeaways li { margin-bottom: 10px; max-width: 70ch; padding-left: 20px; position: relative; }
.takeaways li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; border: 1.5px solid var(--hud); transform: rotate(45deg); }
.waiting { display: flex; gap: 16px; align-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--hud); border-right-color: var(--hud);
  animation: spin 1s linear infinite; flex: none; box-shadow: 0 0 14px rgba(79, 216, 255, 0.3); }
@keyframes spin { to { transform: rotate(360deg); } }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.pick a { display: block; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--line-2); border-radius: var(--r); padding: 16px 18px; color: var(--ink); }
.pick a:hover { border-color: var(--hud); background: var(--raise); color: var(--ink); box-shadow: 0 0 20px rgba(79, 216, 255, 0.12); }
.pick a p { font-size: 0.9375rem; color: var(--ink-2); margin: 6px 0 10px; }
dl.gloss { margin: 0; display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 0 24px; }
dl.gloss dt { font-weight: 600; padding: 12px 0; border-top: 1px solid var(--line); color: var(--hud); }
dl.gloss dd { margin: 0; padding: 12px 0; border-top: 1px solid var(--line); max-width: 66ch; }

/* sign-in */
body.login { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.login .card { position: relative; background: linear-gradient(180deg, var(--raise), var(--surface)); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: clamp(28px, 5vw, 52px); width: min(540px, 100%); box-shadow: 0 0 60px rgba(79, 216, 255, 0.08); }
.login .card::before, .login .card::after { content: ""; position: absolute; width: 22px; height: 22px; border: 0 solid var(--hud); }
.login .card::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.login .card::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.login .brand { padding: 0; margin-bottom: 28px; }
.login h1 { font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.125rem); margin-bottom: 14px; }

@media (max-width: 860px) {
  .frame { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; padding: 12px 14px; gap: 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .rail .top { display: flex; justify-content: space-between; align-items: center; }
  .menu-toggle { display: inline-flex; background: none; border: 1px solid var(--line-2); color: var(--ink); font: 600 0.8125rem var(--display); letter-spacing: 0.1em;
    text-transform: uppercase; border-radius: var(--r-s); padding: 8px 12px; cursor: pointer; }
  .rail .collapsible { display: none; flex-direction: column; gap: 18px; }
  .rail.open .collapsible { display: flex; }
  .cols.wide-left { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; }
  dl.gloss { grid-template-columns: 1fr; } dl.gloss dd { border-top: 0; padding-top: 0; }
  .topbar { margin-bottom: 20px; } .lookup { width: 100%; }
  .btn, button.btn { white-space: normal; text-align: center; line-height: 1.3; }
}
@media (min-width: 861px) { .rail .collapsible { display: flex; flex-direction: column; gap: 22px; flex: 1; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 4s; } .status .pulse { animation: none; } }
