/* ==================================================================
   THRESHOLD - Application definitions - round eleven
   ------------------------------------------------------------------
   Recommendation requirements. Lifted from the canon's
   appdef-recommendation.css
   (docs/design-canon/application-definition/design_handoff_application_definitions/styles/),
   its tokens renamed to Threshold's --th-* layer; loads after appdef.css.
     - .req-drift-flag + .req-row.is-drift / .is-unfinished (row tail and stripe)
     - .rec-wire, .rec-integrity, .rec-card, .rec-row, .rec-facts, .rec-role, .rec-ident
     - .rec-nums, .rec-strip, .rec-readback
     - .rec-meanings, .rec-mean, .rec-shared
     - .rec-disclosure, .rec-gate (the entitlement note)
     - .rec-frozen and the applicant-impact preview (.rec-preview, .rec-pv-*)
   Not lifted: the counsel register (.is-gate on the wire, verdict, integrity group and
   card; .rec-gate.is-approved / .is-in-review / .is-none; the disclosure version and
   hash chips). Kent, 2026-11-14: until legal readiness records a counsel state, the
   waiver card shows the disclosure text and the entitlement note only.
   Additions: .rec-gate.is-entitlement .g, a neutral icon disc for that note, and a
   chrome reset for the Identity toggle, which is a native button here.
   ================================================================== */

/* -------- Row-level drift treatment ------------------------------- */
/* A row that cannot seed reads differently from a row that merely has
   an authoring nit: the stripe goes risk-red and wins over the copper
   blocking stripe, because "won't seed at all" outranks "gates review". */
.req-row.is-drift .req-row-stripe { background: var(--th-risk); width: 3px; }
.req-row.is-drift .req-kind .g { background: var(--th-risk-soft); border-color: color-mix(in oklch, var(--th-risk) 26%, transparent); color: var(--th-risk); }
.req-row.is-drift .req-label { text-decoration: none; }
.req-drift-flag {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap;
  font-family: var(--th-f-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase;
  padding: 3px 9px; border-radius: var(--th-radius-pill);
  background: var(--th-risk); color: var(--th-paper); border: 1px solid var(--th-risk);
}
/* Unfinished authoring is NOT a defect: same “nothing seeds” consequence, calm
   advant/blue outline instead of a filled risk flag. */
.req-drift-flag.is-todo { background: var(--th-advant-soft); color: var(--th-advant-deep); border-color: color-mix(in oklch, var(--th-advant) 34%, transparent); }
.req-row.is-unfinished .req-row-stripe { background: var(--th-advant); }
.req-foot-legend .lg .sw.drf { background: var(--th-risk); }

/* The row tail grows by a flag in this round — let it wrap rather than crowd the
   label column on a narrow window. */
.req-tail { flex-wrap: wrap; justify-content: flex-end; row-gap: 6px; }
.req-meta > * { max-width: 100%; }

/* -------- The wiring block --------------------------------------- */
.rec-wire {
  display: flex; flex-direction: column; gap: 14px;
  padding: 15px 16px 16px; border-radius: var(--th-radius-8);
  background: var(--th-paper-2); border: 1px solid var(--th-line);
}
.rec-wire.is-block { border-color: color-mix(in oklch, var(--th-risk) 34%, transparent); background: color-mix(in oklch, var(--th-risk-soft) 34%, var(--th-paper-2)); }
.rec-wire.is-todo  { border-color: color-mix(in oklch, var(--th-advant) 26%, transparent); }
.rec-wire-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.rec-wire-head .l .t { font-family: var(--th-f-serif); font-size: 15.5px; font-weight: 600; color: var(--th-ink); letter-spacing: -0.005em; }
.rec-wire-head .l .s { font-size: 11.5px; color: var(--th-ink-2); margin-top: 2px; line-height: 1.45; max-width: 58ch; }
.rec-wire-head .r { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

/* Which form versions the checks ran against — quiet, factual, always on. */
.rec-scope {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--th-ink-2);
  background: var(--th-paper); border: 1px solid var(--th-line); border-radius: var(--th-radius-pill); padding: 4px 10px;
}
.rec-scope svg { color: var(--th-ink-4); }
.rec-scope b { color: var(--th-ink-2); font-weight: 600; }
.rec-scope .sep { color: var(--th-ink-2); }

.rec-verdict {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-size: 11.5px; font-weight: 600; padding: 4px 11px; border-radius: var(--th-radius-pill);
  border: 1px solid transparent;
}
.rec-verdict.is-ok    { background: var(--th-ok-soft); color: oklch(42% 0.10 155); border-color: color-mix(in oklch, oklch(52% 0.11 155) 30%, transparent); }
.rec-verdict.is-block { background: var(--th-risk); color: var(--th-paper); border-color: var(--th-risk); }
.rec-verdict.is-todo  { background: var(--th-advant-soft); color: var(--th-advant-deep); border-color: color-mix(in oklch, var(--th-advant) 32%, transparent); }
.rec-verdict.is-warn  { background: var(--th-paper); color: var(--th-ink-2); border-color: var(--th-line-2); }

/* -------- Integrity list ----------------------------------------- */
.rec-integrity { display: flex; flex-direction: column; gap: 10px; }
.rec-int-group { border-radius: var(--th-radius-5); overflow: hidden; }
.rec-int-head {
  display: flex; align-items: center; gap: 9px; margin: 0;
  padding: 7px 12px; font-size: 11.5px; font-weight: 600;
}
.rec-int-head .n { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; }
.rec-int-head .c { font-family: var(--th-f-mono); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: var(--th-radius-pill); }
.rec-int-head .lead { font-family: var(--th-f-serif); font-style: italic; font-weight: 400; font-size: 12px; margin-left: 2px; }

/* Blocking: filled risk band. Unmistakable, and the only filled band here. */
.rec-int-group.is-block { border: 1px solid color-mix(in oklch, var(--th-risk) 38%, transparent); background: var(--th-paper-sunk); }
.rec-int-group.is-block .rec-int-head { background: var(--th-risk); color: var(--th-paper); }
.rec-int-group.is-block .rec-int-head .c { background: transparent; box-shadow: inset 0 0 0 1px var(--th-paper); color: var(--th-paper); }
.rec-int-group.is-block .rec-int-head .lead { color: var(--th-paper); }
/* To finish: advant/blue, outlined. Unfinished authoring, not broken structure —
   the same “nothing seeds” consequence stated in the header lead. */
.rec-int-group.is-todo { border: 1px solid color-mix(in oklch, var(--th-advant) 34%, transparent); background: var(--th-paper-sunk); }
.rec-int-group.is-todo .rec-int-head { background: var(--th-advant-soft); color: var(--th-advant-deep); }
.rec-int-group.is-todo .rec-int-head .c { background: color-mix(in oklch, var(--th-advant) 16%, transparent); color: var(--th-advant-deep); }
.rec-int-group.is-todo .rec-int-head .lead { color: color-mix(in oklch, var(--th-advant-deep) 82%, var(--th-ink-2)); }
/* Advisory: no fill at all. Reads as body copy with a label. */
.rec-int-group.is-warn { border: 1px solid var(--th-line-2); background: var(--th-paper-sunk); }
.rec-int-group.is-warn .rec-int-head { background: transparent; color: var(--th-ink-2); border-bottom: 1px solid var(--th-line-soft); }
.rec-int-group.is-warn .rec-int-head svg { color: var(--th-ink-4); }
.rec-int-group.is-warn .rec-int-head .c { background: var(--th-paper-2); color: var(--th-ink-2); border: 1px solid var(--th-line); }
.rec-int-group.is-warn .rec-int-head .lead { color: var(--th-ink-2); }

.rec-int-list { list-style: none; margin: 0; padding: 0; }
.rec-int-row { padding: 11px 13px; display: flex; flex-direction: column; gap: 8px; }
.rec-int-row + .rec-int-row { border-top: 1px solid var(--th-line-soft); }
.rec-int-row .m { font-size: 12.5px; color: var(--th-ink); line-height: 1.55; text-wrap: pretty; }
.rec-int-row .r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-int-row .code {
  font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.03em; color: var(--th-ink-2);
  background: var(--th-paper-2); border: 1px solid var(--th-line); border-radius: var(--th-radius-3); padding: 2px 7px;
}

.rec-fix {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer; white-space: nowrap;
  font-family: var(--th-f-sans); font-size: 11.5px; font-weight: 600; color: var(--th-advant-deep);
  background: var(--th-advant-soft); border: 1px solid color-mix(in oklch, var(--th-advant) 26%, transparent);
  border-radius: var(--th-radius-3); padding: 5px 10px; text-decoration: none;
}
.rec-fix:hover { background: color-mix(in oklch, var(--th-advant-soft) 68%, var(--th-paper)); }
.rec-fix.is-out { background: transparent; border-color: var(--th-line-2); color: var(--th-ink-2); }
.rec-fix.is-out:hover { border-color: var(--th-advant); color: var(--th-advant-deep); background: transparent; }
/* Unauthorized: the repair belongs to another authoring surface. States the
   access required and does nothing — no inline mutation, no elevation. */
.rec-fix.is-locked { cursor: default; background: var(--th-paper-2); border-color: var(--th-line-2); color: var(--th-ink-2); font-weight: 500; }
.rec-fix.is-locked svg { color: var(--th-ink-4); opacity: 1; }
.rec-fix svg { flex: none; opacity: 0.8; }

/* -------- Binding cards ------------------------------------------ */
.rec-card {
  background: var(--th-paper-sunk); border: 1px solid var(--th-line-2); border-radius: var(--th-radius-5);
  padding: 14px 15px 15px; display: flex; flex-direction: column; gap: 12px;
}
.rec-card.is-block { border-color: color-mix(in oklch, var(--th-risk) 34%, transparent); box-shadow: inset 3px 0 0 var(--th-risk); }
.rec-card.is-todo  { border-color: color-mix(in oklch, var(--th-advant) 30%, transparent); box-shadow: inset 3px 0 0 var(--th-advant); }
.rec-card.is-warn  { border-color: var(--th-line-2); box-shadow: inset 3px 0 0 var(--th-ink-4); }
.rec-card.is-focus { border-color: var(--th-advant); box-shadow: 0 0 0 3px var(--th-advant-soft); }
.rec-card-head { display: grid; grid-template-columns: 28px 1fr; gap: 11px; align-items: start; }
.rec-card-head .ic {
  width: 28px; height: 28px; border-radius: var(--th-radius-5); display: grid; place-items: center;
  background: var(--th-paper-2); border: 1px solid var(--th-line); color: var(--th-ink-2);
}
.rec-card.is-block .rec-card-head .ic { background: var(--th-risk-soft); border-color: color-mix(in oklch, var(--th-risk) 26%, transparent); color: var(--th-risk); }
.rec-card-head .h .t { font-size: 13px; font-weight: 600; color: var(--th-ink); }
.rec-card-head .h .s { font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5; margin-top: 2px; max-width: 66ch; }
.rec-card-head .h .s .em { font-family: var(--th-f-serif); font-style: italic; color: var(--th-marigold-deep); }

.rec-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; }
@media (max-width: 900px) { .rec-row { grid-template-columns: 1fr; gap: 6px; } }
.rec-lbl { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--th-ink-2); padding-top: 9px; display: block; }
@media (max-width: 900px) { .rec-lbl { padding-top: 0; } }
.rec-ctl { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.rec-ctl .req-select { width: 100%; }
.rec-hint { margin: 0; font-size: 11.5px; color: var(--th-ink-2); line-height: 1.55; text-wrap: pretty; }
.rec-hint b { color: var(--th-ink-2); font-weight: 600; }
.rec-hint .em { font-family: var(--th-f-serif); font-style: italic; color: var(--th-marigold-deep); }
.rec-empty-note { font-family: var(--th-f-serif); font-style: italic; font-size: 12px; color: var(--th-ink-2); line-height: 1.5; }
.rec-empty-note code { font-family: var(--th-f-mono); font-style: normal; font-size: 10.5px; color: var(--th-ink-2); }

/* Structural facts — the compatibility read-back. Ok is calm, not loud;
   a failed fact is what draws the eye. */
.rec-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.rec-fact {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  font-size: 10.5px; font-weight: 500; padding: 2px 8px; border-radius: var(--th-radius-pill);
  border: 1px solid var(--th-line); background: var(--th-paper-2); color: var(--th-ink-2);
}
.rec-fact svg { flex: none; }
.rec-fact.is-ok { color: oklch(42% 0.10 155); background: var(--th-ok-soft); border-color: color-mix(in oklch, oklch(52% 0.11 155) 24%, transparent); }
.rec-fact.is-bad { color: var(--th-ink); background: var(--th-risk-soft); border-color: color-mix(in oklch, var(--th-risk) 30%, transparent); font-weight: 600; }
.rec-fact.is-warn { color: oklch(45% 0.12 65); background: color-mix(in oklch, var(--th-warn-soft) 60%, var(--th-paper-sunk)); border-color: color-mix(in oklch, var(--th-warn) 26%, transparent); }

/* Stable identity, on demand only — never the primary mental model. */
.rec-ident { font-size: 11px; }
.rec-ident .t { display: inline-flex; align-items: center; gap: 5px; cursor: pointer; color: var(--th-ink-2); font-family: var(--th-f-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.rec-ident .t:hover { color: var(--th-ink-2); }
.rec-ident .v { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; padding: 8px 10px; background: var(--th-paper-2); border: 1px solid var(--th-line); border-radius: var(--th-radius-3); }
.rec-ident .v code { font-family: var(--th-f-mono); font-size: 10.5px; color: var(--th-ink-2); }
.rec-ident .v .n { font-size: 11px; color: var(--th-ink-2); line-height: 1.45; }

/* Role assignment rows (name / email / relationship). */
.rec-roles { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; border-top: 1px solid var(--th-line-soft); }
.rec-roles-lbl { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--th-ink-2); padding-top: 8px; }
.rec-role { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 10px; border-radius: var(--th-radius-3); background: var(--th-paper-2); border: 1px solid var(--th-line); }
@media (max-width: 900px) { .rec-role { grid-template-columns: 1fr; gap: 7px; } }
.rec-role.is-block { border-color: color-mix(in oklch, var(--th-risk) 34%, transparent); background: color-mix(in oklch, var(--th-risk-soft) 45%, var(--th-paper-2)); }
.rec-role.is-todo { border-color: color-mix(in oklch, var(--th-advant) 30%, transparent); background: color-mix(in oklch, var(--th-advant-soft) 45%, var(--th-paper-2)); }
.rec-role.is-warn { border-color: color-mix(in oklch, var(--th-warn) 30%, transparent); }
.rec-role.is-focus { border-color: var(--th-advant); box-shadow: 0 0 0 3px var(--th-advant-soft); }
.rec-role .rl { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; }
.rec-role .rl .n { font-size: 12.5px; font-weight: 600; color: var(--th-ink); }
.rec-role .rl .s { font-size: 11px; color: var(--th-ink-2); line-height: 1.4; }
.rec-role .rc { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rec-role .rc .req-select { width: 100%; }

/* -------- Counts ------------------------------------------------- */
.rec-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1000px) { .rec-nums { grid-template-columns: 1fr; } }
.rec-num { display: flex; flex-direction: column; gap: 5px; }
.rec-num .rec-lbl { padding-top: 0; }
.rec-numctl { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.rec-numctl input {
  width: 68px; padding: 7px 9px; text-align: right;
  font-family: var(--th-f-mono); font-variant-numeric: tabular-nums; font-size: 14px;
  color: var(--th-ink); background: var(--th-paper); border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3);
}
.rec-numctl input:focus { outline: none; border-color: var(--th-marigold); box-shadow: 0 0 0 3px var(--th-marigold-soft); }
.rec-numctl input[aria-invalid="true"] { border-color: color-mix(in oklch, var(--th-risk) 34%, transparent); background: var(--th-risk-soft); }
.rec-num.is-ro .rec-ro {
  min-width: 68px; padding: 7px 9px; text-align: right; display: inline-block;
  font-family: var(--th-f-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--th-ink-2);
  background: repeating-linear-gradient(135deg, transparent 0 7px, color-mix(in oklch, var(--th-paper-2) 70%, transparent) 7px 14px);
  border: 1px dashed var(--th-line-2); border-radius: var(--th-radius-3); box-sizing: border-box;
}
.rec-ro-src { display: flex; flex-direction: column; font-size: 10.5px; color: var(--th-ink-2); line-height: 1.35; }
.rec-ro-src a { display: inline-flex; align-items: center; gap: 4px; color: var(--th-advant-deep); font-weight: 600; }
.rec-numhint { font-size: 11px; color: var(--th-ink-2); line-height: 1.45; }

/* Slot strip — filled = a letter you require, hollow = a spare request slot. */
.rec-strip { display: flex; align-items: center; gap: 4px; }
.rec-strip .sl { width: 22px; height: 9px; border-radius: 2px; }
.rec-strip .sl.is-req { background: var(--th-marigold-deep); }
.rec-strip .sl.is-spare { background: transparent; border: 1px dashed var(--th-line-2); }
.rec-strip-none { font-family: var(--th-f-serif); font-style: italic; font-size: 11.5px; color: var(--th-ink-2); }
.rec-readback {
  margin: 0; padding: 10px 12px; border-radius: var(--th-radius-3);
  background: var(--th-paper-2); border: 1px solid var(--th-line);
  font-size: 12.5px; color: var(--th-ink-2); line-height: 1.6; text-wrap: pretty;
}
.rec-readback b { color: var(--th-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.rec-readback .em { font-family: var(--th-f-serif); font-style: italic; color: var(--th-marigold-deep); }

/* -------- Option meanings ---------------------------------------- */
.rec-meanings { display: flex; flex-direction: column; gap: 9px; padding-top: 4px; border-top: 1px solid var(--th-line-soft); }
.rec-mean { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 10px; border-radius: var(--th-radius-3); background: var(--th-paper-2); border: 1px solid var(--th-line); }
@media (max-width: 900px) { .rec-mean { grid-template-columns: 1fr; gap: 7px; } }
.rec-mean.is-block { border-color: color-mix(in oklch, var(--th-risk) 34%, transparent); background: color-mix(in oklch, var(--th-risk-soft) 45%, var(--th-paper-2)); }
.rec-mean.is-todo { border-color: color-mix(in oklch, var(--th-advant) 30%, transparent); background: color-mix(in oklch, var(--th-advant-soft) 45%, var(--th-paper-2)); }
.rec-mean .ml { display: flex; flex-direction: column; gap: 3px; }
.rec-mean .mk { display: inline-flex; align-self: flex-start; align-items: center; white-space: nowrap; font-family: var(--th-f-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--th-radius-pill); }
.rec-mean .mk.is-waived { background: var(--th-advant-soft); color: var(--th-advant-deep); border: 1px solid color-mix(in oklch, var(--th-advant) 26%, transparent); }
.rec-mean .mk.is-kept { background: var(--th-paper); color: var(--th-ink-2); border: 1px solid var(--th-line-2); }
.rec-mean .ms { font-size: 11px; color: var(--th-ink-2); line-height: 1.45; }
.rec-mean .mc { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.rec-mean .mc .req-select { width: 100%; }
.rec-mean .mv { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.rec-mean .mv code { font-family: var(--th-f-mono); font-size: 10.5px; white-space: nowrap; color: var(--th-ink-2); background: var(--th-paper); border: 1px solid var(--th-line); border-radius: var(--th-radius-3); padding: 1px 6px; }
.rec-mean .mv .n { font-family: var(--th-f-serif); font-style: italic; font-size: 11px; color: var(--th-ink-2); }

.rec-shared {
  display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start;
  padding: 9px 11px; border-radius: var(--th-radius-3);
  background: var(--th-advant-soft); border: 1px solid color-mix(in oklch, var(--th-advant) 22%, transparent);
  font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5;
}
.rec-shared svg { color: var(--th-advant-deep); margin-top: 2px; }
.rec-shared b { color: var(--th-ink); font-weight: 600; }
.rec-shared.is-block { background: var(--th-risk-soft); border-color: color-mix(in oklch, var(--th-risk) 30%, transparent); }
.rec-shared.is-block svg { color: var(--th-risk); }

/* -------- Disclosure + counsel gate ------------------------------ */
.rec-disclosure { border: 1px solid var(--th-line-2); border-radius: var(--th-radius-5); overflow: hidden; background: var(--th-paper); }
.rec-disc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--th-paper-2); border-bottom: 1px solid var(--th-line); }
.rec-disc-head .l { font-family: var(--th-f-mono); font-size: 10px; letter-spacing: 0.11em; text-transform: uppercase; color: var(--th-ink-2); }
.rec-disc-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; max-height: 172px; overflow: auto; }
.rec-disc-body p { margin: 0; font-family: var(--th-f-serif); font-size: 12.5px; color: var(--th-ink-2); line-height: 1.6; text-wrap: pretty; }
.rec-disc-body p.is-placeholder {
  font-family: var(--th-f-mono); font-style: normal; font-size: 10.5px; letter-spacing: 0.02em;
  color: var(--th-marigold-deep); background: var(--th-marigold-soft);
  border: 1px dashed color-mix(in oklch, var(--th-marigold-deep) 34%, transparent);
  border-radius: var(--th-radius-3); padding: 7px 9px; line-height: 1.5;
}
.rec-gate { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 13px; border-top: 1px solid var(--th-line); }
@media (max-width: 760px) { .rec-gate { grid-template-columns: 22px minmax(0, 1fr); } .rec-gate .rec-fix { grid-column: 2; justify-self: start; } }
.rec-gate .g { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.rec-gate .b .t { font-size: 12.5px; font-weight: 600; color: var(--th-ink); }
.rec-gate .b .t .mono { font-family: var(--th-f-mono); font-size: 11.5px; font-weight: 500; }
.rec-gate .b .s { font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5; margin-top: 3px; text-wrap: pretty; }
.rec-gate .b .s b { color: var(--th-ink-2); font-weight: 600; }
/* Where enablement actually lives — an operator-controlled tenant entitlement
   in Atlas. Stated inside the gate so nobody looks for a switch here. */
.rec-gate .b .e { display: grid; grid-template-columns: 14px 1fr; gap: 7px; align-items: start; margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--th-line); font-size: 11px; color: var(--th-ink-2); line-height: 1.5; }
.rec-gate .b .e svg { color: var(--th-ink-4); margin-top: 2px; }
.rec-gate .b .e b { color: var(--th-ink-2); font-weight: 600; }
.rec-gate .b .e .mono { font-family: var(--th-f-mono); font-size: 10px; color: var(--th-ink-2); }

/* -------- Future-submissions-only footer ------------------------- */
.rec-frozen {
  display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: start;
  padding: 10px 12px; border-radius: var(--th-radius-3);
  background: var(--th-paper); border: 1px dashed var(--th-line-2);
  font-size: 11.5px; color: var(--th-ink-2); line-height: 1.55;
}
.rec-frozen svg { color: var(--th-ink-4); margin-top: 2px; }
.rec-frozen b { color: var(--th-ink-2); font-weight: 600; }

/* -------- Applicant-impact preview ------------------------------- */
.rec-preview { display: flex; flex-direction: column; gap: 12px; }
.rec-pv-block {
  display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: start;
  padding: 11px 12px; border-radius: var(--th-radius-5);
  background: var(--th-risk-soft); border: 1px solid color-mix(in oklch, var(--th-risk) 34%, transparent);
  font-size: 11.5px; color: var(--th-ink-2); line-height: 1.55; text-wrap: pretty;
}
.rec-pv-block svg { color: var(--th-risk); margin-top: 2px; }
.rec-pv-block b { color: var(--th-ink); font-weight: 600; }
.rec-pv-block.is-todo { background: var(--th-advant-soft); border-color: color-mix(in oklch, var(--th-advant) 30%, transparent); }
.rec-pv-block.is-todo svg, .rec-pv-block.is-todo b { color: var(--th-advant-deep); }
.rec-pv-slots { display: flex; align-items: center; gap: 4px; margin-top: 8px; flex-wrap: wrap; }
.rec-pv-slots .sl { width: 16px; height: 8px; border-radius: 2px; }
.rec-pv-slots .sl.is-req { background: var(--th-marigold-deep); }
.rec-pv-slots .sl.is-spare { background: transparent; border: 1px dashed var(--th-line-2); }
.rec-pv-slots .n { font-family: var(--th-f-mono); font-size: 9.5px; color: var(--th-ink-2); margin-left: 4px; }
.rec-pv-note { display: grid; grid-template-columns: 16px 1fr; gap: 8px; align-items: start; font-size: 11.5px; color: var(--th-ink-2); line-height: 1.5; }
.rec-pv-note svg { color: var(--th-ink-4); margin-top: 2px; }
.rec-pv-note b { color: var(--th-ink-2); font-weight: 600; }

/* ==================================================================
   Dark theme — warm-dark token swap; only the pieces that need a
   hand-tuned surface are restated.
   ================================================================== */
[data-theme="dark"] .rec-wire { background: color-mix(in oklch, var(--th-paper-2) 70%, var(--th-paper)); }
[data-theme="dark"] .rec-wire.is-block { background: color-mix(in oklch, var(--th-risk) 12%, var(--th-paper-2)); }
[data-theme="dark"] .rec-verdict.is-ok { background: oklch(26% 0.05 155); color: oklch(80% 0.12 155); border-color: color-mix(in oklch, oklch(60% 0.12 155) 40%, transparent); }
[data-theme="dark"] .rec-verdict.is-block { background: var(--th-risk); color: oklch(15% 0.01 25); }
[data-theme="dark"] .req-drift-flag { background: var(--th-risk); color: oklch(15% 0.01 25); }
[data-theme="dark"] .req-drift-flag.is-todo { background: color-mix(in oklch, var(--th-advant) 26%, var(--th-paper-sunk)); color: oklch(84% 0.10 245); border-color: color-mix(in oklch, var(--th-advant) 44%, transparent); }
[data-theme="dark"] .rec-verdict.is-todo { background: color-mix(in oklch, var(--th-advant) 26%, var(--th-paper-sunk)); color: oklch(84% 0.10 245); border-color: color-mix(in oklch, var(--th-advant) 44%, transparent); }
[data-theme="dark"] .rec-int-group.is-todo .rec-int-head { background: color-mix(in oklch, var(--th-advant) 24%, var(--th-paper-sunk)); color: oklch(86% 0.09 245); }
[data-theme="dark"] .rec-int-group.is-todo .rec-int-head .c { background: oklch(0% 0 0 / 0.18); color: oklch(86% 0.09 245); }
[data-theme="dark"] .rec-int-group.is-todo .rec-int-head .lead { color: oklch(80% 0.07 245); }
[data-theme="dark"] .rec-role.is-todo, [data-theme="dark"] .rec-mean.is-todo { background: color-mix(in oklch, var(--th-advant) 16%, var(--th-paper-2)); }
[data-theme="dark"] .rec-pv-block.is-todo { background: color-mix(in oklch, var(--th-advant) 18%, var(--th-paper-sunk)); }
[data-theme="dark"] .rec-pv-block.is-todo svg, [data-theme="dark"] .rec-pv-block.is-todo b { color: oklch(84% 0.10 245); }
[data-theme="dark"] .rec-int-group.is-block .rec-int-head { color: oklch(15% 0.01 25); }
[data-theme="dark"] .rec-int-group.is-block .rec-int-head .c { background: oklch(0% 0 0 / 0.2); color: oklch(15% 0.01 25); }
[data-theme="dark"] .rec-int-group.is-block .rec-int-head .lead { color: oklch(15% 0.01 25 / 0.78); }
[data-theme="dark"] .rec-fact.is-ok { background: oklch(26% 0.05 155); color: oklch(80% 0.12 155); border-color: color-mix(in oklch, oklch(60% 0.12 155) 36%, transparent); }
[data-theme="dark"] .rec-fact.is-bad { background: color-mix(in oklch, var(--th-risk) 18%, var(--th-paper-2)); color: oklch(78% 0.13 25); border-color: color-mix(in oklch, var(--th-risk) 44%, transparent); }
[data-theme="dark"] .rec-fact.is-warn { background: oklch(26% 0.05 65); color: oklch(84% 0.12 65); border-color: color-mix(in oklch, oklch(70% 0.13 65) 34%, transparent); }
[data-theme="dark"] .rec-card.is-block { background: color-mix(in oklch, var(--th-risk) 8%, var(--th-paper-sunk)); }
[data-theme="dark"] .rec-card.is-block .rec-card-head .ic { background: color-mix(in oklch, var(--th-risk) 18%, var(--th-paper-2)); color: oklch(80% 0.13 25); }
[data-theme="dark"] .rec-role.is-block, [data-theme="dark"] .rec-mean.is-block { background: color-mix(in oklch, var(--th-risk) 12%, var(--th-paper-2)); }
[data-theme="dark"] .rec-mean .mk.is-waived { background: color-mix(in oklch, var(--th-advant) 24%, var(--th-paper-sunk)); color: oklch(84% 0.10 245); }
[data-theme="dark"] .rec-shared { background: color-mix(in oklch, var(--th-advant) 18%, var(--th-paper-sunk)); border-color: color-mix(in oklch, var(--th-advant) 38%, transparent); }
[data-theme="dark"] .rec-shared.is-block { background: color-mix(in oklch, var(--th-risk) 14%, var(--th-paper-sunk)); }
[data-theme="dark"] .rec-disc-body p.is-placeholder { background: oklch(26% 0.05 55); color: oklch(86% 0.11 55); border-color: color-mix(in oklch, oklch(70% 0.14 55) 40%, transparent); }
[data-theme="dark"] .rec-strip .sl.is-req, [data-theme="dark"] .rec-pv-slots .sl.is-req { background: var(--th-marigold); }
[data-theme="dark"] .rec-pv-block { background: color-mix(in oklch, var(--th-risk) 14%, var(--th-paper-sunk)); }
[data-theme="dark"] .rec-pv-block b { color: oklch(80% 0.13 25); }
[data-theme="dark"] .rec-numctl input:focus { border-color: var(--th-marigold); box-shadow: 0 0 0 3px oklch(70% 0.14 55 / 0.16); }
[data-theme="dark"] .rec-numctl input[aria-invalid="true"] { background: color-mix(in oklch, var(--th-risk) 14%, var(--th-paper)); }

/* Contrast, fourth note after round 13: no risk step reaches 4.5:1 as text in light, so these read in --ink there; the risk colour stays on border, fill and icon. Dark keeps --risk (passes). */
.rec-fact.is-bad svg{color:var(--th-risk)}

/* The entitlement note's icon disc: neutral, since it states where enablement lives and
   records no counsel state (Kent, 2026-11-14). */
/* The Identity toggle is a native button (canon draws a span role=button); strip the button chrome so it
   reads as canon's mono text toggle. */
.rec-ident button.t { appearance: none; background: none; border: 0; padding: 0; }

.rec-gate.is-entitlement .g { background: var(--th-paper-2); border: 1px solid var(--th-line); color: var(--th-ink-2); }
