/* ═══════════════════════════════════════════════════════════════════════════════════════
   THE RECORD — review before filing.
   Component vocabulary from the design brief. Reads tokens only; no hex values here.
   Requires styles/tokens.css to be loaded first.
   ═══════════════════════════════════════════════════════════════════════════════════════ */

/* ─── page & columns ─────────────────────────────────────────────────────────────────── */

.record-root {
  background: var(--canvas);
  color: var(--ink);
  font: 400 14px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  min-height: 100vh;
}

.record-root .page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px 64px;
}

.record-root .cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gutter);
  align-items: start;
}

/* One column. The detail is a slide-in sheet (.detail-host), not a second column. */
.record-root .col-read { min-width: 0; max-width: 960px; margin: 0 auto; padding-top: 32px; }

.record-root .num { font-variant-numeric: tabular-nums; }
.record-root .mono {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: .92em;
}

/* ─── banner ─────────────────────────────────────────────────────────────────────────── */

.record-root .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--topbar-h);
  /* --banner, not --ink: --ink is the text colour and has to lighten in dark mode. */
  background: var(--banner);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 32px;
}

.record-root .topbar::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--azure), var(--sky));
}

.record-root .topbar__mark { display: flex; align-items: center; gap: 10px; min-width: 0; }

.record-root .topbar__one {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--blue-300);
}

.record-root .topbar__sep {
  width: 1px;
  height: 16px;
  background: rgb(255 255 255 / .22);
}

.record-root .topbar__product {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.record-root .topbar__spacer { flex: 1 1 auto; }

.record-root .topbar__env {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  color: var(--blue-300);
  white-space: nowrap;
}

.record-root .topbar__avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgb(255 255 255 / .08);
  color: var(--blue-300);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
}

.record-root .topbar .ibtn {
  background: rgb(255 255 255 / .08);
  border-color: transparent;
  color: var(--blue-300);
}
.record-root .topbar .ibtn:hover { background: rgb(255 255 255 / .16); color: #fff; }
.record-root .topbar :focus-visible { outline-color: var(--sky); }

/* ─── header block ───────────────────────────────────────────────────────────────────── */

.record-root .head { margin-bottom: 28px; }

.record-root .head__name {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--ink);
}

.record-root .facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.record-root .fact { white-space: nowrap; }

.record-root .dot {
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--border-strong);
  flex: none;
}

.record-root .head__state { margin-top: 14px; }

.record-root .lede {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--secondary);
  max-width: 62ch;
}

/* ─── pills ──────────────────────────────────────────────────────────────────────────── */

.record-root .pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.record-root .pill .ic { width: 13px; height: 13px; flex: none; }

.record-root .pill--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.record-root .pill--att { background: var(--att-bg); border-color: var(--att-border); color: var(--att-text); }
.record-root .pill--info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.record-root .pill--neutral { background: var(--sunken); border-color: var(--border); color: var(--muted); }

/* ─── the one question ───────────────────────────────────────────────────────────────── */

.record-root .qcard {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 32px;
}

.record-root .qcard__q {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.record-root .qcard__hint {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 62ch;
}

.record-root .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }

.record-root .chip {
  height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--secondary);
  font: 500 12px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), color var(--fast);
}
.record-root .chip:hover { background: var(--sunken); border-color: var(--border-strong); }
.record-root .chip[aria-pressed="true"] {
  background: var(--sel-bg);
  border-color: var(--azure);
  color: var(--azure-deep);
}

.record-root .chip__n {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sunken);
  color: var(--muted);
}
.record-root .chip[aria-pressed="true"] .chip__n { background: var(--card); color: var(--azure-deep); }

.record-root .verdict {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}

@media (min-width: 760px) {
  .record-root .verdict { grid-template-columns: minmax(0, 1fr) 260px; }
}

.record-root .verdict__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }

.record-root .verdict__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.record-root .verdict__sentence {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--secondary);
  max-width: 62ch;
}

.record-root .verdict__scope { display: grid; gap: 16px; }

.record-root .scopelist__h {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.record-root .scopelist ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }

.record-root .scopelist li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  font-size: 13px;
  color: var(--secondary);
}
.record-root .scopelist li .ic { margin-top: 2px; color: var(--muted); }

/* ─── the record ─────────────────────────────────────────────────────────────────────── */

.record-root .record { position: relative; }

.record-root .record::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 1px;
  background: var(--border);
}

.record-root .divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 0 10px 44px;
  position: relative;
}
.record-root .divider:first-child { padding-top: 0; }

.record-root .divider__label { font-size: 12px; font-weight: 600; color: var(--muted); }

.record-root .divider__n {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--sunken);
  border: 1px solid var(--border);
  color: var(--muted);
}

.record-root .divider__rule { flex: 1 1 auto; height: 1px; background: var(--hairline); }

.record-root .divider__edit {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  background: none;
  font: 500 12px/1 Inter, system-ui, sans-serif;
  color: var(--azure);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0;
  transition: opacity var(--fast), background var(--fast);
}
.divider:hover .divider__edit,
.record-root .divider__edit:focus-visible { opacity: 1; }
.record-root .divider__edit:hover { background: var(--sel-bg); }

.record-root .row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  margin-bottom: 8px;
}

.record-root .node {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  position: relative;
  z-index: 1;
}
.record-root .node .ic { width: 14px; height: 14px; }

.record-root .node--attention { background: var(--att-bg); border-color: var(--att-border); color: var(--att-text); }
.record-root .node--human { background: var(--card); border-color: var(--border-strong); color: var(--secondary); }
.record-root .node--empty { background: var(--sunken); border-color: var(--border); color: var(--placeholder); }

/* Machine-generated items must never read as human work: circular node, sunken card. */
.record-root .node--machine {
  border-radius: 999px;
  background: var(--sunken);
  border-color: var(--border);
  color: var(--muted);
}

.record-root .item {
  display: grid;
  gap: 5px;
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--fast), background var(--fast), box-shadow var(--fast);
}
.record-root .item:hover { border-color: var(--border-strong); }

.record-root .item--machine {
  background: var(--sunken);
  border-color: transparent;
}
.record-root .item--machine:hover { border-color: var(--border); }

.record-root .item--open {
  border-color: var(--azure);
  background: var(--sel-bg-2);
  box-shadow: var(--shadow-xs);
}

.record-root .item__top { display: flex; align-items: baseline; gap: 10px; }

.record-root .item__title {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  min-width: 0;
  flex: 1 1 auto;
}

/* --muted, not --placeholder: this is real content. --placeholder is 3.67:1 and fails AA. */
.record-root .item__ref { font-size: 12px; color: var(--muted); flex: none; }

.record-root .item__answer {
  font-size: 14px;
  color: var(--secondary);
  overflow-wrap: anywhere;
}
.record-root .item__none { color: var(--muted); font-style: normal; }

.record-root .item__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
}

.record-root .item__pills { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

/* ─── terminator ─────────────────────────────────────────────────────────────────────── */

.record-root .terminator {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 20px 0 0 44px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 13px;
}
.record-root .terminator strong { display: block; font-size: 13px; font-weight: 600; }
.record-root .terminator span { display: block; margin-top: 2px; }
.record-root .terminator .ic { margin-top: 1px; }

.record-root .terminator--end { background: var(--ok-bg); border: 1px solid var(--ok-border); color: var(--ok-text); }
.record-root .terminator--partial { background: var(--att-bg); border: 1px solid var(--att-border); color: var(--att-text); }
.record-root .terminator--none { background: var(--sunken); border: 1px solid var(--border); color: var(--muted); }

/* ─── actions ────────────────────────────────────────────────────────────────────────── */

.record-root .actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
}
.record-root .actions__right { margin-left: auto; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.record-root .actions__why { font-size: 13px; color: var(--att-text); max-width: 42ch; }

.record-root .btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  color: var(--ink);
  font: 500 13px/1 Inter, system-ui, sans-serif;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast);
}
.record-root .btn:hover { background: var(--sunken); }

.record-root .btn--primary {
  background: var(--azure);
  border-color: var(--azure);
  /* Light: white. Dark: the accent lightens, so this flips to ink. See tokens.css. */
  color: var(--on-azure);
}
.record-root .btn--primary:hover { background: var(--azure-hover); border-color: var(--azure-hover); }

.record-root .btn--quiet { border-color: transparent; background: none; color: var(--secondary); }
.record-root .btn--quiet:hover { background: var(--sunken); color: var(--ink); }

.record-root .ibtn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--secondary);
  cursor: pointer;
  transition: background var(--fast), color var(--fast);
}
.record-root .ibtn:hover:not(:disabled) { background: var(--sunken); color: var(--ink); }
.record-root .ibtn:disabled { opacity: .4; cursor: default; }

/* ─── scope card ─────────────────────────────────────────────────────────────────────── */

.record-root .scope {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: var(--shadow-xs);
  margin-bottom: 20px;
}

.record-root .scope__h { margin: 0 0 14px; font-size: 16px; font-weight: 600; color: var(--ink); }

.record-root .bar {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--sunken);
  border: 1px solid var(--border);
}
.record-root .bar__seg { display: block; height: 100%; }
.record-root .bar__seg--pre { background: var(--info-border); }
.record-root .bar__seg--typed { background: var(--azure); }
.record-root .bar__seg--missing { background: var(--att-border); }

.record-root .legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.record-root .legend__i { display: inline-flex; align-items: center; gap: 5px; }
.record-root .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.record-root .sw--pre { background: var(--info-border); }
.record-root .sw--typed { background: var(--azure); }
.record-root .sw--missing { background: var(--att-border); }

.record-root .claims { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; }

.record-root .claim {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--sunken);
  font-size: 13px;
}
.record-root .claim .ic { margin-top: 2px; }
.record-root .claim strong { display: block; font-size: 12px; font-weight: 600; }
.record-root .claim span { display: block; margin-top: 3px; color: var(--secondary); }

/* Same shape whether it is good news or bad. Only the tint differs. */
.record-root .claim--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }
.record-root .claim--att { background: var(--att-bg); border-color: var(--att-border); color: var(--att-text); }
.record-root .claim--absent { background: var(--sunken); border-color: var(--border); color: var(--muted); }

.record-root .disclose { margin-top: 16px; border-top: 1px solid var(--hairline); padding-top: 12px; }

.record-root .disclose summary {
  font-size: 13px;
  font-weight: 500;
  color: var(--azure);
  cursor: pointer;
  list-style: none;
}
.record-root .disclose summary::-webkit-details-marker { display: none; }
.record-root .disclose summary::before { content: "＋ "; font-weight: 400; }
.record-root .disclose[open] summary::before { content: "－ "; }

.record-root .disclose__body { margin-top: 12px; }

.record-root .disclose__cap {
  margin: 0 0 8px;
  font-size: 12px;
  color: var(--muted);
}

.record-root .disclose__note {
  margin: 10px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* ─── detail panel ───────────────────────────────────────────────────────────────────── */

/* The detail is a slide-in sheet at every width, shown only while an answer is selected. */
.record-root .detail-host {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--panel-w), 92vw);
  z-index: 60;
  background: var(--card);
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow-y: auto;
  animation: sheet-in var(--base);
}
@keyframes sheet-in { from { transform: translateX(16px); opacity: .6; } to { transform: none; opacity: 1; } }

.record-root .detail { padding: 18px; }

/* Answers a client sees are a plain list — nothing to open. */
.record-root .item--static { cursor: default; }
.record-root .item--static:hover { border-color: var(--border); }
.record-root .item--static.item--machine:hover { border-color: transparent; }

.record-root .sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--scrim);
}
body.sheet-open { overflow: hidden; }

.record-root .detail__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }

.record-root .kicker { font-size: 12px; color: var(--muted); }

.record-root .detail__nav { margin-left: auto; display: flex; gap: 6px; }

.record-root .detail__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.record-root .detail__date { margin: 5px 0 0; font-size: 13px; color: var(--muted); }

.record-root .who {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--sunken);
  border: 1px solid var(--border);
}

.record-root .avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  flex: none;
}

.record-root .who__t { display: grid; min-width: 0; }
.record-root .who__t strong { font-size: 13px; font-weight: 600; color: var(--ink); }
.record-root .who__t span { font-size: 12px; color: var(--muted); }

.record-root .detail__pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }

.record-root .verbatim { margin: 18px 0 0; }

.record-root .verbatim__q {
  margin: 0;
  padding: 12px 14px;
  border-left: 2px solid var(--border-strong);
  background: var(--sunken);
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.record-root .verbatim__cap {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  margin-top: 7px;
  font-size: 12px;
  color: var(--muted);
}
.record-root .verbatim__cap .ic { margin-top: 1px; }

.record-root .kv {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 7px 12px;
  margin: 18px 0 0;
  font-size: 14px;
}
.record-root .kv dt { font-size: 13px; color: var(--muted); }
.record-root .kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.record-root .kv--tight { gap: 5px 12px; font-size: 13px; }
.record-root .kv--tight dt { font-size: 12px; }

.record-root .sect { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hairline); }

.record-root .sect__h { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); }
.record-root .sect__p { margin: 0; font-size: 13px; color: var(--secondary); }

.record-root .misslist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.record-root .misslist li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  font-size: 13px;
  color: var(--secondary);
}
.record-root .misslist .ic { margin-top: 2px; color: var(--muted); }

.record-root .detail__foot {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
}
.record-root .detail__foot .mono { font-size: 12px; color: var(--muted); }
.record-root .detail__foot .btn { margin-left: auto; }

/* ─── opening state ──────────────────────────────────────────────────────────────────── */

.record-root .detail--opening { background: var(--sunken); box-shadow: none; border-style: dashed; }

.record-root .opening { text-align: left; padding: 8px 4px; }
.record-root .opening__ic { width: 24px; height: 24px; color: var(--placeholder); }

.record-root .opening__h {
  margin: 12px 0 0;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.15;
  color: var(--ink);
}

.record-root .opening__p { margin: 10px 0 0; font-size: 14px; color: var(--secondary); max-width: 42ch; }
.record-root .opening__k { margin: 16px 0 0; font-size: 12px; color: var(--muted); }

.record-root kbd {
  display: inline-block;
  min-width: 18px;
  padding: 1px 5px;
  margin-right: 3px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 4px;
  background: var(--card);
  font: 500 11px/1.4 Inter, system-ui, sans-serif;
  color: var(--secondary);
  text-align: center;
}

/* ─── notice bar ─────────────────────────────────────────────────────────────────────── */

.record-root .notice {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 16px 0 0;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--sunken);
  font-size: 13px;
  color: var(--secondary);
}
.record-root .notice .ic { margin-top: 2px; }
.record-root .notice--info { background: var(--info-bg); border-color: var(--info-border); color: var(--info-text); }
.record-root .notice--att { background: var(--att-bg); border-color: var(--att-border); color: var(--att-text); }
.record-root .notice--ok { background: var(--ok-bg); border-color: var(--ok-border); color: var(--ok-text); }

/* ─── skeleton ───────────────────────────────────────────────────────────────────────── */

.record-root .sk {
  border-radius: 8px;
  background: linear-gradient(90deg, var(--sunken) 0%, var(--pressed) 50%, var(--sunken) 100%);
  background-size: 200% 100%;
  animation: sk 1.4s ease-in-out infinite;
}
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.record-root .sk--title { height: 30px; width: 40%; margin-bottom: 12px; }
.record-root .sk--facts { height: 14px; width: 62%; margin-bottom: 28px; }
.record-root .sk--card { height: 190px; margin-bottom: 32px; }
.record-root .sk--panel { height: 460px; }
.record-root .sk-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); margin-bottom: 8px; }
.record-root .sk--node { width: 28px; height: 28px; border-radius: 8px; }
.record-root .sk--item { height: 78px; }

@media (prefers-reduced-motion: reduce) {
  .record-root .sk { animation: none; }
  .record-root .detail { animation: none !important; }
}

/* ─── focus ──────────────────────────────────────────────────────────────────────────── */

.record-root :focus-visible {
  outline: 2px solid var(--azure);
  outline-offset: 2px;
  border-radius: 6px;
}

/* An answer the client told us they were unsure of — neither answered nor missing. */
.record-root .node--unsure {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
  border-radius: 999px;
}
.record-root .pill--info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

/* ─── the record on a phone ──────────────────────────────────────────────────────────
   record.css had exactly one non-motion media query (min-width: 760px, which makes the
   verdict two columns). Everything else was width-invariant, so at 360px the fixed gutters
   — 32px each side of .page, plus the 44px node column on every row — ate 108px, nearly a
   third of the screen, and left each answer 252px wide. */

@media (max-width: 720px) {
  .record-root .page { padding: 0 16px 48px; }
  .record-root .topbar { padding: 0 16px; gap: 10px; }

  /* The node gutter is decorative; the answer is not. */
  .record-root .row { grid-template-columns: 30px minmax(0, 1fr); }
  .record-root .divider { padding-left: 30px; }

  /* Long values — a full address, a list of chosen coverages — must break rather than
     push the layout wider than the screen. */
  .record-root .item__title,
  .record-root .item__answer { overflow-wrap: anywhere; }

  /* On a phone the actions are the end of a very long scroll. Stack them full width so
     the primary one is unmissable and thumb-sized. */
  .record-root .actions { gap: 10px; }
  .record-root .actions .btn { flex: 1 1 100%; min-height: 44px; }
}
