@layer reset, tokens, base, components, utilities, responsive, experience, brand;

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-v22-latin.woff2") format("woff2");
}

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

  html {
    scroll-behavior: smooth;
    text-size-adjust: 100%;
  }

  body,
  h1,
  h2,
  h3,
  h4,
  p,
  ul,
  ol,
  dl,
  dd,
  fieldset,
  pre {
    margin: 0;
  }

  ul,
  ol {
    padding: 0;
  }

  button,
  input {
    font: inherit;
  }

  button,
  a {
    -webkit-tap-highlight-color: transparent;
  }

  img,
  svg {
    display: block;
    max-width: 100%;
  }

  [hidden] {
    display: none !important;
  }
}

@layer tokens {
  :root {
    color-scheme: light;
    --paper: #f6f7f9;
    --paper-raised: #ffffff;
    --paper-soft: #eef1f5;
    --ink: #111318;
    --ink-soft: #313640;
    --muted: #626a78;
    --muted-strong: #49515e;
    --line: #d6dbe3;
    --line-strong: #aeb6c3;
    --accent: #165dcc;
    --accent-hover: #0d4eaF;
    --accent-soft: #eaf1ff;
    --pass: #08766a;
    --pass-soft: #e5f6f3;
    --warning: #946000;
    --warning-soft: #fff3d5;
    --blocker: #c43d2d;
    --blocker-soft: #fff0ed;
    --unknown: #665a7d;
    --unknown-soft: #f1eef8;
    --info: #526172;
    --info-soft: #edf1f5;
    --focus: #1769e0;
    --selection: #cfe0ff;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --display: "Space Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ink-bg: #0b0e15;
    --ink-bg-line: rgb(255 255 255 / 9%);
    --ink-bg-grid: rgb(255 255 255 / 4.5%);
    --on-ink: #f4f6fa;
    --on-ink-soft: #b9c3d6;
    --on-ink-muted: #93a0b7;
    --accent-on-ink: #6ea6ff;
    --pass-on-ink: #35c8ad;
    --blocker-on-ink: #ff8f7c;
    --header-h: 74px;
    --page: 1180px;
    --radius-sm: 6px;
    --radius-md: 9px;
    --radius-lg: 12px;
    --shadow-dialog: 0 24px 70px rgb(17 19 24 / 14%);
  }
}

@layer base {
  ::selection {
    color: var(--ink);
    background: var(--selection);
  }

  body {
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
  }

  body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    background-image:
      linear-gradient(to right, rgb(17 19 24 / 2.7%) 1px, transparent 1px),
      linear-gradient(to bottom, rgb(17 19 24 / 2.7%) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(to bottom, #000 0, transparent 720px);
  }

  a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
  }

  button {
    color: inherit;
  }

  button:focus-visible,
  input:focus-visible,
  a:focus-visible,
  summary:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
  }

  code,
  pre,
  .mono {
    font-family: var(--mono);
  }
}

@layer components {
  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    background: var(--paper-raised);
    transform: translateY(-160%);
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  .site-header,
  .site-footer,
  main > section {
    width: min(calc(100% - 40px), var(--page));
    margin-inline: auto;
  }

  .site-header {
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 760;
    letter-spacing: -0.025em;
    text-decoration: none;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    overflow: visible;
    color: var(--accent);
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .brand-mark circle {
    fill: var(--paper-raised);
  }

  .header-nav,
  .site-footer nav {
    display: flex;
    align-items: center;
    gap: 22px;
  }

  .header-nav a,
  .site-footer nav a {
    color: var(--muted-strong);
    font-size: 14px;
    font-weight: 620;
    text-decoration: none;
  }

  .header-nav a:hover,
  .site-footer nav a:hover {
    color: var(--ink);
    text-decoration: underline;
  }

  .hero {
    display: grid;
    min-height: min(720px, calc(100svh - 74px));
    align-content: center;
    padding-block: 72px 62px;
  }

  .hero-copy {
    width: min(920px, 100%);
  }

  .utility-label {
    color: var(--muted-strong);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.095em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .hero h1 {
    max-width: 980px;
    margin-top: 15px;
    font-size: clamp(2.65rem, 6vw, 5.45rem);
    font-weight: 760;
    letter-spacing: -0.065em;
    line-height: 0.98;
    text-wrap: balance;
  }

  .hero-lede {
    max-width: 760px;
    margin-top: 24px;
    color: var(--ink-soft);
    font-size: clamp(1.05rem, 1.8vw, 1.28rem);
    line-height: 1.55;
    text-wrap: pretty;
  }

  .scan-form {
    width: min(1020px, 100%);
    margin-top: 42px;
  }

  .scan-form > label {
    display: block;
    margin-bottom: 9px;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
  }

  .url-control {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 76px;
    align-items: stretch;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background: var(--paper-raised);
    transition: border-color 160ms ease, box-shadow 160ms ease;
  }

  .url-control:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgb(22 93 204 / 12%);
  }

  .protocol-hint {
    display: grid;
    min-width: 64px;
    place-items: center;
    margin-block: 18px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.08em;
  }

  .url-control input {
    min-width: 0;
    padding: 0 20px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
    font-family: var(--mono);
    font-size: clamp(15px, 1.7vw, 18px);
  }

  .url-control input::placeholder {
    color: #89919e;
    opacity: 1;
  }

  .primary-button,
  .secondary-button,
  .render-button,
  .filter-button,
  .text-button,
  .copy-button,
  .finding-toggle,
  .inline-rescan {
    cursor: pointer;
  }

  .primary-button {
    display: inline-flex;
    min-width: 196px;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 8px;
    padding: 0 20px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-md);
    color: #fff;
    background: var(--accent);
    font-size: 15px;
    font-weight: 740;
    transition: background 160ms ease, transform 160ms ease;
  }

  .primary-button:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
  }

  .primary-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .primary-button:disabled,
  .secondary-button:disabled,
  .render-button:disabled,
  .copy-button:disabled,
  .inline-rescan:disabled {
    cursor: not-allowed;
    opacity: 0.58;
  }

  .form-underlay {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 10px;
  }

  .form-underlay p,
  .text-button {
    color: var(--muted);
    font-size: 13px;
  }

  .text-button {
    flex: 0 0 auto;
    padding: 3px 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    font-weight: 670;
  }

  .text-button:hover {
    color: var(--accent);
  }

  .field-error {
    min-height: 24px;
    margin-top: 7px;
    color: var(--blocker);
    font-size: 14px;
    font-weight: 650;
  }

  .trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 28px;
    color: var(--muted-strong);
    font-size: 13px;
    list-style: none;
  }

  .trust-row li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .trust-row li::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pass);
    content: "";
  }

  .scan-progress,
  .request-error,
  .results {
    margin-bottom: 92px;
    border-top: 1px solid var(--line-strong);
  }

  .scan-progress {
    padding-block: 56px 72px;
  }

  .progress-heading,
  .result-heading,
  .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
  }

  .progress-heading h2,
  .result-heading h2 {
    margin-top: 8px;
    font-size: clamp(1.9rem, 4vw, 3rem);
    letter-spacing: -0.045em;
    line-height: 1.08;
  }

  .live-status {
    color: var(--accent);
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 700;
  }

  .progress-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    margin-top: 38px;
    border-block: 1px solid var(--line);
    list-style: none;
  }

  .progress-steps li {
    position: relative;
    display: grid;
    min-height: 154px;
    align-content: start;
    gap: 7px;
    padding: 20px 18px;
    border-right: 1px solid var(--line);
    color: var(--muted);
    background: rgb(255 255 255 / 42%);
  }

  .progress-steps li:last-child {
    border-right: 0;
  }

  .progress-steps li::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
  }

  .progress-steps li > span {
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    margin-bottom: 4px;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 750;
  }

  .progress-steps strong {
    color: var(--muted-strong);
    font-size: 14px;
  }

  .progress-steps small {
    font-size: 12px;
    line-height: 1.45;
  }

  .progress-steps li[data-status="active"] {
    color: var(--ink-soft);
    background: var(--accent-soft);
  }

  .progress-steps li[data-status="active"]::after {
    background: var(--accent);
    animation: phase-progress 1.6s ease-in-out infinite alternate;
  }

  .progress-steps li[data-status="active"] > span {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
  }

  .progress-steps li[data-status="complete"] {
    color: var(--muted-strong);
  }

  .progress-steps li[data-status="complete"]::after {
    background: var(--pass);
  }

  .progress-steps li[data-status="complete"] > span {
    border-color: var(--pass);
    color: #fff;
    background: var(--pass);
  }

  @keyframes phase-progress {
    from { transform: scaleX(0.24); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
  }

  .request-error {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    padding-block: 48px 64px;
  }

  .error-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--blocker);
    border-radius: 50%;
    color: var(--blocker);
    background: var(--blocker-soft);
    font-family: var(--mono);
    font-weight: 800;
  }

  .request-error h2 {
    margin-top: 8px;
    font-size: clamp(1.55rem, 3vw, 2.2rem);
    letter-spacing: -0.035em;
  }

  .request-error h2 + p {
    max-width: 700px;
    margin-top: 10px;
    color: var(--ink-soft);
  }

  .request-id {
    margin-top: 9px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
  }

  .results {
    padding-top: 0;
  }

  .result-toolbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    min-height: 88px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-strong);
    background: rgb(246 247 249 / 96%);
    backdrop-filter: blur(10px);
  }

  .result-url-block {
    min-width: 0;
  }

  .result-url-block > a {
    display: block;
    max-width: min(66vw, 720px);
    overflow: hidden;
    color: var(--ink);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .result-url-block > p:last-child {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
  }

  .toolbar-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
  }

  .secondary-button,
  .copy-button,
  .inline-rescan {
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    background: var(--paper-raised);
    font-size: 12px;
    font-weight: 720;
    transition: border-color 150ms ease, color 150ms ease, background 150ms ease;
  }

  .secondary-button:hover:not(:disabled),
  .copy-button:hover:not(:disabled),
  .inline-rescan:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }

  .result-heading {
    padding-block: 58px 30px;
  }

  .count-line {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
  }

  .count-chip,
  .status-badge,
  .certainty-badge,
  .purpose-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
  }

  .count-chip {
    min-height: 28px;
    padding: 6px 9px;
    border: 1px solid var(--line);
    background: var(--paper-raised);
  }

  .count-chip::before,
  .status-badge::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  .severity-blocker { color: var(--blocker); }
  .severity-warning { color: var(--warning); }
  .severity-unknown { color: var(--unknown); }
  .severity-pass { color: var(--pass); }
  .severity-info { color: var(--info); }

  .truth-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-block: 1px solid var(--line-strong);
    background: rgb(255 255 255 / 46%);
  }

  .truth-row {
    min-width: 0;
    padding: 20px 18px 22px;
    border-right: 1px solid var(--line);
  }

  .truth-row:last-child {
    border-right: 0;
  }

  .truth-index {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
  }

  .truth-row h3 {
    margin-top: 18px;
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 720;
  }

  .truth-row p {
    margin-top: 5px;
    font-size: 15px;
    font-weight: 740;
    line-height: 1.35;
  }

  .truth-row[data-state="blocker"] { box-shadow: inset 0 -3px var(--blocker); }
  .truth-row[data-state="warning"] { box-shadow: inset 0 -3px var(--warning); }
  .truth-row[data-state="unknown"] { box-shadow: inset 0 -3px var(--unknown); }
  .truth-row[data-state="pass"] { box-shadow: inset 0 -3px var(--pass); }
  .truth-row[data-state="info"] { box-shadow: inset 0 -3px var(--info); }

  .before-after {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 2fr;
    gap: 34px;
    margin-top: 30px;
    padding: 24px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .before-after h3,
  .render-callout h3,
  .section-heading h3 {
    margin-top: 7px;
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    letter-spacing: -0.035em;
    line-height: 1.2;
  }

  .before-after-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
  }

  .change-cell {
    padding: 14px;
    background: var(--paper-raised);
  }

  .change-cell strong {
    display: block;
    font-family: var(--mono);
    font-size: 22px;
  }

  .change-cell span {
    color: var(--muted);
    font-size: 12px;
  }

  .change-list {
    grid-column: 1 / -1;
    padding: 14px;
    background: var(--paper-raised);
  }

  .change-list ul {
    display: grid;
    gap: 5px;
    padding-left: 18px;
    color: var(--ink-soft);
    font-size: 13px;
  }

  .render-callout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 34px;
    align-items: center;
    margin-top: 32px;
    padding: 28px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .render-callout p:last-child {
    max-width: 720px;
    margin-top: 9px;
    color: var(--muted-strong);
  }

  .render-button {
    display: grid;
    min-width: 224px;
    gap: 2px;
    padding: 13px 17px;
    border: 1px solid var(--ink);
    border-radius: var(--radius-sm);
    color: var(--paper-raised);
    background: var(--ink);
    text-align: left;
  }

  .render-button:hover:not(:disabled) {
    color: #fff;
    background: #242833;
  }

  .render-button span {
    font-size: 13px;
    font-weight: 750;
  }

  .render-button small {
    color: #b9c0cc;
    font-size: 10px;
  }

  .render-progress {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-top: 20px;
    padding: 17px 20px;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    background: var(--accent-soft);
  }

  .render-progress p {
    margin-top: 2px;
    color: var(--muted-strong);
    font-size: 12px;
  }

  .activity-dot {
    position: relative;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--accent);
  }

  .activity-dot::after {
    position: absolute;
    inset: -5px;
    border: 1px solid var(--accent);
    border-radius: inherit;
    content: "";
    animation: activity-pulse 1.4s ease-out infinite;
  }

  @keyframes activity-pulse {
    from { opacity: 1; transform: scale(0.55); }
    to { opacity: 0; transform: scale(1.3); }
  }

  .render-summary {
    margin-top: 28px;
    padding: 28px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .render-attempt-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    border: 1px solid var(--line);
    background: var(--line);
  }

  .attempt-cell {
    min-width: 0;
    padding: 14px 15px;
    background: var(--paper);
  }

  .attempt-cell span,
  .attempt-cell small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.45;
  }

  .attempt-cell strong {
    display: block;
    margin-block: 5px 3px;
    overflow-wrap: anywhere;
    font-family: var(--mono);
    font-size: 13px;
    line-height: 1.4;
  }

  .render-retry-note {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--warning) 55%, var(--line));
    border-radius: var(--radius-sm);
    color: var(--muted-strong);
    background: var(--warning-soft);
    font-size: 12px;
    line-height: 1.55;
  }

  .render-verification {
    display: grid;
    grid-template-columns: minmax(190px, 0.65fr) 2fr;
    gap: 24px;
    align-items: start;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .render-verification h4 {
    margin-top: 7px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p,
  .section-heading > div + p,
  #render-cost {
    max-width: 420px;
    color: var(--muted);
    font-size: 12px;
    text-align: right;
  }

  .delta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 24px;
    border: 1px solid var(--line);
    background: var(--line);
  }

  .metric-cell {
    min-width: 0;
    padding: 17px;
    background: var(--paper-raised);
  }

  .metric-cell span {
    display: block;
    color: var(--muted);
    font-size: 11px;
  }

  .metric-cell strong {
    display: block;
    margin-top: 6px;
    overflow: hidden;
    font-family: var(--mono);
    font-size: 19px;
    text-overflow: ellipsis;
  }

  .render-evidence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 18px;
  }

  .evidence-block {
    min-width: 0;
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }

  .evidence-block h4 {
    font-size: 12px;
    letter-spacing: 0.02em;
  }

  .evidence-block p,
  .evidence-block ul {
    margin-top: 8px;
    color: var(--muted-strong);
    font-family: var(--mono);
    font-size: 11px;
    line-height: 1.6;
  }

  .evidence-block ul {
    padding-left: 17px;
  }

  .evidence-workspace {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 42px;
    margin-top: 58px;
    align-items: start;
  }

  .filter-rail {
    position: sticky;
    top: 110px;
  }

  .filter-rail fieldset {
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .filter-rail fieldset + fieldset {
    margin-top: 26px;
  }

  .filter-rail legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .filter-list {
    display: grid;
    gap: 3px;
  }

  .filter-button {
    display: flex;
    width: 100%;
    min-height: 38px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--muted-strong);
    background: transparent;
    font-size: 12px;
    font-weight: 660;
    text-align: left;
  }

  .filter-button:hover {
    border-color: var(--line);
    background: var(--paper-raised);
  }

  .filter-button[aria-pressed="true"] {
    border-color: var(--ink);
    color: var(--ink);
    background: var(--paper-raised);
  }

  .filter-button span:last-child {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
  }

  .filter-note {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
  }

  .evidence-pane {
    min-width: 0;
  }

  .crawler-section,
  .finding-section,
  .raw-section {
    scroll-margin-top: 110px;
  }

  .finding-section,
  .raw-section {
    margin-top: 64px;
    padding-top: 58px;
    border-top: 1px solid var(--line-strong);
  }

  .crawler-groups {
    margin-top: 25px;
    border-block: 1px solid var(--line-strong);
  }

  .crawler-group + .crawler-group {
    border-top: 1px solid var(--line-strong);
  }

  .crawler-group-heading {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 18px;
    padding: 13px 10px;
    background: var(--paper-soft);
  }

  .crawler-group-heading strong {
    font-size: 12px;
  }

  .crawler-group-heading span {
    color: var(--muted);
    font-size: 11px;
  }

  .crawler-row {
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) minmax(130px, 0.8fr) minmax(180px, 1.4fr);
    gap: 18px;
    align-items: center;
    min-height: 66px;
    padding: 11px 10px;
    border-top: 1px solid var(--line);
    background: rgb(255 255 255 / 40%);
  }

  .crawler-name strong,
  .crawler-name span {
    display: block;
  }

  .crawler-name strong {
    font-family: var(--mono);
    font-size: 12px;
  }

  .crawler-name span {
    margin-top: 2px;
    color: var(--muted);
    font-size: 10px;
  }

  .status-badge {
    width: fit-content;
    min-height: 25px;
    padding: 5px 8px;
    border: 1px solid currentColor;
    background: var(--paper-raised);
  }

  .crawler-evidence {
    min-width: 0;
    color: var(--muted-strong);
    font-size: 11px;
    line-height: 1.5;
  }

  .crawler-evidence code {
    display: block;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .finding-list {
    display: grid;
    gap: 10px;
    margin-top: 25px;
  }

  .finding {
    overflow: clip;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: var(--radius-sm);
    background: var(--paper-raised);
  }

  .finding[data-severity="blocker"] { border-left-color: var(--blocker); }
  .finding[data-severity="warning"] { border-left-color: var(--warning); }
  .finding[data-severity="unknown"] { border-left-color: var(--unknown); }
  .finding[data-severity="pass"] { border-left-color: var(--pass); }
  .finding[data-severity="info"] { border-left-color: var(--info); }

  .finding-toggle {
    display: grid;
    width: 100%;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 13px;
    align-items: start;
    padding: 17px 18px;
    border: 0;
    color: inherit;
    background: transparent;
    text-align: left;
  }

  .finding-toggle:hover {
    background: var(--paper);
  }

  .finding-toggle .status-badge {
    margin-top: 1px;
  }

  .finding-title-block {
    min-width: 0;
  }

  .finding-title-block strong {
    display: block;
    font-size: 14px;
    line-height: 1.35;
  }

  .finding-title-block span {
    display: block;
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted-strong);
    font-size: 12px;
    line-height: 1.45;
    text-overflow: ellipsis;
  }

  .finding-chevron {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform 160ms ease;
  }

  .finding-toggle[aria-expanded="true"] .finding-chevron {
    transform: rotate(180deg);
  }

  .finding-panel {
    padding: 0 18px 20px 134px;
    border-top: 1px solid var(--line);
  }

  .finding-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    padding-top: 16px;
  }

  .certainty-badge,
  .purpose-badge {
    min-height: 23px;
    padding: 5px 8px;
    color: var(--muted-strong);
    background: var(--paper-soft);
  }

  .finding-columns {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    margin-top: 18px;
  }

  .finding-columns h4,
  .fix-box h4 {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .evidence-list {
    display: grid;
    gap: 8px;
    margin-top: 10px;
  }

  .evidence-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--line);
  }

  .evidence-row dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 680;
  }

  .evidence-row dd {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    font-family: var(--mono);
    font-size: 10.5px;
  }

  .evidence-row dd a {
    color: var(--accent);
  }

  .interpretation p {
    margin-top: 10px;
    color: var(--ink-soft);
    font-size: 12px;
  }

  .interpretation .boundary-copy {
    color: var(--muted);
  }

  .fix-box {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }

  .fix-box > strong {
    display: block;
    margin-top: 6px;
    font-size: 13px;
  }

  .fix-box > p {
    margin-top: 8px;
    color: var(--ink-soft);
    font-size: 12px;
  }

  .fix-code {
    position: relative;
    margin-top: 13px;
  }

  .fix-code pre {
    max-width: 100%;
    overflow-x: auto;
    padding: 15px 96px 15px 15px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: #e8edf5;
    background: #171a20;
    font-size: 11px;
    line-height: 1.6;
  }

  .fix-code .copy-button {
    position: absolute;
    top: 8px;
    right: 8px;
    border-color: #4d5563;
    color: #f4f7fb;
    background: #2a303a;
  }

  .fix-warning {
    color: var(--warning) !important;
  }

  .finding-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
  }

  .no-findings {
    margin-top: 25px;
    padding: 30px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    text-align: center;
  }

  .raw-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin-top: 25px;
    border: 1px solid var(--line);
    background: var(--line);
  }

  .raw-cell {
    min-width: 0;
    min-height: 114px;
    padding: 16px;
    background: var(--paper-raised);
  }

  .raw-cell dt {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .raw-cell dd {
    margin-top: 8px;
    overflow-wrap: anywhere;
    color: var(--ink-soft);
    font-size: 13px;
    line-height: 1.5;
  }

  .raw-cell dd.mono {
    font-size: 11px;
  }

  .method-boundary {
    max-width: 890px;
    margin-top: 56px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
  }

  .method-boundary a {
    color: var(--ink-soft);
    font-weight: 700;
  }

  .site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 40px;
    align-items: end;
    padding-block: 38px 44px;
    border-top: 1px solid var(--line-strong);
    color: var(--muted);
    font-size: 12px;
  }

  .footer-brand {
    width: fit-content;
    font-size: 15px;
  }

  .site-footer > div > p {
    margin-top: 7px;
  }

  /* Trust and methodology pages */
  .static-main {
    width: min(calc(100% - 40px), 900px);
    margin-inline: auto;
    padding-block: 72px 104px;
  }

  .static-hero {
    padding-bottom: 46px;
    border-bottom: 1px solid var(--line-strong);
  }

  .static-hero h1 {
    max-width: 800px;
    margin-top: 13px;
    font-size: clamp(2.5rem, 7vw, 5rem);
    letter-spacing: -0.06em;
    line-height: 1;
  }

  .static-hero p:last-child {
    max-width: 720px;
    margin-top: 22px;
    color: var(--ink-soft);
    font-size: 18px;
  }

  .static-content {
    display: grid;
    gap: 46px;
    padding-top: 48px;
  }

  .static-content section {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
  }

  .static-content h2 {
    font-size: 15px;
    letter-spacing: -0.02em;
  }

  .static-copy {
    color: var(--ink-soft);
  }

  .static-copy p + p,
  .static-copy p + ul,
  .static-copy ul + p {
    margin-top: 15px;
  }

  .static-copy ul,
  .static-copy ol {
    display: grid;
    gap: 9px;
    padding-left: 20px;
  }

  .static-copy code {
    padding: 2px 5px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--paper-raised);
    font-size: 0.88em;
  }

  .truth-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 13px;
  }

  .truth-table th,
  .truth-table td {
    padding: 11px;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
  }

  .truth-table th {
    background: var(--paper-soft);
  }
}

@layer utilities {
  .visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
}

@layer responsive {
  @media (max-width: 900px) {
    .progress-steps {
      grid-template-columns: 1fr;
      border: 1px solid var(--line);
    }

    .progress-steps li {
      min-height: auto;
      grid-template-columns: auto minmax(0, 1fr);
      column-gap: 12px;
      padding: 14px;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }

    .progress-steps li:last-child {
      border-bottom: 0;
    }

    .progress-steps li > span {
      grid-row: 1 / span 2;
      margin: 0;
    }

    .progress-steps small {
      grid-column: 2;
    }

    .truth-strip {
      grid-template-columns: 1fr 1fr;
    }

    .truth-row:nth-child(2) {
      border-right: 0;
    }

    .truth-row:nth-child(-n + 2) {
      border-bottom: 1px solid var(--line);
    }

    .evidence-workspace {
      grid-template-columns: 1fr;
      gap: 30px;
    }

    .filter-rail {
      position: static;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .filter-rail fieldset + fieldset {
      margin-top: 0;
    }

    .filter-list {
      display: flex;
      overflow-x: auto;
      padding-bottom: 5px;
      scrollbar-width: thin;
    }

    .filter-button {
      width: auto;
      flex: 0 0 auto;
    }

    .filter-note {
      grid-column: 1 / -1;
      margin-top: 0;
    }

    .finding-panel {
      padding-left: 18px;
    }

    .static-content section {
      grid-template-columns: 1fr;
      gap: 14px;
    }
  }

  @media (max-width: 720px) {
    .site-header,
    .site-footer,
    main > section {
      width: min(calc(100% - 28px), var(--page));
    }

    .site-header {
      min-height: 66px;
    }

    .header-nav {
      gap: 14px;
    }

    .header-nav a:last-child {
      display: none;
    }

    .hero {
      min-height: calc(100svh - 66px);
      padding-block: 50px 42px;
    }

    .hero h1 {
      font-size: clamp(2.55rem, 13vw, 4.3rem);
    }

    .hero-lede {
      margin-top: 18px;
      font-size: 16px;
    }

    .scan-form {
      margin-top: 30px;
    }

    .url-control {
      grid-template-columns: auto minmax(0, 1fr);
      min-height: 64px;
    }

    .protocol-hint {
      min-width: 52px;
      margin-block: 15px;
    }

    .url-control input {
      padding-inline: 14px;
      font-size: 14px;
    }

    .primary-button {
      grid-column: 1 / -1;
      min-height: 51px;
      margin: 8px;
    }

    .form-underlay {
      align-items: start;
    }

    .form-underlay p {
      max-width: 250px;
    }

    .trust-row {
      gap: 8px 15px;
      margin-top: 18px;
      font-size: 11px;
    }

    .progress-heading,
    .result-heading,
    .section-heading {
      display: grid;
      align-items: start;
    }

    .live-status,
    .section-heading > p,
    .section-heading > div + p,
    #render-cost {
      text-align: left;
    }

    .result-toolbar {
      position: static;
      display: grid;
      gap: 12px;
      padding-block: 16px;
      backdrop-filter: none;
    }

    .result-url-block > a {
      max-width: calc(100vw - 40px);
    }

    .toolbar-actions {
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    .result-heading {
      padding-block: 42px 24px;
    }

    .count-line {
      justify-content: flex-start;
    }

    .truth-strip {
      grid-template-columns: 1fr;
    }

    .truth-row {
      display: grid;
      grid-template-columns: 34px minmax(0, 1fr);
      column-gap: 8px;
      padding: 15px 12px 17px;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }

    .truth-row:last-child {
      border-bottom: 0;
    }

    .truth-row:nth-child(-n + 2) {
      border-bottom: 1px solid var(--line);
    }

    .truth-row h3,
    .truth-row p {
      grid-column: 2;
      margin-top: 0;
    }

    .truth-index {
      grid-row: 1 / span 2;
    }

    .truth-row p {
      margin-top: 2px;
    }

    .before-after {
      grid-template-columns: 1fr;
      padding: 20px;
    }

    .before-after-grid,
    .render-attempt-grid,
    .delta-grid {
      grid-template-columns: 1fr 1fr;
    }

    .render-verification {
      grid-template-columns: 1fr;
    }

    .render-callout {
      grid-template-columns: 1fr;
      padding: 22px;
    }

    .render-button {
      width: 100%;
      min-width: 0;
    }

    .render-summary {
      padding: 20px;
    }

    .render-evidence-grid {
      grid-template-columns: 1fr;
    }

    .filter-rail {
      grid-template-columns: 1fr;
    }

    .filter-note {
      grid-column: 1;
    }

    .crawler-group-heading {
      grid-template-columns: 1fr;
      gap: 2px;
    }

    .crawler-row {
      grid-template-columns: 1fr auto;
      gap: 10px;
      padding-block: 14px;
    }

    .crawler-evidence {
      grid-column: 1 / -1;
    }

    .finding-toggle {
      grid-template-columns: minmax(0, 1fr) auto;
      padding: 15px;
    }

    .finding-toggle .status-badge {
      grid-column: 1;
      width: fit-content;
    }

    .finding-title-block {
      grid-column: 1;
    }

    .finding-chevron {
      grid-column: 2;
      grid-row: 1 / span 2;
    }

    .finding-panel {
      padding: 0 15px 17px;
    }

    .finding-columns {
      grid-template-columns: 1fr;
    }

    .evidence-row {
      grid-template-columns: 1fr;
      gap: 3px;
    }

    .raw-grid {
      grid-template-columns: 1fr;
    }

    .site-footer {
      grid-template-columns: 1fr;
      gap: 22px;
      align-items: start;
    }

    .site-footer nav {
      flex-wrap: wrap;
      gap: 12px 18px;
    }

    .static-main {
      width: min(calc(100% - 28px), 900px);
      padding-block: 54px 80px;
    }
  }

  @media (max-width: 420px) {
    .brand-mark {
      width: 27px;
      height: 27px;
    }

    .header-nav a {
      font-size: 12px;
    }

    .form-underlay {
      display: grid;
    }

    .before-after-grid,
    .render-attempt-grid,
    .delta-grid,
    .toolbar-actions {
      grid-template-columns: 1fr;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      scroll-behavior: auto !important;
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  @media print {
    body::before,
    .site-header,
    .site-footer,
    .hero,
    .toolbar-actions,
    .render-callout,
    .filter-rail,
    .finding-actions,
    .copy-button {
      display: none !important;
    }

    .results {
      width: 100%;
      margin: 0;
      border: 0;
    }

    .result-toolbar {
      position: static;
      background: #fff;
    }

    .evidence-workspace {
      grid-template-columns: 1fr;
    }

    .finding-panel[hidden] {
      display: block !important;
    }
  }
}

@layer experience {
  .sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .site-header {
    min-height: 64px;
  }

  .header-side {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .header-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
  }

  .header-status > span,
  .ready-status > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--pass);
    box-shadow: 0 0 0 4px rgb(8 118 106 / 11%);
  }

  .workspace {
    display: grid;
    gap: 0;
    padding-block: clamp(42px, 6vw, 72px) 44px;
  }

  .workspace-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
    align-items: end;
    gap: clamp(28px, 5vw, 72px);
  }

  .workspace .hero-copy {
    width: auto;
  }

  .workspace h1 {
    max-width: 820px;
    margin-top: 12px;
    font-size: clamp(2.65rem, 5.4vw, 4.8rem);
    font-weight: 780;
    letter-spacing: -0.065em;
    line-height: 0.98;
    text-wrap: balance;
  }

  .workspace .hero-lede {
    max-width: 760px;
    margin-top: 20px;
    color: var(--ink-soft);
    font-size: clamp(1rem, 1.55vw, 1.2rem);
    line-height: 1.55;
  }

  .scope-boundary {
    display: grid;
    gap: 8px;
    padding: 18px 0 18px 20px;
    border-left: 2px solid var(--line-strong);
    color: var(--muted);
    font-size: 12px;
  }

  .scope-boundary strong {
    color: var(--ink-soft);
    font-size: 13px;
  }

  .intent-picker {
    display: grid;
    grid-template-columns: minmax(210px, 0.72fr) minmax(0, 2.28fr);
    gap: 24px;
    align-items: end;
    margin-top: 38px;
    padding-block: 17px;
    border-block: 1px solid var(--line);
  }

  .intent-heading {
    display: grid;
    gap: 5px;
  }

  .intent-heading > p:last-child {
    color: var(--muted);
    font-size: 12px;
  }

  .intent-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .intent-button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 70px;
    align-content: center;
    gap: 3px;
    padding: 12px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted-strong);
    background: rgb(255 255 255 / 58%);
    text-align: left;
    cursor: pointer;
    transition:
      border-color 150ms ease,
      background 150ms ease,
      color 150ms ease,
      transform 150ms ease;
  }

  .intent-button::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: transparent;
    content: "";
  }

  .intent-button strong {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .intent-button span {
    overflow: hidden;
    color: var(--muted);
    font-size: 10.5px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .intent-button:hover:not(:disabled) {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--paper-raised);
    transform: translateY(-1px);
  }

  .intent-button[aria-pressed="true"] {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
  }

  .intent-button[aria-pressed="true"]::after {
    background: var(--accent);
  }

  .intent-button:disabled {
    cursor: not-allowed;
    opacity: 0.56;
  }

  .scan-form {
    width: 100%;
    margin-top: 22px;
  }

  .form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
  }

  .form-label-row label {
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 740;
  }

  .form-label-row span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
  }

  .url-control {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    min-height: 70px;
    border-color: var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 34px rgb(17 19 24 / 5%);
  }

  .protocol-hint {
    min-width: 58px;
    margin-block: 15px;
  }

  .url-control input {
    padding-inline: 18px;
    font-size: clamp(15px, 1.5vw, 18px);
  }

  .input-action-button {
    align-self: stretch;
    margin-block: 10px;
    padding-inline: 16px;
    border: 0;
    border-left: 1px solid var(--line);
    color: var(--muted-strong);
    background: transparent;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
  }

  .input-action-button:hover:not(:disabled) {
    color: var(--accent);
  }

  .primary-button {
    min-width: 184px;
    margin: 7px;
    border-radius: 7px;
  }

  .form-underlay {
    min-height: 24px;
    margin-top: 8px;
  }

  .form-underlay p,
  .text-button {
    font-size: 12px;
  }

  .normalized-hint,
  .field-error {
    min-height: 20px;
    margin-top: 4px;
    font-size: 12px;
  }

  .normalized-hint {
    color: var(--pass);
    font-family: var(--mono);
  }

  .field-error {
    color: var(--blocker);
  }

  .ready-panel {
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--ink);
    border-radius: var(--radius-md);
    color: #f8fafc;
    background: var(--ink);
  }

  .ready-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 28px;
    padding: 20px 22px 18px;
    border-bottom: 1px solid rgb(255 255 255 / 13%);
  }

  .ready-heading .utility-label {
    color: #aeb8c7;
  }

  .ready-heading h2 {
    margin-top: 6px;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    letter-spacing: -0.025em;
  }

  .ready-heading h2 + p {
    max-width: 720px;
    margin-top: 5px;
    color: #b9c2cf;
    font-size: 12px;
  }

  .ready-status {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border: 1px solid rgb(255 255 255 / 16%);
    border-radius: 999px;
    color: #d9e0e8;
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
  }

  .ready-truths {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ready-truths > div {
    display: grid;
    min-width: 0;
    gap: 3px;
    padding: 17px 20px 19px;
    border-right: 1px solid rgb(255 255 255 / 11%);
  }

  .ready-truths > div:last-child {
    border-right: 0;
  }

  .ready-truths span {
    color: #78869a;
    font-family: var(--mono);
    font-size: 10px;
  }

  .ready-truths strong {
    font-size: 12px;
  }

  .ready-truths small {
    color: #9eabba;
    font-size: 10px;
  }

  .ready-boundary {
    padding: 10px 20px;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: #8d99a9;
    font-family: var(--mono);
    font-size: 9.5px;
  }

  body[data-app-state="scanning"] .ready-panel,
  body[data-app-state="results"] .ready-panel,
  body[data-app-state="error"] .ready-panel {
    display: none;
  }

  body[data-app-state="results"] .workspace {
    padding-block: 24px 20px;
  }

  body[data-app-state="results"] .workspace-heading {
    display: none;
  }

  body[data-app-state="results"] .intent-picker {
    grid-template-columns: auto minmax(0, 1fr);
    margin-top: 0;
    padding-block: 0 14px;
    border-top: 0;
  }

  body[data-app-state="results"] .intent-heading > p:last-child,
  body[data-app-state="results"] .intent-button span {
    display: none;
  }

  body[data-app-state="results"] .intent-button {
    min-height: 42px;
    padding-block: 9px;
  }

  body[data-app-state="results"] .scan-form {
    margin-top: 14px;
  }

  .scan-progress,
  .request-error,
  .results {
    margin-bottom: 70px;
  }

  .scan-progress {
    padding-block: 24px 42px;
  }

  .progress-console {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .progress-heading {
    align-items: center;
    padding: 18px 20px 16px;
  }

  .progress-heading h2 {
    margin-top: 5px;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  }

  .scan-meter {
    display: block;
    width: 100%;
    height: 4px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    color: var(--accent);
    background: var(--paper-soft);
  }

  .scan-meter::-webkit-progress-bar {
    background: var(--paper-soft);
  }

  .scan-meter::-webkit-progress-value {
    background: var(--accent);
    transition: width 220ms ease;
  }

  .scan-meter::-moz-progress-bar {
    background: var(--accent);
  }

  .progress-steps {
    margin-top: 0;
    border: 0;
    border-top: 1px solid var(--line);
  }

  .progress-steps li {
    min-height: 88px;
    gap: 3px;
    padding: 13px 14px 15px;
    background: var(--paper-raised);
  }

  .progress-steps li > span {
    width: 21px;
    height: 21px;
    margin-bottom: 2px;
    font-size: 9px;
  }

  .progress-steps strong {
    font-size: 11px;
  }

  .progress-steps small {
    font-size: 9.5px;
  }

  .request-error {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    padding-block: 28px 42px;
  }

  .error-copy {
    min-width: 0;
  }

  .error-context {
    margin-top: 8px;
    color: var(--warning);
    font-size: 12px;
  }

  .error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
  }

  .error-actions button[aria-disabled="true"],
  .render-button[aria-disabled="true"] {
    cursor: wait;
    opacity: 0.68;
  }

  .results {
    padding-top: 0;
  }

  .result-toolbar {
    min-height: 78px;
    padding-block: 10px;
    background: rgb(246 247 249 / 97%);
  }

  .result-url-block > a {
    max-width: min(58vw, 680px);
  }

  .decision-panel {
    display: grid;
    scroll-margin-top: 96px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 36px;
    align-items: end;
    padding: 42px 28px 34px;
    border: 1px solid var(--line-strong);
    border-left-width: 5px;
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .decision-panel[data-state="blocker"] { border-left-color: var(--blocker); }
  .decision-panel[data-state="warning"] { border-left-color: var(--warning); }
  .decision-panel[data-state="unknown"] { border-left-color: var(--unknown); }
  .decision-panel[data-state="pass"] { border-left-color: var(--pass); }

  .decision-copy h2 {
    max-width: 840px;
    margin-top: 8px;
    font-size: clamp(1.85rem, 4vw, 3.25rem);
    letter-spacing: -0.05em;
    line-height: 1.04;
    text-wrap: balance;
  }

  .decision-copy h2 + p {
    max-width: 820px;
    margin-top: 14px;
    color: var(--ink-soft);
    font-size: 14px;
  }

  .result-tabs {
    position: sticky;
    top: 78px;
    z-index: 18;
    display: flex;
    gap: 4px;
    margin-top: 18px;
    padding: 7px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgb(246 247 249 / 96%);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
  }

  .result-tabs::-webkit-scrollbar {
    display: none;
  }

  .result-tabs button {
    min-height: 40px;
    flex: 0 0 auto;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted-strong);
    background: transparent;
    font-size: 12px;
    font-weight: 720;
    cursor: pointer;
  }

  .result-tabs button:hover {
    color: var(--ink);
    background: var(--paper-raised);
  }

  .result-tabs button[aria-selected="true"] {
    border-color: var(--line-strong);
    color: var(--ink);
    background: var(--paper-raised);
    box-shadow: 0 2px 8px rgb(17 19 24 / 5%);
  }

  .result-panel {
    padding-block: 28px 8px;
  }

  .truth-strip {
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .truth-row {
    min-height: 132px;
    padding: 18px 18px 20px;
  }

  .truth-row h3 {
    margin-top: 14px;
  }

  .truth-row p {
    font-size: 14px;
  }

  .priority-section,
  .crawler-section,
  .finding-section,
  .raw-section,
  .render-summary {
    margin-top: 24px;
    padding: 26px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    background: var(--paper-raised);
  }

  .priority-list {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .priority-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-left: 3px solid var(--info);
    border-radius: var(--radius-sm);
    background: var(--paper);
  }

  .priority-item[data-severity="blocker"] { border-left-color: var(--blocker); }
  .priority-item[data-severity="warning"] { border-left-color: var(--warning); }
  .priority-item[data-severity="unknown"] { border-left-color: var(--unknown); }
  .priority-item[data-severity="pass"] { border-left-color: var(--pass); }

  .priority-rank {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
  }

  .priority-copy {
    min-width: 0;
  }

  .priority-copy strong,
  .priority-copy span {
    display: block;
  }

  .priority-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .priority-copy span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .priority-action {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--ink-soft);
    background: var(--paper-raised);
    font-size: 11px;
    font-weight: 720;
    cursor: pointer;
  }

  .priority-action:hover {
    border-color: var(--accent);
    color: var(--accent);
  }

  .priority-empty {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 18px;
    border: 1px solid var(--pass);
    border-radius: var(--radius-sm);
    background: var(--pass-soft);
  }

  .priority-empty strong,
  .priority-empty span {
    display: block;
  }

  .priority-empty strong {
    color: var(--pass);
    font-size: 14px;
  }

  .priority-empty span {
    margin-top: 4px;
    color: var(--ink-soft);
    font-size: 12px;
  }

  .overview-boundary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    font-size: 11px;
  }

  .overview-boundary strong {
    color: var(--ink-soft);
  }

  .before-after {
    margin-top: 24px;
  }

  .evidence-workspace {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 26px;
    margin-top: 0;
  }

  .filter-rail,
  .finding-section,
  .finding-list,
  .finding,
  .finding-toggle,
  .finding-panel,
  .finding-columns,
  .fix-box,
  .fix-code {
    min-width: 0;
  }

  .finding-section {
    margin-top: 0;
  }

  .fix-code pre {
    width: 100%;
    max-width: 100%;
  }

  .filter-rail {
    top: 136px;
  }

  .no-findings {
    display: grid;
    gap: 5px;
    justify-items: start;
    padding: 22px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
    color: var(--muted);
    background: var(--paper);
  }

  .no-findings strong {
    color: var(--ink-soft);
  }

  .no-findings .secondary-button {
    margin-top: 8px;
  }

  .crawler-section,
  .raw-section,
  #panel-render .render-callout {
    margin-top: 0;
  }

  #panel-render .render-summary {
    margin-top: 20px;
  }

  .method-boundary {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
  }

  .site-footer {
    margin-top: 28px;
  }

  @media (max-width: 900px) {
    .workspace-heading,
    .intent-picker,
    body[data-app-state="results"] .intent-picker,
    .decision-panel {
      grid-template-columns: 1fr;
    }

    .scope-boundary {
      padding: 14px 16px;
      border: 1px solid var(--line);
      border-left: 3px solid var(--line-strong);
      border-radius: var(--radius-sm);
    }

    .intent-picker {
      align-items: start;
      margin-top: 28px;
    }

    .intent-options {
      grid-template-columns: 1fr 1fr;
    }

    body[data-app-state="results"] .intent-heading {
      display: none;
    }

    body[data-app-state="results"] .intent-options {
      grid-template-columns: repeat(4, minmax(150px, 1fr));
      overflow-x: auto;
    }

    .decision-panel {
      gap: 22px;
      padding: 30px 22px 25px;
    }

    .count-line {
      justify-content: flex-start;
    }

    .result-tabs {
      top: 78px;
    }

    .evidence-workspace {
      grid-template-columns: 1fr;
    }

    .filter-rail {
      position: static;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .filter-note {
      grid-column: 1 / -1;
    }
  }

  @media (max-width: 640px) {
    .site-header,
    .site-footer,
    main > section {
      width: min(calc(100% - 28px), var(--page));
    }

    .site-header {
      min-height: 58px;
    }

    .header-status {
      display: none;
    }

    .header-side,
    .header-nav {
      gap: 14px;
    }

    .workspace {
      padding-block: 24px 26px;
    }

    .workspace h1 {
      font-size: clamp(2.05rem, 10.5vw, 2.75rem);
      line-height: 0.98;
    }

    .workspace .hero-lede {
      margin-top: 12px;
      font-size: 13px;
      line-height: 1.45;
    }

    .scope-boundary {
      gap: 3px;
      margin-top: -8px;
      padding: 9px 11px;
      font-size: 10px;
      line-height: 1.35;
    }

    .scope-boundary strong {
      font-size: 11px;
    }

    .intent-picker {
      gap: 9px;
      margin-top: 18px;
      padding-block: 10px;
    }

    .intent-heading > p:last-child {
      display: none;
    }

    .intent-options {
      gap: 7px;
    }

    .intent-button {
      min-height: 46px;
      padding: 8px 10px;
    }

    .intent-button strong {
      font-size: 10.5px;
    }

    .intent-button span {
      display: none;
    }

    body[data-app-state="results"] .intent-picker {
      padding-bottom: 10px;
    }

    body[data-app-state="results"] .intent-options {
      display: flex;
      gap: 6px;
      margin-inline: -14px;
      padding-inline: 14px;
      scroll-snap-type: x proximity;
    }

    body[data-app-state="results"] .intent-button {
      min-width: 142px;
      min-height: 40px;
      scroll-snap-align: start;
    }

    .form-label-row span {
      display: none;
    }

    .url-control {
      grid-template-columns: 46px minmax(0, 1fr) auto;
      min-height: 0;
      box-shadow: none;
    }

    .protocol-hint {
      min-width: 46px;
      margin-block: 12px;
    }

    .url-control input {
      min-height: 52px;
      padding-inline: 12px;
      font-size: 16px;
    }

    .input-action-button {
      margin-block: 7px;
      padding-inline: 12px;
    }

    .primary-button {
      grid-column: 1 / -1;
      min-width: 0;
      min-height: 52px;
      margin: 0 7px 7px;
    }

    .form-underlay {
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 8px;
    }

    .form-underlay p,
    .text-button {
      font-size: 10.5px;
    }

    .ready-heading {
      display: grid;
      gap: 14px;
      padding: 17px;
    }

    .ready-status {
      width: fit-content;
    }

    .ready-truths {
      grid-template-columns: 1fr 1fr;
    }

    .ready-truths > div {
      padding: 14px 15px 16px;
      border-bottom: 1px solid rgb(255 255 255 / 11%);
    }

    .ready-truths > div:nth-child(2) {
      border-right: 0;
    }

    .ready-truths > div:nth-child(n + 3) {
      border-bottom: 0;
    }

    .ready-boundary {
      padding-inline: 15px;
      line-height: 1.5;
    }

    .progress-heading {
      display: grid;
      gap: 8px;
      padding: 15px;
    }

    .progress-steps {
      grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .progress-steps li {
      min-height: 52px;
      place-items: center;
      padding: 10px 4px;
      text-align: center;
    }

    .progress-steps strong,
    .progress-steps small {
      display: none;
    }

    .progress-steps li > span {
      margin: 0;
    }

    .request-error {
      grid-template-columns: 1fr;
      gap: 12px;
    }

    .error-mark {
      width: 38px;
      height: 38px;
    }

    .result-toolbar {
      position: static;
      display: grid;
      gap: 10px;
      min-height: 0;
      padding-block: 10px;
    }

    .result-url-block > a {
      max-width: 100%;
    }

    .toolbar-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      width: 100%;
    }

    .toolbar-actions .secondary-button {
      min-width: 0;
      min-height: 44px;
      padding-inline: 7px;
      font-size: 10px;
    }

    .decision-panel {
      scroll-margin-top: 16px;
      padding: 24px 18px 20px;
    }

    .decision-copy h2 {
      font-size: clamp(1.75rem, 9vw, 2.4rem);
    }

    .result-tabs {
      top: 0;
      margin-inline: -14px;
      border-inline: 0;
      border-radius: 0;
      padding-inline: 14px;
    }

    .result-tabs button {
      min-height: 44px;
    }

    .result-panel {
      padding-top: 20px;
    }

    .truth-strip {
      grid-template-columns: 1fr;
    }

    .truth-row {
      display: grid;
      grid-template-columns: 30px minmax(0, 1fr);
      min-height: 0;
      gap: 2px 6px;
      padding: 14px 13px;
      border-right: 0;
      border-bottom: 1px solid var(--line);
    }

    .truth-row:last-child {
      border-bottom: 0;
    }

    .truth-index {
      grid-row: 1 / span 2;
    }

    .truth-row h3,
    .truth-row p {
      grid-column: 2;
      margin-top: 0;
    }

    .priority-section,
    .crawler-section,
    .finding-section,
    .raw-section,
    .render-summary {
      padding: 18px;
    }

    .priority-item {
      grid-template-columns: auto minmax(0, 1fr);
      gap: 8px 10px;
      padding: 13px;
    }

    .priority-action {
      grid-column: 2;
      justify-self: start;
    }

    .priority-empty,
    .overview-boundary {
      grid-template-columns: 1fr;
    }

    .priority-copy strong,
    .priority-copy span {
      white-space: normal;
    }

    .filter-rail {
      width: 100%;
      max-width: 100%;
      grid-template-columns: minmax(0, 1fr);
      overflow: hidden;
    }

    .filter-rail fieldset,
    .filter-list {
      width: 100%;
      max-width: 100%;
      min-width: 0;
    }

    .filter-button,
    .priority-action {
      min-height: 44px;
    }

    .filter-note {
      grid-column: 1;
    }

    .section-heading {
      display: grid;
      gap: 8px;
    }

    .section-heading > p,
    .section-heading > div + p,
    #render-cost {
      max-width: none;
      text-align: left;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .intent-button,
    .url-control,
    .primary-button,
    .scan-meter::-webkit-progress-value {
      transition: none;
    }
  }

  @media print {
    .workspace,
    .result-tabs,
    .toolbar-actions,
    .filter-rail,
    .render-callout,
    .finding-actions,
    .copy-button {
      display: none !important;
    }

    .result-panel[hidden] {
      display: block !important;
    }
  }
}

@layer brand {
  /* ---- Display typography (Space Grotesk, self-hosted) ---- */

  .brand span {
    font-family: var(--display);
    font-weight: 640;
    letter-spacing: -0.02em;
  }

  .workspace h1 {
    font-family: var(--display);
    font-weight: 620;
    letter-spacing: -0.032em;
    line-height: 1.02;
  }

  .decision-copy h2,
  .progress-heading h2,
  .request-error h2,
  .ready-heading h2,
  .static-hero h1 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.024em;
  }

  .decision-copy h2 {
    line-height: 1.06;
  }

  .before-after h3,
  .render-callout h3,
  .section-heading h3,
  .render-verification h4 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: -0.016em;
  }

  .static-hero h1 {
    letter-spacing: -0.03em;
    line-height: 1.02;
  }

  /* ---- Masthead: dark command surface over the light evidence bench ----
     Scoped to body[data-app-state], which only the app page carries. */

  body[data-app-state] {
    --masthead-line: rgb(255 255 255 / 11%);
  }

  body[data-app-state] .site-header {
    position: relative;
    border-bottom: 0;
  }

  body[data-app-state] .site-header::before,
  body[data-app-state] .workspace::before {
    position: absolute;
    z-index: -1;
    inset: 0 calc(50% - 50vw);
    background: var(--ink-bg);
    content: "";
  }

  body[data-app-state] .site-header::before {
    inset-block-end: -1px;
  }

  body[data-app-state] .workspace {
    position: relative;
  }

  body[data-app-state] .workspace::before {
    background-image:
      linear-gradient(to right, var(--ink-bg-grid) 1px, transparent 1px),
      linear-gradient(to bottom, var(--ink-bg-grid) 1px, transparent 1px);
    background-size: 32px 32px;
    background-color: var(--ink-bg);
    mask-image: linear-gradient(to bottom, #000 55%, rgb(0 0 0 / 55%) 100%);
  }

  body[data-app-state] .site-header .brand {
    color: var(--on-ink);
  }

  body[data-app-state] .brand-mark {
    color: var(--accent-on-ink);
  }

  body[data-app-state] .site-header .brand-mark circle {
    fill: var(--ink-bg);
  }

  body[data-app-state] .header-status {
    color: var(--on-ink-muted);
  }

  body[data-app-state] .header-status > span {
    background: var(--pass-on-ink);
    box-shadow: 0 0 0 4px rgb(53 200 173 / 16%);
  }

  body[data-app-state] .header-nav a {
    color: var(--on-ink-soft);
  }

  body[data-app-state] .header-nav a:hover {
    color: var(--on-ink);
  }

  body[data-app-state] .skip-link {
    border-color: var(--on-ink);
    color: var(--ink);
  }

  body[data-app-state] .workspace .utility-label {
    color: var(--on-ink-muted);
  }

  body[data-app-state] .workspace h1 {
    color: var(--on-ink);
  }

  body[data-app-state] .workspace .hero-lede {
    color: var(--on-ink-soft);
  }

  body[data-app-state] .scope-boundary {
    border-left-color: rgb(255 255 255 / 22%);
    color: var(--on-ink-muted);
  }

  body[data-app-state] .scope-boundary strong {
    color: var(--on-ink-soft);
  }

  body[data-app-state] .intent-picker {
    border-color: var(--masthead-line);
  }

  body[data-app-state] .intent-heading > p:last-child {
    color: var(--on-ink-muted);
  }

  body[data-app-state] .intent-button {
    border-color: rgb(255 255 255 / 14%);
    color: var(--on-ink-soft);
    background: rgb(255 255 255 / 4%);
  }

  body[data-app-state] .intent-button span {
    color: var(--on-ink-muted);
  }

  body[data-app-state] .intent-button:hover:not(:disabled) {
    border-color: rgb(255 255 255 / 30%);
    color: var(--on-ink);
    background: rgb(255 255 255 / 8%);
  }

  body[data-app-state] .intent-button[aria-pressed="true"] {
    border-color: var(--accent-on-ink);
    color: #dbe8ff;
    background: rgb(110 166 255 / 13%);
  }

  body[data-app-state] .intent-button[aria-pressed="true"]::after {
    background: var(--accent-on-ink);
  }

  body[data-app-state] .form-label-row label {
    color: var(--on-ink-soft);
  }

  body[data-app-state] .form-label-row span {
    color: var(--on-ink-muted);
  }

  body[data-app-state] .url-control {
    border-color: rgb(255 255 255 / 20%);
    box-shadow: 0 18px 48px rgb(0 0 0 / 42%);
  }

  body[data-app-state] .url-control:focus-within {
    border-color: var(--accent-on-ink);
    box-shadow:
      0 0 0 4px rgb(110 166 255 / 22%),
      0 18px 48px rgb(0 0 0 / 42%);
  }

  body[data-app-state] .form-underlay p,
  body[data-app-state] .text-button {
    color: var(--on-ink-muted);
  }

  body[data-app-state] .text-button:hover {
    color: var(--accent-on-ink);
  }

  body[data-app-state] .normalized-hint {
    color: var(--pass-on-ink);
  }

  body[data-app-state] .field-error {
    color: var(--blocker-on-ink);
  }

  body[data-app-state] .ready-panel {
    border-color: var(--masthead-line);
    background: rgb(255 255 255 / 3.5%);
  }

  body[data-app-state] .workspace :focus-visible {
    outline-color: var(--accent-on-ink);
  }

  body[data-app-state] .site-header :focus-visible {
    outline-color: var(--accent-on-ink);
  }

  body[data-app-state] ::selection {
    color: var(--on-ink);
    background: rgb(110 166 255 / 35%);
  }

  /* ---- Results hierarchy: verdict-first truth rows ---- */

  .truth-row {
    border-left: 3px solid var(--info);
  }

  .truth-row[data-state="blocker"] { border-left-color: var(--blocker); box-shadow: none; }
  .truth-row[data-state="warning"] { border-left-color: var(--warning); box-shadow: none; }
  .truth-row[data-state="unknown"] { border-left-color: var(--unknown); box-shadow: none; }
  .truth-row[data-state="pass"] { border-left-color: var(--pass); box-shadow: none; }
  .truth-row[data-state="info"] { border-left-color: var(--info); box-shadow: none; }

  .truth-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 14px;
  }

  .truth-head h3 {
    margin-top: 0;
  }

  .truth-state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--info);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .truth-state::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  .truth-state.severity-blocker { color: var(--blocker); }
  .truth-state.severity-warning { color: var(--warning); }
  .truth-state.severity-unknown { color: var(--unknown); }
  .truth-state.severity-pass { color: var(--pass); }
  .truth-state.severity-info { color: var(--info); }

  /* ---- Calmer numerics: evidence supports, never shouts ---- */

  .metric-cell strong {
    font-size: 15px;
  }

  .change-cell strong {
    font-size: 16px;
  }

  /* ---- Retry boundary: informative note, not an alarm ---- */

  .render-retry-note {
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    color: var(--muted-strong);
    background: var(--paper-soft);
  }

  /* ---- Quiet comparison state (no changes) ---- */

  .change-quiet {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    color: var(--muted-strong);
    background: var(--paper);
    font-size: 13px;
  }

  @media (max-width: 640px) {
    .truth-head {
      grid-column: 2;
      justify-content: start;
      margin-top: 0;
    }
  }

  @media (max-width: 900px) {
    body[data-app-state] .scope-boundary {
      border-color: rgb(255 255 255 / 16%);
      border-left-color: rgb(255 255 255 / 30%);
    }
  }

  @media print {
    body[data-app-state] .site-header::before,
    body[data-app-state] .workspace::before {
      display: none;
    }
  }
}
