/* LegalOps Cockpit · matches the approved console mockup (Build Specification, Oct 31, 2026) */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("vendor/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("vendor/fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("vendor/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("vendor/fonts/inter-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 700; font-display: swap; src: url("vendor/fonts/jetbrains-mono-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #0B0D0F; --panel: rgba(18,22,26,0.92); --panel-solid: #12161A;
  --border: #22282E; --rule: #1E2429; --btn-border: #2E363E;
  --text: #E6E9EC; --text-2: #C2C9CF; --muted: #9AA3AD; --dim: #7F8892; --faint: #6B747E;
  --mint: #6FEDB7; --amber: #F5C35B; --red: #F2665A;
  --amber-border: #4A3A16; --red-border: #5A2622;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans); color: var(--text); background-color: var(--bg);
  background-image: linear-gradient(rgba(111,237,183,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(111,237,183,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  min-height: 100vh; display: flex; flex-direction: column;
  overflow-x: hidden;
}
a { color: var(--mint); }
a:hover { color: #A8F5D2; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
[hidden] { display: none !important; }
.mono { font-family: var(--mono); }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 24px; flex: 1 0 auto; }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.brand { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.brand-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.lamp { width: 10px; height: 10px; border-radius: 2px; background: var(--mint); box-shadow: 0 0 12px var(--mint); flex: none; }
.lamp.attention { background: var(--amber); box-shadow: 0 0 12px var(--amber); }
.lamp.critical { background: var(--red); box-shadow: 0 0 12px var(--red); }
h1 { margin: 0; font-family: var(--mono); font-size: 22px; font-weight: 700; letter-spacing: 0.08em; }
.scanline { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; color: var(--muted); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  min-height: 44px; padding: 0 16px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--btn-border); background: var(--panel-solid); color: #C9D0D6;
}
.btn:hover { border-color: #46505A; }
.btn.primary { border-color: var(--mint); background: rgba(111,237,183,0.12); color: var(--mint); box-shadow: 0 0 16px rgba(111,237,183,0.25); }
.btn.primary:hover { background: rgba(111,237,183,0.2); }
.btn[disabled] { opacity: 0.55; cursor: default; box-shadow: none; }
.btn.wide { width: 100%; }

.note { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin: 0; }
.note.ok { color: var(--mint); } .note.warn { color: var(--amber); } .note.bad { color: var(--red); }

/* Summary row */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.tile { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.big { font-family: var(--mono); font-size: 36px; font-weight: 700; line-height: 1.1; }
.big small { font-size: 18px; color: var(--faint); font-weight: 700; }
.big.nominal { color: var(--mint); text-shadow: 0 0 14px rgba(111,237,183,0.45); }
.big.attention { color: var(--amber); text-shadow: 0 0 14px rgba(245,195,91,0.4); }
.big.critical { color: var(--red); text-shadow: 0 0 14px rgba(242,102,90,0.45); }

/* Action queue */
.queue { background: var(--panel); border: 1px solid var(--amber-border); border-radius: 8px; padding: 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.queue.has-critical { border-color: var(--red-border); }
.section-title { margin: 0; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; color: var(--muted); }
.queue .section-title { color: var(--amber); }
.queue.has-critical .section-title { color: var(--red); }
.qtoggle { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; min-height: 32px; font: inherit; letter-spacing: inherit; color: inherit; }
.qtoggle:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 3px; }
.qchev { display: inline-block; transition: transform 0.15s ease; transform: rotate(90deg); }
.queue.collapsed .qchev { transform: none; }
.qcount { font-size: 11px; padding: 1px 8px; border-radius: 10px; border: 1px solid currentColor; letter-spacing: 0.04em; }
.queue.collapsed { gap: 0; }
.qrow { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); }
.qname { font-weight: 600; min-width: 220px; color: var(--text); text-decoration: none; display: inline-flex; align-items: baseline; gap: 10px; }
.qname:hover { color: var(--text); text-decoration: underline; }
.qtag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; }
.qtag.attention { color: var(--amber); } .qtag.critical { color: var(--red); }
.qtext { flex: 1 1 360px; color: var(--text-2); font-size: 14px; min-width: 0; }
.qowner { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* Registry */
.registry { display: flex; flex-direction: column; gap: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.card { background: rgba(18,22,26,0.94); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; scroll-margin-top: 16px; }
.card { transition: border-color 0.15s ease; }
.card:focus { outline: none; }   /* the card itself only receives focus when jumping to it from the queue */
.card:hover, .card.attention:hover, .card.critical:hover { border-color: var(--mint); }
.card.attention { border-color: var(--amber-border); }
.card.critical { border-color: var(--red-border); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.card-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card h3 { margin: 0; font-size: 16px; font-weight: 600; }
.card h3 a { color: var(--text); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.purpose { font-size: 13px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; padding: 4px 9px; border-radius: 3px; white-space: nowrap; color: var(--mint); border: 1px solid var(--mint); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.badge.attention { color: var(--amber); border-color: var(--amber); }
.badge.critical { color: var(--red); border-color: var(--red); }
.badge.pending { color: var(--muted); border-color: var(--btn-border); }
.badge.pending .dot { box-shadow: none; }
dl.facts { margin: 0; display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 9px 12px; font-size: 14px; }
dl.facts dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--dim); padding-top: 2px; }
dl.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
dd .sub { color: var(--muted); }
.card-links { display: flex; gap: 18px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; min-height: 37px; }
.card-links a { min-height: 24px; }
.card-links .open-app { margin-left: auto; }   /* Open details on the left, Open app on the right */
.card-links .none { color: var(--faint); font-weight: 400; }

/* Uptime strip */
.uptime { display: flex; flex-direction: column; gap: 8px; }
.ticks { display: grid; grid-template-columns: repeat(30, minmax(0, 1fr)); gap: 3px; }
.tick { height: 18px; border-radius: 2px; background: var(--mint); opacity: 0.85; }
.tick.slow { background: var(--amber); }
.tick.down { background: var(--red); }
.tick.none { background: #262D33; }
.uptime.big .tick { height: 28px; }

/* Detail view */
.back { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; }
.mono-link { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; }
.detail-title { font-family: var(--sans); font-size: 24px; letter-spacing: 0; font-weight: 600; }
.panel-box { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 14px; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list > li { padding: 12px 0; border-top: 1px solid var(--rule); display: flex; flex-direction: column; gap: 6px; }
.list > li:first-child { border-top: 0; padding-top: 0; }
.list.compact > li { flex-direction: row; align-items: baseline; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.row-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.obj { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.expl { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.muted { margin: 0; color: var(--muted); font-size: 13px; }
.when { font-family: var(--mono); font-size: 12px; color: var(--text-2); min-width: 130px; }
.qtag.info { color: var(--muted); }
.btn.linklike { display: inline-flex; align-items: center; text-decoration: none; }
.chart { width: 100%; height: auto; display: block; }
.chart .grid-line { stroke: var(--rule); stroke-width: 1; }
.chart .axis { fill: var(--dim); font-family: var(--mono); font-size: 10px; }
.chart .line { fill: none; stroke: var(--mint); stroke-width: 2; stroke-linejoin: round; }

/* Detail additions (v0.3.0) */
.pink { color: #CB3572; }
.alvin { font-weight: inherit; }
.btn.alvin-btn { font-family: var(--sans); font-size: 14px; letter-spacing: 0; font-weight: 600; }
.lead { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text); }
.doc-block { display: flex; flex-direction: column; gap: 6px; }
.bullets { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 14px; line-height: 1.5; }
.byline { font-size: 12px; }
.chip { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; padding: 2px 7px; border-radius: 3px; border: 1px solid var(--btn-border); color: var(--muted); }
.chip.warn { color: var(--amber); border-color: var(--amber-border); }
.chip.ok { color: var(--mint); border-color: rgba(111,237,183,0.4); }
.row-actions { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.accept-form { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--btn-border); border-radius: 6px; background: #0E1114; }
.accept-form .actions { justify-content: flex-end; }
.accept-step { display: flex; flex-direction: column; gap: 8px; }
.accept-step[hidden] { display: none; }
.tickline { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; min-height: 32px; }
.tickline input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--mint); }
.btn.danger { color: var(--red); border-color: rgba(242,102,90,0.6); }

/* Detail tabs (v0.4.0) */
.dtabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.dtab { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
  text-decoration: none; padding: 12px 14px; min-height: 44px; display: inline-flex; align-items: center; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.dtab:hover { color: var(--text); }
.dtab.on { color: var(--mint); border-bottom-color: var(--mint); }
.reasons { margin-top: 4px; }
.doclinks li { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.doclinks .muted { font-size: 13px; }
.reason-li { display: block !important; }
details.reason > summary { list-style: none; cursor: pointer; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; min-height: 32px; }
details.reason > summary::-webkit-details-marker { display: none; }
details.reason > summary:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 3px; }
details.reason .chev { color: var(--muted); font-size: 12px; transition: transform 0.15s ease; margin-left: 2px; }
details.reason[open] .chev { transform: rotate(90deg); }
.reason-items { list-style: none; margin: 10px 0 4px; padding: 0 0 0 16px; border-left: 2px solid var(--btn-border); display: flex; flex-direction: column; gap: 12px; }
.reason-items .obj { font-family: var(--mono); font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
.reason-items .expl { margin: 4px 0; }

/* Emergency switch (v0.5.1) */
.emergency-box { border-color: var(--red-border); }
details.emergency > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 32px; }
details.emergency > summary::-webkit-details-marker { display: none; }
details.emergency > summary:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 3px; }
details.emergency .chev { color: var(--red); transition: transform 0.15s ease; }
details.emergency[open] .chev { transform: rotate(90deg); }
.danger-text { color: var(--red) !important; }
.emergency-body { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; align-items: flex-start; }
.steps { margin: 0; padding-left: 20px; color: var(--text-2); font-size: 14px; line-height: 1.6; }
.warn-line { margin: 0; color: var(--red); font-size: 13px; }
.btn.linklike.danger { text-decoration: none; }

/* Emergency switches (v0.5.3): a thin guarded toggle panel */
.killrow { position: relative; background: transparent; border: 0; border-radius: 0; margin-top: 8px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.kill-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 340px; }
/* v0.6.1: buttons in one column; the shutdown sequence opens beside them on wider screens */
.kill-layout { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 28px; align-items: start; }
.kill-layout .kill-panel.open { border-top: 0; border-left: 1px solid rgba(242,102,90,0.45); padding: 0 0 0 24px; margin: 0; }
@media (max-width: 860px) {
  .kill-layout { grid-template-columns: 1fr; gap: 16px; }
  .kill-btns { max-width: none; }
  .kill-layout .kill-panel.open { border-left: 0; border-top: 1px solid rgba(242,102,90,0.45); padding: 14px 0 0; }
}
/* v0.5.10: dark raised pill with a red round power button */
.kill-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 6px 6px 6px 20px;
  background: linear-gradient(180deg, #1b1f23, #121518); border: 1px solid rgba(255,255,255,0.06); border-radius: 999px; cursor: pointer; text-align: left;
  box-shadow: 0 6px 16px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.06), inset 0 -1px 0 rgba(0,0,0,0.5); font-family: var(--mono); }
.kill-btn:hover { border-color: rgba(229,72,59,0.35); }
.kill-btn:focus-visible { outline: 2px solid #e5483b; outline-offset: 3px; }
.pill-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sw-name { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; line-height: 1.3; text-transform: uppercase; color: #9aa1a8; }
.sw-state { font-size: 9px; letter-spacing: 0.22em; color: #5d646b; }
.sw-state:empty { display: none; }
.pill-dot { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #2a0b08;
  background: radial-gradient(circle at 40% 35%, #ff6b5e 0%, #e5483b 55%, #b9312a 100%);
  box-shadow: 0 0 0 3px #0f1215, 0 2px 6px rgba(0,0,0,0.6), inset 0 1px 1px rgba(255,255,255,0.25); transition: box-shadow 0.18s ease, transform 0.1s ease; }
.kill-btn:active .pill-dot { transform: scale(0.95); }
.kill-btn.on { border-color: rgba(229,72,59,0.55); }
.kill-btn.on .sw-name { color: #f0ebe2; }
.kill-btn.on .sw-state { color: #e5483b; }
.kill-btn.on .pill-dot { box-shadow: 0 0 0 3px #0f1215, 0 0 18px rgba(229,72,59,0.75), inset 0 1px 1px rgba(255,255,255,0.3); }
@media (prefers-reduced-motion: reduce) { .pill-dot { transition: none; } }
.cursor { display: inline-block; width: 7px; height: 11px; margin-left: 6px; vertical-align: -1px; background: currentColor; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }
.kill-panel { display: none; }
.kill-panel.open { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; border-top: 1px solid rgba(242,102,90,0.45); padding-top: 14px; margin-top: 2px; }
.kill-head { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
/* Shutdown sequence (v0.5.6) */
.seq-head { display: flex; align-items: baseline; gap: 14px; width: 100%; flex-wrap: wrap; font-family: var(--mono); }
.seq-title { color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; }
.seq-status { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; margin-right: auto; }
.seq-bar { width: 100%; height: 2px; background: rgba(242,102,90,0.15); }
.seq-bar span { display: block; height: 100%; background: var(--red); box-shadow: 0 0 8px var(--red); transition: width 0.3s ease; }
.seq { list-style: none; margin: 4px 0 0; padding: 0; width: 100%; max-width: 760px; }
.seq-step { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding-bottom: 18px; }
.seq-step:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 34px; bottom: 0; width: 1px; background: rgba(255,255,255,0.12); }
.seq-step.done:not(:last-child)::before { background: var(--red); box-shadow: 0 0 6px rgba(242,102,90,0.6); }
.seq-node { width: 38px; height: 34px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 700;
  color: var(--muted); border: 1px solid rgba(255,255,255,0.14); clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.seq-step.now .seq-node { color: var(--red); border-color: var(--red); background: rgba(242,102,90,0.08); box-shadow: 0 0 12px rgba(242,102,90,0.35) inset; }
.seq-step.done .seq-node { color: #0B0D0F; background: var(--red); border-color: var(--red); }
.seq-body strong { display: block; font-size: 15px; color: var(--text); }
.seq-body p { margin: 4px 0 10px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.seq-step.later { opacity: 0.4; }
.seq-step.done .seq-body p { display: none; }
.seq-back { border-top: 1px solid rgba(242,102,90,0.45); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; width: 100%; }
.seq-back p { margin: 0; color: var(--text-2); font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .seq-bar span { transition: none; } }

/* Loading placeholders */
.ph { background: rgba(18,22,26,0.6); border: 1px solid var(--rule); border-radius: 8px; min-height: 240px; }
.ph.tile { min-height: 96px; }

/* Sign-in panel */
.gate { flex: 1 0 auto; display: flex; align-items: center; justify-content: center; padding: 32px 16px; }
.panel { width: 100%; max-width: 400px; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { margin: 0; font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: 0.12em; }
.panel form { display: flex; flex-direction: column; gap: 14px; }
.panel p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted); }
.input-wrap { position: relative; }
input.in {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 6px; border: 1px solid var(--btn-border);
  background: #0E1114; color: var(--text); font-family: var(--sans); font-size: 15px;
}
input.in.code { font-family: var(--mono); font-size: 20px; letter-spacing: 0.4em; text-align: center; }
input.in:focus { outline: none; border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint); }
.input-wrap input.in { padding-right: 48px; }
.eye { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; }
.eye:hover { color: var(--text); }
.eye svg { width: 18px; height: 18px; }
.linkbtn { background: none; border: 0; padding: 10px 0; min-height: 44px; color: var(--mint); font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; cursor: pointer; text-align: left; align-self: flex-start; }
.linkbtn:hover { text-decoration: underline; }
.qr { align-self: center; width: 184px; height: 184px; background: #fff; border-radius: 6px; padding: 8px; }
.secret { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; text-align: center; }

/* Footer */
.foot { width: 100%; max-width: 1320px; margin: 0 auto; padding: 16px 24px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--sans); font-size: 13px; color: var(--muted); }
.foot .credit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.foot .labs { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; }
.labs-mark { flex: none; }
.labs-mark .m-on { fill: var(--text); } .labs-mark .m-red { fill: #c0392b; } .labs-mark .m-off { fill: #4a4f55; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); max-width: calc(100vw - 32px); background: var(--panel-solid); border: 1px solid var(--btn-border); border-radius: 6px; padding: 12px 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--text); box-shadow: 0 8px 30px rgba(0,0,0,0.5); z-index: 10; }

@media (max-width: 720px) {
  .wrap { padding: 20px 14px 24px; gap: 18px; }
  h1 { font-size: 18px; }
  .grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .ticks { gap: 2px; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 14px 16px; }
  .big { font-size: 30px; }
  .qname { min-width: 0; }
  .qtext { flex-basis: 100%; }
  dl.facts { grid-template-columns: 92px minmax(0, 1fr); }
  .actions { width: 100%; }
  .actions .btn { flex: 1 1 auto; }
  .foot { padding: 10px 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
