/* ProofBench — calibration-bench instrument identity.
   Graphite chassis, machined plates, phosphor readouts. Transform/opacity
   motion only; see design/DESIGN_CONSTITUTION.md. */
:root {
  --bench: #111417;
  --plate: #181c20;
  --plate-edge: #2a3036;
  --phosphor: #57e389;
  --amber: #e8b33c;
  --fault: #e5534b;
  --ink: #d7dee6;
  --ink-dim: #8a94a0;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bench); color: var(--ink);
  font-family: var(--mono); font-size: 15px; line-height: 1.55;
  padding: 20px 16px 40px;
}
main, .top-plate, .lede, .foot { max-width: 1080px; margin-left: auto; margin-right: auto; }
.plate {
  background: var(--plate); border: 1px solid var(--plate-edge);
  border-radius: 6px; padding: 20px 22px; margin-bottom: 18px;
  box-shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 24px rgba(0,0,0,.35);
  position: relative;
}
/* registration crosshairs on module corners */
.plate::before, .plate::after {
  content: "+"; position: absolute; color: #3a424b; font-size: 13px; line-height: 1;
}
.plate::before { top: 5px; left: 8px; }
.plate::after { bottom: 5px; right: 8px; }
.top-plate { display: flex; gap: 28px; align-items: flex-end; flex-wrap: wrap; }
.brand-name { font-size: 30px; font-weight: 700; letter-spacing: .18em; }
.brand-sub { color: var(--ink-dim); font-size: 11.5px; letter-spacing: .14em; margin-top: 2px; }
.run-state { margin-left: auto; text-align: right; }
.run-state + .run-state { margin-left: 0; }
.readout-label { color: var(--ink-dim); font-size: 10.5px; letter-spacing: .22em; }
.readout {
  font-size: 19px; font-weight: 700; letter-spacing: .08em; margin-top: 2px;
  background: #0b0e10; border: 1px solid #23282e; border-radius: 4px;
  padding: 4px 12px; box-shadow: 0 2px 8px rgba(0,0,0,.55) inset;
}
.readout.amber { color: var(--amber); }
.verdict-holds { color: var(--phosphor); }
.verdict-disputed { color: var(--fault); }
.verdict-idle { color: var(--ink-dim); }
.lede { color: var(--ink-dim); margin: 4px auto 18px; }
.lede strong { color: var(--ink); }
h2 { font-size: 14.5px; letter-spacing: .16em; margin: 0 0 14px; font-weight: 700; }
.mod-no { color: var(--phosphor); margin-right: 8px; }
.sub-head { font-size: 12px; letter-spacing: .14em; margin: 16px 0 8px; }
.amber { color: var(--amber); }
.field-label { display: block; font-size: 12px; color: var(--ink-dim); letter-spacing: .08em; margin-bottom: 6px; }
textarea {
  width: 100%; background: #0b0e10; color: var(--ink); border: 1px solid var(--plate-edge);
  border-radius: 4px; padding: 12px; font-family: var(--mono); font-size: 13.5px;
  resize: vertical;
}
textarea:focus-visible, button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--phosphor); outline-offset: 2px;
}
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.btn {
  font-family: var(--mono); font-size: 13px; letter-spacing: .1em; cursor: pointer;
  border-radius: 4px; padding: 11px 18px; text-decoration: none; display: inline-block;
  border: 1px solid var(--plate-edge); background: #20262c; color: var(--ink);
  transition: transform .08s ease, background .15s ease, opacity .15s ease;
}
.btn:hover { background: #262d34; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #14532d; border-color: #1f7a44; color: #eafff2; font-weight: 700; }
.btn-primary:hover { background: #1a6b3b; }
.btn-primary[disabled] { opacity: .55; cursor: wait; }
.btn.dl[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.note { color: var(--ink-dim); font-size: 12.5px; margin: 12px 0 0; }
.error { color: var(--fault); font-size: 13px; margin: 10px 0 0; }
.empty { color: var(--ink-dim); border: 1px dashed #2e353d; border-radius: 4px; padding: 14px; font-size: 13px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th { text-align: left; color: var(--ink-dim); font-size: 11px; letter-spacing: .16em;
     border-bottom: 1px solid var(--plate-edge); padding: 6px 8px; }
td { border-bottom: 1px solid #22282e; padding: 7px 8px; vertical-align: top; }
td.src { color: var(--ink-dim); }
.chip { font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.chip.pass { color: var(--phosphor); }
.chip.fail { color: var(--fault); }
.unparsed { color: var(--amber); font-size: 13px; margin: 0; padding-left: 18px; }
.graticule {
  background-image:
    linear-gradient(rgba(87,227,137,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,227,137,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
#trace { width: 100%; height: 90px; display: block; margin-bottom: 10px; }
#trace-line { transition: stroke-dashoffset 1.1s ease; }
.summary-readout { font-size: 15px; letter-spacing: .06em; margin: 14px 0 0; }
.hash-line { font-size: 12px; color: var(--ink-dim); margin-top: 12px; word-break: break-all; }
.hash-line code { color: var(--ink); }
.kane-status { margin-top: 16px; border-top: 1px solid var(--plate-edge); padding-top: 14px; }
.kane-status .readout { display: inline-block; }
input[type="file"] { color: var(--ink-dim); font-family: var(--mono); font-size: 12.5px; margin-top: 4px; }
.foot { color: var(--ink-dim); font-size: 12px; text-align: center; }
@media (max-width: 720px) {
  .run-state { margin-left: 0; text-align: left; }
  .brand-name { font-size: 23px; }
  .btn { width: 100%; text-align: center; }
  td, th { padding: 6px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
