/* Guard Console. Tokens mirror console/DESIGN.md. Dark is the primary theme; light follows the system. */

/* IBM Plex Sans and Mono, self-hosted (SIL Open Font License 1.1, see fonts/OFL.txt). */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }


:root {
  color-scheme: dark;
  --night-0: oklch(0.17 0.012 255);
  --night-1: oklch(0.205 0.012 255);
  --night-2: oklch(0.235 0.013 255);
  --night-3: oklch(0.27 0.014 255);
  --ink-1: oklch(0.93 0.008 85);
  --ink-2: oklch(0.8 0.01 255);
  --ink-3: oklch(0.7 0.012 255);
  --ink-4: oklch(0.62 0.012 255);
  --rule: oklch(1 0 0 / 0.08);
  --rule-strong: oklch(1 0 0 / 0.14);
  --canary: oklch(0.86 0.155 92);
  --canary-ink: oklch(0.24 0.04 92);
  --canary-text: oklch(0.86 0.155 92);
  --breach: oklch(0.7 0.18 25);
  --breach-soft: oklch(0.7 0.18 25 / 0.14);
  --steel: oklch(0.64 0.03 255);
  --proven: oklch(0.77 0.15 152);
  --proven-soft: oklch(0.77 0.15 152 / 0.14);
  --ring: 0 0 0 1px var(--rule);
  --ring-hover: 0 0 0 1px var(--rule-strong);

  --font-sans: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --night-0: oklch(0.972 0.006 85);
    --night-1: oklch(0.995 0.002 85);
    --night-2: oklch(0.955 0.007 85);
    --night-3: oklch(0.935 0.008 85);
    --ink-1: oklch(0.22 0.015 255);
    --ink-2: oklch(0.36 0.015 255);
    --ink-3: oklch(0.47 0.012 255);
    --ink-4: oklch(0.52 0.01 255);
    --rule: oklch(0 0 0 / 0.08);
    --rule-strong: oklch(0 0 0 / 0.16);
    --canary: oklch(0.84 0.16 90);
    --canary-ink: oklch(0.26 0.05 90);
    --canary-text: oklch(0.5 0.11 80);
    --breach: oklch(0.55 0.2 27);
    --breach-soft: oklch(0.55 0.2 27 / 0.1);
    --steel: oklch(0.6 0.03 255);
    --proven: oklch(0.52 0.14 152);
    --proven-soft: oklch(0.52 0.14 152 / 0.1);
    --ring: 0 0 0 1px oklch(0 0 0 / 0.06), 0 1px 2px -1px oklch(0 0 0 / 0.06), 0 2px 4px 0 oklch(0 0 0 / 0.04);
    --ring-hover: 0 0 0 1px oklch(0 0 0 / 0.1), 0 1px 2px -1px oklch(0 0 0 / 0.08), 0 2px 4px 0 oklch(0 0 0 / 0.06);
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--night-0);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}

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

ol,
ul {
  padding: 0;
  list-style: none;
}

code,
pre,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--canary);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: var(--s-4);
  top: -48px;
  padding: var(--s-2) var(--s-3);
  background: var(--canary);
  color: var(--canary-ink);
  border-radius: var(--r-sm);
  font-weight: 500;
  z-index: 10;
}

.skip-link:focus-visible {
  top: var(--s-3);
}

/* ------------------------------------------------------------ links and small controls */

.text-link,
.report a,
.evidence a,
.side a,
.log a {
  color: var(--ink-1);
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition-property: text-decoration-color;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

@media (hover: hover) {
  .text-link:hover,
  .report a:hover,
  .evidence a:hover,
  .side a:hover,
  .log a:hover {
    text-decoration-color: var(--canary);
  }
}

.button-quiet {
  font: inherit;
  font-weight: 500;
  color: var(--ink-1);
  background: var(--night-2);
  border: 1px solid transparent;
  box-shadow: var(--ring);
  border-radius: var(--r-sm);
  padding: var(--s-1) var(--s-3);
  min-height: 36px;
  cursor: pointer;
  transition-property: box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

@media (hover: hover) {
  .button-quiet:hover {
    box-shadow: var(--ring-hover);
  }
}

.button-quiet:not(:disabled):active {
  scale: 0.96;
}

/* ------------------------------------------------------------ top bar */

.topbar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  max-width: 1320px;
  margin: 0 auto;
  padding: var(--s-4) var(--s-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
}

.brand-mark rect {
  fill: var(--night-2);
  stroke: var(--rule-strong);
}

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

.brand-name {
  color: var(--ink-1);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.005em;
}

.prod-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 32px;
  padding: var(--s-1) var(--s-3);
  border: 1px solid transparent;
  box-shadow: var(--ring);
  border-radius: 999px;
  background: var(--night-1);
  color: var(--ink-1);
  font-size: 13px;
  min-width: 0;
}

.prod-pill .dot,
.badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-4);
  flex: none;
}

.prod-pill[data-tone="good"] .dot {
  background: var(--proven);
}

.prod-pill[data-tone="live"] .dot {
  background: var(--canary);
}

.prod-pill[data-tone="bad"] .dot {
  background: var(--breach);
}

#prod-pill-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-meta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--ink-3);
  font-size: 13px;
}

.updated {
  font-variant-numeric: tabular-nums;
}

.sample-badge {
  padding: 2px var(--s-2);
  border-radius: var(--r-sm);
  background: var(--night-2);
  color: var(--ink-1);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  font-size: 12px;
  font-weight: 600;
}

.banner {
  max-width: 1320px;
  margin: 0 auto var(--s-4);
  padding: var(--s-3) var(--s-4);
  display: flex;
  align-items: center;
  gap: var(--s-4);
  justify-content: space-between;
  background: var(--breach-soft);
  color: var(--ink-1);
  border-radius: var(--r-md);
  width: calc(100% - 2 * var(--s-6));
}

/* ------------------------------------------------------------ layout */

.layout {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-6) var(--s-6);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  grid-template-areas:
    "report side"
    "evidence side"
    "history history";
  gap: var(--s-5);
  align-items: start;
}

.report {
  grid-area: report;
}

.evidence {
  grid-area: evidence;
}

.side {
  grid-area: side;
  display: grid;
  gap: var(--s-5);
}

.history {
  grid-area: history;
}

.card {
  background: var(--night-1);
  border: 1px solid transparent;
  box-shadow: var(--ring);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  min-width: 0;
}

.side .card,
.history.card {
  padding: var(--s-4) var(--s-5) var(--s-5);
}

.card-title {
  color: var(--ink-1);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--s-3);
}

.label {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: var(--s-4) 0 var(--s-2);
}

.label:first-child {
  margin-top: 0;
}

.meta {
  color: var(--ink-3);
  font-size: 13px;
}

/* ------------------------------------------------------------ the night report (focal point) */

.report {
  padding: var(--s-6) var(--s-6) var(--s-5);
}

.report:focus:not(:focus-visible) {
  outline: none;
}

.report-when {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: var(--s-2);
}

.report-title {
  color: var(--ink-1);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: balance;
  max-width: 30ch;
}

.report-sub {
  margin-top: var(--s-3);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 72ch;
  text-wrap: pretty;
}

.report-verdict {
  margin-top: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-weight: 600;
  color: var(--ink-1);
}

.report-verdict:empty {
  display: none;
}

.report-verdict::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-4);
}

.report-verdict[data-tone="good"]::before {
  background: var(--proven);
}

.report-verdict[data-tone="bad"]::before {
  background: var(--breach);
}

.report-verdict[data-tone="live"]::before {
  background: var(--canary);
}

/* the night tape: drawn to scale from canary start to verified in production */

.tape-wrap {
  margin-top: var(--s-6);
}

.tape-callouts {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-bottom: var(--s-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.callout-breach {
  color: var(--breach);
  font-weight: 500;
}

.callout-proven {
  color: var(--proven);
  font-weight: 500;
  text-align: right;
}

.tape {
  position: relative;
  height: 12px;
  border-radius: 6px;
  background: var(--night-2);
  overflow: hidden;
}

.tape-seg {
  position: absolute;
  top: 0;
  bottom: 0;
}

.tape-seg.exposure {
  background: var(--breach);
  min-width: 3px;
}

.tape-seg.mitigated {
  background: var(--steel);
  opacity: 0.55;
}

.tape-seg.proven {
  background: var(--proven);
  min-width: 4px;
}

.tape-seg.open-end {
  background: var(--canary);
  width: 4px;
}

.tape-caption {
  margin-top: var(--s-2);
  color: var(--ink-3);
  font-size: 13px;
}

/* steps */

.steps {
  margin-top: var(--s-5);
  display: grid;
  border-top: 1px solid var(--rule);
}

.step {
  display: grid;
  grid-template-columns: 64px 20px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: var(--s-3);
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
}

.step-offset {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink-3);
  text-align: right;
  padding-top: 1px;
}

.step-icon {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--ink-4);
}

.step-icon svg {
  width: 16px;
  height: 16px;
}

.step[data-state="done"] .step-icon {
  color: var(--proven);
}

.step[data-state="failed"] .step-icon {
  color: var(--breach);
}

.step[data-state="active"] .step-icon {
  color: var(--canary);
}

.step-body {
  min-width: 0;
}

.step-label {
  color: var(--ink-1);
  font-weight: 500;
}

.step[data-state="pending"] .step-label {
  color: var(--ink-4);
  font-weight: 400;
}

.step-detail {
  color: var(--ink-3);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.actor {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 var(--s-2);
  border-radius: var(--r-sm);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  white-space: nowrap;
}

.actor-pipeline {
  background: color-mix(in oklch, var(--steel) 22%, transparent);
  box-shadow: none;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--canary);
}

@media (prefers-reduced-motion: no-preference) {
  .live-dot {
    animation: live 1.6s ease-in-out infinite;
  }

  @keyframes live {
    0%,
    100% {
      opacity: 1;
    }
    50% {
      opacity: 0.35;
    }
  }
}

/* ------------------------------------------------------------ evidence */

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}

.evidence-reason {
  color: var(--ink-1);
  font-weight: 500;
}

.kv {
  margin-top: var(--s-2);
  font-size: 13px;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}

.kv code {
  color: var(--ink-1);
}

.code {
  background: var(--night-2);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-1);
  overflow-x: auto;
  overscroll-behavior: contain;
  white-space: pre;
}

#ev-links {
  margin-top: var(--s-2);
}

.proof {
  display: grid;
  gap: var(--s-2);
}

.proof-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-sm);
  font-size: 13px;
}

.proof-row.red {
  background: var(--breach-soft);
}

.proof-row.green {
  background: var(--proven-soft);
}

.proof-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
}

.proof-row.red .proof-tag {
  color: var(--breach);
}

.proof-row.green .proof-tag {
  color: var(--proven);
}

.proof-what {
  color: var(--ink-2);
  min-width: 0;
}

.proof-result {
  color: var(--ink-1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.checks {
  display: grid;
  gap: 2px;
}

.check {
  display: grid;
  grid-template-columns: 18px 96px minmax(0, 1fr);
  gap: var(--s-2);
  align-items: start;
  font-size: 13px;
  padding: 3px 0;
}

.check svg {
  width: 14px;
  height: 14px;
  margin-top: 3px;
}

.check[data-ok="true"] svg {
  color: var(--proven);
}

.check[data-ok="false"] svg {
  color: var(--breach);
}

.check-name {
  color: var(--ink-1);
  font-weight: 500;
}

.check-detail {
  color: var(--ink-3);
  overflow-wrap: anywhere;
}

.fix {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--s-2);
}

.fix:empty {
  display: none;
}

.fix-cause {
  color: var(--ink-1);
  max-width: 80ch;
  text-wrap: pretty;
}

.fix-cause code {
  font-size: 13px;
}

/* ------------------------------------------------------------ production */

.prod-status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}

.prod-state {
  color: var(--ink-1);
  font-size: 18px;
  font-weight: 600;
}

.prod-health {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.split {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--night-2);
  margin: var(--s-3) 0;
  gap: 2px;
}

.split span {
  height: 100%;
}

.split .stable {
  background: var(--steel);
}

.split .canary {
  background: var(--canary);
}

.revisions {
  display: grid;
  gap: var(--s-2);
}

.revision {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px var(--s-3);
  font-size: 13px;
}

.revision-name {
  color: var(--ink-1);
  font-family: var(--font-mono);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.revision-pct {
  color: var(--ink-1);
  font-family: var(--font-mono);
  text-align: right;
}

.revision-meta {
  grid-column: 1 / -1;
  color: var(--ink-3);
}

.tag {
  display: inline-block;
  padding: 0 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-2);
  box-shadow: inset 0 0 0 1px var(--rule-strong);
  margin-left: var(--s-1);
}

/* ------------------------------------------------------------ ledger */

.ledger-list {
  display: grid;
}

.ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-3);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--rule);
}

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

.ledger-row dt {
  color: var(--ink-2);
}

.ledger-row dd {
  color: var(--ink-1);
  font-family: var(--font-mono);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ledger-row.emph dd {
  color: var(--breach);
}

/* ------------------------------------------------------------ lifecycle */

.stages {
  display: grid;
  gap: 0;
  counter-reset: none;
}

.stage {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: var(--s-3);
  padding: 6px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--rule);
}

.stage:last-child {
  border-bottom: 0;
}

.stage-name {
  color: var(--ink-1);
  font-weight: 500;
}

.stage-evidence {
  color: var(--ink-3);
  min-width: 0;
  overflow-wrap: anywhere;
}

/* ------------------------------------------------------------ incident log */

.table-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  margin: 0 calc(-1 * var(--s-2));
}

.log {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.log th {
  text-align: left;
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 500;
  padding: var(--s-2);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}

.log td {
  padding: var(--s-2);
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

.log tr:last-child td {
  border-bottom: 0;
}

.log .num {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-1);
}

.log th.num {
  font-family: var(--font-sans);
  color: var(--ink-3);
}

.log tbody tr {
  transition-property: background-color;
  transition-duration: 120ms;
  transition-timing-function: ease-out;
}

@media (hover: hover) {
  .log tbody tr:hover {
    background: var(--night-2);
  }
}

.log tbody tr[aria-selected="true"] {
  background: var(--night-2);
  box-shadow: inset 2px 0 0 var(--canary);
}

.row-select {
  display: block;
  width: 100%;
  min-height: 40px;
  font: inherit;
  color: var(--ink-1);
  font-weight: 500;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

.row-title {
  display: block;
  font-weight: 400;
  color: var(--ink-3);
  font-size: 13px;
  max-width: 52ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.when {
  color: var(--ink-2);
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-1);
  white-space: nowrap;
}

.badge[data-tone="good"] .dot {
  background: var(--proven);
}

.badge[data-tone="bad"] .dot {
  background: var(--breach);
}

.badge[data-tone="live"] .dot {
  background: var(--canary);
}

.empty {
  color: var(--ink-3);
  padding: var(--s-4) 0 0;
}

/* ------------------------------------------------------------ footer */

.footer {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--s-6) var(--s-7);
  color: var(--ink-4);
  font-size: 13px;
  display: grid;
  gap: var(--s-2);
}

.footer p {
  max-width: 90ch;
}

.footer-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2);
}

.footer-legend .actor-agent {
  margin-left: var(--s-3);
}

/* ------------------------------------------------------------ loading skeleton */

.skeleton {
  display: inline-block;
  height: 0.9em;
  max-width: 100%;
  border-radius: 4px;
  background: var(--night-2);
  vertical-align: middle;
}

.skeleton-title {
  width: 22ch;
  height: 1em;
}

@media (prefers-reduced-motion: no-preference) {
  .skeleton {
    animation: breathe 1.4s ease-in-out infinite;
  }

  @keyframes breathe {
    50% {
      opacity: 0.5;
    }
  }
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "report"
      "evidence"
      "side"
      "history";
  }

  .side {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 720px) {
  .topbar,
  .layout,
  .footer {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }

  .banner {
    width: calc(100% - 2 * var(--s-4));
  }

  .topbar-meta {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .report {
    padding: var(--s-5) var(--s-4) var(--s-4);
  }

  .card {
    padding: var(--s-4);
  }

  .report-title {
    font-size: 22px;
  }

  .report-sub {
    font-size: 15px;
  }

  .evidence-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--s-4);
  }

  .step {
    grid-template-columns: 52px 18px minmax(0, 1fr);
  }

  .step .actor {
    grid-column: 3;
    justify-self: start;
    margin-top: var(--s-1);
  }

  .tape-callouts {
    flex-direction: column;
    gap: 2px;
  }

  .callout-proven {
    text-align: left;
  }

  .check {
    grid-template-columns: 18px minmax(0, 1fr);
  }

  .check-detail {
    grid-column: 2;
  }
}

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

@media (max-width: 720px) {
  .table-scroll {
    margin: 0;
  }

  .log thead {
    display: none;
  }

  .log tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: var(--s-3);
    row-gap: 2px;
    padding: var(--s-3) var(--s-2);
    border-bottom: 1px solid var(--rule);
  }

  .log tbody tr:last-child {
    border-bottom: 0;
  }

  .log td {
    display: block;
    padding: 0;
    border: 0;
  }

  .log td:first-child {
    flex: 1 1 100%;
  }

  .row-title {
    white-space: normal;
  }

  .log td.num::before {
    content: attr(data-label) " ";
    font-family: var(--font-sans);
    color: var(--ink-3);
  }
}
