:root {
  --paper: #f7f9f8;
  --sheet: #ffffff;
  --ink: #102438;
  --slate: #607282;
  --line: #ccd6dc;
  --cyan: #007f98;
  --cyan-soft: #dff4f6;
  --amber: #a76600;
  --amber-soft: #fff1d6;
  --danger: #9a3030;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.masthead, footer { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(20px, 5vw, 72px); border-bottom: 1px solid var(--ink); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.masthead p, footer { color: var(--slate); }
.wordmark { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-weight: 700; text-decoration: none; }
main { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px, 8vw, 120px); padding: clamp(52px, 8vw, 110px) 0 48px; align-items: end; }
.kicker, .scope-label { margin: 0 0 14px; color: var(--slate); font: 700 11px/1.3 ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .1em; text-transform: uppercase; }
h1 { margin: 0; max-width: 770px; font-size: clamp(34px, 5.5vw, 70px); line-height: .98; letter-spacing: -.055em; font-weight: 650; }
h1 span { color: var(--slate); font-weight: 430; }
.scope-note { border-left: 3px solid var(--amber); padding: 5px 0 5px 24px; font-size: 14px; line-height: 1.6; }
.scope-note p:last-child { margin: 0; }
.desk { display: grid; grid-template-columns: minmax(310px, .78fr) minmax(420px, 1.22fr); border: 1px solid var(--ink); background: var(--sheet); box-shadow: 8px 8px 0 #dfe5e7; }
.trace-panel, .report-panel { padding: clamp(24px, 4vw, 50px); }
.trace-panel { border-right: 1px solid var(--ink); background: #f2f6f6; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; border-bottom: 1px solid var(--line); }
.run-label, .verdict { margin: 0 0 12px; color: var(--slate); font: 600 11px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace; text-align: right; }
.verdict[data-state="pass"] { color: var(--cyan); }
.verdict[data-state="failed"] { color: var(--danger); }
.trace { margin: 32px 0; padding: 0; list-style: none; }
.trace li { position: relative; display: flex; gap: 18px; min-height: 72px; color: var(--slate); }
.trace li:not(:last-child)::before { content: ""; position: absolute; top: 15px; bottom: -2px; left: 6px; width: 2px; background: var(--line); }
.trace-dot { position: relative; z-index: 1; flex: 0 0 14px; width: 14px; height: 14px; border: 2px solid var(--slate); border-radius: 50%; background: var(--sheet); }
.trace strong { display: block; color: var(--ink); font-size: 14px; }
.trace small { display: block; margin-top: 5px; line-height: 1.4; }
.trace li.running .trace-dot { border-color: var(--cyan); animation: pulse 1s ease-in-out infinite alternate; }
.trace li.verified .trace-dot { border-color: var(--cyan); background: var(--cyan); }
.trace li.verified:not(:last-child)::before { background: var(--cyan); }
.trace li.failed .trace-dot { border-color: var(--danger); background: var(--danger); }
.trace li.fenced .trace-dot, .trace li.fence .trace-dot { border-color: var(--amber); background: var(--amber-soft); }
.trace li.fenced strong, .trace li.fence strong { color: var(--amber); }
button { width: 100%; border: 0; padding: 15px 18px; color: white; background: var(--ink); font: 700 14px/1.2 inherit; cursor: pointer; }
button:hover { background: #193b58; }
button:disabled { cursor: wait; opacity: .58; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.status { min-height: 40px; margin: 16px 0 0; color: var(--slate); font-size: 13px; line-height: 1.5; }
h2 { margin: 30px 0 24px; font-size: 28px; letter-spacing: -.03em; }
h3 { margin: 32px 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .07em; }
.empty { max-width: 530px; padding: 35px 0; color: var(--slate); line-height: 1.65; }
.identity, .counts { margin: 0; }
.identity > div { display: grid; grid-template-columns: 150px 1fr; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--slate); font-size: 12px; }
dd { margin: 0; font: 600 12px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.counts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); border-left: 1px solid var(--line); }
.counts > div { padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.counts dd { margin-top: 7px; font-size: 18px; }
.fence-result { margin-top: 26px; padding: 18px; border-left: 3px solid var(--amber); background: var(--amber-soft); font-size: 13px; line-height: 1.5; }
.fence-result p { margin: 0; }
.fence-result .kicker { color: var(--amber); margin-bottom: 7px; }
.pending { margin: 0; padding: 0; list-style: none; columns: 2; color: var(--slate); font-size: 13px; }
.pending li { margin: 0 0 9px; break-inside: avoid; }
.pending li::before { content: "OPEN"; margin-right: 8px; color: var(--amber); font: 700 9px ui-monospace, monospace; }
.pass-scope, .failure { margin-top: 28px; padding: 18px; border: 1px solid var(--cyan); background: var(--cyan-soft); font-size: 13px; line-height: 1.55; }
.failure { border-color: var(--danger); background: #fff0f0; }
.failure-title { color: var(--danger); font-weight: 700; }
footer { margin-top: 72px; border-top: 1px solid var(--ink); border-bottom: 0; }
@keyframes pulse { to { background: var(--cyan); transform: scale(.8); } }
@media (max-width: 760px) {
  .masthead { align-items: flex-start; }
  .masthead p { max-width: 150px; margin: 0; text-align: right; }
  main { width: min(100% - 28px, 600px); }
  .intro { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 34px; }
  .desk { grid-template-columns: 1fr; box-shadow: 5px 5px 0 #dfe5e7; }
  .trace-panel { border-right: 0; border-bottom: 1px solid var(--ink); }
  .identity > div { grid-template-columns: 1fr; gap: 4px; }
  .counts { grid-template-columns: repeat(2, 1fr); }
  .pending { columns: 1; }
  footer { gap: 20px; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}