:root {
  color-scheme: light dark;
  --bg: #f6f6f3;
  --surface: #ffffff;
  --surface-2: #f1f1ed;
  --border: #e3e3de;
  --border-strong: #cfcfc8;
  --text: #1d1d1b;
  --muted: #6b6b65;
  --accent: #3451c6;
  --accent-hover: #2b44a8;
  --accent-soft: #e9edfb;
  --on-accent: #ffffff;
  --success: #2c7449;
  --success-soft: #e4f2e9;
  --warn: #8f5600;
  --warn-soft: #fbefd9;
  --danger: #b4322a;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.04), 0 4px 16px rgb(0 0 0 / 0.04);
  --sidebar-width: 248px;
  --sticky-top: 0px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, Cambria, serif;
  --mark: #ffe28a;
  --mark-current: #ffad42;
  --mark-text: #1d1d1b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131315;
    --surface: #1b1b1e;
    --surface-2: #242428;
    --border: #2e2e33;
    --border-strong: #3d3d44;
    --text: #ececec;
    --muted: #9b9ba3;
    --accent: #7d95f5;
    --accent-hover: #97aaf7;
    --accent-soft: #252c48;
    --on-accent: #0e0e10;
    --success: #6fcf97;
    --success-soft: #1d3326;
    --warn: #f0b45a;
    --warn-soft: #3a2c14;
    --danger: #f2877e;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3);
    --mark: #5c4a0f;
    --mark-current: #b26a12;
    --mark-text: #ffffff;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25; }
h2 { font-size: 1rem; font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font: 0.85em var(--mono); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Controls */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.25rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.primary { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.btn.primary:hover { border-color: var(--accent-hover); background: var(--accent-hover); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.icon { width: 2.25rem; padding: 0; }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.i {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

kbd {
  padding: 0 0.35rem;
  border: 1px solid currentColor;
  border-radius: 4px;
  font: 0.75rem/1.4 var(--mono);
  opacity: 0.6;
}

input, textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: inherit;
  font: inherit;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

progress {
  width: 100%;
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  appearance: none;
}

progress::-webkit-progress-bar { background: var(--surface-2); }
progress::-webkit-progress-value { border-radius: 999px; background: var(--accent); }
progress::-moz-progress-bar { border-radius: 999px; background: var(--accent); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.chip:empty { display: none; }
.chip.done { background: var(--success-soft); color: var(--success); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }

.card {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.empty { padding: 2rem 1rem; color: var(--muted); text-align: center; }
.prose { font-size: 0.95rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }

/* Sign in */

.login { display: grid; min-height: 100vh; padding: 16px; place-items: center; }

.login-card {
  display: grid;
  gap: 1rem;
  width: min(100%, 24rem);
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.field { display: grid; gap: 0.35rem; font-weight: 500; }
.field-error { color: var(--danger); font-size: 0.9rem; }
.field-error:empty { display: none; }

.brand { display: flex; align-items: center; gap: 0.65rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }

/* App shell */

.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100vh;
  padding: 1.25rem 0.9rem 1rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.sidebar .brand { padding: 0 0.4rem; }
.nav { display: grid; gap: 2px; }

.nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }

.badge {
  min-width: 1.5rem;
  margin-left: auto;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4rem;
  text-align: center;
}

.sidebar-progress {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 0.85rem;
}

.sidebar-progress div { display: flex; justify-content: space-between; color: var(--muted); }
.sidebar-progress progress,
.sidebar-progress progress::-webkit-progress-bar { background: var(--border); }

.account {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.4rem 0;
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
  text-transform: uppercase;
  place-items: center;
}

.account-name { flex: 1; font-weight: 500; }
.mobilebar { display: none; }
.content { width: 100%; max-width: 1320px; margin: 0 auto; padding: 2rem 2rem 0; }
.view { display: grid; gap: 1.25rem; padding-bottom: 2rem; }

.page-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.subtitle { margin-top: 0.35rem; color: var(--muted); }

/* Dashboard */

.progress-card { display: grid; gap: 0.85rem; }
.progress-card .card-head { margin: 0; }
.figure { display: flex; align-items: baseline; gap: 0.5rem; }
.figure strong { font-size: 2.25rem; font-weight: 650; letter-spacing: -0.02em; line-height: 1; }
.stats { display: flex; gap: 2.5rem; margin: 0.25rem 0 0; }
.stats dt { color: var(--muted); font-size: 0.85rem; }
.stats dd { margin: 0; font-size: 1.25rem; font-weight: 600; }
.columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.25rem; }
.activity, .team { display: grid; margin: 0; padding: 0; list-style: none; }

.activity a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.2rem 0.75rem;
  margin: 0 -0.5rem;
  padding: 0.65rem 0.5rem;
  border-radius: var(--radius-sm);
  color: inherit;
}

.activity a:hover { background: var(--surface-2); text-decoration: none; }

.activity .note {
  grid-column: 2 / -1;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team li { display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 0.75rem; padding: 0.5rem 0; }
.team progress { grid-column: 1 / -1; }
.steps { display: grid; gap: 0.4rem; margin: 0.6rem 0 0.9rem; padding-left: 1.25rem; }

/* Output judgement */

.judge { display: grid; gap: 1rem; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.pager { display: inline-flex; align-items: center; gap: 0.25rem; }
.pager-label { min-width: 6.5rem; text-align: center; }
.toolbar progress { flex: 1; min-width: 8rem; max-width: 18rem; }

.callout {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
}

.case { padding: 0; }

.case summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
}

.case summary::-webkit-details-marker { display: none; }
.case .chevron { color: var(--muted); transition: transform 0.15s; }
.case[open] .chevron { transform: rotate(90deg); }
.case-title { font-weight: 600; }
.case-meta { color: var(--muted); font-size: 0.85rem; }
.case summary .chip { margin-left: auto; }

.case-tools {
  position: sticky;
  top: var(--sticky-top);
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.6rem 1.1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.case-tools .spacer { flex: 1; }

.find {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0 0.2rem 0 0.6rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--muted);
}

.find:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.find input { width: 13rem; padding: 0.4rem 0.3rem; border: 0; background: transparent; box-shadow: none; }
.find input:focus { box-shadow: none; }
.find .btn.icon { width: 1.9rem; min-height: 1.9rem; }
.find-count { min-width: 4.75rem; font-size: 0.8rem; text-align: right; white-space: nowrap; }
.quick-find { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; }
.quick-find-codes { display: flex; gap: 0.35rem; }

.chip.action {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: var(--mono);
  cursor: pointer;
}

.chip.action:hover { border-color: var(--accent); color: var(--accent); }
.text-size button { width: 2rem; padding: 0.3rem 0; font-family: var(--serif); }
.text-size [data-value="s"] { font-size: 0.75rem; }
.text-size [data-value="m"] { font-size: 0.95rem; }
.text-size [data-value="l"] { font-size: 1.15rem; }

/* Scroll shadows: the "local" layers cover the shadows once the box is scrolled to an end. */
/* Sized so the whole box fits in the window below the page header on first view. */
.case-text {
  max-height: max(16rem, calc(100vh - 20rem));
  padding: 1.5rem 1.75rem 1.75rem;
  overflow-y: auto;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(var(--surface) 40%, transparent) top / 100% 2.5rem no-repeat local,
    linear-gradient(transparent, var(--surface) 60%) bottom / 100% 2.5rem no-repeat local,
    radial-gradient(farthest-side at 50% 0, rgb(0 0 0 / 0.2), transparent) top / 100% 0.8rem no-repeat,
    radial-gradient(farthest-side at 50% 100%, rgb(0 0 0 / 0.2), transparent) bottom / 100% 0.8rem no-repeat,
    var(--surface);
}

.case-text.expanded { max-height: none; overflow: visible; background: var(--surface); }

/* The order itself, set for long-form reading. */
.doc { --doc-size: 1.0625rem; font: var(--doc-size)/1.75 var(--serif); }
.doc[data-size="s"] { --doc-size: 0.9375rem; }
.doc[data-size="l"] { --doc-size: 1.25rem; }
.doc > * { max-width: 46em; margin: 0; }
.doc > * + * { margin-top: 0.9em; }
.doc > .table-scroll { max-width: none; }
.doc h3, .doc h4 { font-family: var(--font); line-height: 1.4; }
.doc h3 { font-size: 1.05em; font-weight: 650; }
.doc h4 { font-size: 0.95em; font-weight: 600; color: var(--muted); }
.doc > * + h3, .doc > * + h4 { margin-top: 1.4em; }
.doc hr { margin: 1.6em 0; border: 0; border-top: 1px solid var(--border); }
.doc strong { font-weight: 650; }
.doc ul { padding-left: 1.4em; }
.doc li + li { margin-top: 0.3em; }
.doc .para { display: grid; grid-template-columns: 3.4em minmax(0, 1fr); }
.doc .para.sub { margin-left: 3.4em; grid-template-columns: 2.6em minmax(0, 1fr); }

.doc .marker {
  color: var(--muted);
  font: 600 0.8em/2.2 var(--font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.doc blockquote {
  margin-left: 3.4em;
  padding: 0.1em 0 0.1em 1.1em;
  border-left: 3px solid var(--border-strong);
  font-style: italic;
}

.doc .table-scroll { overflow-x: auto; }
.doc table { min-width: 60%; border-collapse: collapse; font: 0.85em/1.5 var(--font); }
.doc th, .doc td { padding: 0.45rem 0.65rem; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: var(--surface-2); font-weight: 600; }
.doc td.numeric { font-variant-numeric: tabular-nums; white-space: nowrap; }
.doc tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.doc mark { border-radius: 2px; background: var(--mark); color: var(--mark-text); }
.doc mark.current { background: var(--mark-current); box-shadow: 0 0 0 2px var(--mark-current); }

.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; overflow: clip; }

.col-head {
  position: sticky;
  top: var(--sticky-top);
  z-index: 1;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-weight: 650;
}

.col-head + .col-head, .cell[data-side="1"] { border-left: 1px solid var(--border); }

.group-label {
  grid-column: 1 / -1;
  padding: 1.1rem 1.1rem 0.6rem;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 650;
}

.row-label {
  display: flex;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  align-items: center;
  gap: 0.4rem 0.75rem;
  padding: 0.45rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.row-title { display: inline-flex; align-items: center; gap: 0.5rem; }

/* One row of choices under each pair of cells: each side's button sits under its column. */
.verdict {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--border);
}

.verdict:last-child { border-bottom: 0; }
.verdict [data-verdict="left"] { justify-self: start; }
.verdict [data-verdict="right"] { justify-self: end; }

.verdict button {
  min-height: 2.1rem;
  padding: 0 0.9rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: 500 0.85rem var(--font);
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

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

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

.verdict button[aria-pressed="true"]::before { content: "✓ "; }

.cell { min-width: 0; padding: 0.9rem 1.1rem 0.6rem; }
.cell.preferred { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); box-shadow: inset 3px 0 var(--accent); }
.doc.compact { --doc-size: 0.98rem; line-height: 1.7; }

.outcome {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-weight: 600;
}

.classification { font: 600 1.05rem var(--mono); }
.sources { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.1rem; font-size: 0.92rem; }

.tag {
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.decision {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

#note { flex: 1; min-height: 2.75rem; max-height: 10rem; resize: none; }
.choices { display: flex; align-items: center; gap: 0.5rem; }
.choices-label { display: grid; padding-right: 0.25rem; font-weight: 600; line-height: 1.25; text-align: right; }
.choices-label small { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.btn.choice { min-height: 2.75rem; padding: 0 1.1rem; font-weight: 600; }

.btn.choice[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--on-accent);
}

/* My judgments */

.segmented {
  display: inline-flex;
  gap: 2px;
  width: fit-content;
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.segmented button {
  padding: 0.35rem 0.85rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

.segmented button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.1);
}

.count { margin-left: 0.2rem; color: var(--muted); font-size: 0.8rem; }
.table-wrap { padding: 0; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }

.table th {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-align: left;
  text-transform: uppercase;
}

.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { width: 3rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.note-cell {
  max-width: 28rem;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Guidelines */

.guide { display: grid; gap: 1rem; max-width: 46rem; }
.guide h2 { margin-bottom: 0.5rem; }
.guide ol, .guide ul { display: grid; gap: 0.4rem; margin: 0; padding-left: 1.2rem; }
.shortcuts { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.5rem 1rem; margin: 0; }
.shortcuts dd { margin: 0; }
.shortcuts kbd { opacity: 1; }

/* Toasts */

.toasts {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  display: grid;
  gap: 0.5rem;
  width: min(24rem, calc(100vw - 2rem));
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 4px 24px rgb(0 0 0 / 0.12);
  animation: toast-in 0.18s ease-out;
}

.toast.error { border-left-color: var(--danger); }
.toast span { flex: 1; }

@keyframes toast-in {
  from { opacity: 0; transform: translateY(-4px); }
}

/* Narrow screens */

@media (max-width: 1100px) {
  .columns { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  :root { --sticky-top: 3.25rem; }

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    width: min(var(--sidebar-width), 85vw);
    transform: translateX(-100%);
    transition: transform 0.2s;
  }

  .nav-open .sidebar { transform: none; }
  .scrim { position: fixed; inset: 0; z-index: 30; background: rgb(0 0 0 / 0.35); }

  .mobilebar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: var(--sticky-top);
    padding: 0 0.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface);
  }

  .content { padding: 1.25rem 16px 0; }
}

@media (max-width: 700px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
  .col-head { display: none; }
  .cell[data-side="1"] { border-left: 0; }
  .cell[data-side="0"] { border-bottom: 1px dashed var(--border); }
  .verdict { grid-template-columns: minmax(0, 1fr); padding-top: 0.6rem; }
  .verdict [data-verdict] { justify-self: stretch; }

  .cell::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
  }

  .decision { flex-direction: column; align-items: stretch; }
  .choices { flex-wrap: wrap; }
  .choices-label { width: 100%; text-align: left; }
  .case-text { padding: 1rem; }
  .find { flex: 1; }
  .find input { width: 100%; }
  .doc .para { grid-template-columns: 2.6em minmax(0, 1fr); }
  .doc .para.sub, .doc blockquote { margin-left: 1.2em; }
  .choices .btn { flex: 1; }
  kbd { display: none; }
  .stats { gap: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
