/* Audit Workbench — minimal but professional CSS.
   Palette: navy / orange / paper. Typography: Georgia for display, system for body.
*/

:root {
  --navy: #0E2A47;
  --navy-deep: #081A2E;
  --orange: #D04A02;
  --orange-light: #F4B183;
  --slate: #475569;
  --slate-light: #94A3B8;
  --paper: #F7F5F0;
  --rule: #D9DCE1;
  --white: #FFFFFF;
  --teal: #0B6E6B;
  --red: #B91C1C;
  --green: #16A34A;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font: 14px/1.55 -apple-system, "Segoe UI", system-ui, sans-serif;
  color: var(--navy);
  background: #F2EEE6;
  min-height: 100vh;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

code, .mono { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12.5px; }

/* ------------- Top bar ------------- */
.topbar {
  background: var(--navy-deep);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 4px solid var(--orange);
}
.brand { display: flex; align-items: baseline; gap: 14px; }
.brand-link { color: white; display: flex; align-items: baseline; gap: 8px; text-decoration: none; }
.brand-mark {
  font: 700 italic 24px Georgia, serif;
  color: var(--orange);
  letter-spacing: 1px;
}
.brand-name {
  font: 600 17px Georgia, serif;
  letter-spacing: 0.4px;
}
.brand-sub {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--orange-light);
}
.topnav a {
  color: #CADCFC;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 500;
  padding: 6px 12px;
  margin-left: 4px;
  border-radius: 4px;
}
.topnav a:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.topnav a.active { color: white; background: rgba(208,74,2,0.18); }

/* ---- Mobile nav (hamburger + drawer) ----
 * Hidden on desktop; below 720px the inline topnav collapses into a
 * drawer that slides down from the topbar. Hamburger is a real button
 * with aria-expanded for screen readers. */
.topnav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 32px;
  justify-content: center;
  align-items: center;
}
.topnav-toggle-bar {
  width: 18px;
  height: 2px;
  background: #CADCFC;
  border-radius: 2px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.topnav-toggle[aria-expanded="true"] .topnav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.topnav-toggle[aria-expanded="true"] .topnav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.topnav-toggle[aria-expanded="true"] .topnav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.topnav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 26, 46, 0.55);
  z-index: 90;
}

@media (max-width: 720px) {
  .topbar {
    padding: 12px 18px;
    flex-wrap: wrap;
    position: relative;
  }
  .brand-sub {
    display: none;          /* the eyebrow tagline is desktop-only */
  }
  .brand-name {
    font-size: 16px;
  }
  .topnav-toggle {
    display: flex;
    z-index: 110;            /* above the drawer + backdrop */
  }
  .topnav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-deep);
    border-top: 1px solid rgba(255,255,255,0.08);
    border-bottom: 4px solid var(--orange);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    gap: 2px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
    z-index: 100;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .topnav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .topnav a {
    font-size: 13.5px;
    padding: 12px 14px;     /* 44px tap target with line-height */
    margin-left: 0;
    border-radius: 6px;
    letter-spacing: 1px;
  }
  main {
    padding: 20px 18px 48px;
  }
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}

/* ------------- Hero ------------- */
.hero { margin-bottom: 28px; }
.hero h1 {
  font: 600 32px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 10px 0;
  letter-spacing: -0.3px;
}
.lede {
  color: var(--slate);
  font-size: 15.5px;
  line-height: 1.65;
  max-width: 760px;
  margin: 0;
}
.muted { color: var(--slate-light); }
.hint { font-weight: 400; color: var(--slate-light); font-size: 11.5px; margin-left: 6px; }

/* ------------- Cards ------------- */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 22px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}
.card h2 {
  font: 600 18px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 16px 0;
}
.card h3 {
  font: 600 13px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate);
  margin: 0 0 14px 0;
}

/* ------------- How it works panel ------------- */
.how-it-works {
  margin-bottom: 24px;
  padding: 26px 30px;
}
.how-title {
  font: 700 11px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--orange);
  margin-bottom: 16px;
}
.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.how-steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: flex-start;
}
.how-step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: var(--paper);
  border: 2px solid var(--rule);
  border-radius: 50%;
  text-align: center;
  line-height: 25px;
  font: 700 13px Georgia, serif;
  color: var(--orange);
}
.how-steps li > div {
  font-size: 13.5px;
  color: var(--slate);
  line-height: 1.55;
}
.how-steps li strong { color: var(--navy-deep); }
.how-steps li em { background: #FFF2CC; padding: 0 4px; border-radius: 2px; font-style: normal; }
.how-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--paper);
  border-left: 3px solid var(--orange);
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.55;
}
.how-note strong { color: var(--navy-deep); }

/* ------------- Wizard form ------------- */
.wizard .step {
  margin-bottom: 18px;
  padding: 26px 30px;
}
.step-head { margin-bottom: 18px; }
.step-head h2 {
  display: inline-block;
  font: 600 20px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 4px 0;
  vertical-align: middle;
}
.step-num {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font: 700 14px -apple-system, sans-serif;
  text-align: center;
  line-height: 28px;
  margin-right: 12px;
  vertical-align: middle;
}
.step-sub {
  margin: 6px 0 0 40px;
  color: var(--slate);
  font-size: 13px;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 6px;
}
.deliverable { cursor: pointer; }
.deliverable input { position: absolute; opacity: 0; pointer-events: none; }
.deliverable-card {
  border: 2px solid var(--rule);
  border-radius: 8px;
  padding: 18px 16px 16px;
  background: white;
  transition: all 0.15s;
  height: 100%;
  position: relative;
}
.deliverable-card::before {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--rule);
  border-radius: 4px;
  background: white;
  transition: all 0.15s;
}
.deliverable input:checked ~ .deliverable-card {
  border-color: var(--orange);
  background: #FFF8F2;
  box-shadow: 0 2px 6px rgba(208,74,2,0.10);
}
.deliverable input:checked ~ .deliverable-card::before {
  background: var(--orange);
  border-color: var(--orange);
  content: "✓";
  color: white;
  font: 700 12px -apple-system, sans-serif;
  text-align: center;
  line-height: 14px;
}
.deliverable:hover .deliverable-card {
  border-color: var(--orange-light);
}
.deliverable-icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}
.deliverable-title {
  font: 600 15px Georgia, serif;
  color: var(--navy-deep);
  margin-bottom: 2px;
}
.deliverable-format {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.deliverable-summary {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.5;
}

.field {
  position: relative;
  margin-left: 40px;
}
.wizard input[type=text],
.wizard select {
  width: 100%;
  font-size: 15px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: white;
  color: var(--navy-deep);
  outline: none;
}
.wizard input[type=text]:focus,
.wizard select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(208,74,2,0.12);
}

.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-left: 40px;
}
.chip-actions {
  margin: 14px 0 0 40px;
  display: flex;
  gap: 14px;
}

.pill-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: 40px;
}
.pill {
  display: inline-block;
  cursor: pointer;
  position: relative;
}
.pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.pill span {
  display: inline-block;
  padding: 8px 16px;
  border: 1.5px solid var(--rule);
  border-radius: 22px;
  background: white;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  user-select: none;
}
.pill:hover span { border-color: var(--orange-light); }
.pill input:checked + span {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  font-weight: 600;
}

.optional-tag {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--slate);
  font: 500 10px -apple-system, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.link-btn {
  background: none;
  border: none;
  color: var(--orange);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: #B33F00; }

.run-bar {
  background: var(--navy-deep);
  color: white;
  border-radius: 8px;
  padding: 18px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.run-bar button {
  background: var(--orange);
  padding: 14px 28px;
  font-size: 14px;
  flex-shrink: 0;
}
.run-bar button:disabled { background: #3D5066; color: #94A3B8; }
.run-bar-status { flex: 1; }
.run-bar-summary {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rsi {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 14px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255,255,255,0.10);
  color: #94A3B8;
  border: 1px solid rgba(255,255,255,0.15);
}
.rsi.ok {
  background: rgba(208,74,2,0.16);
  border-color: rgba(208,74,2,0.45);
  color: #F4B183;
}
.run-bar-note {
  color: rgba(255,255,255,0.65);
  font-size: 12px;
  line-height: 1.5;
  max-width: 720px;
}
.autocomplete-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--rule);
  border-top: none;
  border-radius: 0 0 4px 4px;
  max-height: 240px;
  overflow-y: auto;
  z-index: 10;
}
.autocomplete-results .result {
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid #F1F1F1;
  font-size: 13px;
}
.autocomplete-results .result:hover { background: var(--paper); }
.autocomplete-results .result strong { color: var(--navy-deep); }
.autocomplete-results .result .cik { color: var(--slate-light); font-size: 11px; font-family: "SF Mono", Menlo, monospace; }
.chosen-issuer {
  background: var(--paper);
  border-left: 3px solid var(--orange);
  padding: 10px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 13px;
  margin-top: 10px;
}
.chosen-issuer strong { color: var(--navy-deep); }
.chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.chip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  align-items: flex-start;
  background: white;
  transition: border-color 0.15s, background 0.15s;
}
.chip:hover { border-color: var(--orange-light); }
.chip input[type=checkbox] { margin-top: 3px; accent-color: var(--orange); }
.chip-label { font-weight: 600; color: var(--navy-deep); margin-bottom: 2px; font-size: 13.5px; }
.chip-summary { color: var(--slate); font-size: 12px; line-height: 1.45; }
.chip input:checked ~ div .chip-label { color: var(--orange); }
.actions { display: flex; align-items: center; gap: 14px; }
button, .btn {
  background: var(--orange);
  color: white;
  border: none;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
button:hover:not(:disabled) { background: #B33F00; }
button:disabled { background: var(--rule); color: #999; cursor: not-allowed; }
.btn-secondary {
  background: white;
  color: var(--navy-deep);
  border: 1px solid var(--rule);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
}
.btn-secondary:hover { background: var(--paper); text-decoration: none; }
.actions-note { color: var(--slate-light); font-size: 12px; }

/* ------------- Tables ------------- */
table.tasks, table.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.facts-table { table-layout: auto; }
table.facts-table td.value-cell {
  word-break: normal;
  overflow-wrap: break-word;
  white-space: normal;
  font: 12.5px/1.5 Georgia, serif;
  color: var(--navy-deep);
  max-width: 360px;
}
table.facts-table td.value { white-space: nowrap; }
table.tasks th, table.tasks td,
table.facts-table th, table.facts-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #ECECEC;
  vertical-align: top;
}
table.tasks th, table.facts-table th {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--slate);
  font-weight: 600;
  border-bottom: 2px solid var(--orange);
}
table.facts-table tbody tr { cursor: pointer; transition: background 0.15s; }
table.facts-table tbody tr:hover { background: rgba(208,74,2,0.05); }
table.facts-table tbody tr.selected { background: rgba(208,74,2,0.12); }
.concept { font-weight: 500; color: var(--navy-deep); }
.conf { font-size: 11px; margin-top: 2px; }
td.value { text-align: right; white-space: nowrap; font-family: "SF Mono", Menlo, monospace; font-weight: 600; color: var(--navy-deep); }

/* ------------- Tags / status ------------- */
.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--slate);
  font-size: 10.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: 11px;
  margin-right: 4px;
}
.tag-derivatives { background: #FFE3CC; color: #B33F00; border-color: #F4B183; }
.tag-debt { background: #DCEEF2; color: #0B5C66; border-color: #B6D7DC; }
.tag-auditor_report { background: #E6E6F4; color: #4338CA; border-color: #C8C8E0; }
.tag-liquidity_securities { background: #DCFAE6; color: #166534; border-color: #B6E0C0; }
.tag-fair_value_hierarchy { background: #FFF2CC; color: #8A6D00; border-color: #ECD89B; }
.tag-credit_losses { background: #FCE7E7; color: #B91C1C; border-color: #EFC0C0; }
.tag-hedge_accounting { background: #E0EAFA; color: #1E3A8A; border-color: #C1D4F4; }

.status {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 11px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-weight: 600;
}
.status-queued { background: #E8E8E8; color: #475569; }
.status-resolving_issuer, .status-fetching_source, .status-parsing, .status-extracting {
  background: #FFF3E0; color: #B33F00;
}
.status-complete { background: #D4EDDA; color: #166534; }
.status-failed { background: #FEE2E2; color: var(--red); }
.status-large { padding: 6px 14px; font-size: 12px; }
.state {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 9px;
  background: #DCFAE6;
  color: #166534;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ------------- Page header / task header ------------- */
.page-header { margin-bottom: 22px; }
.page-header h1 { font: 600 26px Georgia, serif; color: var(--navy-deep); margin: 0 0 6px 0; }

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 26px;
  margin-bottom: 18px;
  gap: 20px;
}
.task-header h1 { font: 600 24px Georgia, serif; color: var(--navy-deep); margin: 0 0 6px 0; }
.task-meta { font-size: 13px; color: var(--slate); display: flex; gap: 6px; flex-wrap: wrap; }
.task-header-status { text-align: right; }
.status-message { font-size: 12px; margin-top: 6px; max-width: 360px; }

/* ------------- Pipeline strip (live AI progress) ------------- */
.pipeline-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 18px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 14px 18px;
}
.pipe-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 8px 12px;
  position: relative;
  opacity: 0.45;
  transition: all 0.25s;
}
.pipe-step + .pipe-step::before {
  content: "→";
  position: absolute;
  left: -8px;
  top: 14px;
  color: var(--slate-light);
  font-size: 14px;
  font-weight: 700;
}
.pipe-step-num {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--rule);
  align-items: center;
  justify-content: center;
  font: 700 11px Georgia, serif;
  color: var(--slate);
  margin-bottom: 6px;
}
.pipe-step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
}
.pipe-step-sub {
  font-size: 10.5px;
  color: var(--slate-light);
  margin-top: 2px;
}
.pipe-step.active { opacity: 1; }
.pipe-step.active .pipe-step-num {
  background: var(--orange);
  border-color: var(--orange);
  color: white;
  animation: pulseOrange 1.2s ease-in-out infinite;
}
.pipe-step.active .pipe-step-label { color: var(--navy-deep); }
.pipe-step.done { opacity: 1; }
.pipe-step.done .pipe-step-num {
  background: #D4EDDA;
  border-color: #B6E0C0;
  color: #166534;
}
.pipe-step.done .pipe-step-label { color: var(--navy-deep); }
@keyframes pulseOrange {
  0%, 100% { box-shadow: 0 0 0 0 rgba(208,74,2,0.45); }
  50% { box-shadow: 0 0 0 6px rgba(208,74,2,0); }
}

/* ------------- Deliverable bar ------------- */
.deliverable-bar {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.deliverable-bar-label {
  font-size: 10.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate);
  margin-right: 12px;
}
.deliverable-bar-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  background: white;
  border: 1.5px solid var(--rule);
  border-radius: 6px;
  text-decoration: none;
  color: var(--navy-deep);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.15s;
}
.dl-btn:hover {
  border-color: var(--orange);
  background: #FFF8F2;
  text-decoration: none;
}
.dl-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}
.dl-icon { font-size: 17px; }
.dl-name { color: var(--navy-deep); }
.dl-fmt {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
}

/* ------------- Tabs ------------- */
.tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 2px solid var(--rule);
  margin-bottom: 18px;
}
.tab {
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--slate);
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
}
.tab:hover { color: var(--navy-deep); text-decoration: none; }
.tab.active {
  color: var(--navy-deep);
  border-bottom-color: var(--orange);
}
.tabs-actions { margin-left: auto; padding-bottom: 6px; }

.tab-pane { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ------------- Source pane ------------- */
.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: flex-start;
}
.grid-two > * { min-width: 0; }
.source-pane h3 { margin-bottom: 10px; }
.source-meta {
  background: var(--paper);
  border-left: 3px solid var(--orange);
  padding: 12px 14px;
  border-radius: 0 4px 4px 0;
  font-size: 12.5px;
  color: var(--slate);
  margin-bottom: 14px;
}
.source-meta strong { color: var(--navy-deep); }
.source-meta code { background: #ECECEC; padding: 1px 6px; border-radius: 3px; color: #555; }
.source-meta .micro { font-size: 10px; margin-top: 6px; letter-spacing: 1px; text-transform: uppercase; }
.source-excerpt {
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 16px 18px;
  border-radius: 4px;
  font: 13px/1.65 Georgia, serif;
  color: var(--navy-deep);
  max-height: 420px;
  overflow-y: auto;
  white-space: normal;
}
.source-excerpt mark {
  background: #FFE0B2;
  color: var(--navy-deep);
  padding: 0 3px;
  border-radius: 2px;
  font-weight: 500;
}
.source-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #ECECEC;
  font-size: 11.5px;
  line-height: 1.7;
}

/* ------------- References panel (applicability) ------------- */
.references-panel {
  margin-top: 14px;
  padding: 12px 14px;
  background: #F8F9FC;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.references-title {
  font: 600 10px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate);
  margin-bottom: 10px;
}
.ref-row { padding: 8px 0; border-bottom: 1px dotted #E0E0E0; }
.ref-row:last-child { border-bottom: none; }
.ref-row-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 3px;
}
.ref-title { font-weight: 600; color: var(--navy-deep); font-size: 12.5px; }
.ref-pref { font-size: 10.5px; font-family: "SF Mono", Menlo, monospace; }
.ref-summary { font-size: 11.5px; line-height: 1.5; margin: 2px 0 4px 0; }
.ref-meta { display: flex; gap: 10px; font-size: 10px; flex-wrap: wrap; align-items: center; }
.ref-level {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 9px;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
}
.ref-level-binding_standard { background: #E0EAFA; color: #1E3A8A; }
.ref-level-reporting_taxonomy { background: #DCEEF2; color: #0B5C66; }
.ref-level-staff_guidance { background: #FFF2CC; color: #8A6D00; }
.ref-level-firm_methodology { background: #E6E6F4; color: #4338CA; }
.ref-level-practice_corpus { background: #F1F1F1; color: var(--slate); }
.ref-level-internal_product_schema { background: var(--paper); color: var(--slate); }
.ref-license {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 8px;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.ref-license-public_authoritative { background: #D4EDDA; color: #166534; }
.ref-license-licensed_required { background: #FCE7E7; color: #B91C1C; }
.ref-license-staff_publication { background: #FFF2CC; color: #8A6D00; }
.ref-license-taxonomy_concept { background: #DCEEF2; color: #0B5C66; }
.ref-license-uncertain { background: #F1F1F1; color: var(--slate); }
.ref-relation {
  font-size: 9.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--slate);
}

/* ------------- Reviewer actions ------------- */
.reviewer-actions {
  margin-top: 14px;
  padding: 12px 14px;
  background: #FAFAF6;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.reviewer-actions-title {
  font: 600 10px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate);
  margin-bottom: 8px;
}
.reviewer-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.rv-btn {
  background: white;
  color: var(--navy-deep);
  border: 1px solid var(--rule);
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.6px;
  border-radius: 4px;
  text-transform: none;
  cursor: pointer;
  transition: all 0.15s;
}
.rv-btn:hover { background: var(--paper); }
.rv-accept:hover { background: #D4EDDA; color: #166534; border-color: #B6E0C0; }
.rv-override:hover { background: #FFF2CC; color: #8A6D00; border-color: #ECD89B; }
.rv-reject:hover { background: #FCE7E7; color: #B91C1C; border-color: #EFC0C0; }
.reviewer-state { margin-top: 8px; font-size: 11.5px; }
.reviewer-history { margin-top: 8px; }
.reviewer-history-title {
  font: 600 10px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate);
  margin: 8px 0 6px 0;
}
.history-row {
  padding: 4px 0;
  font-size: 11.5px;
  border-top: 1px dashed #E0E0E0;
}
.history-row:first-of-type { border-top: none; }
.history-action {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 8px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-right: 6px;
}
.history-accept { background: #D4EDDA; color: #166534; }
.history-override { background: #FFF2CC; color: #8A6D00; }
.history-reject { background: #FCE7E7; color: #B91C1C; }
.history-meta { color: var(--slate-light); font-size: 10.5px; }
.history-reason { margin-top: 2px; font-style: italic; }

/* ------------- Task stats bar ------------- */
.task-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}
.stat-tile {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  padding: 12px 14px;
  border-radius: 4px;
}
.stat-tile .label {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
  margin-bottom: 4px;
}
.stat-tile .value {
  font: 600 22px Georgia, serif;
  color: var(--navy-deep);
}
.stat-tile .sub { font-size: 11px; color: var(--slate-light); margin-top: 2px; }

/* ------------- Hierarchy block ------------- */
.hierarchy {
  font: 12px/1.6 "SF Mono", Menlo, monospace;
  background: var(--paper);
  border-left: 3px solid var(--orange);
  padding: 14px 18px;
  border-radius: 0 4px 4px 0;
  color: var(--navy-deep);
}
.rules { padding-left: 22px; line-height: 1.7; font-size: 13px; }
.rules li { margin-bottom: 4px; }

/* ------------- Diagnostics tab ------------- */
.tab-count {
  display: inline-block;
  font-size: 9.5px;
  margin-left: 4px;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 1px;
}
.diag-list { margin-top: 16px; display: grid; gap: 22px; }
.diag-chip-group {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 16px 18px;
  background: #FBFAF6;
}
.diag-chip-title {
  font: 600 12px -apple-system, sans-serif;
  margin: 0 0 12px 0;
  display: flex;
  gap: 10px;
  align-items: center;
}
.diag-row {
  padding: 10px 0;
  border-top: 1px dashed #E0E0E0;
}
.diag-row:first-of-type { border-top: none; padding-top: 4px; }
.diag-row-head {
  display: flex;
  gap: 10px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.diag-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9.5px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 700;
}
.diag-status-legitimate_absence { background: #E0F0E5; color: #2C6B40; }
.diag-status-extraction_miss { background: #FFE3CC; color: #B33F00; }
.diag-status-format_mismatch { background: #FFF2CC; color: #8A6D00; }
.diag-status-uncertain { background: #F1F1F1; color: var(--slate); }
.diag-concept {
  font: 600 13.5px -apple-system, sans-serif;
  color: var(--navy-deep);
}
.diag-recovered {
  background: #D4EDDA;
  color: #166534;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 9px;
  font-weight: 600;
}
.diag-conf { font-size: 10.5px; }
.diag-analysis {
  font-size: 12.5px;
  color: var(--slate);
  line-height: 1.55;
  margin: 4px 0;
}
.diag-quote {
  font: italic 12.5px/1.55 Georgia, serif;
  color: var(--navy-deep);
  background: var(--paper);
  border-left: 3px solid var(--orange);
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  margin: 6px 0;
}
.diag-fix {
  font-size: 12px;
  margin-top: 6px;
  padding: 6px 10px;
  background: #FFF2CC;
  border-radius: 3px;
  color: var(--navy-deep);
}
.diag-fix strong { color: #8A6D00; }

/* ------------- Interactive checklist ------------- */
.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.checklist-progress {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
}
.small { font-size: 12px; }

.checklist-live { margin-top: 14px; display: grid; gap: 16px; }

.ph {
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: white;
  overflow: hidden;
  transition: opacity 0.2s;
}
.ph-head {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  background: linear-gradient(180deg, #FBF9F4 0%, white 100%);
  border-bottom: 1px solid #ECECEC;
}
.ph-head-main { min-width: 0; }
.ph-title {
  font: 600 14px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 2px 0;
}
.ph-sum { font-size: 11.5px; line-height: 1.45; }
.ph-wait {
  margin-top: 5px;
  font-size: 11px;
  color: #8A6D00;
  background: #FFF2CC;
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-block;
}
.ph-head-progress { text-align: right; }
.ph-progress { display: flex; align-items: center; gap: 8px; }
.ph-bar {
  width: 140px;
  height: 6px;
  background: var(--paper);
  border-radius: 3px;
  overflow: hidden;
}
.ph-bar-fill {
  height: 100%;
  background: var(--orange);
  transition: width 0.3s;
}
.ph-count {
  font: 600 12px "SF Mono", Menlo, monospace;
  color: var(--navy-deep);
}
.ph-state {
  font-size: 9.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--slate-light);
  margin-top: 4px;
}
.ph-complete .ph-state { color: #166534; }
.ph-complete .ph-bar-fill { background: #4FBF74; }
.ph-active .ph-state { color: var(--orange); }
.ph-waiting { opacity: 0.62; }
.ph-waiting .ph-state { color: #8A6D00; }
.ph-pending { opacity: 0.78; }
.ph-floating { border-style: dashed; }
.ph-floating .ph-head { background: var(--paper); }
.ph-floating .ph-title { color: var(--slate); }

.ph-items { padding: 8px 18px; }
.ph-empty { padding: 14px 0; }
.cl-row {
  display: grid;
  grid-template-columns: 28px 1fr 30px;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #ECECEC;
  align-items: flex-start;
  transition: opacity 0.2s;
}
.cl-row:last-child { border-bottom: none; }
.cl-row.checked { opacity: 0.55; }
.cl-row.checked .cl-text { text-decoration: line-through; color: var(--slate); }

.cl-box { position: relative; cursor: pointer; padding-top: 1px; }
.cl-box input { position: absolute; opacity: 0; pointer-events: none; }
.cl-box-tick {
  display: block;
  width: 22px;
  height: 22px;
  border: 2px solid var(--rule);
  border-radius: 5px;
  background: white;
  position: relative;
  transition: all 0.15s;
}
.cl-box:hover .cl-box-tick { border-color: var(--orange); }
.cl-box input:checked + .cl-box-tick {
  background: var(--orange);
  border-color: var(--orange);
}
.cl-box input:checked + .cl-box-tick::after {
  content: "";
  position: absolute;
  left: 6px; top: 2px;
  width: 6px; height: 12px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.cl-text { font-size: 14px; color: var(--navy-deep); line-height: 1.45; }
.cl-note { font-size: 12px; margin-top: 4px; line-height: 1.5; }
.cl-meta { font-size: 11px; margin-top: 4px; display: flex; gap: 8px; align-items: center; }
.cl-cat { font-size: 9.5px; }
.tag-source { background: #E0EAFA; color: #1E3A8A; border-color: #C1D4F4; }
.tag-scope { background: #FFE3CC; color: #B33F00; border-color: #F4B183; }
.tag-review { background: #DCFAE6; color: #166534; border-color: #B6E0C0; }
.tag-specific { background: #FFF2CC; color: #8A6D00; border-color: #ECD89B; }
.tag-custom { background: var(--paper); color: var(--slate); border-color: var(--rule); }

.cl-del {
  background: none;
  border: none;
  color: var(--slate-light);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  transition: all 0.15s;
}
.cl-del:hover { color: var(--red); background: #FCE7E7; }

.checklist-add {
  display: flex;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule);
}
.checklist-add input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  font-size: 13.5px;
  color: var(--navy-deep);
  outline: none;
}
.checklist-add input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(208,74,2,0.10);
}
.checklist-add button {
  padding: 10px 18px;
  font-size: 12px;
  letter-spacing: 1.2px;
  background: var(--navy-deep);
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  color: white;
  cursor: pointer;
}
.checklist-add button:hover { background: var(--orange); }

/* ------------- Breadcrumb + view header ------------- */
.breadcrumb {
  font-size: 12px;
  color: var(--slate-light);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}
.breadcrumb a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb span { margin: 0 6px; }
.breadcrumb .current { color: var(--navy-deep); font-weight: 600; }

.view-header {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 22px;
}
.view-header-main { display: flex; align-items: center; gap: 16px; }
.view-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  background: var(--paper);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.view-header h1 {
  font: 600 22px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 4px 0;
}
.view-meta { font-size: 13px; color: var(--slate); }
.view-meta code { font-size: 11px; background: var(--paper); padding: 1px 6px; border-radius: 3px; }
.view-actions { display: flex; gap: 10px; }

/* ------------- Deck view ------------- */
.deck-stage {
  display: grid;
  gap: 22px;
  margin-bottom: 28px;
}
.slide {
  background: white;
  border-radius: 10px;
  padding: 36px 44px;
  box-shadow: 0 4px 16px rgba(8,26,46,0.06);
  border: 1px solid var(--rule);
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: var(--orange);
}
.slide-cover {
  background: var(--navy-deep);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 70px;
}
.slide-cover::before { width: 6px; height: 100%; background: var(--orange); }
.slide-cover-mark {
  font: 700 italic 40px Georgia, serif;
  color: var(--orange);
  margin-bottom: 4px;
}
.slide-cover-kicker {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--orange-light);
  margin: 24px 0 14px 0;
  font-weight: 700;
}
.slide-cover-title {
  font: 700 44px Georgia, serif;
  color: white;
  margin: 0 0 18px 0;
  letter-spacing: -0.5px;
}
.slide-cover-sub {
  font-size: 16px;
  color: #CADCFC;
  font-style: italic;
  line-height: 1.6;
}
.slide-cover-foot {
  margin-top: auto;
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--orange);
  text-transform: uppercase;
  font-weight: 700;
}
.slide-eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 8px;
}
.slide-title {
  font: 700 28px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 8px 0;
}
.slide-sub {
  font-size: 13px;
  color: var(--slate);
  margin: 0 0 22px 0;
  font-style: italic;
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.stat-tile-dark {
  background: var(--navy-deep);
  color: white;
  padding: 18px;
  border-radius: 6px;
  border-top: 4px solid var(--orange);
}
.stat-tile-dark .stat-tile-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--orange-light);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 8px;
}
.stat-tile-dark .stat-tile-value {
  font: 700 26px Georgia, serif;
  color: white;
  line-height: 1.1;
}
.stat-tile-dark .stat-tile-unit {
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
  font-style: italic;
}
.claim-register {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 18px;
}
.claim-register-title {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 700;
  margin-bottom: 8px;
}
.claim-register-table { width: 100%; font-size: 11.5px; border-collapse: collapse; }
.claim-register-table th, .claim-register-table td {
  padding: 5px 8px;
  text-align: left;
  border-bottom: 1px dotted #ECECEC;
}
.claim-register-table th {
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1.5px solid var(--orange);
}
.claim-register-table .value { text-align: right; }
.claim-register-table .value-text { font-family: "SF Mono", Menlo, monospace; font-weight: 600; color: var(--navy-deep); }
.empty-section {
  background: var(--paper);
  border: 2px dashed var(--rule);
  border-radius: 6px;
  padding: 36px;
  text-align: center;
}
.empty-mark {
  font: 700 14px Georgia, serif;
  color: var(--orange);
  letter-spacing: 3px;
  margin-bottom: 8px;
}
.empty-text { font-size: 13px; color: var(--slate); font-style: italic; max-width: 480px; margin: 0 auto; }
.slide-provenance .prov-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
  margin-top: 12px;
  font-size: 12px;
}
.slide-provenance .prov-label {
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}
.slide-provenance .span-2 { grid-column: span 2; }
.slide-provenance .mono { font-family: "SF Mono", Menlo, monospace; font-size: 11px; }

/* ------------- Memo view ------------- */
.memo {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 56px 72px;
  max-width: 820px;
  margin: 0 auto 28px;
  font: 14.5px/1.7 Georgia, serif;
  color: var(--navy-deep);
}
.memo-disclaimer {
  font: italic 11.5px/1.6 -apple-system, sans-serif;
  color: var(--slate-light);
  background: var(--paper);
  border-left: 3px solid var(--orange);
  padding: 12px 16px;
  margin-bottom: 32px;
  border-radius: 0 4px 4px 0;
}
.memo-section { margin-bottom: 32px; }
.memo-section-title {
  font: 700 22px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 4px 0;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
}
.memo-section-sub {
  font-size: 12.5px;
  color: var(--slate);
  margin: 6px 0 18px 0;
  font-style: italic;
}
.memo-list dt {
  font-weight: 700;
  color: var(--navy-deep);
  margin-top: 10px;
}
.memo-list dd {
  margin: 2px 0 6px 0;
  padding-left: 0;
  color: var(--navy-deep);
}
.memo-value { font-weight: 700; font-family: "SF Mono", Menlo, monospace; }
/* Narrative facts (CAM/KAM rationale, opinion type prose, etc.) inherit
   the memo body's Georgia serif so a sentence of disclosure reads as
   prose — not as a wall of monospaced characters posing as a value. */
.memo-narrative {
  display: block;
  font: italic 14px/1.55 Georgia, serif;
  color: var(--navy-deep);
  margin: 4px 0 4px 0;
  padding: 6px 10px 6px 14px;
  border-left: 3px solid var(--paper-2, #e6e6e6);
  background: rgba(0,0,0,0.012);
  border-radius: 0 4px 4px 0;
}
.memo-unit { color: var(--slate); }
.memo-period { color: var(--slate-light); font-size: 12px; font-style: italic; }
.memo-fn { color: var(--orange); font-size: 9px; vertical-align: super; }
.memo-fn a { text-decoration: none; color: var(--orange); }
.memo-footnotes, .memo-source {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.memo-footnotes h3, .memo-source h3 {
  font: 600 12px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--slate);
  margin: 0 0 10px 0;
}
.memo-fn-row { font-size: 11px; color: var(--slate); margin: 4px 0; }
.fn-marker { color: var(--orange); font-weight: 700; margin-right: 6px; }

/* ------------- Sheet view ------------- */
.sheet-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding: 22px 26px;
}
.sheet-stat .label {
  font-size: 9.5px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  margin-bottom: 6px;
}
.sheet-stat .value {
  font: 700 24px Georgia, serif;
  color: var(--navy-deep);
}
.sheet-stat .value.mono { font-family: "SF Mono", Menlo, monospace; font-size: 14px; }
.sheet-section { padding: 22px 28px; }
.sheet-section-head { margin-bottom: 14px; }
.sheet-section-head h3 { margin: 0; }
.sheet-section .small { font-size: 12px; margin-top: 2px; }
.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.sheet-table th, .sheet-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid #F0F0F0;
  vertical-align: top;
}
.sheet-table th {
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 700;
  border-bottom: 2px solid var(--orange);
}
.sheet-table .num { text-align: right; }
.sheet-table .value { font-family: "SF Mono", Menlo, monospace; font-weight: 600; color: var(--navy-deep); }
.sheet-table .source-cell .anchor {
  font-size: 10px;
  background: var(--paper);
  padding: 1px 4px;
  border-radius: 2px;
  color: var(--slate);
}
.empty-sheet-row {
  font-size: 12px;
  color: var(--slate-light);
  padding: 16px;
  text-align: center;
  background: var(--paper);
  border-radius: 4px;
  font-style: italic;
}
.empty-sheet-row em { color: var(--orange); font-style: normal; letter-spacing: 1.5px; font-weight: 700; font-size: 10px; }

/* ------------- Checklist view ------------- */
.checklist-stage { display: grid; gap: 18px; margin-bottom: 28px; }
.checklist-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
}
.checklist-overall { display: flex; align-items: baseline; gap: 12px; }
.overall-pct {
  font: 700 44px Georgia, serif;
  color: var(--orange);
}
.overall-text {
  font-size: 14px;
  color: var(--slate);
}
.checklist-meta {
  display: flex;
  gap: 22px;
  font-size: 12px;
  color: var(--slate);
}
.checklist-meta strong { color: var(--navy-deep); }
.checklist-meta code { font-size: 11px; }

.checklist-layer-card { padding: 22px 28px; }
.layer-title {
  font: 600 11px -apple-system, sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 12px 0;
}
.checklist-big { list-style: none; margin: 0; padding: 0; }
.checklist-big li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid #F2F2F2;
  align-items: flex-start;
}
.checklist-big li:last-child { border-bottom: none; }
.check-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1.5px solid var(--rule);
  font: 700 12px -apple-system, sans-serif;
  flex-shrink: 0;
  margin-top: 1px;
}
.checklist-big li.done .check-box {
  background: #D4EDDA;
  border-color: #B6E0C0;
  color: #166534;
}
.check-text { font-size: 13.5px; color: var(--navy-deep); }
.check-note { font-size: 11.5px; margin-top: 2px; }
.checklist-disclaimer {
  text-align: center;
  font-size: 11.5px;
  font-style: italic;
  margin-top: 12px;
}

/* ------------- Review Memo view ------------- */
.review-memo {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 40px 56px;
  max-width: 880px;
  margin: 0 auto 28px;
}
.rm-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  margin-bottom: 28px;
  border-radius: 6px;
  background: #FFF2CC;
  border: 1px solid #ECD89B;
}
.rm-banner.signed {
  background: #D4EDDA;
  border-color: #B6E0C0;
}
.rm-status {
  font: 700 13px -apple-system, sans-serif;
  letter-spacing: 3px;
  color: #8A6D00;
}
.rm-banner.signed .rm-status { color: #166534; }
.rm-status-meta { font-size: 12px; color: var(--slate); }

.rm-section { margin-bottom: 32px; }
.rm-section:last-child { margin-bottom: 0; }
.rm-h {
  font: 600 16px Georgia, serif;
  color: var(--navy-deep);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
  margin: 0 0 14px 0;
}

.rm-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 28px;
  margin-top: 4px;
}
.rm-field label, .rm-field-static label {
  display: block;
  font: 600 10px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--slate);
  margin-bottom: 4px;
}
.rm-field input {
  width: 100%;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  color: var(--navy-deep);
  outline: none;
}
.rm-field input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(208,74,2,0.10);
}
.rm-field input:disabled {
  background: var(--paper);
  color: var(--slate);
}
.rm-field-static div {
  font-size: 14px;
  color: var(--navy-deep);
  padding: 9px 0;
}
.rm-field-static .mono { font-family: "SF Mono", Menlo, monospace; font-size: 12px; }

.rm-scope {
  list-style: none;
  padding: 0;
  margin: 0;
}
.rm-scope li {
  padding: 10px 0;
  border-bottom: 1px solid #F2F2F2;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.rm-scope li:last-child { border-bottom: none; }
.rm-chip-label { font-weight: 600; color: var(--navy-deep); min-width: 180px; }
.rm-chip-count { font-size: 12px; color: var(--slate); }
.rm-chip-flag {
  margin-left: auto;
  font-size: 11px;
  color: var(--orange);
  font-style: italic;
}
.rm-scope li.no-facts { background: #FFFBF5; }

.rm-source {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--paper);
  border-left: 3px solid var(--orange);
  border-radius: 0 4px 4px 0;
  display: grid;
  gap: 8px;
  font-size: 12.5px;
}
.rm-source label {
  font: 600 9.5px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--slate);
  margin-right: 8px;
}
.rm-source code { font-size: 11px; }

.rm-summary-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}
.rm-tile {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px 10px;
  text-align: center;
}
.rm-tile-num {
  font: 700 22px Georgia, serif;
  color: var(--navy-deep);
  line-height: 1.1;
  margin-bottom: 4px;
}
.rm-tile-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}

#rm-observation {
  width: 100%;
  min-height: 140px;
  font: 14px/1.6 Georgia, serif;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--navy-deep);
  outline: none;
  resize: vertical;
}
#rm-observation:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(208,74,2,0.10);
}
#rm-observation:disabled { background: var(--paper); color: var(--slate); }
.rm-save-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 6px;
}

.rm-exc-group { margin-bottom: 16px; }
.rm-exc-group h3 {
  font: 600 11px -apple-system, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 8px 0;
}
.rm-exc-group ul { padding-left: 20px; margin: 0; font-size: 13px; }
.rm-exc-group li { padding: 4px 0; color: var(--navy-deep); }
.rm-exc-group p.small { font-size: 12px; margin: 0 0 8px 0; }
.rm-exc-group-warn h3 { color: #8A6D00; }
.rm-exc-group-warn {
  border-left: 3px solid #D4A91A;
  padding: 8px 12px;
  background: #FBF5E0;
  border-radius: 0 4px 4px 0;
}
.rm-exc-group-good h3 { color: var(--green); }
.rm-exc-group-good {
  border-left: 3px solid var(--green);
  padding: 8px 12px;
  background: #E8F5EC;
  border-radius: 0 4px 4px 0;
  margin-top: 18px;
}
.rm-suggest {
  margin-top: 3px;
  color: var(--slate);
  font-style: italic;
}

.rm-signature { padding-top: 18px; border-top: 2px dashed var(--rule); }
.rm-sign-row { display: flex; align-items: center; gap: 16px; }
.rm-sign-btn, .rm-unlock-btn {
  padding: 12px 24px;
  font-size: 13px;
  letter-spacing: 1.2px;
  background: var(--navy-deep);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}
.rm-sign-btn:hover:not(:disabled) { background: var(--orange); }
.rm-sign-btn:disabled { background: #BCC3CC; cursor: not-allowed; color: #889099; }
.rm-unlock-btn { background: white; color: var(--navy-deep); border: 1.5px solid var(--rule); }
.rm-unlock-btn:hover { border-color: var(--orange); color: var(--orange); }

/* ------------- Footer ------------- */
.footbar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 32px;
  color: var(--slate-light);
  font-size: 11.5px;
  text-align: center;
  border-top: 1px solid var(--rule);
}
.footbar a { color: var(--slate); }

/* ============================================================
   Learning Ledger
   ============================================================ */

.nav-alert {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  color: white;
  background: var(--red, #B91C1C);
  border-radius: 8px;
  line-height: 1.4;
  vertical-align: middle;
}

.learning-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px;
}
.learning-head h1 { margin: 0 0 8px 0; font-family: Georgia, serif; color: var(--navy-deep); }
.learning-head p { max-width: 720px; }
.learning-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 24px 0;
}
.ll-tile {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.05s;
}
.ll-tile:hover { border-color: var(--navy-deep); }
.ll-tile:active { transform: translateY(1px); }
.ll-tile-num { font-size: 28px; font-weight: 700; color: var(--navy-deep); }
.ll-tile-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.ll-tile-sub { font-size: 11px; color: var(--slate-light); margin-top: 4px; }
.ll-tile-regressed { background: #FEE7E7; border-color: #F4B5B5; }
.ll-tile-regressed .ll-tile-num { color: var(--red, #B91C1C); }
.ll-tile-fixed { background: #E8F5EC; border-color: #B5D8C2; }
.ll-tile-fixed .ll-tile-num { color: var(--green, #166534); }

.learning-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.ll-fbtn {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  color: var(--slate);
}
.ll-fbtn.active { background: var(--navy-deep); color: white; border-color: var(--navy-deep); }

.learning-list { display: flex; flex-direction: column; gap: 12px; }
.ll-row {
  background: white;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--slate-light);
  border-radius: 6px;
  padding: 14px 18px;
}
.ll-state-regressed { border-left-color: var(--red, #B91C1C); background: #FFFAFA; }
.ll-state-open { border-left-color: #D4A91A; }
.ll-state-diagnosed { border-left-color: #2563EB; }
.ll-state-fixed { border-left-color: var(--green, #166534); background: #FBFEFB; }

.ll-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ll-pill {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.ll-pill-regressed { background: var(--red, #B91C1C); color: white; }
.ll-pill-open { background: #FBF5E0; color: #8A6D00; }
.ll-pill-diagnosed { background: #DBEAFE; color: #1E40AF; }
.ll-pill-fixed { background: #DCFCE7; color: var(--green, #166534); }
.ll-pill-status { background: #F1F5F9; color: var(--slate); }
.ll-concept { font-weight: 600; color: var(--navy-deep); }
.ll-chip-tag {
  font-size: 11px;
  padding: 1px 8px;
  background: #F1F5F9;
  border-radius: 10px;
  color: var(--slate);
}
.ll-count { margin-left: auto; font-size: 12px; color: var(--slate); }
.ll-regr {
  font-size: 11px;
  background: var(--red, #B91C1C);
  color: white;
  padding: 1px 6px;
  border-radius: 8px;
  margin-left: 4px;
}
.ll-meta { margin: 6px 0; }
.ll-suggest {
  background: #FFF8E0;
  border-left: 2px solid #D4A91A;
  padding: 8px 12px;
  border-radius: 0 4px 4px 0;
  margin: 8px 0;
  font-size: 13px;
}
.ll-detail { margin: 6px 0; font-size: 12.5px; }
.ll-detail summary { cursor: pointer; }
.ll-quote {
  margin: 6px 0 0 0;
  padding: 6px 10px;
  background: #F8FAFC;
  border-left: 2px solid var(--rule);
  font-family: -apple-system-mono, monospace;
  font-size: 12px;
  color: var(--slate);
  white-space: pre-wrap;
}
.ll-analysis { margin: 6px 0 0 0; color: var(--slate); }
.ll-block {
  background: #F8FAFC;
  border-radius: 4px;
  padding: 8px 12px;
  margin: 8px 0;
  border-left: 2px solid var(--navy-deep);
}
.ll-block-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 4px;
}
.ll-block-body { font-size: 13px; color: var(--navy-deep); }
.ll-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.ll-action {
  background: white;
  border: 1px solid var(--rule);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  color: var(--navy-deep);
}
.ll-action:hover { border-color: var(--navy-deep); }
.ll-action-primary { background: var(--navy-deep); color: white; border-color: var(--navy-deep); }
.ll-action-primary:hover { background: var(--orange); border-color: var(--orange); }
.ll-action-good { background: var(--green, #166534); color: white; border-color: var(--green, #166534); }

.ll-occurrences { margin-top: 10px; }
.ll-occ-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ll-occ-tbl th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--slate);
  border-bottom: 1px solid var(--rule);
  padding: 6px 8px;
}
.ll-occ-tbl td { padding: 6px 8px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.ll-occ-tbl tr:last-child td { border-bottom: none; }

.ll-modal {
  max-width: 520px;
  padding: 24px;
  border: 1px solid var(--rule);
  border-radius: 8px;
}
.ll-modal::backdrop { background: rgba(8, 26, 46, 0.4); }
.ll-modal h3 { margin: 0 0 8px 0; }
.ll-modal label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate);
  margin: 12px 0 0 0;
}
.ll-modal textarea, .ll-modal input {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 8px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  margin-top: 4px;
}
.ll-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  margin: 16px 0 0 0;
}
.ll-modal-actions button {
  padding: 6px 16px;
  font-size: 13px;
  border: 1px solid var(--rule);
  background: white;
  border-radius: 4px;
  cursor: pointer;
}

/* ============================================================
   Learning Court — repair obligation lifecycle pills + grid
   ============================================================ */

.ll-tile-attention { background: #FBF5E0; border-color: #D4A91A; }
.ll-tile-attention .ll-tile-num { color: #8A6D00; }
.ll-tile-muted { background: #F8FAFC; }
.ll-tile-muted .ll-tile-num { color: var(--slate); }

/* lifecycle states beyond open/diagnosed/fixed/regressed */
.ll-state-new { border-left-color: #D4A91A; }
.ll-state-repair_due { border-left-color: #1E40AF; }
.ll-state-in_progress { border-left-color: #7C3AED; }
.ll-state-fixed_pending_proof { border-left-color: #0891B2; background: #ECFEFF; }
.ll-state-waived_legitimate { border-left-color: var(--slate-light); background: #FBFCFD; opacity: 0.85; }

.ll-pill-new { background: #FBF5E0; color: #8A6D00; }
.ll-pill-repair_due { background: #DBEAFE; color: #1E40AF; }
.ll-pill-in_progress { background: #EDE9FE; color: #6D28D9; }
.ll-pill-fixed_pending_proof { background: #CFFAFE; color: #0E7490; }
.ll-pill-waived_legitimate { background: #F1F5F9; color: var(--slate); }

/* Severity pill */
.ll-pill-sev { font-size: 10px; }
.ll-sev-pill-hard_blocker { background: var(--red, #B91C1C); color: white; }
.ll-sev-pill-high { background: #FEE2E2; color: var(--red, #B91C1C); }
.ll-sev-pill-medium { background: #FEF3C7; color: #8A6D00; }
.ll-sev-pill-low { background: #DCFCE7; color: var(--green, #166534); }

/* Causality grid */
.ll-causality {
  background: #F8FAFC;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 8px 0;
}
.ll-cause-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}
.ll-cause-cell { font-size: 13px; }
.ll-cell-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 2px;
}
.ll-cell-body { color: var(--navy-deep); font-weight: 500; }
.ll-artifact { margin-top: 8px; font-size: 12px; color: var(--slate); }
.ll-artifact code {
  background: white;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid var(--rule);
  font-family: -apple-system-mono, monospace;
  font-size: 11.5px;
}

.ll-block-good {
  background: #ECFDF5;
  border-left: 2px solid var(--green, #166534);
}

/* Proof badge */
.ll-proof {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 2px 8px;
  border-radius: 8px;
  font-weight: 700;
}
.ll-proof-passed { background: var(--green, #166534); color: white; }
.ll-proof-failed { background: var(--red, #B91C1C); color: white; }
.ll-proof-pending { background: #F1F5F9; color: var(--slate); }

/* Tiles grid — accommodate six tiles */
.learning-tiles {
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1000px) {
  .learning-tiles { grid-template-columns: repeat(3, 1fr); }
}

.learning-filter {
  flex-wrap: wrap;
}

/* ============================================================
   Coverage page — "what is mapped, what is metadata-only, what is missing"
   ============================================================ */

.coverage-page { max-width: 1200px; margin: 0 auto; padding: 32px; }

.coverage-head h1 { margin: 0 0 8px 0; font-family: Georgia, serif; color: var(--navy-deep); }
.coverage-head > p { max-width: 760px; }

.cov-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin: 18px 0 16px 0;
}
@media (max-width: 1100px) { .cov-tiles { grid-template-columns: repeat(3, 1fr); } }

.cov-tile {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 16px 18px;
}
.cov-num { font-size: 28px; font-weight: 700; color: var(--navy-deep); }
.cov-label { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); margin-top: 4px; }
.cov-sub { font-size: 11px; color: var(--slate-light); margin-top: 4px; }
.cov-tile-good { background: #ECFDF5; border-color: #6EE7B7; }
.cov-tile-good .cov-num { color: var(--green); }
.cov-tile-warn { background: #FFFBEB; border-color: #FCD34D; }
.cov-tile-warn .cov-num { color: #8A6D00; }
.cov-tile-debt { background: #EFF6FF; border-color: #93C5FD; }
.cov-tile-debt .cov-num { color: #1E40AF; }

.cov-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 8px 0 24px 0;
  font-size: 12px;
  color: var(--slate);
}
.cov-status { font-weight: 700; margin-right: 4px; vertical-align: middle; }
.cov-status-ingested { color: var(--green); }
.cov-status-metadata { color: #8A6D00; }
.cov-status-debt { color: #1E40AF; }
.cov-status-planned { color: var(--slate-light); }

.cov-section { margin-bottom: 40px; }
.cov-h {
  font-family: Georgia, serif;
  font-size: 20px;
  color: var(--navy-deep);
  margin: 0 0 6px 0;
  border-bottom: 2px solid var(--orange);
  padding-bottom: 6px;
}
.cov-intro {
  color: var(--slate);
  font-size: 13.5px;
  max-width: 820px;
  margin: 6px 0 18px 0;
}
.cov-intro em { font-style: italic; }
.cov-subsection { margin-bottom: 24px; }
.cov-subh {
  font: 600 12px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--navy-deep);
  margin: 18px 0 10px 0;
}
.cov-count { color: var(--slate-light); font-weight: 400; margin-left: 4px; }

/* Source cards */
.cov-source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 900px) { .cov-source-list { grid-template-columns: 1fr; } }
.cov-source {
  background: white;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--slate-light);
  border-radius: 6px;
  padding: 14px 18px;
}
.cov-source-ingested { border-left-color: var(--green); background: #F8FEFB; }
.cov-source-metadata { border-left-color: #D4A91A; background: #FFFEF7; }
.cov-source-debt { border-left-color: #1E40AF; background: #F8FAFF; }
.cov-source-planned { border-left-color: var(--slate-light); background: #FBFCFD; opacity: 0.95; }
.cov-source-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
}
.cov-source-head h4 { margin: 0; color: var(--navy-deep); font: 600 15px Georgia, serif; }
.cov-source-full { color: var(--slate); font-size: 12px; margin-top: 2px; }
.cov-source-url { font-size: 11px; }
.cov-explain { font-size: 13px; color: var(--navy-deep); margin: 8px 0 10px 0; line-height: 1.5; }
.cov-covers { margin: 10px 0; padding: 8px 12px; background: rgba(0,0,0,0.02); border-radius: 4px; }
.cov-covers ul { margin: 4px 0 0 0; padding-left: 20px; font-size: 12.5px; }
.cov-covers li { padding: 1px 0; }
.cov-cell-label { font-size: 10px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); }
.cov-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 11.5px;
  color: var(--slate);
}
.cov-source-meta code {
  background: white;
  border: 1px solid var(--rule);
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 11px;
}
.cov-notes {
  margin-top: 10px;
  padding: 8px 12px;
  background: #FFF8E0;
  border-left: 2px solid #D4A91A;
  border-radius: 0 4px 4px 0;
  font-size: 12px;
  color: var(--slate);
  font-style: italic;
}

/* Authorities table */
.cov-tbl {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}
.cov-tbl thead {
  background: var(--paper);
  border-bottom: 2px solid var(--rule);
}
.cov-tbl th {
  text-align: left;
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
}
.cov-tbl td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cov-tbl tr:last-child td { border-bottom: none; }
.cov-auth-id { color: var(--slate); font-size: 11.5px; margin-bottom: 2px; }
.cov-auth-title { color: var(--navy-deep); font-weight: 600; }
.cov-auth-link { display: block; margin-top: 4px; }
.cov-kind-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: #F1F5F9;
  color: var(--slate);
  border-radius: 8px;
}
.cov-license-pill {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 8px;
  font-weight: 600;
}
.cov-license-pill-public_authoritative { background: var(--green); color: white; }
.cov-license-pill-licensed_required { background: #FEF3C7; color: #8A6D00; }
.cov-license-pill-taxonomy_concept { background: #DBEAFE; color: #1E40AF; }
.cov-license-pill-staff_publication { background: #E5E7EB; color: var(--slate); }
.cov-bind-count { text-align: right; }
.cov-bind-count strong { color: var(--navy-deep); font-size: 15px; }
.cov-license-licensed_required td { background: rgba(254, 243, 199, 0.25); }

/* Chips */
.cov-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.cov-chip-card {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 14px 16px;
}
.cov-chip-card h4 {
  margin: 0;
  color: var(--navy-deep);
  font: 600 14px Georgia, serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cov-chip-count {
  background: var(--orange);
  color: white;
  font: 600 11px -apple-system, sans-serif;
  padding: 1px 8px;
  border-radius: 10px;
}
.cov-chip-summary { font-size: 12.5px; color: var(--slate); margin: 6px 0 10px 0; }
.cov-chip-details summary { cursor: pointer; padding: 4px 0; }
.cov-chip-concepts {
  margin: 4px 0 8px 0;
  padding-left: 18px;
  font-size: 12px;
}
.cov-chip-concepts li { padding: 1px 0; }
.cov-chip-headings { margin: 4px 0 8px 0; padding-left: 18px; }
.cov-chip-headings code {
  background: var(--paper);
  padding: 1px 4px;
  border-radius: 2px;
  font-size: 11px;
}

/* Two-column generic */
.cov-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 900px) { .cov-twocol { grid-template-columns: 1fr; } }
.cov-flat { list-style: none; padding: 0; margin: 0; }
.cov-flat li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
}
.cov-flat li:last-child { border-bottom: none; }

/* Gap details */
.cov-gap-detail { margin-top: 8px; }
.cov-gap-list {
  margin: 8px 0 0 0;
  padding: 0;
  list-style: none;
  max-height: 280px;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.cov-gap-list li {
  padding: 5px 10px;
  border-bottom: 1px solid var(--rule);
}
.cov-gap-list li:last-child { border-bottom: none; }

.cov-foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  text-align: center;
}

/* ============================================================
   Coverage page — Section 0: honest relational depth
   ============================================================ */

.cov-tiles-breadth { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1200px) { .cov-tiles-breadth { grid-template-columns: repeat(3, 1fr); } }

.cov-section-honest {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 40px;
}

.cov-depth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 18px;
}
@media (max-width: 1100px) { .cov-depth-grid { grid-template-columns: 1fr; } }

.cov-depth-block {
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
  background: var(--paper);
}
.cov-depth-block .cov-subh { margin-top: 0; }

.cov-depth-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 8px;
}
.cov-depth-tbl th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--slate);
  padding: 4px 6px;
  border-bottom: 1px solid var(--rule);
}
.cov-depth-tbl td {
  padding: 6px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
}
.cov-depth-tbl tr:last-child td { border-bottom: none; }

.cov-cell-center { text-align: center; }
.cov-cell-depth { min-width: 130px; }
.cov-yes { color: var(--green); font-weight: 600; }
.cov-no { color: var(--slate-light); }

.cov-bar-track {
  display: inline-block;
  width: 80px;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  vertical-align: middle;
  overflow: hidden;
}
.cov-bar-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--green) 100%);
  border-radius: 4px;
}
.cov-bar-num {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  color: var(--slate);
  min-width: 28px;
}
.cov-bar-track-mini {
  display: inline-block;
  width: 40px;
  height: 5px;
  background: #E5E7EB;
  border-radius: 3px;
  overflow: hidden;
  vertical-align: middle;
}
.cov-bar-track-mini span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--green) 100%);
}

.cov-doc-list { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.cov-doc-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-size: 12.5px;
}
.cov-doc-note {
  margin-top: 12px;
  padding: 8px 12px;
  background: #FFF8E0;
  border-left: 2px solid #D4A91A;
  border-radius: 0 4px 4px 0;
  line-height: 1.55;
}

.cov-depth-twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 8px;
}
@media (max-width: 800px) { .cov-depth-twocol { grid-template-columns: 1fr; } }

.cov-mini-h {
  font: 600 11px -apple-system, sans-serif;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--slate);
  margin: 6px 0;
}
.cov-concept-depth-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12px;
}
.cov-concept-depth-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}
.cov-concept-label { color: var(--navy-deep); flex: 1; }

.cov-relation-aggregate {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cov-rel-row {
  display: grid;
  grid-template-columns: 1fr 120px 70px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.cov-rel-label { color: var(--navy-deep); }
.cov-rel-bar {
  display: block;
  height: 8px;
  background: #E5E7EB;
  border-radius: 4px;
  overflow: hidden;
}
.cov-rel-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--orange) 0%, var(--green) 100%);
}
.cov-rel-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  color: var(--slate);
}

.cov-honest-note {
  margin-top: 22px;
  padding: 14px 18px;
  background: #FFF8E0;
  border-left: 4px solid var(--orange);
  border-radius: 0 6px 6px 0;
  font-size: 13.5px;
  color: var(--navy-deep);
  line-height: 1.6;
}
.cov-honest-note code {
  background: white;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
}

/* ============================================================
   Coverage Section 0 — operational derivability matrix
   ============================================================ */

.cov-section-deriv {
  background: linear-gradient(180deg, #FBF5E0 0%, white 80%);
  border: 1px solid #D4A91A;
  border-radius: 8px;
  padding: 22px 26px;
  margin-bottom: 40px;
}

.cov-deriv-summary {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 12px;
  margin: 18px 0 24px 0;
}
@media (max-width: 800px) { .cov-deriv-summary { grid-template-columns: 1fr; } }
.cov-deriv-tile {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 18px;
}
.cov-deriv-tile-headline {
  background: var(--navy-deep);
  color: white;
  border-color: var(--navy-deep);
}
.cov-deriv-tile-headline .cov-num { color: var(--orange); }
.cov-deriv-tile-headline .cov-label { color: white; }
.cov-deriv-tile-headline .cov-sub { color: var(--orange-light); }

.cov-slice {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 16px;
}
.cov-slice-head h3 {
  margin: 0;
  font: 600 16px Georgia, serif;
  color: var(--navy-deep);
}
.cov-slice-score {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--slate);
}
.cov-slice-score strong { color: var(--navy-deep); }

.cov-matrix-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 12px;
}
.cov-matrix-tbl th {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
  padding: 6px 4px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}
.cov-matrix-tbl th:first-child { text-align: left; }
.cov-matrix-tbl td {
  padding: 8px 4px;
  border-bottom: 1px solid var(--rule);
  vertical-align: middle;
  text-align: center;
}
.cov-matrix-tbl td:first-child { text-align: left; }
.cov-matrix-tbl tr:last-child td { border-bottom: none; }

.cov-mtx-target { min-width: 36px; }
.cov-mtx-cell { font-size: 18px; line-height: 1; }
.cov-mtx-yes { color: var(--green); font-weight: 700; }
.cov-mtx-no { color: var(--slate-light); }

.cov-mtx-score { text-align: right; min-width: 90px; }
.cov-mtx-score strong { color: var(--navy-deep); font-size: 14px; }
.cov-mtx-gaps { font-size: 10.5px; max-width: 280px; }

.cov-mtx-full { background: #ECFDF5; }
.cov-mtx-prod { background: #F0F9FF; }
.cov-mtx-partial { background: #FFFBEB; }
.cov-mtx-thin { background: #FEF2F2; }

.cov-offices { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); }
.cov-office-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
@media (max-width: 1000px) { .cov-office-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cov-office-grid { grid-template-columns: 1fr; } }
.cov-office {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 12px 14px;
}
.cov-office-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.cov-office-head h4 {
  margin: 0;
  font: 600 14px Georgia, serif;
  color: var(--navy-deep);
}
.cov-office-targets {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.cov-office-targets code {
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10.5px;
}

.cov-rail-court {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
}
.cov-rail-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 14px 0 16px;
}
@media (max-width: 1000px) { .cov-rail-metrics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cov-rail-metrics { grid-template-columns: 1fr; } }
.cov-rail-metric {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 14px 16px;
}
.cov-rail-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  font-size: 12.5px;
}
.cov-rail-table th {
  text-align: left;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
  padding: 8px 10px;
  border-bottom: 2px solid var(--rule);
}
.cov-rail-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cov-rail-table tr:last-child td { border-bottom: none; }
.cov-rail-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--slate);
  background: var(--paper);
}
.cov-rail-status-open,
.cov-rail-status-commissioned,
.cov-rail-status-revision_requested {
  background: #FFFBEB;
  border-color: #FCD34D;
  color: #8A6D00;
}
.cov-rail-status-admitted,
.cov-rail-status-passed {
  background: #ECFDF5;
  border-color: #6EE7B7;
  color: var(--green);
}
.cov-rail-status-rejected,
.cov-rail-status-failed {
  background: #FEF2F2;
  border-color: #FCA5A5;
  color: var(--red);
}
.cov-rail-chain {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 800px) { .cov-rail-chain { grid-template-columns: 1fr; } }
.cov-rail-chain h4 {
  margin: 0 0 8px;
  font: 600 13px -apple-system, sans-serif;
  color: var(--navy-deep);
}
.cov-rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.cov-rail-list li {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid var(--rule);
  font-size: 12.5px;
}
.cov-rail-list li:last-child { border-bottom: none; }
.cov-rail-evidence {
  margin-top: 16px;
}
.cov-rail-evidence h4 {
  margin: 0 0 6px;
  font: 600 13px -apple-system, sans-serif;
  color: var(--navy-deep);
}
.cov-empty {
  background: white;
  border: 1px dashed var(--rule);
  border-radius: 6px;
  color: var(--slate);
  font-size: 13px;
  padding: 14px 16px;
}

/* ============================================================
   Workshop state machine (Section 0.7 on Coverage)
   ============================================================ */
.cov-section-workshop {
  background: linear-gradient(180deg, #ECFEFF 0%, white 80%);
  border: 1px solid #0891B2;
  border-radius: 8px;
  padding: 20px 24px;
  margin-bottom: 30px;
}
.cov-workshop-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin-top: 10px;
}
.cov-workshop-tbl th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--slate);
  padding: 8px 10px;
  border-bottom: 2px solid var(--rule);
}
.cov-workshop-tbl td {
  padding: 10px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.cov-ws-row.cov-ws-verified { background: #ECFDF5; }
.cov-ws-row.cov-ws-ingested { background: #F0F9FF; }
.cov-ws-row.cov-ws-adapter_built { background: #FFFBEB; }
.cov-ws-row.cov-ws-recon_done { background: #FAF5FF; }
.cov-ws-row.cov-ws-discovered { background: #F8FAFC; }

.cov-ws-track {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cov-ws-step {
  color: #CBD5E1;
  font-size: 16px;
  line-height: 1;
}
.cov-ws-step-on { color: var(--green); }
.cov-ws-label {
  margin-left: 8px;
  font-size: 11px;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 600;
}
.cov-ws-finding {
  max-width: 360px;
  color: var(--slate);
  line-height: 1.5;
}

/* depth_signal pills (honesty indicator) */
.cov-depth-pill {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 600;
}
.cov-depth-pill-verified { background: var(--green); color: white; }
.cov-depth-pill-moderate { background: #DBEAFE; color: #1E40AF; }
.cov-depth-pill-shallow { background: #FEF3C7; color: #8A6D00; }
.cov-depth-pill-paper_thin { background: #FEE2E2; color: var(--red); }
.cov-depth-pill-unmeasured { background: #F1F5F9; color: var(--slate); }

/* row tinting by depth so the eye flags the thin ones */
.cov-depth-shallow td:first-child { border-left: 3px solid #D4A91A; }
.cov-depth-paper_thin td:first-child { border-left: 3px solid var(--red); }
.cov-depth-moderate td:first-child { border-left: 3px solid #1E40AF; }
.cov-depth-verified td:first-child { border-left: 3px solid var(--green); }

/* ============================================================
   Package picker (wizard step 0) — reviewer feedback 2026-05-20
   ============================================================ */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-left: 40px;
}
.package-card {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--rule);
  border-radius: 8px;
  background: white;
  padding: 16px;
  transition: all 0.15s;
}
.package-card input[type=radio] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.package-card:hover { border-color: var(--orange-light); }
.package-card:has(input:checked) {
  border-color: var(--orange);
  background: #FFF8F2;
  box-shadow: 0 2px 6px rgba(208,74,2,0.10);
}
.package-card-title {
  font: 600 14px Georgia, serif;
  color: var(--navy-deep);
  margin-bottom: 6px;
}
.package-card-summary {
  font-size: 12px;
  color: var(--slate);
  line-height: 1.45;
  margin-bottom: 8px;
}
.package-card-meta {
  font-size: 10.5px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}
.package-card-custom {
  background: var(--paper);
  border-style: dashed;
}

/* ============================================================
   Issue-oriented spine (deck) — reviewer feedback 2026-05-20
   ============================================================ */
.slide-issue-overview {
  background: linear-gradient(180deg, #FFF8F2 0%, white 70%);
}
.issue-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.issue-overview-card {
  background: white;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--orange);
  border-radius: 6px;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}
.issue-overview-card:hover { border-color: var(--orange); }
.issue-overview-title { font: 600 14px Georgia, serif; color: var(--navy-deep); }
.issue-overview-stats {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
}

.slide-issue { background: white; }
.issue-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
@media (max-width: 1000px) {
  .issue-grid { grid-template-columns: 1fr 1fr; }
}
.issue-cell {
  background: #FBFCFD;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px;
}
.issue-cell-wide { grid-column: span 3; }
@media (max-width: 1000px) { .issue-cell-wide { grid-column: span 2; } }
.issue-cell-head {
  font: 600 10.5px -apple-system, sans-serif;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}
.issue-cell-list { margin: 0; padding-left: 16px; font-size: 12px; }
.issue-cell-list li { padding: 2px 0; color: var(--navy-deep); }
.issue-cell-list-small li { font-size: 11.5px; line-height: 1.4; }
.issue-cell-state {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 8px;
  background: #F1F5F9;
  color: var(--slate);
  margin-left: 6px;
}
.issue-cell-state-reviewer-accepted { background: #DCFCE7; color: var(--green); }
.issue-cell-state-overridden { background: #FEF3C7; color: #8A6D00; }
.issue-cell-state-rejected { background: #FEE2E2; color: var(--red); }
.issue-framework { font-size: 12px; margin-bottom: 6px; }
.issue-pitfalls {
  margin-top: 10px;
  padding: 8px 10px;
  background: #FFF8E0;
  border-left: 2px solid #D4A91A;
  border-radius: 0 4px 4px 0;
  font-size: 11.5px;
}
.issue-pitfalls-head { font-weight: 600; color: var(--slate); margin-bottom: 4px; }
.issue-pcaob-refs { margin-top: 6px; }

/* ============================================================
   Provenance Bundle deliverable view
   ============================================================ */
.provenance-view { max-width: 900px; margin: 0 auto; padding: 24px; }
.prov-header { margin-bottom: 20px; }
.prov-header h2 { font: 600 22px Georgia, serif; color: var(--navy-deep); margin: 0; }
.prov-hash {
  margin-top: 10px;
  padding: 8px 12px;
  background: var(--paper);
  border-left: 3px solid var(--orange);
  border-radius: 0 4px 4px 0;
  font-size: 12px;
}
.prov-hash-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
  margin-right: 8px;
}
.prov-actions { margin-top: 14px; }
.prov-download-btn {
  display: inline-block;
  padding: 8px 16px;
  background: var(--navy-deep);
  color: white;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
  text-decoration: none;
}
.prov-download-btn:hover { background: var(--orange); text-decoration: none; }
.prov-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 20px 0;
}
@media (max-width: 800px) { .prov-tiles { grid-template-columns: repeat(3, 1fr); } }
.prov-tile {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 12px;
  text-align: center;
}
.prov-tile-num {
  font: 700 22px Georgia, serif;
  color: var(--navy-deep);
}
.prov-tile-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 4px;
}
.prov-render { margin-top: 24px; }
.prov-markdown {
  background: #FBFCFD;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 600px;
  overflow-y: auto;
}

/* ============================================================
   Audit Committee Briefing — polished, board-pack style
   ============================================================ */
.ac-briefing-view {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px;
  font-family: Calibri, "Helvetica Neue", sans-serif;
  color: var(--navy-deep);
}
.ac-cover {
  background: linear-gradient(180deg, var(--navy-deep), #112545);
  color: white;
  padding: 36px 32px;
  border-radius: 8px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
.ac-cover::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
}
.ac-eyebrow {
  font: 600 10px Calibri, sans-serif;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.ac-title {
  font: 700 36px Georgia, "Times New Roman", serif;
  margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.ac-subtitle {
  font-size: 14px;
  color: #C9D5E4;
  margin-bottom: 22px;
}
.ac-subtitle code {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 11px;
  color: white;
}
.ac-attestation {
  font: italic 12.5px Georgia, serif;
  color: #B5C2D2;
  border-left: 2px solid var(--orange);
  padding-left: 12px;
  max-width: 520px;
  line-height: 1.5;
}
.ac-actions { margin-top: 22px; }
.ac-section-head {
  font: 600 16px Georgia, serif;
  color: var(--navy-deep);
  margin: 32px 0 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.ac-lead {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--slate);
  margin: 0 0 18px;
}
.ac-summary-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}
.ac-tile {
  background: white;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--orange);
  border-radius: 4px;
  padding: 14px 16px;
}
.ac-tile-num {
  font: 700 28px Georgia, serif;
  color: var(--navy-deep);
  line-height: 1;
}
.ac-tile-label {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
}
.ac-matter-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  margin-bottom: 16px;
  overflow: hidden;
}
.ac-matter-head {
  padding: 16px 18px 14px;
  background: #FAFBFD;
  border-bottom: 1px solid var(--rule);
}
.ac-matter-eyebrow {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.ac-matter-title {
  font: 600 17px Georgia, serif;
  color: var(--navy-deep);
  margin: 0 0 4px;
}
.ac-matter-summary {
  font-size: 12.5px;
  color: var(--slate);
  margin: 0;
  line-height: 1.5;
}
.ac-matter-body {
  padding: 14px 18px;
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 18px;
}
@media (max-width: 720px) {
  .ac-matter-body { grid-template-columns: 1fr; }
}
.ac-matter-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--rule);
  padding-right: 18px;
  min-width: 80px;
}
.ac-matter-stat-num {
  font: 700 26px Georgia, serif;
  color: var(--orange);
  line-height: 1;
}
.ac-matter-stat-label {
  font-size: 10px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-top: 6px;
}
.ac-matter-block-head {
  font: 600 10.5px Calibri, sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 6px;
}
.ac-matter-block ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--navy-deep);
}
.ac-matter-pitfalls li {
  color: var(--navy-deep);
}
.ac-q-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
}
.ac-q-table thead th {
  background: var(--navy-deep);
  color: white;
  text-align: left;
  padding: 10px 12px;
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.ac-q-table tbody td {
  padding: 10px 12px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
  line-height: 1.5;
}
.ac-q-num {
  font: 600 12px Georgia, serif;
  color: var(--orange);
  width: 36px;
}
.ac-q-topic {
  width: 200px;
  color: var(--slate);
  font-weight: 600;
}
.ac-q-text { color: var(--navy-deep); }
.ac-signoff { margin-top: 32px; }

/* ============================================================
   Examples gallery — public-facing showcase
   ============================================================ */

.examples-hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, #112545 60%, #1d3461 100%);
  color: white;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}
.examples-hero::before {
  content: '';
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 5px; background: var(--orange);
}
.examples-hero-inner { max-width: 880px; margin: 0 auto; }
/* .examples-hero-eyebrow — REMOVED 2026-05-20. Migrated to canonical
 * Eyebrow primitive (design/primitives/eyebrow.jinja). */
.examples-hero-title {
  font: 700 44px/1.1 Georgia, "Times New Roman", serif;
  margin: 0 0 18px; letter-spacing: -0.8px;
}
.examples-hero-lead {
  font: 400 16px/1.65 Georgia, serif;
  color: #D5DEEA; max-width: 720px; margin: 0;
}

.examples-grid {
  max-width: 1180px;
  margin: 48px auto 32px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
}
.example-card {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.example-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(8, 26, 46, 0.12);
  border-color: var(--accent);
}
.example-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.example-card-hero {
  background: linear-gradient(140deg, var(--navy-deep), #1a3158 80%);
  color: white;
  padding: 28px 28px 24px;
  position: relative;
}
.example-card-hero::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 4px; background: var(--accent);
}
/* .example-card-hero-eyebrow — REMOVED 2026-05-20. Migrated to canonical
 * Eyebrow primitive. The accent-color override is handled per-card via
 * the parent .example-card-hero scope. */
.example-card-title {
  font: 700 22px/1.2 Georgia, serif;
  color: white; margin: 0 0 6px;
  letter-spacing: -0.3px;
}
.example-card-subtitle {
  font-size: 12px; color: #B5C2D2;
}
.example-card-body {
  padding: 22px 28px 24px;
}
.example-card-blurb {
  font: 400 14px/1.55 Georgia, serif;
  color: var(--slate); margin: 0 0 18px;
}
.example-card-spotlight {
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}
.example-card-spotlight-head {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--slate); margin-bottom: 10px;
}
.example-card-spotlight-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 12px;
}
.example-card-spotlight-list li {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
}
.example-card-spot-icon { font-size: 14px; }
.example-card-spot-label {
  color: var(--navy-deep); font-weight: 600;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.example-card-spot-format {
  font-size: 10px; color: var(--slate-light);
  letter-spacing: 0.4px;
}
.example-card-cta {
  margin-top: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent);
}
.example-card-arrow {
  transition: transform 180ms ease;
}
.example-card:hover .example-card-arrow { transform: translateX(4px); }

.examples-promise {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  padding: 48px 24px 64px;
  margin-top: 32px;
}
.examples-promise-inner { max-width: 1180px; margin: 0 auto; }
/* .examples-promise-eyebrow — REMOVED 2026-05-20. Migrated to canonical
 * Eyebrow primitive. The margin-bottom is supplied by the parent layout. */
.examples-promise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.examples-promise-cell {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 18px 20px;
}
.examples-promise-cell-title {
  font: 600 14px Georgia, serif;
  color: var(--navy-deep); margin-bottom: 8px;
}
.examples-promise-cell p {
  font-size: 13px; line-height: 1.55;
  color: var(--slate); margin: 0;
}
.examples-promise-cell kbd {
  display: inline-block;
  font: 600 10px "SF Mono", Menlo, monospace;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1px 5px; border-radius: 3px; color: var(--navy-deep);
}

/* ============================================================
   Single-example overview
   ============================================================ */

.example-breadcrumb {
  max-width: 1180px; margin: 18px auto 0; padding: 0 24px;
  font-size: 12px;
}
.example-breadcrumb a {
  color: var(--slate); text-decoration: none;
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 1px;
}
.example-breadcrumb a:hover { color: var(--orange); }

.example-overview-hero {
  max-width: 1180px;
  margin: 22px auto 0;
  padding: 0 24px;
}
.example-overview-hero-inner {
  background: linear-gradient(135deg, var(--navy-deep), #1a3158 80%);
  color: white;
  padding: 40px 48px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}
.example-overview-hero-inner::before {
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 5px; background: var(--accent);
}
.example-overview-eyebrow {
  font: 600 10.5px Calibri, sans-serif;
  letter-spacing: 2.4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.example-overview-title {
  font: 700 34px/1.15 Georgia, serif;
  color: white; margin: 0 0 8px;
  letter-spacing: -0.5px;
}
.example-overview-subtitle {
  font-size: 13.5px; color: #B5C2D2; margin-bottom: 20px;
}
.example-overview-blurb {
  font: 400 15.5px/1.6 Georgia, serif;
  color: #DCE3EE; margin: 0 0 28px; max-width: 680px;
}
.example-overview-stats {
  display: flex; gap: 32px; flex-wrap: wrap;
}
.example-overview-stat {
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}
.example-overview-stat-num {
  font: 700 28px Georgia, serif;
  color: white; line-height: 1;
}
.example-overview-stat-label {
  font: 600 10px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: #B5C2D2; margin-top: 6px;
}

.example-section-head {
  max-width: 1180px; margin: 48px auto 6px; padding: 0 24px;
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--orange);
}
.example-section-sub {
  max-width: 1180px; margin: 0 auto 22px; padding: 0 24px;
  font-size: 13.5px; line-height: 1.55; color: var(--slate);
  max-width: 740px;
}

.example-artifacts { padding-bottom: 32px; }
.artifact-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.artifact-card {
  position: relative;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.artifact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(8, 26, 46, 0.1);
  border-color: var(--orange);
}
.artifact-card-link {
  display: block;
  padding: 22px 22px 56px;
  color: inherit;
  text-decoration: none;
  min-height: 160px;
}
.artifact-card-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 16px;
}
.artifact-card-format {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 6px;
}
.artifact-card-title {
  font: 600 16px/1.3 Georgia, serif;
  color: var(--navy-deep);
}
.artifact-summary {
  margin-top: 8px;
  font: 400 12.5px/1.45 Inter, system-ui, sans-serif;
  color: var(--slate);
  /* Clamp to three lines so cards stay visually uniform across artifacts. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
.artifact-card-foot {
  position: absolute;
  left: 22px; bottom: 14px; right: 56px;
  display: flex; align-items: center; gap: 6px;
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--slate);
}
.artifact-card-arrow {
  transition: transform 180ms ease;
}
.artifact-card:hover .artifact-card-foot { color: var(--orange); }
.artifact-card:hover .artifact-card-arrow { transform: translateX(3px); }
.artifact-card-pres {
  position: absolute;
  top: 18px; right: 14px;
  font: 600 10.5px Calibri, sans-serif;
  letter-spacing: 1.2px; text-transform: uppercase;
  background: var(--orange); color: white;
  padding: 4px 10px; border-radius: 100px;
  text-decoration: none;
}
.artifact-card-pres:hover { background: #B53F00; color: white; text-decoration: none; }
.artifact-card-download {
  position: absolute;
  right: 14px; bottom: 12px;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 6px;
  color: var(--slate);
  text-decoration: none;
  font-size: 14px;
  transition: all 150ms ease;
}
.artifact-card-download:hover {
  background: var(--paper);
  color: var(--orange);
  border-color: var(--orange);
  text-decoration: none;
}

.example-source {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
}
.example-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 22px 28px;
}
.example-source-label {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--slate-light); margin-bottom: 4px;
}
.example-source-grid > div > div:not(.example-source-label) {
  font-size: 13.5px; color: var(--navy-deep);
}
.example-source-grid .mono {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
}

/* ============================================================
   Reader — immersive single-artifact viewing
   ============================================================ */

:root {
  --reader-bg: #FAFAF6;
  --reader-surface: #FFFFFF;
  --reader-text: #0E2A47;
  --reader-text-muted: #475569;
  --reader-rule: #E6E5DE;
  --reader-accent: #D04A02;
  --reader-chrome-bg: rgba(255, 255, 255, 0.92);
  --reader-chrome-fg: #0E2A47;
  --reader-chrome-border: rgba(8, 26, 46, 0.08);
}
html[data-theme="dark"] {
  --reader-bg: #0A0F17;
  --reader-surface: #111927;
  --reader-text: #E7ECF3;
  --reader-text-muted: #94A3B8;
  --reader-rule: rgba(255, 255, 255, 0.08);
  --reader-accent: #F4B183;
  --reader-chrome-bg: rgba(10, 15, 23, 0.88);
  --reader-chrome-fg: #E7ECF3;
  --reader-chrome-border: rgba(255, 255, 255, 0.08);
}

.reader-body {
  margin: 0;
  background: var(--reader-bg);
  color: var(--reader-text);
  font-family: Charter, "Iowan Old Style", "Source Serif Pro", Georgia, serif;
  overflow: hidden;
  height: 100vh;
}

.reader-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 100;
  background: transparent;
}
.reader-progress-fill {
  height: 100%; width: 0;
  background: var(--reader-accent);
  transition: width 80ms ease-out;
}

.reader-chrome {
  position: fixed; top: 0; left: 0; right: 0;
  height: 54px; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 18px;
  background: var(--reader-chrome-bg);
  color: var(--reader-chrome-fg);
  border-bottom: 1px solid var(--reader-chrome-border);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
.reader-chrome-left { display: flex; align-items: center; min-width: 200px; }
.reader-back {
  display: flex; align-items: center; gap: 8px;
  color: var(--reader-text-muted);
  text-decoration: none;
  font: 600 12px Calibri, sans-serif;
  letter-spacing: 0.6px;
  overflow: hidden;
}
.reader-back-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border: 1px solid var(--reader-chrome-border);
  border-radius: 100px;
  font-size: 13px;
}
.reader-back-text {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
.reader-back:hover {
  color: var(--reader-accent);
  text-decoration: none;
}

.reader-chrome-center {
  display: flex; align-items: center; gap: 12px;
}
.reader-artifact-icon { font-size: 18px; line-height: 1; }
.reader-artifact-label {
  font: 600 14px Georgia, serif;
  color: var(--reader-chrome-fg);
}
.reader-artifact-format {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--reader-text-muted);
  padding: 2px 7px;
  border: 1px solid var(--reader-chrome-border);
  border-radius: 100px;
}

.reader-chrome-right {
  display: flex; align-items: center; gap: 6px;
  min-width: 200px; justify-content: flex-end;
}
.reader-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 30px; padding: 0 10px; min-width: 30px;
  background: transparent;
  border: 1px solid var(--reader-chrome-border);
  border-radius: 6px;
  color: var(--reader-chrome-fg);
  font: 600 12px Calibri, sans-serif;
  letter-spacing: 0.4px;
  text-decoration: none;
  cursor: pointer;
  transition: all 150ms ease;
}
.reader-btn:hover {
  background: rgba(208, 74, 2, 0.08);
  border-color: var(--reader-accent);
  color: var(--reader-accent);
  text-decoration: none;
}
.reader-btn-present { background: var(--reader-accent); color: white; border-color: var(--reader-accent); }
.reader-btn-present:hover { background: #B53F00; color: white; }
.reader-divider {
  width: 1px; height: 18px;
  background: var(--reader-chrome-border);
  margin: 0 4px;
}

.reader-stage {
  position: fixed; top: 54px; left: 0; right: 0; bottom: 0;
  background: var(--reader-bg);
}
.reader-frame {
  width: 100%; height: 100%;
  border: 0;
  background: var(--reader-surface);
}

/* .reader-help-overlay / .reader-help-modal / .reader-help-close —
 * REMOVED 2026-05-20. Migrated to canonical Modal primitive
 * (design/primitives/modal.jinja, static/primitives.css).
 * Per design/LAW.md: no bespoke modal class families. */
@keyframes reader-fade-in { from { opacity: 0; } to { opacity: 1; } }
.reader-help-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px;
  font-size: 13px;
}
.reader-help-grid kbd {
  display: inline-block;
  font: 600 11px "SF Mono", Menlo, monospace;
  background: rgba(208, 74, 2, 0.08);
  border: 1px solid var(--reader-rule);
  color: var(--reader-accent);
  padding: 1px 6px; border-radius: 4px;
  min-width: 14px; text-align: center;
  margin-right: 6px;
}
.reader-help-foot {
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--reader-rule);
  font: italic 12px Georgia, serif;
  color: var(--reader-text-muted);
}

/* When the artifact view is loaded inside the reader iframe, hide its
   own topbar/footer/breadcrumb chrome so we get an immersive surface.
   The workspace meta-bar above the topbar also leaks through — the
   reader popover has its own format eyebrow / counter / actions row,
   so we don't need a second ownership strip stacked on top of it. */
body.reader-embedded .meta-bar,
body.reader-embedded .topbar,
body.reader-embedded .footbar,
body.reader-embedded .breadcrumb { display: none !important; }
body.reader-embedded main {
  padding: 24px 32px;
  max-width: 920px;
  margin: 0 auto;
}

/* ============================================================
   Presentation — full-bleed deck
   ============================================================ */

.presentation-body {
  margin: 0; height: 100vh; width: 100vw;
  overflow: hidden;
  background: #050912;
  color: #E7ECF3;
  font-family: Calibri, "Helvetica Neue", sans-serif;
}
.presentation-stage {
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at top, #1a2740 0%, #050912 80%);
}
.pres-slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 5vh 7vw 12vh;
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 320ms ease, transform 320ms ease;
  pointer-events: none;
  overflow: hidden;
}
.pres-slide.active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.pres-slide-inner {
  max-width: 1280px; width: 100%;
  max-height: 100%;
  overflow: auto;
}

.pres-eyebrow {
  font: 600 12px Calibri, sans-serif;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 22px;
}
.pres-title {
  font: 700 56px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: -1px; color: #FFFFFF;
  margin: 0 0 18px;
}
.pres-sub {
  font: 400 19px/1.55 Georgia, serif;
  color: #B5C2D2; max-width: 880px; margin: 0;
}

.pres-slide-cover .pres-slide-inner {
  text-align: left; max-width: 1100px;
}
.pres-cover-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--orange); color: white;
  font: 800 24px Georgia, serif;
  border-radius: 100px; margin-bottom: 36px;
  letter-spacing: -1px;
}
.pres-cover-title {
  font: 700 88px/1.05 Georgia, "Times New Roman", serif;
  letter-spacing: -2.4px;
  color: white;
  margin: 0 0 24px;
}
.pres-cover-sub {
  font: 400 21px/1.55 Georgia, serif;
  color: #C5D0DE;
  margin: 0 0 56px;
}
.pres-cover-foot {
  font: italic 14.5px/1.6 Georgia, serif;
  color: #94A3B8;
  border-left: 2px solid var(--orange);
  padding-left: 14px; max-width: 580px;
}

.pres-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px; margin-top: 36px;
}
.pres-overview-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--orange);
  border-radius: 6px;
  padding: 22px 24px;
}
.pres-overview-title {
  font: 600 19px Georgia, serif; color: white;
  margin-bottom: 12px;
}
.pres-overview-stats {
  display: flex; gap: 18px; font-size: 13px; color: #B5C2D2;
}
.pres-overview-stats strong {
  color: var(--orange-light); font-weight: 700; font-size: 15px;
}

.pres-issue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}
@media (max-width: 1024px) { .pres-issue-grid { grid-template-columns: repeat(2, 1fr); } }
.pres-issue-cell {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 18px 20px;
}
.pres-cell-head {
  font: 600 10px Calibri, sans-serif;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 10px;
}
.pres-cell-list {
  margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.6;
  color: #DCE3EE;
}
.pres-cell-list-small li { font-size: 12px; line-height: 1.5; }
.pres-cell-list strong { color: white; font-weight: 600; }
.pres-cell-framework {
  font-size: 13px; color: #DCE3EE; margin-bottom: 6px;
}
.pres-cell-framework strong { color: var(--orange-light); font-weight: 700; }
.pres-cell-empty {
  font: italic 12px Georgia, serif;
  color: #94A3B8; margin: 0;
}
.pres-cell-muted { color: #94A3B8; font-size: 11.5px; }

.pres-stat-row {
  display: flex; gap: 18px; flex-wrap: wrap;
  margin: 28px 0;
}
.pres-stat-tile {
  flex: 1 1 200px;
  background: linear-gradient(140deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 22px 24px;
}
.pres-stat-label {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--orange); margin-bottom: 8px;
}
.pres-stat-value {
  font: 700 40px Georgia, serif;
  color: white; line-height: 1; letter-spacing: -1px;
}
.pres-stat-unit {
  font-size: 12px; color: #B5C2D2; margin-top: 6px;
}

.pres-claim-table {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 18px 22px;
}
.pres-claim-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.pres-claim-table th {
  text-align: left;
  font: 600 10px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--orange);
  padding: 6px 10px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.pres-claim-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: #DCE3EE;
}
.pres-claim-table .pres-value { color: white; font-weight: 600; }
.pres-claim-table .pres-muted { color: #94A3B8; font-size: 11.5px; }

.pres-empty {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  background: rgba(208, 74, 2, 0.08);
  border: 1px dashed var(--orange);
  border-radius: 6px;
  padding: 22px 26px;
  margin-top: 18px;
}
.pres-empty-mark {
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 2.4px; color: var(--orange);
  margin-bottom: 8px;
}
.pres-empty-text {
  font: italic 14px Georgia, serif;
  color: #DCE3EE; max-width: 560px; line-height: 1.5;
}

.pres-prov-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
  font-size: 13px; color: #DCE3EE;
}
.pres-prov-grid > div { background: rgba(255,255,255,0.03); padding: 14px 16px; border-radius: 4px; }
.pres-prov-grid .span-2 { grid-column: span 4; }
@media (min-width: 1100px) { .pres-prov-grid .span-2 { grid-column: span 2; } }
.pres-prov-label {
  font: 600 9.5px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--orange); display: block; margin-bottom: 4px;
}
.pres-prov-grid .mono { font-family: "SF Mono", Menlo, monospace; font-size: 11px; word-break: break-all; }
.pres-prov-grid .small { font-size: 11px; }

.pres-chrome {
  position: fixed; left: 0; right: 0; bottom: 0;
  height: 56px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
  background: linear-gradient(0deg, rgba(5,9,18,0.95), rgba(5,9,18,0.7));
  border-top: 1px solid rgba(255,255,255,0.06);
  z-index: 30;
  backdrop-filter: blur(12px);
}
.pres-progress {
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: rgba(255,255,255,0.05);
}
.pres-progress-fill {
  height: 100%; width: 0;
  background: var(--orange);
  transition: width 250ms ease;
}
.pres-chrome-left { display: flex; align-items: center; gap: 14px; }
.pres-exit {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  color: #DCE3EE; text-decoration: none;
  font-size: 18px; line-height: 1;
}
.pres-exit:hover { background: rgba(255,255,255,0.06); color: white; text-decoration: none; }
.pres-context {
  font: 600 11px Calibri, sans-serif;
  letter-spacing: 1.4px; text-transform: uppercase;
  color: #94A3B8;
}

.pres-chrome-center {
  display: flex; align-items: center; gap: 10px;
}
.pres-nav-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #DCE3EE;
  width: 30px; height: 30px;
  border-radius: 6px;
  font-size: 14px; cursor: pointer;
  transition: all 150ms ease;
}
.pres-nav-btn:hover { background: rgba(255,255,255,0.06); color: white; }
.pres-counter {
  font: 600 13px "SF Mono", Menlo, monospace;
  color: white; min-width: 64px; text-align: center;
}
.pres-counter span { color: white; }

.pres-chrome-right { display: flex; align-items: center; gap: 8px; }
.pres-icon-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.12);
  color: #DCE3EE;
  width: 30px; height: 30px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
}
.pres-icon-btn:hover { background: rgba(255,255,255,0.06); color: white; }

/* .pres-toc-overlay / .pres-toc-modal / .pres-toc-close —
 * REMOVED 2026-05-20. Migrated to canonical Modal primitive.
 * Per design/LAW.md: no bespoke modal class families. */
.pres-toc-list {
  list-style: none; padding: 0; margin: 0;
  overflow-y: auto;
}
.pres-toc-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 120ms ease;
  color: #DCE3EE;
}
.pres-toc-item:hover { background: rgba(255,255,255,0.05); }
.pres-toc-item.active { background: rgba(208,74,2,0.18); color: white; }
.pres-toc-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 100px;
  background: rgba(255,255,255,0.06);
  font: 600 12px "SF Mono", Menlo, monospace;
  color: var(--orange);
}
.pres-toc-item.active .pres-toc-num { background: var(--orange); color: white; }
.pres-toc-name {
  font: 600 14px Georgia, serif;
}

/* ============================================================
   Mobile collapse for rigid tile / stat grids
   ============================================================
   Several pages declare `grid-template-columns: repeat(N, 1fr)`
   with no responsive collapse. At 375px width, a 6-col grid gives
   each cell ~50px, a 4-col grid gives ~80px — unreadable. Each
   tile/stat grid below stacks to a single column at ≤720px.
   Coverage tile grids (.cov-tiles, .cov-tiles-breadth) already
   have intermediate collapses to 3-col and similar — this rule
   completes the chain down to 1-col at phone width. */
@media (max-width: 720px) {
  .deliverables,
  .pipeline-strip,
  .task-stats,
  .sheet-stats,
  .rm-summary-tiles,
  .learning-tiles,
  .cov-tiles,
  .cov-foot,
  .cov-office-grid,
  .slide-provenance .prov-grid {
    grid-template-columns: 1fr !important;
  }
}

}
