:root {
  color-scheme: light;
  --surface-canvas: #fffaf3;
  --surface-panel: #fffefb;
  --surface-subtle: #f5faf9;
  --surface-evidence: #e3f8fb;
  --surface-human: #fff0d8;
  --text-primary: #06263a;
  --text-secondary: #26485c;
  --text-muted: #536e7e;
  --border-subtle: #c8dde2;
  --border-strong: #9fc2cc;
  --evidence: #007f98;
  --evidence-hover: #00647a;
  --evidence-soft: #def7fa;
  --success: #00964f;
  --success-soft: #dff7e8;
  --human: #f58a00;
  --human-strong: #984100;
  --human-soft: #ffefd4;
  --human-locked-surface: #fff5e3;
  --human-locked-border: #d7a454;
  --status-approved-surface: #fff0d2;
  --status-approved-border: #d98a18;
  --status-applied-surface: #e2f7ea;
  --status-applied-border: #45aa71;
  --status-rejected-surface: #feeeeb;
  --status-rejected-border: #cf5549;
  --status-deferred-surface: #f8f1df;
  --status-deferred-border: #b88b3c;
  --paper: var(--surface-canvas);
  --paper-strong: var(--surface-panel);
  --paper-warm: var(--surface-evidence);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --muted: var(--text-muted);
  --muted-light: #8da0ad;
  --line: var(--border-subtle);
  --line-strong: var(--border-strong);
  --blueprint: var(--evidence);
  --blueprint-hover: var(--evidence-hover);
  --blueprint-soft: var(--evidence-soft);
  --moss: var(--success);
  --moss-soft: var(--success-soft);
  --amber: var(--human);
  --amber-strong: var(--human-strong);
  --amber-soft: var(--human-soft);
  --oxide: #db4b3f;
  --oxide-hover: #b93a30;
  --oxide-soft: #feeeeb;
  --violet-muted: #6a6174;
  --violet-soft: #ebe6ee;
  --focus: #007c98;
  --shadow-soft: 0 1px 2px rgba(16, 45, 62, .07), 0 9px 22px rgba(16, 45, 62, .08);
  --shadow-card: 0 2px 5px rgba(16, 45, 62, .08), 0 16px 34px rgba(16, 45, 62, .1);
  --shadow-raised: 0 16px 36px rgba(18, 50, 68, .15);
  --shadow-drawer: -16px 0 42px rgba(18, 30, 36, .18);
  --radius-1: 6px;
  --radius-2: 8px;
  --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --duration-fast: 120ms;
  --duration-base: 180ms;
  --ease-standard: cubic-bezier(.2, 0, 0, 1);
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.semantic-icon {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

html, body { height: 100%; }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

button:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 5px #005f73 !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  left: 12px;
  top: -64px;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-1);
  transition: top var(--duration-fast) var(--ease-standard);
}

.skip-link:focus { top: 12px; }

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 70px minmax(0, 1fr) 32px;
  overflow: hidden;
  background:
    linear-gradient(rgba(26, 48, 57, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 48, 57, .025) 1px, transparent 1px),
    var(--paper);
  background-size: 24px 24px;
}

.topbar {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 280px minmax(260px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(251, 250, 246, .96);
  backdrop-filter: blur(14px);
}

.brand-lockup,
.project-identity,
.sync-proof,
.topbar-actions,
.brand-copy,
.project-identity > span:last-child,
.sync-proof > span:last-child {
  display: flex;
  align-items: center;
}

.brand-lockup { gap: 10px; min-width: 0; }
.brand-copy,
.project-identity > span:last-child,
.sync-proof > span:last-child { flex-direction: column; align-items: flex-start; min-width: 0; }

.brand-lockup h1 { margin: 0; font-size: 17px; line-height: 1.05; letter-spacing: -.01em; }
.brand-lockup small,
.project-identity small,
.sync-proof small { color: var(--muted); font-size: 11px; line-height: 1.3; }

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--paper-strong);
  background: var(--ink);
  border-radius: var(--radius-1);
}

.brand-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.project-identity {
  justify-self: start;
  gap: 10px;
  min-width: 0;
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.project-identity strong { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-code { color: var(--blueprint); font: 700 11px/1 var(--font-mono); }

.topbar-actions { justify-content: flex-end; gap: 8px; }
.sync-proof { gap: 8px; margin-right: 6px; white-space: nowrap; }
.sync-proof strong { font-size: 11px; font-weight: 650; }
.sync-dot { width: 8px; height: 8px; border: 2px solid var(--paper-strong); border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 1px var(--moss); }

.button,
.icon-button,
.filter-tabs button,
.requirement-row,
.evidence-tab,
.mobile-workspace-nav button,
.statusbar button,
.text-action {
  border: 0;
  cursor: pointer;
  transition: background var(--duration-fast) var(--ease-standard), color var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard), opacity var(--duration-fast) var(--ease-standard);
}

.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
}

.button svg,
.icon-label svg,
.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: 1; }
.button[hidden] { display: none !important; }
.button-quiet { border-color: var(--line); background: transparent; color: var(--ink-soft); }
.button-quiet:hover { background: var(--paper-warm); }
.button-ink { background: var(--ink); color: #fff; }
.button-ink:hover { background: #25333b; }
.button-blue { background: var(--blueprint); color: #fff; }
.button-blue:hover { background: var(--blueprint-hover); }
.button-blue:disabled { border-color: #a9c4cb; background: #e9f1f2; color: #526d78; box-shadow: none !important; }
.button-accept { background: var(--amber); color: var(--ink); }
.button-accept:hover:not(:disabled) { background: #d97300; }
.button-accept:disabled {
  opacity: 1;
  border-color: var(--human-locked-border);
  background: var(--human-locked-surface);
  color: #713700;
  box-shadow: none;
  font-weight: 750;
}
.button-secondary { border-color: var(--line-strong); background: var(--paper-strong); color: var(--ink); font-weight: 750; }
.button-secondary:hover { border-color: var(--ink-soft); background: #fff; }
.button-secondary:disabled { border-color: #bdcdd2; background: #f1f5f5; color: #405b6a; font-weight: 750; }
.button-oxide { background: var(--oxide-hover); color: #fff; }
.button-oxide:hover { background: #942f27; }
.button-oxide:disabled,
.button-ink:disabled { border-color: #bdcdd2; background: #e9eeee; color: #526d78; box-shadow: none; }
.button-disabled { background: #d8d9d4; color: #858b8d; }
.full-width { width: 100%; }

.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: rgba(251, 250, 246, .9);
}

.icon-button:hover { background: var(--paper-warm); border-color: var(--line-strong); }
.mobile-workspace-nav { display: none; }

.workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: 286px minmax(500px, 1fr) 368px;
  overflow: hidden;
}

.requirements-rail,
.evidence-workspace,
.decision-desk { min-height: 0; }

.requirements-rail {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line-strong);
  background: rgba(246, 244, 237, .94);
}

.rail-summary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding: 18px 16px 8px;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font: 700 10px/1.25 var(--font-sans);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.rail-summary h1 { margin: 0; font-size: 29px; line-height: 1; letter-spacing: -.03em; }
.rail-summary h1 small { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 650; letter-spacing: 0; }

.handoff-state,
.status-badge,
.lane-badge,
.proof-tag,
.human-only,
.file-kind {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.handoff-state { padding: 6px 8px; color: var(--oxide); background: var(--oxide-soft); }

.readiness-meter { height: 4px; margin: 0 16px 8px; background: #d9dad4; overflow: hidden; }
.readiness-meter span { display: block; width: 64.285%; height: 100%; background: var(--moss); transition: width var(--duration-base) var(--ease-standard); }

.rail-context {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px 14px;
  color: var(--muted);
  font-size: 10px;
}
.rail-context strong { color: var(--ink-soft); }

.filter-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin: 0 12px 10px;
  padding: 3px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .42);
}

.filter-tabs button {
  min-height: 31px;
  padding: 4px;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}
.filter-tabs button span { font-family: var(--font-mono); font-size: 9px; }
.filter-tabs button:hover { color: var(--ink); background: var(--paper-warm); }
.filter-tabs button.is-active { background: var(--ink); color: #fff; }

.requirement-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  padding: 0 8px 12px;
  scrollbar-width: thin;
}

.requirement-group-label {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 9px 8px 5px;
  color: var(--muted);
  background: rgba(246, 244, 237, .96);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.requirement-row {
  width: 100%;
  min-height: 58px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-1);
  background: transparent;
  text-align: left;
}
.requirement-row:hover { background: rgba(255, 255, 255, .6); border-color: var(--line); }
.requirement-row.is-selected { background: var(--paper-strong); border-color: var(--ink); box-shadow: 3px 0 0 var(--blueprint) inset; }

.status-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 800 11px/1 var(--font-mono);
}
.status-mark.ready { color: #08743f; background: var(--moss-soft); }
.status-mark.unmatched_evidence { color: var(--blueprint); background: var(--blueprint-soft); }
.status-mark.stale, .status-mark.missing { color: #a53b32; background: var(--oxide-soft); }
.status-mark.scope_review { color: var(--violet-muted); background: var(--violet-soft); }
.status-mark.owner_review { color: var(--amber-strong); background: var(--amber-soft); }

.requirement-copy { min-width: 0; }
.requirement-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.requirement-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; color: var(--muted); font-size: 9px; }
.requirement-owner { color: var(--muted); font: 700 9px/1 var(--font-mono); }
.filter-empty { margin: 22px 18px; color: var(--muted); font-size: 12px; }

.evidence-workspace {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 18px 20px 22px;
  background: var(--paper);
}
.review-guide { display: none; }

.evidence-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 12px;
}
.evidence-heading-row h2 { margin: 3px 0 0; font-size: 24px; line-height: 1.1; letter-spacing: -.025em; }
.item-trail { display: flex; gap: 7px; color: var(--muted); font: 600 10px/1 var(--font-mono); }

.status-badge { padding: 7px 9px; border: 1px solid currentColor; }
.status-ready { color: #08743f; background: var(--moss-soft); }
.status-unmatched_evidence { color: #075e72; background: var(--blueprint-soft); }
.status-stale, .status-missing { color: #a53b32; background: var(--oxide-soft); }
.status-scope_review { color: var(--violet-muted); background: var(--violet-soft); }
.status-owner_review { color: var(--amber-strong); background: var(--amber-soft); }

.evidence-table {
  min-height: 430px;
  display: grid;
  grid-template-rows: 50px minmax(310px, 1fr) 52px;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: 0 2px 0 rgba(22, 33, 41, .04);
}

.evidence-toolbar,
.evidence-caption,
.sequence-heading,
.section-heading,
.recommendation-heading,
.drawer-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.evidence-toolbar { padding: 7px 9px 7px 13px; border-bottom: 1px solid var(--line); }
.evidence-toolbar > div:first-child { min-width: 0; }
.evidence-toolbar strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.file-kind { margin-bottom: 4px; color: var(--muted); font-size: 8px; letter-spacing: .06em; }
.toolbar-actions { display: flex; align-items: center; gap: 7px; }
.proof-tag { padding: 6px 8px; color: #08743f; background: var(--moss-soft); }

.evidence-viewport {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(24, 53, 64, .05) 25%, transparent 25%) 0 0 / 16px 16px,
    linear-gradient(315deg, rgba(24, 53, 64, .05) 25%, transparent 25%) 0 0 / 16px 16px,
    #dfe2dd;
}
.evidence-viewport.is-expanded { position: fixed; z-index: 70; inset: 20px; min-height: 0; border: 1px solid var(--line-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.evidence-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.synthetic-label { position: absolute; left: 10px; bottom: 10px; padding: 5px 7px; color: #fff; background: rgba(16, 28, 34, .82); border-radius: 2px; font: 700 8px/1 var(--font-mono); text-transform: uppercase; }

.evidence-fallback { display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--muted); }
.evidence-fallback span { color: var(--ink); font-weight: 750; }

.evidence-caption {
  display: grid;
  grid-template-columns: 1.4fr 1fr .7fr .7fr;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
}
.evidence-caption span { min-width: 0; }
.evidence-caption small { display: block; margin-bottom: 2px; color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .05em; }
.evidence-caption strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.mono { font-family: var(--font-mono); }

.evidence-sequence { margin-top: 12px; }
.sequence-heading { margin-bottom: 6px; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sequence-heading small { font-family: var(--font-mono); font-size: 9px; }
.evidence-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.evidence-tab {
  min-width: 0;
  min-height: 52px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: rgba(251, 250, 246, .68);
  text-align: left;
}
.evidence-tab:hover { border-color: var(--line-strong); background: var(--paper-strong); }
.evidence-tab.is-active { border-color: var(--blueprint); background: var(--blueprint-soft); box-shadow: 0 -2px 0 var(--blueprint) inset; }
.evidence-tab-icon { width: 30px; height: 34px; display: grid; place-items: center; color: var(--blueprint); border: 1px solid var(--line); background: var(--paper-strong); font: 800 9px/1 var(--font-mono); }
.evidence-tab strong, .evidence-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-tab strong { font-size: 9px; }
.evidence-tab small { margin-top: 3px; color: var(--muted); font-size: 8px; }

.criterion-strip {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  background: rgba(251, 250, 246, .6);
}
.criterion-number { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 800 12px/1 var(--font-mono); }
.criterion-strip p:last-child { margin: 0; color: var(--ink-soft); font-size: 11px; }
.criterion-meta { display: flex; gap: 18px; margin: 0; }
.criterion-meta div { min-width: 70px; }
.criterion-meta dt { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.criterion-meta dd { margin: 3px 0 0; font: 700 10px/1.2 var(--font-mono); }

.decision-desk {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 16px 16px 14px;
  border-left: 1px solid var(--line-strong);
  background: var(--paper-strong);
}
.decision-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lane-badge { padding: 7px 9px; }
.lane-original_scope { color: #075e72; background: var(--blueprint-soft); }
.lane-owner_acceptance { color: var(--amber-strong); background: var(--amber-soft); }
.lane-possible_change { color: var(--violet-muted); background: var(--violet-soft); }

.decision-title { padding: 15px 1px 13px; }
.decision-title h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.1; letter-spacing: -.025em; }
.decision-title > p:last-child { margin: 0; color: var(--ink-soft); font-size: 11px; }

.agent-recommendation {
  padding: 13px;
  border: 1px solid #aac2c9;
  border-left: 3px solid var(--blueprint);
  background: #eff5f5;
}
.recommendation-heading { justify-content: flex-start; }
.recommendation-heading > div { min-width: 0; }
.recommendation-heading > div > span { font-size: 10px; font-weight: 750; }
.agent-glyph { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; color: #fff; background: var(--blueprint); border-radius: 50%; font: 800 10px/1 var(--font-mono); }
.agent-recommendation > p { margin: 11px 0; color: var(--ink-soft); font-size: 11px; }
.rule-checks { display: grid; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; }
.rule-checks li { display: flex; gap: 7px; color: var(--ink-soft); font-size: 10px; }
.rule-checks li span { width: 15px; height: 15px; display: grid; place-items: center; flex: 0 0 auto; color: var(--moss); background: var(--moss-soft); border-radius: 50%; font-size: 9px; font-weight: 900; }
.rule-checks li.is-unknown span { color: var(--muted); background: #e2e5e2; }

.human-decision {
  margin-top: 14px;
  padding: 14px 1px 13px;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
}
.section-heading { align-items: flex-start; }
.section-heading strong { display: block; font-size: 12px; }
.human-only { padding: 5px 7px; color: var(--amber-strong); border: 1px solid #d4b06a; background: var(--amber-soft); }
.decision-helper { margin: 9px 0 12px; color: var(--muted); font-size: 10px; }
.decision-actions { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 6px; }
.text-action { margin-top: 9px; padding: 5px 0; background: transparent; color: var(--blueprint); font-size: 10px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.assignment-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0 0; }
.assignment-strip div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.assignment-strip dt { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.assignment-strip dd { display: flex; align-items: center; gap: 7px; margin: 5px 0 0; font-size: 10px; font-weight: 700; }
.owner-avatar { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; background: var(--ink-soft); border-radius: 50%; font: 800 8px/1 var(--font-mono); }

.tool-registration { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 12px 0 0; color: var(--muted); }
.tool-registration strong, .tool-registration small { display: block; }
.tool-registration strong { color: var(--ink-soft); font-size: 9px; }
.tool-registration small { font-size: 8px; }
.registration-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); }
.tool-registration[data-state="resolved"] .registration-dot { background: var(--moss); }
.tool-registration[data-state="partial"] .registration-dot { background: var(--amber); box-shadow: 0 0 0 2px var(--amber-soft); }
.tool-registration[data-state="rejected"] .registration-dot { background: var(--oxide); }

.statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-top: 1px solid var(--line-strong);
  background: var(--ink);
  color: #dfe5e5;
  font-size: 9px;
}
.statusbar > span { display: flex; align-items: center; gap: 7px; }
.statusbar-mark { width: 6px; height: 6px; border-radius: 50%; background: var(--moss); box-shadow: 0 0 0 2px rgba(123, 177, 151, .18); }
.statusbar button { background: transparent; color: #fff; font-size: 9px; font-weight: 750; }
.statusbar button:hover { color: #b7d8e2; }

.drawer-backdrop,
.dialog-backdrop {
  position: fixed;
  z-index: 40;
  inset: 0;
  background: rgba(14, 24, 29, .34);
  backdrop-filter: blur(2px);
}

.drawer {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 94vw);
  overflow-y: auto;
  padding: 22px;
  transform: translateX(104%);
  border-left: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: var(--shadow-drawer);
  transition: transform var(--duration-base) var(--ease-standard);
}
.drawer.is-open { transform: translateX(0); }
.drawer-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 15px; border-bottom: 2px solid var(--ink); }
.drawer-header h2 { margin: 2px 0 0; font-size: 25px; letter-spacing: -.025em; }
.drawer-intro { margin: 14px 0 22px; color: var(--ink-soft); font-size: 11px; }

.package-status { display: grid; grid-template-columns: 76px 76px minmax(0, 1fr); align-items: center; gap: 10px; margin-top: 16px; }
.package-status > div { padding: 10px; border: 1px solid var(--line); }
.package-status span { display: block; font-size: 23px; font-weight: 800; line-height: 1; }
.package-status small { color: var(--muted); font-size: 9px; }
.package-status > strong { justify-self: end; padding: 7px 9px; color: var(--oxide); background: var(--oxide-soft); font-size: 10px; }

.drawer section { margin-top: 20px; }
.drawer-section-heading { padding-bottom: 7px; border-bottom: 1px solid var(--line-strong); }
.drawer-section-heading h3 { margin: 0; font-size: 12px; }
.drawer-section-heading span { font: 700 10px/1 var(--font-mono); }

.exception-package,
.accepted-package { display: grid; }
.package-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.package-row > span:first-child { width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font: 800 9px/1 var(--font-mono); }
.package-row strong, .package-row small { display: block; }
.package-row strong { font-size: 10px; }
.package-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.package-row > em { color: var(--muted); font-size: 9px; font-style: normal; text-align: right; }

.drawer-footer { position: sticky; bottom: -22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 22px -22px -22px; padding: 14px 22px; border-top: 1px solid var(--line-strong); background: var(--paper-strong); }
.drawer-footer p { margin: 0; }
.drawer-footer p strong, .drawer-footer p span { display: block; }
.drawer-footer p strong { color: var(--oxide); font-size: 10px; }
.drawer-footer p span { color: var(--muted); font-size: 9px; }

.audit-empty { display: grid; justify-items: center; padding: 50px 20px; color: var(--muted); text-align: center; }
.audit-empty[hidden] { display: none !important; }
.audit-empty > span { width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 10px; border: 1px solid var(--line-strong); border-radius: 50%; font: 500 20px/1 var(--font-mono); }
.audit-empty strong { color: var(--ink); font-size: 12px; }
.audit-empty p { margin: 4px 0 0; font-size: 10px; }
.audit-timeline { margin: 18px 0 0; padding: 0; list-style: none; }
.audit-event { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 0 0 18px; }
.audit-event:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 34px; bottom: 0; width: 1px; background: var(--line-strong); }
.audit-actor { width: 34px; height: 34px; display: grid; place-items: center; position: relative; z-index: 1; border-radius: 50%; color: #fff; background: var(--ink-soft); font: 800 9px/1 var(--font-mono); }
.audit-body { padding: 9px 11px; border: 1px solid var(--line); background: rgba(240, 238, 231, .45); }
.audit-body strong { display: block; font-size: 10px; }
.audit-body p { margin: 4px 0 7px; color: var(--ink-soft); font-size: 10px; }
.audit-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; color: var(--muted); font: 600 8px/1.4 var(--font-mono); }

.decision-dialog {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100vw - 32px));
  padding: 20px;
  transform: translate(-50%, -48%) scale(.98);
  opacity: 0;
  pointer-events: none;
  border: 1px solid var(--line-strong);
  background: var(--paper-strong);
  box-shadow: var(--shadow-raised);
  transition: opacity var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard);
}
.decision-dialog.is-open { transform: translate(-50%, -50%) scale(1); opacity: 1; pointer-events: auto; }
.decision-dialog h2 { margin: 4px 0 7px; font-size: 20px; }
.decision-dialog > p:not(.eyebrow):not(.field-error) { margin: 0 0 14px; color: var(--ink-soft); font-size: 11px; }
.decision-dialog label { display: block; margin-bottom: 5px; font-size: 10px; font-weight: 750; }
.decision-dialog textarea { width: 100%; resize: vertical; padding: 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-1); background: #fff; color: var(--ink); font-size: 11px; }
.field-error { margin: 5px 0 0; color: var(--oxide); font-size: 9px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 7px; margin-top: 14px; }
.dialog-actions .button { min-height: 44px; }

.toast-region { position: fixed; z-index: 80; right: 18px; bottom: 46px; display: grid; gap: 8px; pointer-events: none; }
.toast { min-width: 260px; max-width: 360px; padding: 11px 13px; transform: translateY(8px); opacity: 0; color: #fff; background: var(--ink); border-left: 3px solid var(--moss); box-shadow: var(--shadow-raised); transition: opacity var(--duration-base) var(--ease-standard), transform var(--duration-base) var(--ease-standard); }
.toast.is-visible { transform: translateY(0); opacity: 1; }
.toast strong, .toast span { display: block; }
.toast strong { font-size: 10px; }
.toast span { margin-top: 3px; color: #ced7d9; font-size: 9px; }
.toast.is-error { border-left-color: var(--oxide); }

.plan-sheet { width: min(94%, 860px); height: 92%; min-height: 290px; display: grid; grid-template-rows: 1fr auto; position: relative; overflow: hidden; border: 1px solid #8e9797; background: #f7f6ef; box-shadow: 0 8px 18px rgba(32, 44, 49, .14); }
.plan-sheet svg { width: 100%; height: 100%; min-height: 280px; }
.plan-grid path { fill: none; stroke: #dfe3df; stroke-width: .8; }
.plan-lines { fill: none; stroke: #3b4c53; stroke-width: 3; stroke-linecap: square; }
.plan-lines circle { stroke-width: 1.4; }
.plan-lines .door-gap { stroke: #f7f6ef; stroke-width: 8; }
.plan-labels { fill: #66767c; font: 700 15px var(--font-mono); letter-spacing: 1.5px; }
.svg-marker { display: none; }
.plan-sheet[data-requirement="fire-test"] .marker-fire-test,
.plan-sheet[data-requirement="ceiling-repair"] .marker-ceiling-repair,
.plan-sheet[data-requirement="paint"] .marker-paint { display: block; }
.svg-marker circle { fill: var(--amber); stroke: #fff; stroke-width: 4; }
.svg-marker path { stroke: var(--amber); stroke-width: 3; }
.svg-marker text { fill: var(--ink); font: 800 16px var(--font-mono); }
.plan-title-block { position: absolute; z-index: 2; left: 14px; top: 13px; display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; padding: 7px 9px; border: 1px solid #69777c; background: rgba(247, 246, 239, .92); }
.plan-title-block span { grid-row: span 2; align-self: center; font: 900 20px/1 var(--font-mono); }
.plan-title-block strong { font-size: 9px; }
.plan-title-block small { color: var(--muted); font: 600 8px/1 var(--font-mono); }
.plan-legend { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 10px; border-top: 1px solid #879293; color: var(--muted); background: #f7f6ef; font-size: 8px; }
.plan-legend span:first-child { display: flex; align-items: center; gap: 5px; }
.plan-legend i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; background: var(--amber); }

.document-sheet { width: min(88%, 700px); min-height: 88%; position: relative; padding: 34px 38px; border: 1px solid #aeb4b1; background: #fffef9; box-shadow: 0 8px 22px rgba(31, 42, 47, .13); }
.document-stamp { position: absolute; right: 28px; top: 28px; padding: 8px 10px; transform: rotate(-2deg); border: 2px solid currentColor; color: #08743f; font: 900 12px/1 var(--font-mono); text-transform: uppercase; }
.document-stamp.is-expired { color: var(--oxide); }
.document-kicker { color: var(--muted); font: 700 9px/1 var(--font-mono); }
.document-sheet h3 { max-width: 70%; margin: 12px 0 6px; font-size: 21px; line-height: 1.2; }
.document-sheet > p { max-width: 70%; margin: 0; color: var(--muted); font-size: 10px; }
.document-rule { height: 1px; margin: 26px 0 18px; background: var(--ink); }
.document-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.document-fields div { padding-bottom: 9px; border-bottom: 1px solid var(--line); }
.document-fields small, .document-fields strong { display: block; }
.document-fields small { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.document-fields strong { margin-top: 3px; font-size: 10px; }
.document-note { margin-top: 20px; padding: 11px; border-left: 3px solid var(--blueprint); background: var(--blueprint-soft); color: var(--ink-soft); font-size: 9px; }

@media (max-width: 1180px) {
  .workspace { grid-template-columns: 248px minmax(430px, 1fr) 332px; }
  .topbar { grid-template-columns: 240px minmax(210px, 1fr) auto; }
  .sync-proof { display: none; }
  .criterion-strip { grid-template-columns: 34px minmax(0, 1fr); }
  .criterion-meta { grid-column: 2; }
  .evidence-caption { grid-template-columns: 1.3fr 1fr .8fr; }
  .evidence-caption span:last-child { display: none; }
}

@media (max-width: 1080px) {
  body { overflow-y: auto; }
  .button { min-height: 44px; }
  .filter-tabs button { min-height: 44px; }
  .app-shell { min-height: 100dvh; grid-template-rows: 62px 44px minmax(0, 1fr); overflow: visible; }
  .topbar { position: sticky; top: 0; grid-template-columns: minmax(0, 1fr) auto; padding: 0 12px; }
  .brand-lockup small, .project-identity, .topbar-actions .button-quiet { display: none; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .button { min-height: 44px; padding: 8px 10px; }
  .mobile-workspace-nav { position: sticky; top: 62px; z-index: 8; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: hidden; border-bottom: 1px solid var(--line-strong); background: var(--paper-strong); }
  .mobile-workspace-nav button { min-width: 0; min-height: 44px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; }
  .mobile-workspace-nav button.is-active { border-bottom-color: var(--blueprint); color: var(--ink); }
  .mobile-workspace-nav button span { display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 3px; border-radius: 9px; background: var(--oxide-soft); color: var(--oxide); font: 800 8px/1 var(--font-mono); }
  .workspace { width: 100%; max-width: 100%; min-width: 0; display: block; min-height: calc(100dvh - 106px); overflow: visible; }
  .workspace > [data-panel] { display: none; }
  .app-shell[data-mobile-panel="requirements"] [data-panel="requirements"] { display: flex; }
  .app-shell[data-mobile-panel="evidence"] [data-panel="evidence"] { display: flex; }
  .app-shell[data-mobile-panel="decision"] [data-panel="decision"] { display: flex; }
  .requirements-rail, .evidence-workspace, .decision-desk { min-height: calc(100dvh - 106px); border: 0; }
  .requirements-rail { max-width: none; }
  .evidence-workspace { width: 100%; max-width: 100%; min-width: 0; padding: 14px 12px 24px; overflow: visible; }
  .decision-desk { padding: 16px 14px 90px; overflow: visible; }
  .statusbar { display: none; }
  .evidence-table { min-height: 52vh; grid-template-rows: 48px minmax(300px, 1fr) auto; }
  .evidence-viewport { min-height: 300px; }
  .decision-actions { position: sticky; z-index: 6; bottom: 10px; padding: 8px; margin: 0 -8px; background: rgba(251, 250, 246, .94); backdrop-filter: blur(10px); box-shadow: 0 -8px 20px rgba(28, 39, 43, .08); }
  .tool-registration { margin-top: 18px; }
}

@media (max-width: 640px) {
  .brand-lockup h1 { font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; }
  .topbar-actions .button-ink { font-size: 0; width: 44px; padding: 0; }
  .topbar-actions .button-ink svg { margin: 0; }
  .icon-button { width: 44px; height: 44px; }
  .evidence-heading-row { min-width: 0; align-items: flex-start; }
  .evidence-heading-row > div:first-child { min-width: 0; }
  .evidence-heading-row .item-trail { min-width: 0; flex-wrap: wrap; }
  .evidence-heading-row .item-trail span { min-width: 0; }
  .evidence-heading-row h2 { font-size: 20px; }
  .status-badge { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
  .evidence-table { min-height: 470px; }
  .evidence-viewport { min-height: 310px; }
  .evidence-caption { grid-template-columns: 1fr 1fr; gap: 8px; }
  .evidence-caption span:last-child { display: block; }
  .criterion-strip { grid-template-columns: 32px minmax(0, 1fr); align-items: start; }
  .criterion-meta { grid-column: 1 / -1; padding-left: 44px; }
  .decision-actions { grid-template-columns: 1fr 1fr; }
  .decision-actions .button:first-child { grid-column: 1 / -1; }
  .assignment-strip { grid-template-columns: 1fr; }
  .drawer { width: 100vw; padding: 18px; }
  .package-status { grid-template-columns: 1fr 1fr; }
  .package-status > strong { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
  .drawer-footer { margin: 18px -18px -18px; padding: 12px 18px; align-items: stretch; flex-direction: column; }
  .drawer-footer .button { width: 100%; min-height: 44px; }
  .document-sheet { width: 94%; min-height: 92%; padding: 28px 22px; }
  .document-stamp { right: 18px; top: 20px; }
  .document-fields { grid-template-columns: 1fr; }
  .plan-title-block { transform: scale(.86); transform-origin: left top; }
  .toast-region { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* 2026-08-29 selected hybrid: evidence-story structure with the brighter judge-clarity palette. */

body { background: var(--surface-canvas); }

.app-shell {
  grid-template-rows: 86px 72px minmax(0, 1fr);
  background: var(--surface-canvas);
}

.topbar {
  grid-template-columns: 270px minmax(260px, 1fr) auto;
  gap: 22px;
  padding: 0 18px;
  border-bottom-color: var(--line);
  background: rgba(255, 254, 250, .985);
  box-shadow: 0 1px 0 rgba(11, 39, 59, .035), 0 8px 24px rgba(16, 45, 62, .035);
}

.brand-mark { background: #003f54; border-radius: 7px; box-shadow: 0 5px 14px rgba(0, 63, 84, .14); }
.brand-lockup h1 { color: var(--ink); font-size: 19px; letter-spacing: 0; }
.brand-lockup small { margin-top: 3px; font-size: 12px; }
.project-identity { padding-left: 26px; border-left-color: var(--line); }
.project-code { display: none; }
.project-identity strong { color: var(--ink); font-size: 18px; letter-spacing: 0; }
.project-identity small { margin-top: 4px; font-size: 12px; }
.sync-dot { width: 10px; height: 10px; background: var(--moss); }
.sync-proof strong { color: var(--ink); font-size: 11px; }
.sync-proof small { font-size: 10px; }
.topbar-actions { gap: 12px; }
.topbar-actions .button { min-height: 44px; padding-inline: 15px; font-size: 12px; }
.button-ink { background: #003f54; box-shadow: 0 5px 14px rgba(0, 63, 84, .12); }
.handoff-mobile-icon { display: none; }

.workflow-stepper {
  position: relative;
  z-index: 6;
  display: block;
  padding: 0 18px 0 clamp(250px, 17.4vw, 276px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, .985);
  box-shadow: 0 4px 15px rgba(16, 45, 62, .045);
}

.workflow-stepper ol {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-step {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 0 30px 0 22px;
  color: var(--muted);
}

.workflow-step + .workflow-step { border-left: 0; }
.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 10px;
  width: 8px;
  height: 8px;
  transform: translateY(-50%) rotate(45deg);
  border-top: 2px solid #a8bec7;
  border-right: 2px solid #a8bec7;
}
.workflow-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}
.workflow-step strong,
.workflow-step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workflow-step strong { color: var(--ink); font-size: 13px; letter-spacing: 0; }
.workflow-step small { margin-top: 3px; font-size: 11px; }
.workflow-step.is-current .workflow-number {
  color: #fff;
  border-color: var(--blueprint);
  background: var(--blueprint);
  box-shadow: 0 0 0 4px var(--evidence-soft);
}
.workflow-step.is-complete .workflow-number {
  color: #fff;
  border-color: var(--moss);
  background: var(--moss);
  box-shadow: none;
}
.workflow-step.is-complete.is-current .workflow-number { box-shadow: 0 0 0 4px var(--moss-soft); }
.workflow-step.is-human .workflow-number { color: var(--amber-strong); border-color: #f0b45c; background: var(--amber-soft); }
.workflow-step.is-human.is-current .workflow-number { color: var(--ink); border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.workflow-step.is-human.is-complete .workflow-number { color: #fff; border-color: var(--moss); background: var(--moss); box-shadow: none; }
.workflow-step.is-complete:not(.is-current) { color: var(--ink-soft); }

.workspace { grid-template-columns: clamp(300px, 21.4vw, 340px) minmax(560px, 1fr) clamp(350px, 24.4vw, 386px); }

.requirements-rail {
  overflow: hidden;
  border-right-color: var(--line);
  background: var(--surface-subtle);
}
.rail-summary { align-items: center; padding: 18px 18px 12px; }
.rail-summary .eyebrow { margin: 0; color: var(--ink-soft); font-size: 10px; }
.rail-readiness { margin: 5px 0 0; color: var(--muted); font-size: 10px; }
.rail-readiness strong { margin-right: 2px; color: var(--ink); }
.handoff-state { padding: 6px 9px; }
.readiness-meter { margin-inline: 18px; border-radius: 99px; }
.rail-context { padding: 1px 18px 13px; }
.rail-readiness,
.handoff-state,
.readiness-meter,
.rail-context { display: none; }
.rail-summary { padding: 20px 18px 10px; }
.filter-tabs {
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  margin: 0 18px 10px;
  padding: 3px;
  border-color: var(--line);
  border-radius: var(--radius-1);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 45, 62, .04);
}
.filter-tabs button { min-height: 40px; border-radius: 4px; color: var(--ink-soft); font-size: 11px; }
.filter-tabs button.is-active { background: #005a70; }
.requirement-list { min-height: 0; max-height: 465px; flex: 0 1 465px; padding: 0 10px 10px; }
.requirement-overflow-spacer { height: 30px; }
.requirement-group-label {
  padding: 10px 8px 6px;
  background: rgba(251, 253, 254, .96);
  color: var(--muted);
}
.requirement-row {
  min-height: 72px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 11px;
  padding: 11px 10px;
  border-radius: 6px;
}
.requirement-row:hover { border-color: #c6dbe3; background: #fff; box-shadow: var(--shadow-soft); }
.requirement-row + .requirement-row { border-top-color: var(--line); }
.requirement-row.is-selected {
  border-color: #74bfd0;
  background: #f6fcfd;
  box-shadow: 3px 0 0 #0097ad inset, var(--shadow-soft);
}
.status-mark { width: 30px; height: 30px; background: #fff; font-size: 0; }
.status-mark .semantic-icon { width: 16px; height: 16px; }
.requirement-copy strong { color: var(--ink); font-size: 11px; }
.requirement-copy small { margin-top: 5px; color: var(--ink-soft); font-size: 9px; }
.requirement-copy strong { font-size: 12.5px; }
.requirement-copy small { font-size: 10.25px; line-height: 1.35; }
.requirement-tail { min-width: 46px; display: grid; justify-items: end; gap: 6px; }
.requirement-state-pill {
  min-width: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}
.pill-ready { color: #08743f; border-color: #c9e5d4; background: var(--moss-soft); }
.pill-unmatched_evidence { color: #075e72; border-color: #c3e2e8; background: var(--blueprint-soft); }
.pill-stale, .pill-missing { color: #a53b32; border-color: #f0cbc6; background: var(--oxide-soft); }
.pill-scope_review { color: #5d5268; border-color: #ddd4e3; background: var(--violet-soft); }
.pill-owner_review { color: var(--amber-strong); border-color: #efd09e; background: var(--amber-soft); }
.requirement-owner { color: var(--muted); font-size: 8px; letter-spacing: .04em; }
.view-all-issues {
  flex: 0 0 44px;
  width: calc(100% - 36px);
  min-height: 44px;
  margin: 0 18px 18px;
  border: 1px solid #65b5c7;
  border-radius: var(--radius-1);
  background: #fff;
  color: #07526a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  transition: background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard);
}

.mobile-toggle-issues { display: none; }
.view-all-issues:hover,
.view-all-issues.is-active { background: #eef9fb; border-color: #2a91a7; }

.evidence-workspace {
  padding: 26px 40px 26px 33px;
  background: #fffdf8;
}
.evidence-heading-row { align-items: center; margin-bottom: 17px; }
.evidence-heading-row h2 { color: var(--ink); font-size: 27px; letter-spacing: 0; }
.item-trail { color: var(--muted); font-family: var(--font-sans); font-size: 11px; font-weight: 650; }
.status-badge { padding: 8px 13px; box-shadow: 0 1px 2px rgba(16, 45, 62, .04); }

.evidence-table {
  min-height: 0;
  display: block;
  position: relative;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #e7edf0;
  box-shadow: var(--shadow-card);
}
.evidence-toolbar {
  position: absolute;
  z-index: 3;
  inset: 10px 10px auto;
  padding: 0;
  border: 0;
  pointer-events: none;
}
.evidence-toolbar > div:first-child {
  padding: 7px 10px;
  border-radius: 5px;
  background: rgba(0, 83, 103, .93);
  color: #fff;
  box-shadow: 0 5px 14px rgba(0, 55, 72, .18);
}
.evidence-toolbar .file-kind { display: none; }
.evidence-toolbar strong { font-size: 10px; }
.evidence-toolbar .toolbar-actions { pointer-events: auto; }
.evidence-toolbar .proof-tag { padding: 8px 13px; border: 1px solid #b9dfc8; background: #e7f6ed; box-shadow: 0 2px 6px rgba(8, 127, 71, .08); }
.evidence-toolbar .icon-button { background: rgba(255, 255, 255, .96); box-shadow: 0 3px 10px rgba(16, 45, 62, .09); }
.evidence-viewport { height: clamp(320px, 35.3vh, 350px); min-height: 320px; background: #e8edf0; }
.evidence-caption { display: none; }
.synthetic-label { left: 12px; bottom: 12px; }

.match-strip {
  margin-top: 12px;
  padding: 10px 13px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-1);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.match-strip h3 { margin: 0 0 10px; color: var(--ink); font-size: 12px; }
.match-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.match-facts > div { min-width: 0; display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 9px; padding: 2px 12px; }
.match-facts > div:first-child { padding-left: 0; }
.match-facts > div + div { border-left: 1px solid var(--line); }
.match-marker {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--blueprint);
  background: transparent;
}
.match-marker .semantic-icon { width: 21px; height: 21px; stroke-width: 2; }
.match-marker.is-positive { color: #fff; border-color: var(--moss); background: var(--moss); }
.match-facts strong,
.match-facts small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-facts strong { color: var(--ink); font-size: 10.5px; }
.match-facts small { margin-top: 3px; color: var(--muted); font-size: 9.5px; }

.evidence-sequence { margin-top: 12px; }
.sequence-heading { margin-bottom: 8px; color: var(--ink); font-size: 11px; font-weight: 800; text-transform: none; letter-spacing: 0; }
.sequence-heading small { color: var(--muted); }
.sequence-mobile-hint { display: none; }
.evidence-chain-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; align-items: stretch; }
.evidence-tabs { display: contents; }
.evidence-tab {
  min-height: 244px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 104px minmax(0, 1fr);
  align-content: start;
  position: relative;
  gap: 10px;
  padding: 40px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.evidence-tab::after {
  content: "";
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -31px;
  width: 31px;
  height: 2px;
  background: var(--moss);
  pointer-events: none;
}
.evidence-tab::before {
  content: "✓";
  position: absolute;
  z-index: 3;
  top: calc(50% - 9px);
  right: -25px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 0 0 1px var(--moss);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}
.evidence-tab.is-active { border-color: #67b8c9; background: #f7fcfd; box-shadow: 0 0 0 1px #67b8c9 inset, var(--shadow-card); }
.evidence-step {
  position: absolute;
  left: 10px;
  top: 10px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--blueprint);
  font-size: 9px;
  font-weight: 850;
}
.evidence-tab-icon {
  width: 100%;
  height: 104px;
  overflow: hidden;
  border-color: var(--line);
  border-radius: 3px;
  background: #f4f7f8;
  color: var(--blueprint);
  font-size: 11px;
}
.evidence-tab-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.evidence-tab > span:last-child { min-width: 0; }
.evidence-tab strong { color: var(--ink); font-size: 10.5px; }
.evidence-tab strong {
  display: -webkit-box;
  overflow: hidden;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
}
.evidence-tab small { margin-top: 5px; color: var(--ink-soft); font-size: 9.5px; }
.evidence-tab em { display: block; overflow: hidden; margin-top: 5px; color: var(--muted); font-size: 9.25px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.evidence-file-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 9.25px;
}
.evidence-file-kind {
  min-width: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface-subtle);
  color: var(--ink-soft);
  font: 800 8px/1 var(--font-mono);
}

.evidence-tab-icon .plan-sheet { width: 100%; height: 100%; min-height: 0; border: 0; box-shadow: none; }
.evidence-tab-icon .plan-sheet svg { min-height: 0; }
.evidence-tab-icon .plan-title-block,
.evidence-tab-icon .plan-legend { display: none; }
.evidence-tab-icon .document-sheet { width: 100%; min-height: 100%; padding: 10px 12px; border: 0; box-shadow: none; }
.evidence-tab-icon .document-stamp { right: 8px; top: 8px; padding: 3px 4px; border-width: 1px; font-size: 5px; }
.evidence-tab-icon .document-kicker { font-size: 4px; }
.evidence-tab-icon .document-sheet h3 { max-width: 70%; margin: 5px 0 3px; font-size: 8px; }
.evidence-tab-icon .document-sheet > p { max-width: 70%; font-size: 4px; }
.evidence-tab-icon .document-rule { margin: 8px 0 6px; }
.evidence-tab-icon .document-fields { grid-template-columns: 1fr 1fr; gap: 4px 8px; }
.evidence-tab-icon .document-fields div { padding-bottom: 3px; }
.evidence-tab-icon .document-fields small { font-size: 3px; }
.evidence-tab-icon .document-fields strong { margin-top: 1px; font-size: 4px; }
.evidence-tab-icon .document-note { display: none; }

.criterion-strip {
  min-height: 244px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto auto;
  align-items: start;
  position: relative;
  gap: 7px;
  margin: 0;
  padding: 40px 11px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.criterion-number { position: absolute; left: 10px; top: 10px; width: 22px; height: 22px; color: #fff; border: 0; background: var(--blueprint); font-size: 9px; }
.criterion-strip .eyebrow { color: var(--ink); font-size: 10px; text-transform: none; letter-spacing: 0; }
.criterion-strip p:last-child { font-size: 10.5px; line-height: 1.55; }
.criterion-meta { align-self: end; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 8px; width: 100%; }
.criterion-meta div { min-width: 0; }
.criterion-meta dt { font-size: 8px; }
.criterion-meta dd { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.criterion-file-meta { margin-top: 2px; }

.decision-desk {
  gap: 16px;
  padding: 20px 18px 16px;
  border-left-color: var(--line);
  background: linear-gradient(180deg, #f2fbfb 0%, #f8fbf9 52%, #fff8ee 100%);
}
.decision-topline,
.decision-title { display: none; }
.agent-recommendation {
  overflow: hidden;
  padding: 0 16px 18px;
  border: 1px solid #9fd4de;
  border-left-width: 1px;
  border-radius: 7px;
  background: #fff;
  box-shadow: var(--shadow-card);
}
.recommendation-heading {
  margin: 0 -16px 16px;
  padding: 15px 16px;
  border-bottom: 1px solid #c9e7ed;
  background: var(--surface-evidence);
}
.agent-glyph {
  width: 38px;
  height: 38px;
  color: var(--blueprint);
  border: 1px solid #a9d9e2;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 124, 146, .09);
}
.agent-glyph .semantic-icon { width: 23px; height: 23px; stroke-width: 2; }
.recommendation-heading .eyebrow { margin: 0; color: #075d72; font-size: 13px; text-transform: none; letter-spacing: 0; }
.recommendation-heading > div > span { color: var(--muted); font-size: 10.5px; }
.recommendation-summary { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: start; gap: 13px; margin: 18px 2px; }
.recommendation-summary p { margin: 0; color: var(--ink); font-size: 12.5px; line-height: 1.55; }
.recommendation-verdict {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  border-radius: 50%;
  background: var(--moss);
  box-shadow: 0 6px 14px rgba(7, 143, 76, .18);
}
.recommendation-verdict .semantic-icon { width: 23px; height: 23px; stroke-width: 2.1; }
.rule-checks { gap: 11px; margin: 0 2px 11px; }
.rule-checks li { color: var(--ink-soft); font-size: 11px; }
.rule-checks li span { width: 18px; height: 18px; font-size: 0; }
.rule-checks li span .semantic-icon { width: 12px; height: 12px; }
.rule-checks li.is-unknown span .semantic-icon { color: var(--muted); }
.criterion-rule { display: flex; align-items: center; gap: 7px; margin: 0 2px 18px; color: var(--ink-soft); font-size: 11px; }
.criterion-rule span { width: 18px; height: 18px; display: block; flex: 0 0 auto; border: 5px solid var(--moss-soft); border-radius: 50%; background: var(--moss); }
.agent-recommendation .button { min-height: 48px; font-size: 12px; }
.agent-recommendation #stage-proposal { justify-content: space-between; padding-inline: 17px 14px; box-shadow: 0 8px 18px rgba(0, 124, 146, .2); }
.agent-recommendation #stage-proposal .semantic-icon { width: 17px; height: 17px; }
.stage-status {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid #9fcdd5;
  border-left: 4px solid var(--blueprint);
  border-radius: var(--radius-1);
  background: #eef9fa;
}
.stage-status-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--blueprint);
  border-radius: 50%;
  background: #fff;
}
.stage-status-icon .semantic-icon { width: 17px; height: 17px; }
.stage-status strong,
.stage-status small { display: block; }
.stage-status strong { color: var(--ink); font-size: 11.5px; }
.stage-status small { margin-top: 2px; color: var(--ink-soft); font-size: 9.5px; line-height: 1.35; }
.stage-status[data-kind="approved"],
.stage-status[data-kind="deferred"] { border-color: #e2b86f; border-left-color: var(--human); background: #fff7e9; }
.stage-status[data-kind="approved"] .stage-status-icon,
.stage-status[data-kind="deferred"] .stage-status-icon { color: var(--amber-strong); background: var(--amber-soft); }
.stage-status[data-kind="rejected"] { border-color: #e5aaa4; border-left-color: var(--oxide); background: var(--oxide-soft); }
.stage-status[data-kind="rejected"] .stage-status-icon { color: var(--oxide-hover); background: #fff; }
.stage-status[data-kind="applied"] { border-color: #95ceb0; border-left-color: var(--moss); background: var(--moss-soft); }
.stage-status[data-kind="applied"] .stage-status-icon { color: var(--moss); background: #fff; }
.approval-boundary { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 12px 0 0; color: var(--muted); font-size: 10px; font-weight: 650; text-align: center; }
.approval-boundary .semantic-icon { width: 13px; height: 13px; }

.human-decision {
  overflow: hidden;
  margin: 0;
  padding: 0 16px 28px;
  border: 1px solid #efa846;
  border-radius: 7px;
  background: linear-gradient(180deg, #fff 0%, #fffdf9 62%, #fff8ee 100%);
  box-shadow: var(--shadow-card), 0 12px 30px rgba(211, 108, 0, .075);
}
.human-decision[data-state="awaiting_human"] {
  border-color: var(--human);
  box-shadow: var(--shadow-card), 0 14px 34px rgba(226, 116, 0, .14);
}
.human-decision[data-state="approved"] {
  border-color: #e39a2f;
  box-shadow: var(--shadow-card), 0 12px 28px rgba(226, 116, 0, .12);
}
.human-decision[data-state="rejected"] { border-color: var(--status-rejected-border); }
.human-decision[data-state="deferred"] { border-color: var(--status-deferred-border); }
.human-decision[data-state="loading"] { border-color: var(--blueprint); }
.human-decision[data-state="accepted"],
.human-decision[data-state="consumed"] {
  border-color: #7cc99c;
  box-shadow: var(--shadow-card), 0 12px 28px rgba(0, 150, 79, .1);
}
.human-decision .section-heading {
  align-items: center;
  margin: 0 -16px 17px;
  padding: 15px 16px;
  border-bottom: 1px solid #efc47f;
  background: var(--surface-human);
}
.human-heading-lockup { display: flex; align-items: center; gap: 10px; }
.decision-glyph {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--amber);
  border: 1px solid #efa13a;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(211, 108, 0, .08);
}
.decision-glyph .semantic-icon { width: 22px; height: 22px; stroke-width: 2; }
.human-decision .section-heading .eyebrow { margin: 0; color: var(--amber-strong); font-size: 13px; text-transform: none; letter-spacing: 0; }
.human-decision .section-heading .eyebrow:focus-visible,
.decision-result:focus-visible { outline: 2px solid var(--blueprint); outline-offset: 3px; }
.human-decision .section-heading strong { color: var(--ink); font-size: 12px; }
.decision-copy > #decision-state { display: block; margin: 0 0 8px; color: var(--ink); font-size: 13px; }
.human-only { padding: 5px 8px; }
.decision-helper { margin: 0 0 22px; color: var(--ink-soft); font-size: 11.5px; line-height: 1.55; }
.decision-result {
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 13px;
  border: 1px solid var(--status-approved-border);
  border-left-width: 4px;
  border-radius: var(--radius-1);
  background: var(--status-approved-surface);
}
.decision-result-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--amber-strong);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 10px rgba(78, 48, 7, .08);
}
.decision-result-icon .semantic-icon { width: 22px; height: 22px; }
.decision-result strong,
.decision-result small { display: block; }
.decision-result strong { color: var(--ink); font-size: 12.5px; }
.decision-result small { margin-top: 4px; color: var(--ink-soft); font-size: 10.5px; line-height: 1.45; }
.decision-result[data-kind="applied"] { border-color: var(--status-applied-border); background: var(--status-applied-surface); }
.decision-result[data-kind="applied"] .decision-result-icon { color: var(--moss); }
.decision-result[data-kind="rejected"] { border-color: var(--status-rejected-border); background: var(--status-rejected-surface); }
.decision-result[data-kind="rejected"] .decision-result-icon { color: var(--oxide-hover); }
.decision-result[data-kind="deferred"] { border-color: var(--status-deferred-border); background: var(--status-deferred-surface); }
.decision-result[data-kind="deferred"] .decision-result-icon { color: #7d581b; }
.decision-walkthrough {
  min-height: 48px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 9px;
  margin-top: 11px;
  padding: 8px 10px;
  border: 1px solid #d49134;
  border-radius: 5px;
  background: #fffaf0;
  color: #713700;
  text-decoration: none;
}
.decision-walkthrough:hover { border-color: #a85b00; background: #fff4dc; }
.decision-walkthrough:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #005f73; }
.decision-walkthrough .walkthrough-play { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: #984100; color: #fff; font-size: 10px; }
.decision-walkthrough strong { color: inherit; font-size: 10.5px; line-height: 1.3; }
.decision-walkthrough small { color: var(--ink-soft); font-size: 9.5px; line-height: 1.3; }
.decision-walkthrough .walkthrough-open { color: var(--amber-strong); font-size: 15px; }
.decision-actions { grid-template-columns: 1fr 1fr; gap: 8px; }
.decision-actions .button:first-child { grid-column: 1 / -1; min-height: 50px; font-size: 13px; }
.decision-actions .button:not(:first-child) { min-height: 48px; }
.button-accept:not(:disabled) {
  border-color: #d86f00;
  background: linear-gradient(180deg, #f6a014 0%, var(--amber) 56%, #e57a00 100%);
  color: var(--ink);
  box-shadow: 0 8px 18px rgba(218, 111, 0, .24), inset 0 1px 0 rgba(255, 255, 255, .38);
  font-weight: 850;
}
.button-accept:hover:not(:disabled) {
  background: linear-gradient(180deg, #f39a09 0%, #e98100 58%, #d97000 100%);
  box-shadow: 0 10px 22px rgba(218, 111, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .32);
}
.button-accept:active:not(:disabled) {
  box-shadow: 0 4px 10px rgba(218, 111, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .24);
}
.button-accept .semantic-icon { width: 16px; height: 16px; }
.button-accept:disabled .semantic-icon { color: #713700; }
.decision-inline-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 11px;
  color: #7e271f;
  border: 1px solid #e2aaa4;
  border-radius: var(--radius-1);
  background: var(--oxide-soft);
  font-size: 10.5px;
  line-height: 1.4;
}
.decision-inline-error .semantic-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.text-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  padding: 8px 0;
  color: var(--blueprint);
  font-size: 11px;
  font-weight: 800;
}
.human-decision[data-state="approved"] .text-action { color: #8a4300; }
.human-decision[data-state="rejected"] .text-action { color: #9d3329; }
.human-decision[data-state="deferred"] .text-action { color: #75501a; }
.assignment-strip { margin-top: 0; }
.assignment-strip { padding: 0 2px; border-radius: 6px; background: rgba(255, 255, 255, .68); }
.assignment-strip div { padding: 11px 4px 13px; }
.tool-registration { margin-top: auto; padding: 0 2px; }
.icon-button { width: 40px; height: 40px; }
.button { min-height: 44px; }
.statusbar { display: none; }

@media (min-width: 1081px) {
  .requirement-group-label[data-overflow-group="true"] { visibility: hidden; }
  .toast-region { right: 340px; }
}

@media (max-width: 1450px) and (min-width: 1081px) {
  .requirement-owner { display: none; }
  .requirement-tail { min-width: 42px; }
  .requirement-row { min-height: 80px; }
  .requirement-copy strong {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.25;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .match-facts strong,
  .match-facts small {
    overflow: visible;
    text-overflow: clip;
    line-height: 1.3;
    white-space: normal;
  }
}

@media (max-width: 1280px) and (min-width: 1081px) {
  .topbar { grid-template-columns: 245px minmax(220px, 1fr) auto; }
  .workflow-stepper { padding-left: 248px; }
  .workflow-step { padding-inline: 12px; }
  .workspace { grid-template-columns: 264px minmax(470px, 1fr) 322px; }
  .evidence-workspace { padding-inline: 18px; }
  .decision-desk { padding-inline: 13px; }
  .match-facts > div { padding-inline: 8px; }
}

@media (max-width: 1080px) {
  .app-shell { min-height: 100dvh; grid-template-rows: 62px 56px 58px minmax(0, 1fr); overflow: visible; }
  .workflow-stepper {
    position: sticky;
    top: 62px;
    z-index: 9;
    display: block;
    height: 56px;
    padding: 0 8px;
    overflow: hidden;
    border-bottom-color: #c9dbe1;
    background: rgba(255, 254, 250, .985);
    box-shadow: 0 5px 16px rgba(16, 45, 62, .055);
  }
  .workflow-stepper ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workflow-step {
    grid-template-columns: 25px minmax(0, 1fr);
    gap: 5px;
    padding: 0 10px 0 4px;
  }
  .workflow-number { width: 25px; height: 25px; font-size: 10px; }
  .workflow-step strong {
    max-height: 22px;
    overflow: hidden;
    white-space: normal;
    font-size: 9px;
    line-height: 1.12;
  }
  .workflow-step small { display: none; }
  .workflow-step:not(:last-child)::after { right: 2px; width: 5px; height: 5px; border-width: 1.5px; }
  .topbar { position: sticky; top: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; padding: 0 12px; }
  .brand-lockup small, .project-identity, .topbar-actions .button-quiet { display: none; }
  .topbar-actions .button { min-height: 44px; padding: 8px 10px; }
  .icon-button { width: 44px; height: 44px; }
  .filter-tabs button { min-height: 44px; }
  .mobile-workspace-nav {
    position: sticky;
    top: 118px;
    z-index: 8;
    min-height: 58px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px 10px;
    border-bottom-color: #c9dbe1;
    background: rgba(255, 250, 243, .985);
    box-shadow: 0 6px 16px rgba(16, 45, 62, .045);
  }
  .mobile-workspace-nav button {
    min-width: 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(255, 255, 255, .74);
    color: #607887;
    box-shadow: 0 2px 8px rgba(16, 45, 62, .04);
  }
  .mobile-workspace-nav button:hover { background: #f2fafb; color: var(--ink); }
  .mobile-workspace-nav button.is-active { border-color: #75c5d3; background: var(--surface-evidence); color: #075d72; box-shadow: 0 5px 14px rgba(0, 127, 152, .1); }
  .mobile-workspace-nav .mobile-nav-label {
    min-width: 0;
    height: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: 800 9.5px/1 var(--font-sans);
  }
  .mobile-workspace-nav .mobile-nav-label .semantic-icon { width: 15px; height: 15px; }
  .mobile-workspace-nav .mobile-nav-count {
    min-width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    margin: 0;
    border: 1px solid #f0cbc6;
    border-radius: 999px;
    background: var(--oxide-soft);
    color: #a53b32;
    font: 800 8px/1 var(--font-mono);
  }
  .workspace { display: block; min-height: calc(100dvh - 176px); overflow: visible; background: var(--surface-canvas); }
  .workspace > [data-panel] { display: none; }
  .app-shell[data-mobile-panel="requirements"] [data-panel="requirements"] { display: flex; }
  .app-shell[data-mobile-panel="evidence"] [data-panel="evidence"] { display: flex; }
  .app-shell[data-mobile-panel="decision"] [data-panel="decision"] { display: flex; }
  .requirements-rail, .evidence-workspace, .decision-desk { min-height: calc(100dvh - 176px); border: 0; }
  .requirements-rail { overflow-y: auto; padding: 0 10px 24px; background: linear-gradient(180deg, #f1fbfb 0%, var(--surface-subtle) 32%, #fffaf3 100%); }
  .requirement-owner { display: none; }
  .requirement-tail { min-width: 42px; }
  .requirement-list { max-height: none; display: grid; gap: 8px; flex: 0 0 auto; overflow: visible; padding: 0 0 8px; }
  .requirement-group-label { margin-top: 4px; padding: 12px 6px 4px; background: transparent; }
  .requirement-row,
  .requirement-row + .requirement-row { min-height: 70px; padding: 11px 10px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .86); box-shadow: var(--shadow-soft); }
  .requirement-row.is-selected { border-color: #68bfd0; background: #f4fcfd; box-shadow: 4px 0 0 var(--evidence) inset, var(--shadow-card); }
  .mobile-toggle-issues {
    width: 100%;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 2px 0 8px;
    border: 1px solid #72bdcd;
    border-radius: 7px;
    background: #fff;
    color: #07526a;
    cursor: pointer;
    font-size: 11px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
  }
  .mobile-toggle-issues[hidden] { display: none; }
  .view-all-issues { width: 100%; margin: 0 0 max(18px, env(safe-area-inset-bottom)); }
  .view-all-issues.is-active { display: none; }
  .evidence-workspace { width: 100%; padding: 20px 14px 36px; overflow: visible; background: #fffdf8; }
  .review-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px;
    border: 1px solid #a9d5df;
    border-left: 4px solid var(--blueprint);
    border-radius: 6px;
    background: linear-gradient(115deg, #f0fbfc, #fff);
    box-shadow: var(--shadow-soft);
  }
  .review-guide .eyebrow { margin: 0 0 3px; color: #075d72; font-size: 9px; }
  .review-guide strong { display: block; color: var(--ink); font-size: 11px; line-height: 1.35; }
  .review-guide p:last-child { margin: 4px 0 0; color: var(--ink-soft); font-size: 9.5px; line-height: 1.4; }
  .review-guide .button { min-height: 44px; gap: 7px; padding: 8px 10px; white-space: nowrap; font-size: 10px; }
  .decision-desk { gap: 16px; padding: 20px 14px 90px; overflow: visible; background: linear-gradient(180deg, #f0fbfb 0%, #f8fbf9 44%, #fff8ed 100%); }
  .decision-topline { display: flex; justify-content: flex-start; }
  .decision-title { display: block; }
  .decision-title { padding: 0 2px 2px; }
  .decision-title .eyebrow { color: #075d72; }
  .decision-title h2 { margin: 2px 0 5px; font-size: 22px; }
  .decision-title p:last-child { margin: 0; color: var(--ink-soft); font-size: 11.5px; line-height: 1.5; }
  .evidence-viewport { height: clamp(260px, 38vh, 350px); min-height: 260px; }
  .human-decision { scroll-margin-top: 188px; }
  .sequence-mobile-hint { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; color: var(--blueprint); font-size: 9px; font-weight: 750; }
  .sequence-heading #evidence-count { display: none; }
  .evidence-chain-grid { display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; padding: 0; }
  .evidence-tabs { display: grid; grid-template-columns: 1fr; gap: 14px; overflow: visible; }
  .evidence-tab {
    min-width: 0;
    min-height: 142px;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch;
    gap: 13px;
    padding: 38px 13px 13px;
    scroll-snap-align: none;
  }
  .evidence-tab-icon { width: 104px; height: 88px; }
  .evidence-tab::after { top: auto; right: auto; bottom: -15px; left: 23px; width: 2px; height: 15px; }
  .evidence-tab::before { top: auto; right: auto; bottom: -9px; left: 15px; }
  .criterion-strip { min-width: 0; min-height: 184px; padding: 40px 14px 14px; scroll-snap-align: none; }
  .criterion-strip p:last-child { font-size: 11.5px; }
  .decision-actions { position: sticky; z-index: 6; bottom: 10px; padding: 8px; margin: 0 -8px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); box-shadow: 0 -8px 20px rgba(28, 39, 43, .08); }
  .text-action { min-height: 44px; display: inline-flex; align-items: center; }
}

@media (max-width: 640px) {
  .topbar { grid-template-columns: auto minmax(0, 1fr) auto; }
  .brand-lockup h1 { font-size: 16px; }
  .brand-mark { width: 34px; height: 34px; }
  .review-guide { grid-template-columns: minmax(0, 1fr); gap: 9px; }
  .review-guide .button { justify-content: center; width: 100%; }
  .project-identity {
    min-width: 0;
    display: flex;
    justify-self: start;
    padding-left: 10px;
    border-left-color: #d7e3e6;
  }
  .project-identity > span:last-child { display: flex; }
  .project-identity strong { max-width: 72px; color: var(--ink-soft); font-size: 11px; }
  .project-identity small { display: none; }
  .topbar-actions .button-ink { width: 44px; padding: 0; overflow: hidden; font-size: 0; }
  .topbar-actions .button-ink .handoff-arrow { display: none; }
  .topbar-actions .button-ink .handoff-mobile-icon { display: block; width: 21px; height: 21px; }
  .icon-button { width: 44px; height: 44px; }
  .filter-tabs button { min-height: 44px; }
  .evidence-heading-row h2 { font-size: 21px; }
  .evidence-table { border-radius: 5px; }
  .evidence-toolbar { inset: 8px 8px auto; }
  .evidence-toolbar > div:first-child { max-width: 66%; }
  .evidence-toolbar strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .evidence-viewport { min-height: 310px; }
  .match-facts { grid-template-columns: 1fr 1fr; gap: 9px 0; }
  .match-facts > div { padding: 3px 9px; }
  .match-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .match-facts > div:nth-child(n + 3) { padding-top: 8px; border-top: 1px solid var(--line); }
  .requirement-row { min-height: 70px; }
  .rail-summary { padding-top: 22px; }
  .filter-tabs { box-shadow: var(--shadow-soft); }
  .requirement-row.is-selected { box-shadow: 3px 0 0 #0097ad inset, 0 8px 20px rgba(16, 45, 62, .075); }
  .match-strip { box-shadow: var(--shadow-card); }
  .evidence-tab,
  .criterion-strip { box-shadow: var(--shadow-card); }
  .agent-recommendation,
  .human-decision { border-radius: 6px; }
}

@media (max-width: 360px) {
  .workflow-stepper { padding-inline: 8px; }
  .workflow-stepper ol { grid-template-columns: 32px minmax(0, 1fr) 32px 32px; }
  .workflow-stepper ol:has(.workflow-step:nth-child(1).is-current) { grid-template-columns: minmax(0, 1fr) 32px 32px 32px; }
  .workflow-stepper ol:has(.workflow-step:nth-child(3).is-current) { grid-template-columns: 32px 32px minmax(0, 1fr) 32px; }
  .workflow-stepper ol:has(.workflow-step:nth-child(4).is-current) { grid-template-columns: 32px 32px 32px minmax(0, 1fr); }
  .workflow-step { grid-template-columns: 25px; justify-content: center; gap: 0; padding-inline: 3px; }
  .workflow-step.is-current { grid-template-columns: 25px minmax(0, 1fr); justify-content: stretch; gap: 6px; padding-inline: 4px 8px; }
  .workflow-step:not(.is-current) > span:last-child { display: none; }
  .workflow-step.is-current strong { max-height: none; overflow: visible; font-size: 9.5px; }
  .workflow-step:not(:last-child)::after { right: -1px; }
  .mobile-workspace-nav { gap: 4px; padding-inline: 6px; }
  .mobile-workspace-nav .mobile-nav-label .semantic-icon { width: 13px; height: 13px; }
  .mobile-workspace-nav .mobile-nav-label { gap: 3px; font-size: 8.5px; }
  .mobile-workspace-nav .mobile-nav-count { min-width: 16px; width: 16px; height: 16px; }
  .evidence-tab { grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding-inline: 10px; }
  .evidence-tab-icon { width: 88px; height: 82px; }
  .match-facts strong,
  .match-facts small { overflow: visible; text-overflow: clip; white-space: normal; }
  .match-facts small { line-height: 1.25; }
}

@media (min-width: 1081px) and (max-height: 920px) {
  .evidence-workspace { padding-block: 18px; }
  .evidence-heading-row { margin-bottom: 10px; }
  .evidence-heading-row h2 { font-size: 24px; }
  .evidence-viewport { height: 282px; min-height: 282px; }
  .match-strip { margin-top: 9px; padding-block: 8px; }
  .match-strip h3 { margin-bottom: 7px; }
  .evidence-sequence { margin-top: 9px; }
  .sequence-heading { margin-bottom: 6px; }
  .evidence-tab,
  .criterion-strip { min-height: 211px; padding-top: 35px; }
  .evidence-tab { grid-template-rows: 82px minmax(0, 1fr); }
  .evidence-tab-icon { height: 82px; }
  .decision-desk { gap: 10px; padding-block: 14px; }
  .recommendation-heading { margin-bottom: 11px; padding-block: 11px; }
  .recommendation-summary { margin-block: 11px; }
  .rule-checks { gap: 7px; }
  .criterion-rule { margin-bottom: 12px; }
  .human-decision .section-heading { margin-bottom: 12px; padding-block: 11px; }
  .decision-helper { margin-bottom: 14px; }
}
