[hidden] { display: none !important; }

/* ═══════════════════════════════════════════════════════════════════
   TOLERANCE · machined graphite
   A quality-control register cut from one block of graphite. The whole
   console is deliberately near-achromatic — brushed slabs, etched
   labels, hairline rules — so that the only color on the floor is a
   verdict: calibration green for PASS, reject red for FAIL, nothing
   else. Archivo carries the words with a tight, engineered set; IBM
   Plex Mono prints every measurement, code, and stamp. The signature
   is the calibration sheet: numbered checkpoint rows with a dotted
   leader running from the question to the reading to the verdict cell.
   ═══════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bed:       #17181B;   /* machine bed — the page ground */
  --slab:      #1E2024;   /* panel slab */
  --slab-hi:   #24272C;   /* lifted / hovered slab */
  --well:      #131417;   /* recessed wells */
  --line:      #33373E;   /* hairlines */
  --frame:     #4A505A;   /* heavier frame lines and ticks */
  --ink:       #E9EBEE;   /* bright reading */
  --ink-soft:  #A9AFB8;
  --ink-faint: #7A818B;
  --etch:      #5D646E;   /* etched, recessed labels */
  --pass:      #33C173;   /* calibration green — verdicts only */
  --pass-ink:  #082514;
  --fail:      #E8544A;   /* reject red — verdicts only */
  --fail-ink:  #2B0B08;
  --warn:      #D9A62E;   /* caution amber — errors and warnings, never verdicts */
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

html { background: var(--bed); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--bed);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}
.mono { font-family: var(--mono); }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--ink); color: var(--bed);
  font-family: var(--mono); font-size: 12px; padding: 8px 14px; z-index: 99;
}
.skip:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

::selection { background: var(--frame); color: var(--ink); }

/* ── console bar ─────────────────────────────────────────────── */
.bar {
  background: linear-gradient(180deg, var(--slab-hi), var(--slab) 70%);
  border-bottom: 1px solid var(--well);
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px 28px;
  padding: 12px 24px 10px;
}
.brand {
  display: flex; align-items: baseline; gap: 10px;
  text-decoration: none; color: var(--ink);
}
.brand-word {
  font-weight: 800; font-size: 21px; letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-tol {
  font-size: 12px; color: var(--ink-faint);
  border: 1px solid var(--line); padding: 1px 7px 0;
}
.brand-sub { font-size: 11px; color: var(--etch); letter-spacing: .08em; }
.bar-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.bar-nav a {
  color: var(--ink-soft); text-decoration: none;
  font-size: 12.5px; letter-spacing: .06em; text-transform: lowercase;
  padding: 6px 12px 5px;
  border: 1px solid transparent;
}
.bar-nav a:hover { color: var(--ink); border-color: var(--line); }
.bar-nav a[aria-current="page"] {
  color: var(--ink); background: var(--well);
  border-color: var(--line);
}
.who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 12.5px; }
.who-name { color: var(--ink); letter-spacing: .04em; }

/* the ruler — millimetre ticks under the bar, a tall tick every 40px */
.ruler {
  height: 7px;
  background:
    repeating-linear-gradient(90deg, var(--frame) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 8px) 0 3px / 100% 4px no-repeat;
  border-bottom: 1px solid var(--line);
}

.boot {
  padding: 26px 24px; font-size: 12.5px; color: var(--ink-faint);
  letter-spacing: .1em;
}

/* ── hall + caps ─────────────────────────────────────────────── */
.hall { flex: 1; width: min(1160px, 100% - 48px); margin: 0 auto; padding: 30px 0 64px; }
.view { animation: settle .16s ease-out; }
@keyframes settle { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.cap { margin-bottom: 22px; }
.cap-row { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.cap-h {
  margin: 0; color: var(--ink);
  font-size: 30px; font-weight: 700; letter-spacing: .01em;
}
.cap-stamp { font-size: 11.5px; color: var(--etch); letter-spacing: .08em; }
.cap-sub { margin: 8px 0 0; max-width: 76ch; font-size: 14px; color: var(--ink-soft); }
.cap-sub em { color: var(--ink-faint); font-style: normal; border-bottom: 1px dashed var(--frame); }
.w-pass { color: var(--pass); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; }
.w-fail { color: var(--fail); font-weight: 600; font-size: 12.5px; letter-spacing: .08em; }

.backlink {
  display: inline-block; margin-bottom: 18px;
  color: var(--ink-faint); text-decoration: none; font-size: 12px; letter-spacing: .05em;
}
.backlink:hover { color: var(--ink); }

/* ── counters — machined tallies ─────────────────────────────── */
.counters {
  display: grid; grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--line); background: var(--slab);
  margin-bottom: 26px;
}
.counter {
  padding: 14px 18px 12px;
  border-right: 1px solid var(--line);
}
.counter:last-child { border-right: 0; }
.counter b {
  display: block; font-family: var(--mono); font-weight: 600;
  font-size: 30px; line-height: 1.1; color: var(--ink);
}
.counter span {
  font-size: 10.5px; font-family: var(--mono); color: var(--etch);
  letter-spacing: .12em; text-transform: uppercase;
}
.counter.c-pass b { color: var(--pass); }
.counter.c-fail b { color: var(--fail); }

/* ── verdict plates — the stamp ──────────────────────────────── */
.plate {
  display: inline-block;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: .22em; text-indent: .22em; text-align: center;
  padding: 5px 12px 4px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.plate-pass {
  background: var(--pass); color: var(--pass-ink); border-color: var(--pass);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(0,0,0,.3);
}
.plate-fail {
  background: var(--fail); color: var(--fail-ink); border-color: var(--fail);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), inset 0 -1px 0 rgba(0,0,0,.3);
}
.plate-open { color: var(--ink); border-color: var(--frame); background: var(--well); }
.plate-raw { color: var(--ink-faint); border-style: dashed; border-color: var(--frame); text-transform: lowercase; letter-spacing: .08em; text-indent: 0; }
.plate-lg { font-size: 19px; padding: 9px 22px 8px; }

/* ── chips: statuses, severities, defect states ──────────────── */
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  color: var(--etch); border: 1px solid var(--line);
  padding: 2px 7px 1px; letter-spacing: .1em; text-transform: lowercase;
  white-space: nowrap;
}
.sev {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 2.5px 8px 1.5px; white-space: nowrap;
}
.sev-critical { background: var(--ink); color: var(--bed); font-weight: 600; }
.sev-major    { border: 1px solid var(--ink-soft); color: var(--ink); }
.sev-minor    { border: 1px solid var(--line); color: var(--ink-soft); }
.sev-unrated  { border: 1px dashed var(--frame); color: var(--ink-faint); }
.dstate {
  display: inline-block; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .14em; padding: 2.5px 8px 1.5px; white-space: nowrap;
}
.dstate-open { border: 1px solid var(--ink); color: var(--ink); }
.dstate-resolved { background: var(--slab-hi); border: 1px solid var(--line); color: var(--ink-faint); }

/* ── the register rows ───────────────────────────────────────── */
.reg { border: 1px solid var(--line); background: var(--slab); }
.reg-head {
  display: grid; grid-template-columns: 96px 1fr 110px 96px;
  gap: 0 18px; align-items: center;
  padding: 8px 18px; border-bottom: 1px solid var(--frame);
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--etch);
}
.irow {
  display: grid; grid-template-columns: 96px 1fr 110px 96px;
  gap: 2px 18px; align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.irow:last-child { border-bottom: 0; }
.irow:hover { background: var(--slab-hi); }
.ir-code { font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.ir-subject { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.ir-meta { margin: 2px 0 0; font-size: 11px; color: var(--etch); }
.ir-plate { text-align: right; }

/* ── the sheet ───────────────────────────────────────────────── */
.sheet-cap {
  border: 1px solid var(--line); background: var(--slab);
  padding: 22px 24px 20px; margin-bottom: 22px;
}
.sc-top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sc-code { font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.sc-subject { margin: 6px 0 2px; font-size: 25px; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.sc-proc { margin: 0 0 16px; font-size: 13px; color: var(--ink-soft); }
.sc-proc a { color: var(--ink-soft); }
.sc-proc a:hover { color: var(--ink); }
.sc-grid {
  display: grid; grid-template-columns: repeat(4, auto) 1fr;
  gap: 14px 34px; align-items: end;
  margin: 0; border-top: 1px solid var(--line); padding-top: 16px;
}
.sc-grid > div { min-width: 0; }
.sc-grid dt {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--etch); margin-bottom: 3px;
}
.sc-grid dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.sc-verdict { text-align: right; align-self: center; }
.sheet-notes {
  border: 1px solid var(--line); border-top: 0; background: var(--well);
  padding: 12px 24px; margin: -22px 0 22px; font-size: 13.5px; color: var(--ink-soft);
}
.sheet-notes b {
  font-family: var(--mono); font-weight: 500; font-size: 10px; color: var(--etch);
  letter-spacing: .14em; text-transform: uppercase; display: block;
}

.sub-head {
  margin: 26px 0 10px; font-size: 12px; font-weight: 600;
  font-family: var(--mono); letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--line); padding-bottom: 7px;
}
.sub-note { margin: -4px 0 12px; font-size: 12px; color: var(--etch); }

/* the calibration sheet — numbered checkpoint rows with leaders */
.cal { border: 1px solid var(--line); background: var(--slab); }
.cp {
  display: grid; grid-template-columns: 44px 1fr 200px 92px;
  gap: 2px 16px; align-items: center;
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--line);
}
.cp:last-child { border-bottom: 0; }
.cp-ix {
  font-size: 12px; color: var(--etch); text-align: center;
  border-right: 1px solid var(--line); align-self: stretch;
  display: flex; align-items: center; justify-content: center;
}
.cp-q { min-width: 0; }
.cp-question {
  margin: 0; font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative; overflow: hidden;
}
.cp-question::after {
  content: ""; position: absolute; bottom: 5px; margin-left: 10px;
  width: 100%; border-bottom: 1px dotted var(--frame);
}
.cp-meta { margin: 3px 0 0; font-size: 10.5px; color: var(--etch); letter-spacing: .04em; }
.cp-crit {
  color: var(--ink-soft); border: 1px solid var(--frame);
  padding: 0 5px; letter-spacing: .1em; text-transform: uppercase; font-size: 9.5px;
}
.cp-read { font-size: 12.5px; color: var(--ink-soft); overflow-wrap: anywhere; }
.cp-read small { display: block; font-size: 10.5px; color: var(--etch); }
.cp-verdict { text-align: right; }

/* defects filed under a sheet */
.sheet-defects .drow { border: 1px solid var(--line); border-top: 0; }
.sheet-defects .drow:first-child { border-top: 1px solid var(--line); }

/* ── defect log rows ─────────────────────────────────────────── */
.drow { background: var(--slab); border: 1px solid var(--line); border-bottom: 0; }
.drow:last-child { border-bottom: 1px solid var(--line); }
.d-line {
  display: grid; grid-template-columns: 96px 1fr auto auto;
  gap: 2px 18px; align-items: center;
  padding: 13px 18px;
}
.d-code { font-size: 12px; color: var(--ink-faint); letter-spacing: .06em; }
.d-title { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.d-meta { margin: 2px 0 0; font-size: 11px; font-family: var(--mono); color: var(--etch); }
.d-meta a { color: var(--etch); }
.d-meta a:hover { color: var(--ink); }
.d-body { padding: 0 18px 14px; border-top: 1px dashed var(--line); margin-top: 2px; }
.d-desc { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-soft); max-width: 90ch; }
.d-res {
  margin: 10px 0 0; padding: 10px 14px; background: var(--well);
  border-left: 2px solid var(--frame); font-size: 13px; color: var(--ink-soft);
}
.d-res b {
  display: block; font-family: var(--mono); font-weight: 500; font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--etch);
}

/* ── procedures ──────────────────────────────────────────────── */
.proc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.proc {
  background: var(--slab); border: 1px solid var(--line);
  padding: 16px 18px 14px; display: flex; flex-direction: column; gap: 8px;
}
.p-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.p-code { font-size: 11px; color: var(--ink-faint); letter-spacing: .06em; }
.p-cat {
  font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line); padding: 2px 7px 1px;
}
.p-name { margin: 0; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.p-desc { margin: 0; font-size: 13px; color: var(--ink-soft); }
.p-lines { margin: 4px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.p-lines li {
  display: flex; gap: 10px; align-items: baseline;
  padding: 7px 0; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-soft);
}
.p-lines li:last-child { border-bottom: 0; }
.p-lines .ix { font-family: var(--mono); font-size: 11px; color: var(--etch); }
.p-empty { margin: 4px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--etch); }
.proc .fold { margin-top: auto; }

/* ── reports ─────────────────────────────────────────────────── */
.rrow {
  background: var(--slab); border: 1px solid var(--line); border-bottom: 0;
  padding: 15px 18px 14px;
}
.rrow:last-child { border-bottom: 1px solid var(--line); }
.r-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.r-code { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); letter-spacing: .06em; }
.r-title { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--ink); }
.r-meta { margin: 3px 0 8px; font-family: var(--mono); font-size: 11px; color: var(--etch); }
.r-content { margin: 0; font-size: 13.5px; color: var(--ink-soft); max-width: 96ch; }

/* ── folds, forms, buttons ───────────────────────────────────── */
.fold { border: 1px solid var(--line); background: var(--slab); margin-top: 18px; }
.fold summary {
  cursor: pointer; padding: 11px 16px; font-size: 12px;
  color: var(--ink-soft); letter-spacing: .08em; list-style: none;
}
.fold summary::-webkit-details-marker { display: none; }
.fold summary:hover { color: var(--ink); background: var(--slab-hi); }
.fold[open] summary { border-bottom: 1px solid var(--line); color: var(--ink); }
.fold .grid-form { padding: 16px; }
.fold .fold-note { margin: 0; padding: 0 16px 14px; font-size: 12px; color: var(--etch); }

.grid-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.gf-wide { grid-column: 1 / -1; }
.field label {
  display: block; font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--etch); margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--well); color: var(--ink);
  border: 1px solid var(--line);
  font: 400 13.5px/1.5 var(--sans);
  padding: 9px 11px; border-radius: 0;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink-soft);
}
.field input::placeholder, .field textarea::placeholder { color: var(--etch); }
.mono-input, .field select { font-family: var(--mono); font-size: 12.5px; }

.verdict-pick { display: flex; gap: 10px; }
.verdict-pick input { position: absolute; opacity: 0; width: 0; height: 0; }
.verdict-pick label {
  cursor: pointer; user-select: none;
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  letter-spacing: .22em; text-indent: .22em;
  padding: 9px 22px 8px; border: 1px solid var(--frame); color: var(--ink-faint);
  background: var(--well);
}
.verdict-pick input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.verdict-pick input[value="pass"]:checked + label {
  background: var(--pass); border-color: var(--pass); color: var(--pass-ink);
}
.verdict-pick input[value="fail"]:checked + label {
  background: var(--fail); border-color: var(--fail); color: var(--fail-ink);
}

.btn {
  display: inline-block; cursor: pointer; text-decoration: none; text-align: center;
  font-family: var(--mono); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 10px 18px 9px; border: 1px solid transparent; border-radius: 0;
  transition: transform .06s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-stamp {
  background: var(--ink); color: var(--bed); border-color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.35);
}
.btn-stamp:hover { background: #FFFFFF; }
.btn-stamp:disabled { opacity: .55; cursor: default; }
.btn-ghost { background: transparent; color: var(--ink-soft); border-color: var(--frame); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-soft); }
.btn-sm { padding: 7px 13px 6px; font-size: 11px; }
.btn-wide { width: 100%; }
.linklike {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink-soft); font: inherit; text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--frame);
}
.linklike:hover { color: var(--ink); }

.form-err { color: var(--warn); font-size: 12px; margin: 0; grid-column: 1 / -1; }

/* ── states: loading, empty, error ───────────────────────────── */
.state:empty { display: none; }
.reading {
  font-family: var(--mono); font-size: 12px; letter-spacing: .12em;
  color: var(--ink-faint); padding: 26px 0;
}
.reading::after { content: "…"; animation: dots 1.2s steps(4) infinite; }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "…"; } }
.empty {
  border: 1px dashed var(--frame); background: var(--slab);
  padding: 26px 24px; margin: 4px 0;
}
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 5px; }
.empty p { margin: 0 0 12px; font-size: 13px; color: var(--ink-soft); max-width: 70ch; }
.empty p:last-child { margin-bottom: 0; }
.err {
  border: 1px solid var(--warn); background: var(--slab);
  padding: 18px 20px; margin: 4px 0;
}
.err p { margin: 0 0 12px; font-family: var(--mono); font-size: 12.5px; color: var(--warn); }

/* ── the gate — a calibration certificate ────────────────────── */
.gatewrap { display: flex; justify-content: center; padding: 24px 0; }
.cert {
  width: min(520px, 100%);
  background: var(--slab);
  border: 1px solid var(--frame);
  outline: 1px solid var(--line); outline-offset: 5px;
  padding: 30px 32px 26px;
}
.cert-eyebrow { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--etch); margin: 0 0 10px; }
.cert-h { margin: 0 0 10px; color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: .01em; }
.cert-lede { margin: 0 0 20px; font-size: 13.5px; color: var(--ink-soft); }
.cert form { display: grid; gap: 13px; }
.cert-alt { margin: 18px 0 12px; font-size: 13px; color: var(--ink-faint); }

.demo-slot { border: 1px dashed var(--frame); padding: 14px 16px 12px; margin: 20px 0 0; }
.ds-tag { margin: 0 0 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--etch); }
.ds-rows { margin: 0 0 12px; display: grid; gap: 4px; }
.ds-rows div { display: flex; gap: 12px; font-size: 12px; }
.ds-rows dt { color: var(--etch); min-width: 76px; }
.ds-rows dd { margin: 0; color: var(--ink); }

/* ── toast + footer ──────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 60; max-width: min(560px, calc(100vw - 40px));
  background: var(--ink); color: var(--bed);
  font-size: 12px; letter-spacing: .04em;
  padding: 11px 18px; box-shadow: 0 6px 24px rgba(0,0,0,.5);
  animation: toast-in .18s ease-out;
}
.toast--err { background: var(--warn); color: #241A02; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.foot {
  border-top: 1px solid var(--line);
  padding: 18px 24px 26px; font-size: 11px; color: var(--ink-faint);
}
.foot p { margin: 0 0 3px; }
.foot-dim { color: var(--etch); }

/* ── reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .view, .toast { animation: none; }
  .reading::after { animation: none; content: "…"; }
  .btn { transition: none; }
  .btn:active { transform: none; }
}

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .counters { grid-template-columns: repeat(3, 1fr); }
  .counter:nth-child(3) { border-right: 0; }
  .counter:nth-child(n+4) { border-top: 1px solid var(--line); }
  .proc-grid { grid-template-columns: 1fr; }
  .sc-grid { grid-template-columns: repeat(2, 1fr); }
  .sc-verdict { text-align: left; grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .hall { width: calc(100% - 32px); }
  .bar { padding: 10px 16px 9px; }
  .brand-sub { display: none; }
  .who { flex-basis: 100%; justify-content: flex-end; }
  .reg-head { display: none; }
  .irow { grid-template-columns: 1fr auto; padding: 12px 14px; }
  .ir-code { grid-row: 1; grid-column: 1; }
  .ir-status { grid-row: 1; grid-column: 2; justify-self: end; }
  .ir-main { grid-row: 2; grid-column: 1 / -1; }
  .ir-plate { grid-row: 3; grid-column: 1 / -1; text-align: left; margin-top: 6px; }
  .cp { grid-template-columns: 36px 1fr; row-gap: 8px; }
  .cp-question::after { content: none; }
  .cp-read { grid-column: 2; }
  .cp-verdict { grid-column: 2; text-align: left; }
  .d-line { grid-template-columns: 1fr auto; }
  .d-code { grid-row: 1; grid-column: 1; }
  .dstate { grid-row: 1; grid-column: 2; justify-self: end; }
  .d-main { grid-row: 2; grid-column: 1 / -1; }
  .d-sev { grid-row: 3; grid-column: 1; justify-self: start; }
  .grid-form { grid-template-columns: 1fr; }
  .cert { padding: 24px 20px 20px; }
  .counters { grid-template-columns: 1fr 1fr; }
  .counter { border-right: 0; border-top: 1px solid var(--line); }
  .counter:nth-child(-n+2) { border-top: 0; }
  .counter:nth-child(odd) { border-right: 1px solid var(--line); }
}
