:root {
  color-scheme: dark;
  --ink: #0b0f12;
  --ink-2: #11171b;
  --ink-3: #182126;
  --panel: #151c20;
  --panel-2: #1b2429;
  --line: #2a353b;
  --line-soft: #202a2f;
  --paper: #f2f0e9;
  --paper-2: #e8e5dc;
  --white: #fffdf8;
  --muted: #99a4a9;
  --muted-2: #6e7b81;
  --orange: #ff5a2f;
  --orange-deep: #dc3f18;
  --orange-soft: #ffd7ca;
  --accent-ink: #0b0f12;
  --green: #89e0a9;
  --green-deep: #184c30;
  --yellow: #f2cd66;
  --red: #ff8069;
  --blue: #85b7ff;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 18px 60px rgba(0,0,0,.32);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --ink: #f1efe8;
  --ink-2: #faf9f5;
  --ink-3: #e7e4dc;
  --panel: #fffefa;
  --panel-2: #ebe8df;
  --line: #cdc9be;
  --line-soft: #dfdcd3;
  --paper: #252c30;
  --paper-2: #e4e0d6;
  --white: #171c1f;
  --muted: #5c686d;
  --muted-2: #768187;
  --orange: #cf3d16;
  --orange-deep: #b72f10;
  --orange-soft: #7d2a15;
  --accent-ink: #fffdf8;
  --green: #1f6d43;
  --green-deep: #d8ecdf;
  --yellow: #806008;
  --red: #b83a28;
  --blue: #235fa7;
  --shadow: 0 18px 60px rgba(42,37,27,.14);
}

* { box-sizing: border-box; }
html { background: var(--ink); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--ink); color: var(--white); font-family: var(--sans); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
button, a, summary, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:not(:disabled), summary { cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--orange); color: var(--accent-ink); }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 10px 14px; background: var(--white); color: var(--ink); border-radius: 8px; font-weight: 800; }
.skip-link:focus { top: 16px; }
.mono-label { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; line-height: 1.2; text-transform: uppercase; }

/* PRODUCT CHROME */
.command-stack { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb,var(--ink) 94%,transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.command-band { min-height: 76px; display: grid; grid-template-columns: 210px minmax(220px, 1fr) auto auto auto auto; align-items: stretch; }
.brand { display: flex; align-items: center; gap: 11px; padding: 0 22px; color: var(--white); text-decoration: none; border-right: 1px solid var(--line); }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand span { font-size: 19px; font-weight: 800; letter-spacing: -.03em; }
.job-identity { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 24px; }
.job-identity strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; letter-spacing: -.01em; }
.job-identity > span:last-child { color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; }
.condition { display: flex; align-items: center; gap: 9px; padding: 0 22px; color: var(--green); border-left: 1px solid var(--line); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; }
.condition__dot, .campaign-strip__dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent); }
.auth-control { min-width: 98px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--white); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.auth-control:hover { background: var(--panel-2); color: var(--orange); }
.theme-toggle { min-width: 84px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background .15s ease,color .15s ease; }
.theme-toggle:hover { background: var(--panel-2); color: var(--orange); }
.theme-toggle__icon { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid var(--line); border-radius: 50%; color: var(--orange); font-family: var(--sans); font-size: 15px; line-height: 1; }
.theme-toggle--compact { min-width: auto; min-height: 40px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; }
.countdown { min-width: 160px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 20px; background: var(--orange); color: var(--accent-ink); }
.countdown__number { font-size: 38px; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.countdown__copy { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .11em; line-height: 1.35; }
.campaign-strip { min-height: 34px; display: grid; grid-template-columns: 210px minmax(260px,1fr) auto; align-items: center; border-top: 1px solid var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.campaign-strip > div:first-child { height: 100%; display: flex; align-items: center; gap: 9px; padding: 0 22px; border-right: 1px solid var(--line); }
.campaign-strip__dot { width: 5px; height: 5px; color: var(--green); }
.progress-block { display: flex; align-items: center; gap: 16px; padding: 0 24px; }
.progress-track { position: relative; flex: 1; height: 3px; overflow: hidden; background: var(--line); }
.progress-track span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--orange); transition: width .3s ease; }
.campaign-strip > span { padding: 0 20px; }

/* CORE APP LAYOUT */
.shell { width: 100%; min-height: calc(100vh - 111px); padding: 0; background: var(--ink); }
.product-workspace { min-height: calc(100vh - 111px); display: grid; grid-template-columns: 210px minmax(0,1fr); }
.workspace-nav { position: sticky; top: 111px; align-self: start; height: calc(100vh - 111px); display: flex; flex-direction: column; gap: 6px; padding: 20px 14px; overflow-y: auto; background: var(--ink-2); border-right: 1px solid var(--line); }
.workspace-nav::before { content: "RECOVERY  /  " attr(data-notice-id); display: block; margin: 0 8px 10px; color: var(--muted-2); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.workspace-tab { width: 100%; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; align-items: center; padding: 13px 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); text-align: left; }
.workspace-tab:hover { background: var(--panel); color: var(--white); }
.workspace-tab[aria-current="page"] { background: var(--panel-2); border-color: var(--line); color: var(--white); box-shadow: inset 3px 0 var(--orange); }
.workspace-tab__icon { grid-row: 1 / span 2; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; background: var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; }
.workspace-tab[aria-current="page"] .workspace-tab__icon { background: var(--orange); color: var(--accent-ink); }
.workspace-tab strong { font-size: 13px; line-height: 1.2; }
.workspace-tab small { margin-top: 3px; color: var(--muted-2); font-size: 10px; line-height: 1.25; }
.workspace-label-short { display: none; }
.workspace-agent-status { margin-top: auto; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,var(--panel),var(--ink-2)); }
.workspace-agent-status > span { display: flex; align-items: center; gap: 7px; color: var(--green); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.workspace-agent-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px var(--green); }
.workspace-agent-status strong { display: block; margin-top: 10px; font-size: 12px; line-height: 1.35; }
.workspace-agent-status small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.workspace-agent-status button, .workspace-nav__support button { width: 100%; margin-top: 12px; padding: 9px 0 0; border: 0; border-top: 1px solid var(--line); background: none; color: var(--orange); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-align: left; }
.workspace-nav__support { display: grid; gap: 2px; }
.workspace-nav__support button { margin: 0; padding: 10px 8px; border: 0; color: var(--muted); }
.workspace-nav__support button:hover { color: var(--white); }
.workspace-content { min-width: 0; padding: 28px clamp(22px,4vw,58px) 80px; background: radial-gradient(circle at 80% -10%,rgba(255,90,47,.08),transparent 34%),var(--ink); }

/* LOADING / ERRORS */
.error-banner { margin: 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 18px; border: 1px solid color-mix(in srgb,var(--red) 55%,var(--line)); border-radius: 12px; background: color-mix(in srgb,var(--red) 10%,var(--panel)); }
.error-banner strong { color: var(--red); }
.error-banner p { margin: 3px 0 0; color: var(--muted); }
.loading-grid { min-height: 55vh; display: grid; grid-template-columns: 2fr 1fr; gap: 18px; padding: 28px; }
.skeleton { min-height: 320px; border-radius: 16px; background: linear-gradient(90deg,var(--panel),var(--panel-2),var(--panel)); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* PRIMARY CONTRACTOR ACTION */
.next-action { position: relative; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 0 0 34px; padding: 20px 22px; overflow: hidden; border: 1px solid rgba(255,90,47,.65); border-radius: 16px; background: linear-gradient(100deg,rgba(255,90,47,.22),rgba(255,90,47,.07)); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.next-action::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--orange); }
.next-action__marker { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange); color: var(--accent-ink); font-size: 23px; font-weight: 900; }
.next-action h1 { margin: 3px 0 2px; font-size: clamp(20px,2vw,28px); line-height: 1.1; letter-spacing: -.035em; }
.next-action__body > p:last-child { margin: 5px 0 0; color: var(--orange-soft); }
.next-action__control { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.next-action__control span { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 700; letter-spacing: .1em; text-align: center; }

/* BUTTON SYSTEM */
.button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .01em; transition: transform .15s ease,background .15s ease,border-color .15s ease,color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); background: var(--paper-2); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { opacity: .4; cursor: not-allowed; }
.button--orange { border-color: var(--orange); background: var(--orange); color: var(--accent-ink); }
.button--orange:hover:not(:disabled) { background: var(--orange-deep); }
.button--outline { background: transparent; color: var(--white); }
.button--outline:hover:not(:disabled) { border-color: var(--muted); background: var(--panel-2); }
.button--light { min-width: 150px; border-color: var(--white); background: var(--white); }

/* WORKSPACE HEADINGS / SUMMARY */
.dashboard { min-width: 0; }
.workspace-panel--view-hidden { display: none !important; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.workspace-heading h1 { margin: 5px 0 0; font-size: clamp(30px,4vw,54px); line-height: .98; letter-spacing: -.055em; }
.workspace-heading > div > p:last-child { max-width: 700px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.correction-summary { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.correction-summary > * { padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

/* CORRECTION QUEUE */
.citation-list { display: grid; gap: 12px; }
.citation { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .18s ease,transform .18s ease; }
.citation:hover { border-color: #405159; transform: translateY(-1px); }
.citation--needs-action { border-color: rgba(255,90,47,.72); background: linear-gradient(105deg,rgba(255,90,47,.09),var(--panel) 40%); }
.citation__summary { display: grid; grid-template-columns: 52px minmax(0,1.25fr) minmax(230px,.85fr) auto; gap: 18px; align-items: center; min-height: 128px; padding: 20px; }
.citation__number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 11px; font-weight: 900; }
.citation__code { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.citation__finding { margin: 8px 0 0; color: var(--white); font-size: 17px; font-weight: 650; line-height: 1.38; letter-spacing: -.015em; }
.citation__operations { display: grid; gap: 5px; }.citation__operations strong { color: var(--paper); font-size: 12px; }.citation__operations span { color: var(--muted); font-size: 11px; line-height: 1.45; }
.citation__proof { justify-self: end; }.status { display: inline-flex; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .07em; white-space: nowrap; }.status--needs_judgment { border-color: var(--orange); background: var(--orange); color: var(--accent-ink); }.status--accepted { border-color: var(--green-deep); background: var(--green-deep); color: var(--green); }.status--rejected { border-color: var(--red); color: var(--red); }
.citation__details { border-top: 1px solid var(--line); background: var(--ink-2); }.citation__details summary { padding: 13px 20px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.citation__record { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 4px 20px 18px; }.citation__requirements { margin: 0; padding-left: 18px; color: var(--paper); font-size: 12px; }.citation__record-note { margin: 0; color: var(--muted); font-size: 11px; }
.citation__decision { padding: 0 20px 20px; }.citation__decision .judgment { margin: 0; }
.citation-card { position: relative; display: grid; grid-template-columns: 52px minmax(0,1.2fr) minmax(230px,.8fr) auto; gap: 18px; align-items: center; min-height: 132px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: border-color .18s ease,transform .18s ease; }
.citation-card:hover { border-color: #405159; transform: translateY(-1px); }
.citation-card--attention { border-color: rgba(255,90,47,.7); background: linear-gradient(100deg,rgba(255,90,47,.08),var(--panel) 40%); }
.citation-card__index, .citation-card__number { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--white); font-family: var(--mono); font-size: 11px; font-weight: 900; }
.citation-card__trade, .citation-card__code, .citation-card__eyebrow { color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.citation-card h2, .citation-card h3, .citation-card__quote { margin: 7px 0 0; color: var(--white); font-size: 17px; font-weight: 650; line-height: 1.35; letter-spacing: -.015em; }
.citation-card blockquote { margin: 7px 0 0; }
.citation-card p { margin: 5px 0 0; color: var(--muted); }
.citation-card__owner, .citation-card__contact { color: var(--paper); font-size: 12px; font-weight: 700; }
.citation-card__status, .status-chip, .citation-status { justify-self: end; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; white-space: nowrap; }
.citation-card--attention .citation-card__status { border-color: var(--orange); background: var(--orange); color: var(--accent-ink); }
.citation-card details { grid-column: 2 / -1; border-top: 1px solid var(--line); padding-top: 12px; }
.citation-card summary { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.citation-card img { border-radius: 10px; }

/* JUDGMENTS */
.judgment-list { display: grid; gap: 12px; margin-top: 14px; }
.judgment-card, .judgment { padding: 22px; border: 1px solid rgba(255,90,47,.7); border-radius: 14px; background: linear-gradient(135deg,rgba(255,90,47,.14),var(--panel)); }
.judgment-card h3, .judgment h3 { margin: 8px 0 4px; font-size: 19px; letter-spacing: -.02em; }
.judgment-card p, .judgment p { color: var(--muted); }
.judgment-card textarea, .judgment textarea, .judgment input { width: 100%; min-height: 48px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); color: var(--white); resize: vertical; }
.judgment form { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }.judgment form input { margin: 0; }.judgment form .button { min-height: 48px; }
.judgment form.judgment__evidence-review { grid-template-columns: minmax(0,1fr) auto auto; }
.judgment-card label, .judgment label { display: block; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.away-briefing { margin-top: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.away-briefing summary { display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; color: var(--muted); }
.away-briefing__body { padding: 0 18px 18px; }
.away-briefing__list { margin: 12px 0 0; padding-left: 20px; color: var(--muted); }
.recovery-clock { margin-top: 20px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }

/* PACKET / EVIDENCE */
.packet-stamp { padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--yellow); font-family: var(--mono); font-size: 10px; letter-spacing: .12em; }
.packet-layout { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(320px,.7fr); gap: 18px; align-items: start; }
.packet-primary, .evidence-panel { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); overflow: hidden; }
.packet-primary { padding: 22px; }
.evidence-panel { padding: 22px; }
.packet-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.packet-section-heading h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.035em; }
.packet-section-heading > strong, .evidence-panel__mode { color: var(--green); font-family: var(--mono); font-size: 9px; letter-spacing: .09em; }
.packet-list { display: grid; gap: 8px; padding: 18px 0; }
.packet-list > * { padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.packet-row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; }.packet-row__tag { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 900; }.packet-row__code { color: var(--paper); font-size: 12px; font-weight: 700; }.packet-row__detail { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; }.packet-row__state { color: var(--yellow); font-family: var(--mono); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.packet-preview { margin-top: 18px; padding: 18px; border-radius: 12px; background: var(--paper); color: var(--ink); }
.packet-judgment { margin-top: 14px; }
.packet-release { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.packet-release p { color: var(--muted); }
.photo-evidence { display: grid; gap: 13px; padding-top: 18px; }
.photo-evidence__copy { display: grid; gap: 4px; }
.photo-evidence__copy span, .photo-evidence__mode { color: var(--muted); font-size: 11px; }
.photo-evidence label { display: grid; gap: 6px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.photo-evidence select, .photo-evidence input, .photo-evidence textarea { width: 100%; min-height: 44px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--white); }
.photo-evidence textarea { resize: vertical; font: inherit; line-height: 1.6; }
.photo-evidence input:not([type="checkbox"]), .photo-evidence textarea, .photo-evidence select { font-family: var(--sans); font-size: 14px; letter-spacing: normal; text-transform: none; }
.photo-evidence .correction-review__consent { display: flex; align-items: flex-start; text-transform: none; letter-spacing: normal; font: inherit; font-size: 12px; line-height: 1.5; }
.photo-evidence input[type="checkbox"] { width: 18px; min-height: 18px; flex: 0 0 18px; }
.photo-evidence__error { color: var(--red); }
.demo-evidence { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.demo-evidence summary { color: var(--muted); font-size: 12px; }
.evidence-fixtures { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 14px; }
.evidence-fixture { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }
.evidence-fixture img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.evidence-fixture div { padding: 10px; }
.evidence-fixture span { display: block; color: var(--muted); font-size: 10px; }
.evidence-fixture button { margin: 0 10px 10px; }
.evidence-result { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-2); }

/* AGENT RECEIPT */
.provenance-workspace { max-width: 1180px; }
.workspace-heading--provenance { align-items: flex-start; }
.agent-run__mode { padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.agent-flow { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.agent-flow__heading { display: flex; justify-content: space-between; gap: 22px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.agent-flow__heading h2 { margin: 6px 0 0; font-size: 22px; }
.agent-flow__heading > p { max-width: 310px; margin: 0; color: var(--muted); font-size: 11px; }
.agent-flow__thesis { margin: 0; padding: 12px 22px; border-bottom: 1px solid var(--line); background: color-mix(in srgb,var(--orange) 7%,var(--panel)); color: var(--muted); font-size: 12px; line-height: 1.5; }
.agent-flow__thesis strong { color: var(--ink); }
.agent-flow__track { display: grid; grid-template-columns: repeat(3,minmax(260px,1fr)); min-width: 900px; padding: 18px; gap: 10px; overflow-x: auto; }
.agent-flow__stage { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.agent-flow__stage-heading { display: grid; grid-template-columns: auto 1fr; gap: 4px 9px; min-height: 76px; padding: 13px; border-bottom: 1px solid var(--line); }.agent-flow__stage-number { grid-row: 1 / span 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--line-soft); color: var(--orange); font-family: var(--mono); font-size: 9px; font-weight: 900; }.agent-flow__stage-title { font-size: 13px; line-height: 1.25; }.agent-flow__stage-cadence { color: var(--muted-2); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.agent-flow__rail { display: grid; grid-template-columns: 1fr; gap: 0; }.agent-flow__connector { display: grid; place-items: center; height: 22px; color: var(--muted-2); font-size: 12px; transform: rotate(90deg); }.agent-flow__node { min-height: 108px; display: flex; flex-direction: column; padding: 13px; border-top: 1px solid var(--line-soft); background: var(--panel); }.agent-flow__rail .agent-flow__node:first-child { border-top: 0; }.agent-flow__kind { color: var(--muted-2); font-family: var(--mono); font-size: 7px; font-weight: 800; letter-spacing: .08em; }.agent-flow__name { margin-top: 7px; font-size: 13px; }.agent-flow__detail { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.35; }.agent-flow__state { margin-top: auto; padding-top: 10px; color: var(--green); font-family: var(--mono); font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.agent-flow__node--agent { background: #1f2b32; }.agent-flow__node--agent .agent-flow__kind { color: var(--blue); }.agent-flow__node--human { background: var(--orange); color: var(--accent-ink); }.agent-flow__node--human .agent-flow__kind,.agent-flow__node--human .agent-flow__detail { color: color-mix(in srgb,var(--accent-ink) 74%,transparent); }.agent-flow__node--human .agent-flow__state { color: var(--accent-ink); }.agent-flow__node--waiting { opacity: .78; }
.agent-flow__track > * { min-height: 150px; }
.agent-flow__track .agent, .agent-node--agent { background: #1f2b32; border-color: #39505b; }
.agent-flow__track .human, .agent-node--human { background: var(--orange); color: var(--accent-ink); border-color: var(--orange); }
.provenance-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.provenance-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; }
.legend-agent { background: #39505b; }.legend-policy { border: 1px solid var(--muted); }.legend-human { background: var(--orange); }
.provenance-steps, .agent-nodes, .event-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.provenance-steps > li, .agent-nodes > li, .event-list > li { padding: 13px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.technical-trace { margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink-2); }
.technical-trace summary { padding: 15px 18px; color: var(--muted); font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.technical-trace > *:not(summary) { margin-left: 18px; margin-right: 18px; }
.agent-run__engine, .agent-run__summary { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px 0; color: var(--muted); font-family: var(--mono); font-size: 10px; }
.aws-boundary { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg,#111d24,var(--panel)); }
.aws-boundary__header { display: flex; justify-content: space-between; gap: 20px; }
.aws-boundary h2 { margin: 6px 0 0; font-size: 24px; }
.aws-boundary__header > span { color: var(--green); font-family: var(--mono); font-size: 9px; }
.aws-boundary__flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1.2fr; align-items: stretch; gap: 6px; margin-top: 20px; }
.aws-boundary__flow > div { padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-2); }
.aws-boundary__flow i { align-self: center; color: var(--muted-2); font-style: normal; }
.aws-boundary__flow strong, .aws-boundary__flow small { display: block; }
.aws-boundary__flow small { margin-top: 4px; color: var(--muted); font-size: 9px; }
.aws-boundary__agentcore { border-color: var(--blue) !important; }
.aws-boundary__lower { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin-top: 14px; }
.aws-wakeup, .aws-proof { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-2); }
.aws-wakeup ol { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin: 12px 0 0; padding: 0; list-style: none; }
.aws-wakeup li strong, .aws-wakeup li span { display: block; font-size: 10px; }.aws-wakeup li span { color: var(--muted); }
.aws-proof { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.aws-proof div { padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.aws-proof dt { color: var(--muted); font-size: 9px; }.aws-proof dd { margin: 3px 0 0; color: var(--green); font-family: var(--mono); font-size: 10px; }
.aws-boundary__note, .provenance-boundary { color: var(--muted); font-size: 11px; }

/* JUDGE GUIDE: EXPLANATION LAYER OVER PRODUCT */
.tour-mode { overflow: hidden; }
.judge-tour { position: fixed; inset: 0 0 0 auto; z-index: 120; width: min(570px,100vw); height: 100vh; overflow-y: auto; overscroll-behavior: contain; border-left: 1px solid #3a464d; background: #0d1317; box-shadow: -30px 0 90px rgba(0,0,0,.55); }
.tour-mode::after { content: ""; position: fixed; inset: 0 min(570px,100vw) 0 0; z-index: 110; background: rgba(2,5,7,.66); backdrop-filter: blur(3px); pointer-events: none; }
.judge-tour__header { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: rgba(13,19,23,.96); border-bottom: 1px solid var(--line); }
.judge-tour__header strong { display: block; margin-top: 4px; font-family: var(--mono); font-size: 10px; }
.tour-header-actions { display: flex; gap: 8px; }
.tour-exit, .tour-skip { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.recovery-line { display: grid; grid-template-columns: repeat(5,1fr); gap: 3px; margin: 0; padding: 18px 22px; list-style: none; }
.recovery-line li { padding-top: 9px; border-top: 3px solid var(--line); color: var(--muted-2); }
.recovery-line li.active, .recovery-line li[aria-current="step"] { border-color: var(--orange); color: var(--white); }
.recovery-line span, .recovery-line strong, .recovery-line small { display: block; }.recovery-line span { font-family: var(--mono); font-size: 8px; }.recovery-line strong { margin-top: 3px; font-size: 10px; }.recovery-line small { display: none; }
.judge-lens { margin: 0 22px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.judge-lens__title { display: flex; gap: 10px; align-items: center; padding: 14px; background: var(--panel-2); }
.judge-lens__marker { color: var(--orange); font-size: 22px; }
.judge-lens__item { padding: 13px 14px; border-top: 1px solid var(--line); }
.judge-lens__item span { display: block; color: var(--muted-2); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.judge-lens__item strong { display: block; margin-top: 5px; font-size: 12px; line-height: 1.45; }
.tour-stage { padding: 26px 22px; }
.tour-stage__copy h1 { margin: 9px 0 12px; font-size: clamp(34px,7vw,52px); line-height: .98; letter-spacing: -.055em; }
.tour-stage__copy h1:focus-visible { outline: 0; }
.tour-stage__copy > p:last-child { color: var(--muted); font-size: 14px; }
.tour-stage__visual { margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.tour-stage__visual > * { padding: 0; }
.tour-workspace__tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }.tour-workspace__tabs span { padding: 11px 9px; color: var(--muted-2); font-family: var(--mono); font-size: 8px; font-weight: 800; text-align: center; }.tour-workspace__tabs span[aria-current="page"] { background: var(--orange); color: var(--accent-ink); }
.tour-workspace__status { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; color: var(--muted); font-family: var(--mono); font-size: 8px; }.tour-workspace__status strong { color: var(--orange); }
.tour-workspace__content { display: grid; gap: 8px; padding: 0 14px 14px; }.tour-artifact { display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink-2); }.tour-artifact__index { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 7px; background: var(--line-soft); font-family: var(--mono); font-size: 8px; font-weight: 900; }.tour-artifact__body strong { font-size: 11px; }.tour-artifact__body p { margin: 3px 0 0; color: var(--muted); font-size: 9px; }.tour-artifact__status { color: var(--muted); font-family: var(--mono); font-size: 7px; font-weight: 900; }.tour-artifact--blocked { border-color: var(--orange); }.tour-artifact--blocked .tour-artifact__status { color: var(--orange); }.tour-transition { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-family: var(--mono); font-size: 7px; text-transform: uppercase; }.tour-transition::before,.tour-transition::after { content:""; flex:1; height:1px; background:var(--line); }
.tour-agent-proof { overflow: hidden; border: 1px solid #39505b; border-radius: 9px; background: #111a20; }.tour-agent-proof__header,.tour-agent-proof__topology { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid #293941; }.tour-agent-proof__header span,.tour-agent-proof__topology { color: var(--blue); font-family: var(--mono); font-size: 7px; }.tour-agent-proof__header strong { display: block; margin-top: 3px; font-size: 10px; }.tour-agent-proof__inspect { border: 1px solid #39505b; border-radius: 6px; background: transparent; color: var(--paper); font-size: 8px; }.tour-agent-proof__nodes { display: grid; grid-template-columns: repeat(5,1fr); margin: 0; padding: 8px; list-style:none; }.tour-agent-proof__node { min-width:0; padding:8px; border-right:1px solid #293941; }.tour-agent-proof__node:last-child { border-right:0; }.tour-agent-proof__node code,.tour-agent-proof__node strong,.tour-agent-proof__node span { display:block; overflow-wrap:anywhere; }.tour-agent-proof__node code { color:var(--blue); font-size:7px; }.tour-agent-proof__node strong { margin-top:4px; font-size:8px; }.tour-agent-proof__node span { margin-top:6px; color:var(--green); font-family:var(--mono); font-size:6px; }.tour-agent-proof__node--interrupted { background:rgba(255,90,47,.16); }.tour-agent-proof__node--interrupted span { color:var(--orange); }
.tour-stage__control { margin-top: 14px; padding: 18px; border-radius: 12px; background: var(--orange); color: var(--accent-ink); }
.tour-stage__control .mono-label { color: rgba(11,15,18,.65); }
.tour-stage__control > strong { display: block; margin-top: 8px; font-size: 19px; line-height: 1.2; }
.tour-stage__control p { margin: 9px 0 14px; }
.tour-stage__control .button { width: 100%; background: var(--white); color: var(--ink); }
.tour-stage__control > span { display: block; margin-top: 9px; font-family: var(--mono); font-size: 8px; text-align: center; }
.tour-outcome { margin: 0 22px 32px; padding-top: 18px; border-top: 1px solid var(--line); }
.tour-outcome p { color: var(--muted); font-size: 11px; }.tour-outcome dl { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }.tour-outcome dl > div { padding: 10px; border: 1px solid var(--line); border-radius: 8px; }

/* WELCOME + SETUP */
.welcome-dialog, .notice-dialog { width: min(1080px,calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: auto; border: 1px solid #344148; border-radius: 22px; background: var(--ink-2); color: var(--white); box-shadow: var(--shadow); }
.welcome-dialog::backdrop, .notice-dialog::backdrop { background: rgba(2,5,7,.84); backdrop-filter: blur(8px); }
.welcome-dialog__brand { min-height: 64px; display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.welcome-dialog__brand img { width: 38px; height: 38px; border-radius: 9px; background: var(--white); }
.welcome-dialog__mode { margin-left: auto; color: var(--green); }
.welcome-dialog__grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(360px,.85fr); }
.welcome-dialog__editorial { padding: clamp(24px,3vw,38px); }
.welcome-dialog__header, .notice-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.welcome-dialog__body { display: grid; grid-template-columns: minmax(0,1fr) minmax(390px,.85fr); }
.welcome-dialog__copy { padding: 0; }
.welcome-dialog__copy h1 { max-width: 680px; margin: 10px 0 13px; font-size: clamp(44px,4.7vw,64px); line-height: .93; letter-spacing: -.06em; }
.welcome-dialog__copy h1:focus-visible { outline: 0; }
.welcome-dialog__copy > p { max-width: 620px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.welcome-dialog__choices { display: grid; gap: 8px; margin-top: 20px; }
.entry-choice { position: relative; display: grid; grid-template-columns: 36px 1fr auto; grid-template-areas: "idx badge action" "idx title action" "idx copy action"; column-gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--white); text-align: left; }
.entry-choice:hover { border-color: #4c5d65; background: var(--panel-2); }
.entry-choice--primary { border-color: var(--orange); background: linear-gradient(110deg,rgba(255,90,47,.18),var(--panel)); }
.entry-choice__index { grid-area: idx; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ink); color: var(--orange); font-family: var(--mono); font-size: 10px; font-weight: 900; }
.entry-choice__badge { grid-area: badge; color: var(--orange); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.entry-choice strong { grid-area: title; font-size: 16px; }.entry-choice > span:not(.entry-choice__index):not(.entry-choice__badge):not(.entry-choice__action) { grid-area: copy; margin-top: 3px; color: var(--muted); font-size: 11px; }
.entry-choice__action { grid-area: action; align-self: center; padding: 10px 12px; border-radius: 8px; background: var(--orange); color: var(--accent-ink); font-family: var(--mono); font-size: 9px; font-weight: 900; }
.entry-choice__action--quiet { border: 1px solid color-mix(in srgb,var(--paper) 22%,var(--line)); background: var(--line); color: var(--paper); }
.welcome-dialog__notice { padding: clamp(26px,4vw,48px); background: var(--paper); color: var(--ink); }
.public-demo-note { margin: 12px 0 0; color: var(--muted); font-size: 9px; line-height: 1.45; }
.entry-notice { margin: 30px; align-self: center; padding: 24px; border: 1px solid #c8c3b7; background: var(--white); color: var(--ink); box-shadow: 0 26px 60px rgba(0,0,0,.3); transform: rotate(.35deg); }
.entry-notice > header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 13px; border-bottom: 1px solid #d7d1c6; font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.entry-notice__title { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.entry-notice__title span { font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.entry-notice__title h2 { margin: 5px 0 0; font-size: 36px; line-height: 1; text-transform: uppercase; }
.entry-notice__title > strong { padding: 6px 8px; border: 2px solid var(--orange-deep); color: var(--orange-deep); font-family: var(--mono); font-size: 9px; transform: rotate(-3deg); }
.entry-notice dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 0; border: 1px solid #d7d1c6; }
.entry-notice dl div { padding: 10px; border-right: 1px solid #d7d1c6; }.entry-notice dl div:last-child { border-right: 0; }
.entry-notice dt { font-family: var(--mono); font-size: 7px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }.entry-notice dd { margin: 4px 0 0; font-size: 10px; }
.entry-notice ol { margin: 14px 0 0; padding: 0; list-style: none; }.entry-notice li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid #ddd8cd; }.entry-notice li > span { color: var(--orange-deep); font-family: var(--mono); font-size: 8px; font-weight: 900; }.entry-notice li p { margin: 0; font-size: 10px; line-height: 1.45; }.entry-notice li strong { display: block; font-family: var(--mono); font-size: 8px; }
.entry-notice footer { padding-top: 12px; border-top: 1px solid #ddd8cd; color: var(--orange-deep); font-family: var(--mono); font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.welcome-notice { min-height: 100%; padding: 24px; border: 1px solid #c8c3b7; background: var(--white); box-shadow: 0 20px 50px rgba(0,0,0,.15); transform: rotate(.5deg); }
.welcome-notice h2 { margin: 20px 0; font-size: 42px; text-transform: uppercase; }.welcome-notice__topline, .welcome-notice__stamp, .welcome-notice__footer { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; }.welcome-notice__stamp { display: inline-block; padding: 6px; border: 2px solid var(--orange-deep); color: var(--orange-deep); transform: rotate(-4deg); }
.welcome-notice dl { display: grid; grid-template-columns: repeat(3,1fr); margin: 18px 0; border: 1px solid #d8d3c8; }.welcome-notice dl div { padding: 10px; }.welcome-notice dt { font-size: 8px; text-transform: uppercase; }.welcome-notice dd { margin: 4px 0 0; font-size: 11px; }.welcome-notice ol { padding-left: 22px; }.welcome-notice li { padding: 10px 0; border-top: 1px solid #ddd8cd; }
.welcome-dialog__disclosure { color: var(--muted); font-size: 10px !important; }
.notice-dialog { width: min(900px,calc(100vw - 32px)); }
.notice-dialog__body, .setup-pane { padding: 24px; }
.notice-dialog textarea, .notice-dialog input, .notice-dialog select { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--ink); color: var(--white); }
.notice-dialog textarea { min-height: 220px; resize: vertical; }
.notice-dialog label { display: grid; gap: 7px; margin-bottom: 13px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.setup-progress { display: flex; gap: 6px; padding: 0 24px; }.setup-progress > * { flex: 1; height: 3px; background: var(--line); }.setup-progress > *.active { background: var(--orange); }
.notice-dialog__footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 24px; border-top: 1px solid var(--line); }
.close-notice { border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: 420px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; }
.demo-driver { display: none; position: fixed; left: 226px; right: 18px; bottom: 12px; z-index: 80; border: 1px solid var(--line); border-radius: 10px; background: rgba(11,15,18,.94); box-shadow: var(--shadow); }
.demo-driver summary { display: flex; gap: 8px; padding: 10px 12px; color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }.demo-driver__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 12px; }

/* LIGHT MODE: WARM FIELD REPORT, NOT A COLOR INVERSION */
:root[data-theme="light"] .citation:hover,
:root[data-theme="light"] .citation-card:hover,
:root[data-theme="light"] .entry-choice:hover { border-color: #9a958a; }
:root[data-theme="light"] .agent-flow__node--agent,
:root[data-theme="light"] .agent-flow__track .agent,
:root[data-theme="light"] .agent-node--agent { background: #203039; color: #fffdf8; }
:root[data-theme="light"] .agent-flow__node--agent .agent-flow__detail { color: #c7d0d4; }
:root[data-theme="light"] .aws-boundary { background: linear-gradient(145deg,#e1e8e7,var(--panel)); }
:root[data-theme="light"] .judge-tour { border-color: var(--line); background: #f7f5ee; box-shadow: -30px 0 90px rgba(42,37,27,.24); }
:root[data-theme="light"] .judge-tour__header { background: color-mix(in srgb,#f7f5ee 96%,transparent); }
:root[data-theme="light"] .tour-mode::after { background: rgba(29,31,30,.38); }
:root[data-theme="light"] .tour-stage__control .mono-label { color: rgba(255,253,248,.78); }
:root[data-theme="light"] .tour-agent-proof { color: #fffdf8; }
:root[data-theme="light"] .welcome-dialog__notice { background: #e7e3d8; color: #171c1f; }
:root[data-theme="light"] .entry-notice,
:root[data-theme="light"] .welcome-notice { background: #fffdf8; color: #171c1f; box-shadow: 0 26px 60px rgba(42,37,27,.16); }
:root[data-theme="light"] .packet-preview { background: #fffdf8; color: #171c1f; border: 1px solid #d2cdc1; }
:root[data-theme="light"] .toast { background: #171c1f; color: #fffdf8; }
:root[data-theme="light"] .demo-driver { background: rgba(250,249,245,.96); }

/* RESPONSIVE */
@media (max-width: 1050px) {
  .command-band { grid-template-columns: 72px minmax(180px,1fr) auto auto auto auto; }
  .brand { padding: 0 18px; }.brand span { display: none; }
  .campaign-strip { grid-template-columns: 72px minmax(240px,1fr) auto; }.campaign-strip > div:first-child span:last-child { display: none; }
  .product-workspace { grid-template-columns: 78px minmax(0,1fr); }
  .workspace-nav { padding: 16px 9px; }.workspace-nav::before,.workspace-tab small,.workspace-tab strong,.workspace-agent-status,.workspace-nav__support { display: none; }.workspace-tab { display: grid; grid-template-columns: 1fr; place-items: center; padding: 10px; }.workspace-tab__icon { grid-row: auto; }
  .packet-layout { grid-template-columns: 1fr; }
  .citation-card { grid-template-columns: 48px minmax(0,1fr) auto; }.citation-card > *:nth-child(3) { grid-column: 2 / -1; }
  .citation__summary { grid-template-columns: 44px minmax(0,1fr) auto; }.citation__operations { grid-column: 2 / -1; }.citation__proof { grid-column: 3; grid-row: 1 / span 2; }
  .demo-driver { left: 92px; }
}
@media (max-width: 760px) {
  .command-stack { position: sticky; }
  .command-band { min-height: 66px; grid-template-columns: minmax(0,1fr) auto auto auto; }
  .brand { display: none; }.job-identity { padding: 10px 14px; }.job-identity .mono-label { display: none; }.job-identity strong { font-size: 12px; }.job-identity > span:last-child { font-size: 8px; }
  .condition { display: none; }.theme-toggle { min-width: 52px; padding: 0 8px; }.theme-toggle__label { display: none; }.auth-control { min-width: 70px; padding: 0 10px; }.countdown { min-width: 84px; padding: 8px 10px; gap: 5px; }.countdown__number { font-size: 31px; }.countdown__copy { font-size: 6px; }
  .campaign-strip { min-height: 28px; grid-template-columns: 1fr auto; }.campaign-strip > div:first-child { display: none; }.progress-block { padding: 0 14px; gap: 8px; }.campaign-strip > span { padding: 0 10px; font-size: 7px; }
  .shell { min-height: calc(100vh - 94px); }.product-workspace { display: block; min-height: calc(100vh - 94px); }.workspace-content { padding: 18px 14px 92px; }
  .workspace-nav { position: fixed; inset: auto 0 0; z-index: 90; height: 68px; display: grid !important; grid-template-columns: repeat(4,1fr); gap: 0; padding: 0; overflow: visible; border: 0; border-top: 1px solid var(--line); background: color-mix(in srgb,var(--ink-2) 97%,transparent); backdrop-filter: blur(14px); }
  .workspace-tab { display: grid; grid-template-columns: 1fr; gap: 3px; place-items: center; border: 0; border-radius: 0; padding: 8px 4px; box-shadow: none !important; }.workspace-tab__icon { width: auto; height: auto; background: none !important; color: var(--muted) !important; }.workspace-tab strong { display: block; font-size: 9px; text-transform: uppercase; }.workspace-tab[aria-current="page"] { background: var(--panel); border-top: 2px solid var(--orange); }.workspace-tab[aria-current="page"] .workspace-tab__icon { color: var(--orange) !important; }.workspace-label-full { display: none; }.workspace-label-short { display: inline; }
  .workspace-nav__support { display: contents; }.workspace-nav__support #nav-new-recovery { display: grid; place-items: center; border: 0; border-radius: 0; padding: 8px 4px; color: var(--muted); background: transparent; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }.workspace-nav__support #nav-new-recovery:hover,.workspace-nav__support #nav-new-recovery:focus-visible { color: var(--orange); background: var(--panel); }.workspace-nav__support #nav-exit-sample { display: none; }
  .next-action { grid-template-columns: auto 1fr; padding: 16px; gap: 12px; }.next-action__marker { width: 38px; height: 38px; }.next-action__control { grid-column: 1 / -1; }.next-action__control .button { width: 100%; }.next-action h1 { font-size: 19px; }
  .workspace-heading { display: block; }.workspace-heading h1 { font-size: 36px; }.correction-summary { justify-content: flex-start; margin-top: 14px; }
  .citation-card { grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 16px; }.citation-card__status,.status-chip,.citation-status { grid-column: 2; justify-self: start; }.citation-card > *:nth-child(3) { grid-column: 2; }.citation-card details { grid-column: 1 / -1; }
  .citation__summary { grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 16px; }.citation__operations,.citation__proof { grid-column: 2; justify-self: start; }.citation__proof { grid-row: auto; }.citation__finding { font-size: 15px; }.citation__record { grid-template-columns: 1fr; }.judgment form { grid-template-columns: 1fr; }
  .workspace-heading--packet,.workspace-heading--provenance { display: flex; align-items: flex-start; }.packet-layout { display: block; }.evidence-panel { margin-top: 14px; }.evidence-fixtures { grid-template-columns: 1fr; }
  .agent-flow__heading,.aws-boundary__header { display: block; }.agent-flow__heading > p { margin-top: 10px; }.aws-boundary__flow { grid-template-columns: 1fr; }.aws-boundary__flow i { transform: rotate(90deg); justify-self: center; }.aws-boundary__lower { grid-template-columns: 1fr; }.aws-wakeup ol { grid-template-columns: repeat(2,1fr); }
  .welcome-dialog,.notice-dialog { width: 100vw; max-width: 100vw; max-height: 100vh; height: 100vh; margin: 0; overflow-x: hidden; border: 0; border-radius: 0; }.welcome-dialog__body { display: block; }.welcome-dialog__copy { min-width: 0; padding: 0; }.welcome-dialog__copy h1 { max-width: 100%; font-size: 36px; overflow-wrap: anywhere; }.welcome-dialog__notice { display: none; }.entry-choice { width: 100%; min-width: 0; grid-template-columns: 32px minmax(0,1fr); grid-template-areas: "idx badge" "idx title" "idx copy" "action action"; }.entry-choice > * { min-width: 0; }.entry-choice__action { margin-top: 10px; text-align: center; }.entry-choice > span { overflow-wrap: anywhere; }
  .welcome-dialog__grid { display: block; min-width: 0; }.welcome-dialog__editorial { width: calc(100vw - 36px); min-width: 0; margin: 0 auto; padding: 28px 0 34px; }.welcome-dialog__mode { display: none; }.entry-notice { display: none; }
  .judge-tour { width: 100vw; }.tour-mode::after { display: none; }.judge-tour__header,.recovery-line,.tour-stage { padding-left: 16px; padding-right: 16px; }.judge-lens,.tour-outcome { margin-left: 16px; margin-right: 16px; }
  .demo-driver { left: 10px; right: 10px; bottom: 76px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; } }

/* PRODUCT COMPLETENESS PASS · EVERY FLOW SHARES ONE OPERATIONAL LANGUAGE */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Integrated judge walkthrough: the product remains visible and usable. */
.tour-mode { overflow: auto; }
.tour-mode::after { display: none; }
.tour-mode .workflow-journey,
.tour-mode .next-action { display: none !important; }
.judge-tour {
  position: relative;
  inset: auto;
  z-index: 2;
  width: 100%;
  height: auto;
  margin: 0 0 28px;
  overflow: visible;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 22px 70px rgba(0,0,0,.22);
}
.judge-tour::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: 18px 0 0 18px; background: var(--orange); }
.judge-tour__header { position: relative; top: auto; padding: 18px 22px 16px 26px; background: transparent; }
.judge-tour__header .mono-label { color: var(--orange); }
.tour-exit, .tour-skip { min-height: 42px; padding: 0 14px; }
.tour-exit:hover, .tour-skip:hover { border-color: var(--orange); color: var(--orange); }
.recovery-line { padding: 0 24px 18px 28px; }
.recovery-line li { position: relative; padding: 10px 8px 0; border-top-width: 2px; }
.recovery-line li[data-state="complete"] { border-color: var(--green); color: var(--green); }
.recovery-line li[data-state="active"] { border-color: var(--orange); color: var(--white); }
.recovery-line li[data-state="active"]::before { content: ""; position: absolute; top: -5px; left: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px color-mix(in srgb,var(--orange) 18%,transparent); }
.recovery-line small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8px; }
.judge-guide__grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(300px,.9fr) minmax(290px,.78fr); gap: 16px; padding: 4px 22px 20px 26px; }
.judge-guide__grid .tour-stage__copy { align-self: center; padding: 12px 8px 12px 0; }
.judge-guide__grid .tour-stage__copy h1 { max-width: 14ch; margin: 8px 0 12px; font-size: clamp(31px,3.2vw,48px); }
.judge-guide__grid .tour-stage__copy > p:last-child { max-width: 54ch; margin: 0; }
.judge-guide__grid .judge-lens { margin: 0; border-radius: 12px; }
.judge-lens__title { min-height: 66px; }
.judge-lens__item { padding: 11px 14px; }
.judge-lens__item--agent { background: color-mix(in srgb,var(--blue) 7%,transparent); }
.judge-lens__item--human { background: color-mix(in srgb,var(--orange) 8%,transparent); }
.judge-guide__grid .tour-stage__control { display: flex; flex-direction: column; margin: 0; padding: 17px; }
.judge-guide__grid .tour-stage__control > strong { font-size: 17px; }
.judge-guide__grid .tour-stage__control .button { margin-top: auto; min-height: 46px; }
.judge-guide__grid .tour-stage__control .tour-secondary { margin-top: 8px; border-color: color-mix(in srgb,var(--accent-ink) 35%,transparent); color: var(--accent-ink); background: transparent; }
.tour-stage__visual[hidden] { display: none !important; }
.tour-outcome { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; margin: 0; padding: 16px 22px 18px 26px; border-top: 1px solid var(--line); }
.tour-outcome p { margin: 0; }
.tour-outcome dl { min-width: 390px; margin: 0; }
.tour-metric dd, .tour-metric dt { margin: 0; }
.tour-metric dd { color: var(--white); font-size: 16px; font-weight: 850; }
.tour-metric dt { margin-top: 2px; color: var(--muted); font-family: var(--mono); font-size: 7px; text-transform: uppercase; }
.is-guide-target { position: relative; box-shadow: 0 0 0 2px var(--orange), 0 0 0 8px color-mix(in srgb,var(--orange) 13%,transparent) !important; }

/* One recovery path, always visible in contractor mode. */
.workflow-journey { margin: 0 0 22px; padding: 16px 20px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.workflow-journey > header { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; }
.workflow-journey > header strong { color: var(--paper); font-size: 12px; }
.workflow-journey ol { position: relative; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.workflow-journey ol::before { content: ""; position: absolute; left: 5%; right: 5%; top: 16px; height: 2px; background: var(--line); }
.workflow-journey li { position: relative; z-index: 1; display: grid; grid-template-columns: 34px 1fr; column-gap: 9px; color: var(--muted-2); }
.workflow-journey li > span { grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid var(--line); border-radius: 50%; background: var(--panel); font-family: var(--mono); font-size: 8px; font-weight: 900; }
.workflow-journey li strong { align-self: end; font-size: 11px; }
.workflow-journey li small { color: var(--muted-2); font-size: 9px; }
.workflow-journey li.is-complete { color: var(--green); }
.workflow-journey li.is-complete > span { border-color: var(--green); background: var(--green-deep); }
.workflow-journey li.is-current { color: var(--white); }
.workflow-journey li.is-current > span { border-color: var(--orange); background: var(--orange); color: var(--accent-ink); box-shadow: 0 0 0 5px color-mix(in srgb,var(--orange) 13%,transparent); }

/* Contractor's next action has hierarchy before decoration. */
.next-action { margin-bottom: 30px; padding: 22px 24px; }
.next-action__body { max-width: 820px; }
.next-action__body > p:last-child { color: var(--paper); font-size: 14px; line-height: 1.45; }
.next-action__control .button { min-height: 48px; }

/* Recovery setup: four deliberate, scannable steps. */
.notice-dialog { width: min(1040px,calc(100vw - 32px)); max-height: min(900px,calc(100dvh - 32px)); border-radius: 18px; }
.notice-dialog form { min-height: min(720px,calc(100dvh - 34px)); display: flex; flex-direction: column; }
.notice-dialog__header { position: sticky; top: 0; z-index: 4; min-height: 92px; padding: 20px 28px; background: color-mix(in srgb,var(--ink-2) 96%,transparent); backdrop-filter: blur(14px); }
.notice-dialog__header h2 { margin: 6px 0 0; font-size: 25px; letter-spacing: -.035em; }
.notice-dialog__header-actions { display: flex; align-items: center; gap: 10px; }
.notice-dialog__header-actions .theme-toggle { min-height: 44px; background: var(--panel); }
.notice-dialog__header-actions .theme-toggle:hover { background: var(--panel-2); }
.dialog-close { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; }
.dialog-close:hover { border-color: var(--orange); color: var(--orange); }
.setup-progress { position: sticky; top: 92px; z-index: 3; display: grid; grid-template-columns: repeat(4,1fr); gap: 0; padding: 0 28px; background: var(--ink-2); border-bottom: 1px solid var(--line); }
.setup-progress > * { position: relative; height: auto; min-height: 58px; display: flex; align-items: center; padding: 14px 12px 12px 26px; background: transparent; color: var(--muted-2); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .05em; }
.setup-progress > *::before { content: ""; position: absolute; left: 7px; width: 11px; height: 11px; border: 2px solid var(--line); border-radius: 50%; background: var(--ink-2); }
.setup-progress > *.setup-progress__step--active { color: var(--white); box-shadow: inset 0 -3px var(--orange); }
.setup-progress > *.setup-progress__step--active::before { border-color: var(--orange); background: var(--orange); }
.setup-progress > *.setup-progress__step--complete { color: var(--green); }
.setup-progress > *.setup-progress__step--complete::before { border-color: var(--green); background: var(--green); }
.setup-pane { flex: 1; padding: 26px 28px 110px; }
.notice-dialog__intro { max-width: 760px; margin: 0 0 22px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.notice-import { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.notice-import__button { display: block !important; margin: 0 !important; }
.notice-import__button > span { display: grid; place-items: center; min-height: 44px; padding: 0 16px; border-radius: 8px; background: var(--orange); color: var(--accent-ink); font-family: var(--sans); font-size: 11px; font-weight: 850; letter-spacing: 0; text-transform: none; cursor: pointer; }
.notice-import__button input { position: absolute; width: 1px !important; height: 1px; min-height: 1px !important; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }
.notice-import > div { display: grid; gap: 3px; }
.notice-import > div strong { overflow: hidden; color: var(--paper); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.notice-import > div span { color: var(--muted); font-size: 9px; }
.notice-import__divider { display: flex; align-items: center; gap: 10px; margin: 14px 0; color: var(--muted-2); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.notice-import__divider::before,.notice-import__divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.field { display: grid; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.field-error { color: var(--red); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0; line-height: 1.4; text-transform: none; }
.notice-dialog textarea, .notice-dialog input, .notice-dialog select { min-height: 48px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); color: var(--white); transition: border-color .15s ease,box-shadow .15s ease,background .15s ease; }
.notice-dialog textarea:hover, .notice-dialog input:hover, .notice-dialog select:hover { border-color: color-mix(in srgb,var(--muted) 70%,var(--line)); }
.notice-dialog textarea:focus, .notice-dialog input:focus, .notice-dialog select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb,var(--blue) 18%,transparent); }
.field--notice textarea { min-height: 250px; font-family: var(--mono); font-size: 11px; line-height: 1.55; }
.run-settings { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
.setup-guidance { display: grid; align-content: center; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 9px; background: var(--panel); }
.setup-guidance strong { font-size: 12px; line-height: 1.4; }
.setup-guidance span { color: var(--muted); font-size: 10px; }
.contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.contact-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.contact-card--primary { grid-column: 1 / -1; grid-template-columns: repeat(2,minmax(0,1fr)); }
.contact-card--primary > span { grid-column: 1 / -1; color: var(--orange); }
.trade-contacts { grid-column: 1 / -1; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.trade-contacts > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; color: var(--paper); font-size: 13px; font-weight: 800; cursor: pointer; }
.trade-contacts > summary span { padding: 5px 8px; border-radius: 999px; background: var(--line-soft); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.trade-contacts > p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.trade-contact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; padding: 0 12px 12px; }
.launch-review { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.launch-review > div { min-height: 170px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.launch-review > div > span { color: var(--orange); font-family: var(--mono); font-size: 9px; font-weight: 900; letter-spacing: .1em; }
.launch-review > div > strong { margin-top: 18px; font-size: 18px; line-height: 1.25; }
.launch-review > div > small { margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.correction-review { display: grid; gap: 14px; }
.correction-review__card { display: grid; grid-template-columns: 48px minmax(0,1fr); column-gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.correction-review__id { grid-row: 1 / span 4; display: grid; place-items: center; align-self: start; width: 44px; height: 44px; border-radius: 10px; background: var(--ink); color: var(--orange); font-family: var(--mono); font-size: 10px; font-weight: 900; }
.correction-review__code { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.correction-review__authority { margin: 7px 0 0; color: var(--white); font-size: 16px; font-weight: 650; line-height: 1.42; }
.correction-review__needs-you { width: fit-content; margin-top: 10px; padding: 7px 9px; border: 1px solid var(--orange); border-radius: 999px; color: var(--orange); font-size: 10px; font-weight: 750; }
.correction-review__fields { grid-column: 2; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.correction-review__fields label { display: grid; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.correction-review__fields label:last-child { grid-column: 1 / -1; }
.correction-review__fields textarea { min-height: 96px; }
.correction-review__route { display: grid; align-content: start; gap: 5px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); }
.correction-review__route > span { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.correction-review__route > strong { color: var(--paper); font-size: 12px; }
.correction-review__route > small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.correction-review__recipient { display: grid; align-content: center; gap: 5px; min-height: 48px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--ink); }
.correction-review__recipient > span { color: var(--muted); font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .08em; }
.correction-review__recipient > strong { color: var(--paper); font-size: 12px; }
.outreach-consent { grid-template-columns: 22px minmax(0,1fr) !important; align-items: start; gap: 11px !important; margin: 18px 0 0 !important; padding: 15px 16px; border: 1px solid var(--orange); border-radius: 10px; background: color-mix(in srgb,var(--orange) 8%,var(--panel)); color: var(--muted) !important; font-family: var(--sans) !important; font-size: 11px !important; letter-spacing: 0 !important; line-height: 1.45; text-transform: none !important; }
.outreach-consent input { width: 20px !important; min-height: 20px !important; margin: 1px 0 0; accent-color: var(--orange); }
.outreach-consent strong { display: block; margin-bottom: 2px; color: var(--paper); }
.form-error { margin: 0 28px 14px; padding: 12px 14px; border: 1px solid var(--red); border-radius: 9px; background: color-mix(in srgb,var(--red) 10%,var(--panel)); color: var(--red); font-weight: 700; }
.notice-dialog__footer { position: sticky; bottom: 0; z-index: 4; min-height: 78px; margin-top: auto; padding: 14px 28px; background: color-mix(in srgb,var(--ink-2) 96%,transparent); backdrop-filter: blur(14px); }
.notice-dialog__footer > span { max-width: 270px; color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.notice-dialog__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.notice-dialog__actions .button { min-height: 48px; }
.notice-dialog__actions .button small { display: block; margin-top: 2px; font-family: var(--mono); font-size: 7px; letter-spacing: .06em; }

/* Secondary product states that previously fell back to browser defaults. */
.away-briefing__intro { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.away-briefing__intro strong { color: var(--paper); font-size: 13px; }
.away-briefing__list { display: grid; gap: 8px; padding: 0; list-style: none; }
.away-briefing__item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.away-briefing__item strong { font-size: 12px; }
.away-briefing__item p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.recovery-clock { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 20px; }
.recovery-clock #clock-track { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; }
.clock-stop { padding: 7px; border-top: 3px solid var(--line); color: var(--muted-2); font-family: var(--mono); font-size: 8px; font-weight: 800; }
.clock-stop--passed { border-color: var(--green); color: var(--green); }
.clock-stop--current { border-color: var(--orange); color: var(--orange); }
.clock-stop--due { text-align: right; }
.recovery-clock > strong { font-size: 14px; }
.recovery-clock > p { grid-column: 1; margin: 0; color: var(--muted); font-size: 11px; }
.recovery-clock > button { grid-column: 2; grid-row: 2 / span 2; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel-2); color: var(--paper); font-size: 11px; font-weight: 800; }
.recovery-clock > button:disabled { opacity: .5; }
.metrics-list { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.metric { padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: var(--panel); }
.metric dd { margin: 0; font-size: 22px; font-weight: 850; }
.metric dt { color: var(--muted); font-size: 9px; }
.summary-ready { color: var(--green) !important; }
.summary-action { color: var(--orange) !important; }
.evidence-result { display: grid; gap: 5px; }
.evidence-result > strong { font-size: 13px; text-transform: capitalize; }
.evidence-result > span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.evidence-result--accepted { border-color: var(--green); }
.evidence-result--rejected { border-color: var(--red); }
.evidence-result--manual_review { border-color: var(--orange); }
.packet-preview__header, .packet-preview__summary { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .06em; }
.packet-preview > p { margin: 20px 0; font-size: 13px; line-height: 1.55; }
.packet-preview__summary { padding-top: 12px; border-top: 1px solid #d2cdc1; }

/* Inspectable execution details. */
.provenance-steps { counter-reset: receipt; }
.provenance-step { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.provenance-step summary { display: grid; grid-template-columns: 34px minmax(0,1fr) auto auto; gap: 12px; align-items: center; padding: 14px; }
.provenance-step__number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: var(--line-soft); color: var(--orange); font-family: var(--mono); font-size: 8px; font-weight: 900; }
.provenance-step__title { font-size: 12px; }
.provenance-step__role, .provenance-step__status { font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.provenance-step__role { color: var(--muted); }
.provenance-step__status--completed { color: var(--green); }
.provenance-step__status--paused { color: var(--orange); }
.provenance-step__status--pending { color: var(--muted-2); }
.provenance-step__artifact { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; margin: 0; padding: 1px; border-top: 1px solid var(--line); background: var(--line); }
.provenance-step__artifact > div { padding: 12px 14px; background: var(--ink-2); }
.provenance-step__artifact dt { color: var(--muted); font-family: var(--mono); font-size: 8px; text-transform: uppercase; }
.provenance-step__artifact dd { margin: 4px 0 0; color: var(--paper); font-size: 10px; line-height: 1.45; }
.agent-node { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 12px; align-items: center; }
.agent-node__sequence { font-family: var(--mono); font-size: 9px; color: var(--muted); }
.agent-node__body { display: grid; grid-template-columns: minmax(110px,.55fr) minmax(140px,.75fr) minmax(0,1fr); gap: 12px; align-items: center; }
.agent-node__id { color: var(--blue); font-size: 9px; }
.agent-node__body strong { font-size: 11px; }
.agent-node__body span { color: var(--muted); font-size: 10px; }
.agent-node__status { color: var(--green); font-family: var(--mono); font-size: 8px; font-weight: 900; }
.agent-node--interrupted .agent-node__status { color: var(--orange); }
.event { display: grid; grid-template-columns: 70px 120px minmax(0,1fr); gap: 12px; align-items: start; }
.event__time, .event__tag, .event__actor { font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .05em; }
.event__time { color: var(--muted); }
.event__tag { color: var(--orange); }
.event__body strong { font-size: 11px; }
.event__body p { margin: 3px 0; color: var(--muted); font-size: 10px; }
.event__actor { color: var(--muted-2); }

@media (max-width: 1180px) {
  .judge-guide__grid { grid-template-columns: minmax(0,1fr) minmax(280px,.8fr); }
  .judge-guide__grid .tour-stage__copy { grid-column: 1 / -1; }
  .tour-outcome { display: block; }
  .tour-outcome dl { min-width: 0; margin-top: 12px; }
}

@media (max-width: 760px) {
  .judge-tour { margin-bottom: 18px; border-radius: 14px; }
  .judge-tour__header { align-items: flex-start; padding: 14px 14px 12px 18px; }
  .tour-header-actions { flex-direction: column; align-items: stretch; }
  .tour-exit, .tour-skip { min-height: 38px; }
  .recovery-line { padding: 0 14px 14px 18px; }
  .recovery-line li { padding-left: 2px; padding-right: 2px; }
  .recovery-line small { display: none; }
  .judge-guide__grid { display: block; padding: 0 14px 16px 18px; }
  .judge-guide__grid .tour-stage__copy { padding: 12px 0 18px; }
  .judge-guide__grid .tour-stage__copy h1 { font-size: 31px; }
  .judge-guide__grid .judge-lens { margin-bottom: 12px; }
  .tour-outcome { padding: 14px 14px 16px 18px; }
  .tour-outcome dl { grid-template-columns: repeat(2,1fr); }
  .workflow-journey { padding: 14px; overflow: hidden; }
  .workflow-journey > header { display: block; }
  .workflow-journey > header strong { display: block; margin-top: 4px; }
  .workflow-journey ol { grid-template-columns: repeat(5,44px); justify-content: space-between; gap: 0; }
  .workflow-journey li { display: block; text-align: center; }
  .workflow-journey li > span { margin: 0 auto; }
  .workflow-journey li strong { display: block; margin-top: 6px; font-size: 8px; }
  .workflow-journey li small { display: none; }
  .notice-dialog form { min-height: 100dvh; }
  .judgment form.judgment__evidence-review { grid-template-columns: 1fr; }
  .notice-dialog__header { min-height: 82px; padding: 16px 18px; }
  .notice-dialog__header h2 { font-size: 21px; }
  .notice-dialog__header-actions .theme-toggle { min-width: 44px; width: 44px; padding: 0; }
  .notice-dialog__header-actions .theme-toggle__label { display: none; }
  .setup-progress { top: 82px; padding: 0 14px; }
  .setup-progress > * { min-height: 48px; justify-content: center; padding: 12px 3px; font-size: 0; }
  .setup-progress > *::before { position: static; width: 13px; height: 13px; }
  .setup-progress > *::after { content: attr(data-setup-progress); margin-left: 6px; font-size: 9px; }
  .setup-pane { padding: 22px 18px 110px; }
  .field--notice textarea { min-height: 260px; }
  .notice-import { grid-template-columns: 1fr; }
  .run-settings, .contact-grid, .trade-contact-grid, .launch-review, .correction-review__fields { grid-template-columns: 1fr; }
  .contact-card--primary { grid-column: auto; grid-template-columns: 1fr; }
  .contact-card--primary > span { grid-column: auto; }
  .correction-review__card { grid-template-columns: 40px minmax(0,1fr); padding: 15px; }
  .correction-review__id { width: 38px; height: 38px; }
  .correction-review__fields { grid-column: 1 / -1; }
  .correction-review__fields label:last-child { grid-column: auto; }
  .notice-dialog__footer { min-height: 86px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .notice-dialog__footer > span { display: none; }
  .notice-dialog__actions { width: 100%; }
  .notice-dialog__actions .button { flex: 1 1 auto; }
  .recovery-clock { grid-template-columns: 1fr; }
  .recovery-clock > button { grid-column: 1; grid-row: auto; }
  .provenance-step summary { grid-template-columns: 30px minmax(0,1fr) auto; }
  .provenance-step__role { grid-column: 2; }
  .provenance-step__artifact { grid-template-columns: 1fr; }
  .agent-node { grid-template-columns: 28px minmax(0,1fr); }
  .agent-node__body { grid-template-columns: 1fr; gap: 3px; }
  .agent-node__status { grid-column: 2; }
  .event { grid-template-columns: 56px minmax(0,1fr); }
  .event__body { grid-column: 2; }
}
