/* Forecourt kiosk look: one centred card, big touch targets, safety-stripe header. */
:root {
  --bg: #e9eef0; --panel: #ffffff; --ink: #12232b; --muted: #5a6d75; --line: #c9d4d8;
  --brand: #0b4a5c; --brand-ink: #ffffff; --hivis: #f5c400; --hivis-ink: #12232b;
  --good: #1d7a45; --bad: #b3261e; --display-bg: #0d1a1f; --display-fg: #7ff0c4;
  --font-display: "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, Consolas, "Roboto Mono", monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c171b; --panel: #142328; --ink: #e4edf0; --muted: #93a8b0; --line: #2a3f46;
    --brand: #3fa3bb; --brand-ink: #071216; --good: #4cc488; --bad: #ff8a80; --display-bg: #050c0f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body);
  font-size: 1.125rem; line-height: 1.5; display: flex; flex-direction: column;
  padding: env(safe-area-inset-top, 0) max(16px, env(safe-area-inset-right, 0)) env(safe-area-inset-bottom, 0) max(16px, env(safe-area-inset-left, 0));
}
[hidden] { display: none !important; }
.stripe { height: 10px; margin-inline: -16px; background: repeating-linear-gradient(-45deg, var(--hivis) 0 18px, var(--ink) 18px 36px); }
header.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 14px; max-width: 760px; width: 100%; margin-inline: auto; flex-wrap: wrap; }
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; text-transform: uppercase; color: var(--brand); }
.who { font-size: .95rem; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
main { flex: 1; display: flex; align-items: flex-start; justify-content: center; padding-block: 8px 32px; }
.card { width: 100%; max-width: 760px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: clamp(18px, 4vw, 40px); display: flex; flex-direction: column; gap: 20px; }
h1, h2 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
h2 { font-size: clamp(1.4rem, 4vw, 1.9rem); }
h2.sub { font-size: 1.3rem; margin-bottom: 12px; }
p { margin: 0; max-width: 62ch; }
.lede { color: var(--muted); }
.eyebrow { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
form { display: flex; flex-direction: column; gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 1rem; }
input { font: inherit; font-size: 1.15rem; padding: 14px 16px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); min-width: 0; width: 100%; }
input:focus-visible { outline: none; border-color: var(--brand); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { font-weight: 600; font-size: 1rem; padding: 0; margin-bottom: 8px; }
button { font: inherit; font-weight: 600; font-size: 1.1rem; cursor: pointer; min-height: 54px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent; }
button:focus-visible { outline: 3px solid var(--hivis); outline-offset: 2px; }
button:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-go { background: var(--hivis); color: var(--hivis-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-link { background: none; border: 0; color: var(--brand); text-decoration: underline; min-height: 44px; padding: 8px 4px; font-size: 1rem; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.split { justify-content: space-between; }
.msg { padding: 12px 14px; border-radius: 10px; font-size: 1rem; border: 1px solid var(--line); }
.msg.err { border-color: var(--bad); color: var(--bad); }
.msg.info { color: var(--muted); }
.depts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dept { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--bg); color: var(--ink); border: 2px solid var(--line); padding: 12px 16px; }
.dept small { font-weight: 400; color: var(--muted); font-size: .9rem; }
.dept[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--panel)); }
.dept-tag { font-size: .85rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--hivis); color: var(--hivis-ink); }
.progress { display: flex; flex-direction: column; gap: 8px; }
.bar { height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s ease; }
.qmeta { display: flex; justify-content: space-between; font-size: .95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.options { display: flex; flex-direction: column; gap: 12px; }
.opt { display: flex; gap: 14px; align-items: flex-start; text-align: left; width: 100%; background: var(--bg); color: var(--ink); border: 2px solid var(--line); font-weight: 500; }
.opt .key { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: var(--panel); border: 2px solid var(--line); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--panel)); }
.opt[aria-pressed="true"] .key { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.readout { background: var(--display-bg); color: var(--display-fg); border-radius: 12px; padding: 20px 24px; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.readout .right { text-align: right; }
.readout .lbl { font-family: var(--font-mono); font-size: .85rem; letter-spacing: .1em; opacity: .75; }
.readout .big { font-family: var(--font-mono); font-size: clamp(3rem, 12vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.readout .big.small { font-size: clamp(1.8rem, 6vw, 2.5rem); }
.pill { display: inline-block; font-weight: 700; letter-spacing: .06em; font-size: 1.2rem; padding: 6px 16px; border-radius: 999px; text-transform: uppercase; }
.pill.pass { background: var(--good); color: var(--panel); }
.pill.fail { background: var(--bad); color: var(--panel); }
.review { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.review li { border-left: 4px solid var(--bad); padding: 8px 0 8px 14px; display: flex; flex-direction: column; gap: 4px; }
.review .q { font-weight: 600; }
.review .you { color: var(--bad); font-size: 1rem; }
.review .ok { color: var(--good); font-size: 1rem; }
.review .why { color: var(--muted); font-size: 1rem; }
.tests { display: grid; gap: 12px; }
.test { display: flex; justify-content: space-between; align-items: center; gap: 12px 20px; flex-wrap: wrap; width: 100%; text-align: left; background: var(--bg); color: var(--ink); border: 2px solid var(--line); padding: 16px 20px; }
.test .t-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 240px; }
.test .t-title { font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.test .t-desc { color: var(--muted); font-weight: 400; font-size: 1rem; }
.chip { font-size: .9rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.chip.pass { background: var(--good); border-color: var(--good); color: var(--panel); }
.chip.fail { border-color: var(--bad); color: var(--bad); }
/* manager page */
.wide { max-width: 1100px; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
td.n { text-align: right; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
select { font: inherit; font-size: 1rem; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: var(--bg); }
.tile .l { font-size: .85rem; color: var(--muted); }
.tile .v { font-size: 1.6rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.codebox { font-family: var(--font-mono); font-size: 1.6rem; letter-spacing: .25em; text-transform: uppercase; }
/* code slips (print page) */
.slips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; }
.slip { border: 1px dashed #000; padding: 14px 16px; break-inside: avoid; color: #000; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.slip .s-brand { font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.slip .s-name { font-weight: 700; font-size: 1.2rem; }
.slip .s-dept { font-size: .95rem; }
.slip .s-code { font-family: var(--font-mono); font-size: 2rem; font-weight: 700; letter-spacing: .2em; border: 2px solid #000; padding: 4px 10px; align-self: flex-start; margin: 4px 0; }
.slip .s-how { font-size: .85rem; line-height: 1.35; }
@media print {
  body { background: #fff; padding: 0; }
  .noprint, .stripe, header.top { display: none !important; }
  .card { border: 0; padding: 0; }
}
