:root {
  color-scheme: light;
  --ink: #172b31;
  --ink-soft: #40545a;
  --paper: #f7f2e9;
  --paper-deep: #ece4d8;
  --white: #fffdf8;
  --line: #c8c3b8;
  --accent: #de754c;
  --accent-deep: #a94323;
  --focus: #0878a3;
  --success: #215e4a;
  --warning: #8b451e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .7; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: #f1b498; color: var(--ink); }
.shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 50; top: -100px; left: 16px; padding: 10px 16px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
.skip-link:focus { top: 12px; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.2; }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; letter-spacing: -.015em; }
.brand small { display: block; margin-top: 4px; color: var(--ink-soft); font-size: .68rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
.site-header nav { display: flex; flex-wrap: wrap; gap: clamp(14px, 2.4vw, 34px); }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .9rem; font-weight: 750; }
.site-header nav a:hover, .text-link:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { overflow: hidden; background: var(--ink); color: var(--white); position: relative; }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(#9cb6b8 1px, transparent 1px), linear-gradient(90deg, #9cb6b8 1px, transparent 1px); background-size: 70px 70px; mask-image: linear-gradient(90deg, transparent 20%, #000 100%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: clamp(40px, 7vw, 100px); align-items: center; padding-block: clamp(72px, 9vw, 130px); }
.eyebrow { margin: 0 0 18px; color: var(--accent-deep); font-size: .75rem; font-weight: 850; letter-spacing: .14em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow { color: #ffbd9d; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, .forecast-panel h3, .about-copy .lead { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
h1 { max-width: 760px; font-size: clamp(3.1rem, 6vw, 6.25rem); line-height: 1.03; letter-spacing: -.055em; margin-bottom: 24px; }
h1 em { color: #ee9a75; font-weight: 500; }
.hero-intro { max-width: 650px; font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.62; color: #d8e0df; }
.hero-actions, .about-links { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 2px solid transparent; border-radius: 3px; min-height: 48px; padding: 11px 19px; font-weight: 800; font-size: .94rem; line-height: 1.2; text-decoration: none; transition: transform .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.button-primary:hover { background: #efa17e; border-color: #efa17e; }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button-secondary:hover { background: var(--paper-deep); }
.text-link { font-size: .94rem; font-weight: 800; text-decoration: none; text-underline-offset: 4px; }
.hero .text-link { color: var(--white); }

.hero-document { position: relative; transform: rotate(2deg); background: var(--paper); color: var(--ink); min-height: 390px; padding: clamp(25px, 3vw, 42px); box-shadow: 18px 22px 0 #0c1e22, 0 24px 60px #071a1db0; border: 1px solid #fff; }
.document-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); font-size: .63rem; font-weight: 850; letter-spacing: .08em; }
.document-kicker { margin: 55px 0 5px; text-transform: uppercase; letter-spacing: .18em; font-size: .68rem; font-weight: 850; }
.document-result { margin: 0 0 24px; font-family: Georgia, serif; font-size: clamp(3.8rem, 5vw, 5.6rem); line-height: 1; letter-spacing: -.065em; }
.document-result span { color: var(--accent-deep); }
.document-rule { height: 1px; background: var(--line); }
.document-note { max-width: 240px; margin: 17px 0 0; color: var(--ink-soft); font-size: .82rem; line-height: 1.5; }
.document-stamp { position: absolute; right: 35px; bottom: 35px; display: grid; place-items: center; width: 100px; height: 100px; border: 5px double var(--accent-deep); border-radius: 50%; color: var(--accent-deep); text-align: center; font-weight: 900; font-size: .73rem; letter-spacing: .1em; line-height: 1.25; transform: rotate(-12deg); }

.trust-strip { background: var(--accent); color: var(--ink); }
.trust-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 25px; padding-block: 14px; text-transform: uppercase; font-size: .69rem; font-weight: 900; letter-spacing: .1em; }
.trust-inner span::before { content: "◆"; font-size: .55rem; margin-right: 10px; }
.section { padding-block: clamp(70px, 8vw, 110px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 34px; }
.section-heading h2, .about-grid h2 { font-size: clamp(2.2rem, 4vw, 3.9rem); line-height: 1.12; letter-spacing: -.04em; margin-bottom: 0; }
.section-heading > p, .section-heading > div:last-child:not(:first-child) { max-width: 380px; color: var(--ink-soft); }
.section-heading > div:last-child p { margin-bottom: 15px; }
.panel { background: var(--white); border: 1px solid var(--line); box-shadow: 0 8px 0 #d8d1c5; }
.demo-workspace { display: grid; gap: clamp(32px, 4vw, 48px); }
.precedent-panel { padding: clamp(22px, 3vw, 38px); min-width: 0; }
.precedent-panel h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.12; }
.precedent-panel > p, .precedent-source { color: var(--ink-soft); }
.precedent-form { display: grid; gap: 12px; margin-block: 24px; max-width: 46rem; }
.precedent-form select { max-width: 100%; width: 100%; min-height: 48px; height: max(48px, 3rem); padding: 10px 12px; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink); font: inherit; }
.precedent-form .button { justify-self: start; }
.precedent-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 20px; }
#precedent-case { min-width: 0; scroll-margin-block: 24px; }
#precedent-steps summary { grid-template-columns: 22px minmax(0,1fr) minmax(0,90px); }
#precedent-steps .personnel-office, .precedent-source, #precedent-status { overflow-wrap: anywhere; }
.demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; align-items: stretch; }
.mandate-panel, .output-panel, .forecast-panel { padding: clamp(22px, 3vw, 38px); }
.demo-section .section-heading h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.9rem); line-height: 1.12; letter-spacing: -.04em; }
.mandate-panel h2, .output-panel h2 { font-size: 1.5rem; line-height: 1.2; margin-bottom: 24px; }
.output-panel { display: block; align-self: start; }
.output-panel .output-heading { flex-wrap: wrap; align-items: center; margin-bottom: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.output-panel .output-heading h2 { margin: 0; }
.output-panel .terminal { min-height: 0; height: clamp(6rem, 16dvh, 11rem); max-height: none; padding: clamp(18px, 2vw, 26px); background: var(--ink); color: var(--white); border-color: var(--ink); font-size: .95rem; line-height: 1.7; }
.demo-section .run-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.demo-section .forecast-panel { margin: 0; }
.demo-section .forecast-panel h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.12; letter-spacing: -.035em; }
.demo-section .forecast-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.demo-section .forecast-list div { display: block; border-top: 1px solid var(--line); border-bottom: 0; padding-top: 12px; }
.demo-section .forecast-list dd { margin-top: 8px; }
label { display: block; font-weight: 850; font-size: 1rem; }
.field-help { margin: 5px 0 15px; color: var(--ink-soft); font-size: .88rem; }
.form-row { display: flex; gap: 10px; align-items: stretch; }
input#limit { flex: 1; min-width: 0; width: 100%; min-height: 52px; background: #fff; color: var(--ink); border: 2px solid var(--ink); border-radius: 3px; padding: 8px 12px; font-weight: 800; font-size: 1.15rem; }
input[aria-invalid=true] { border-color: #a94323; }
.field-error { min-height: 1.3em; margin: 8px 0 0; color: #92351d; font-size: .84rem; font-weight: 750; }
.presets { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 19px 0 22px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: .82rem; }
.presets button { min-width: 48px; min-height: 36px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); color: var(--ink); font-weight: 800; }
.presets button:hover { border-color: var(--ink); background: var(--paper-deep); }
.pace-control { padding: 19px 0 2px; }
.pace-control label { margin-bottom: 8px; font-size: .86rem; }
.pace-control select { width: 100%; min-height: 48px; padding: 9px 13px; border: 2px solid var(--ink); border-radius: 3px; background: var(--white); color: var(--ink); font: inherit; }
.pace-control p { margin: 8px 0 0; color: var(--ink-soft); font-size: .78rem; }
.run-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding-block: 22px; }
.run-meta > div { min-width: 0; }
.run-meta strong, .meta-label { display: block; }
.meta-label { color: var(--ink-soft); font-size: .71rem; font-weight: 850; text-transform: uppercase; letter-spacing: .1em; }
.run-meta strong { overflow-wrap: anywhere; font-size: 1.14rem; }
.trace-receipt { display: flex; flex-direction: column; gap: 3px; padding: 0 0 18px; }
.trace-receipt code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85rem; font-weight: 800; }
.trace-receipt small { color: var(--ink-soft); font-size: .72rem; }
.inline-status { min-height: 25px; margin-bottom: 14px; font-size: .83rem; color: var(--ink-soft); }
.output-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.output-heading h3 { margin-bottom: 9px; font-size: .95rem; }
.output-heading span { font-size: .78rem; color: var(--ink-soft); }
.terminal { min-height: 240px; max-height: 340px; overflow: auto; margin: 0; padding: 21px 24px; background: #12252a; color: #e9f4ef; border: 1px solid #12252a; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9rem; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.forecast-panel { background: var(--paper-deep); }
.forecast-panel h3 { max-width: 320px; font-size: clamp(1.7rem, 2.4vw, 2.3rem); line-height: 1.12; letter-spacing: -.035em; }
.forecast-panel > p:not(.eyebrow, .fine-print) { color: var(--ink-soft); font-size: .9rem; }
.forecast-list { margin: 28px 0 18px; }
.forecast-list div, .audit-summary dl div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid #c8c0b4; }
.forecast-list dt, .audit-summary dt { color: var(--ink-soft); }
.forecast-list dd, .audit-summary dd { margin: 0; font-weight: 850; font-variant-numeric: tabular-nums; }
.forecast-list .total { border-bottom: 0; padding-top: 16px; color: var(--ink); font-weight: 850; }
.fine-print { font-size: .76rem; color: var(--ink-soft); line-height: 1.5; }

.operations-section { background: #e9e2d6; border-top: 1px solid #d2c9ba; border-bottom: 1px solid #d2c9ba; }
.operations-section .section-heading { margin-bottom: 16px; }
.operations-section .inline-status { margin-bottom: 24px; }
.operations-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; }
.operation-card { display: flex; flex-direction: column; min-height: 235px; padding: 22px; background: var(--ink); color: var(--white); }
.card-index { font-size: .7rem; color: #ee9a75; font-weight: 900; letter-spacing: .12em; }
.operation-card h3 { margin: 25px 0 5px; font-family: Georgia, serif; font-size: 1.28rem; font-weight: 500; }
.operation-card p { color: #c2d1cf; font-size: .78rem; }
.operation-card strong { margin-top: auto; font-size: 1.03rem; overflow-wrap: anywhere; }
.operation-card a { align-self: start; margin-top: 14px; color: #ffc4a5; font-size: .75rem; font-weight: 800; text-underline-offset: 3px; }
.audit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.canary-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 32px; margin-top: 22px; padding: clamp(22px, 3vw, 36px); }
.canary-panel h3 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 1.45rem; }
.canary-panel p { max-width: 620px; }
.canary-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.canary-actions strong { font-size: 1.05rem; }
.canary-actions .status-good { color: var(--success); }
.canary-actions .status-warn { color: var(--warning); }
.canary-panel .inline-status { grid-column: 1 / -1; margin: 0; }
.audit-summary { padding: clamp(22px, 3vw, 36px); }
.audit-summary h3 { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; margin-bottom: 8px; }
.audit-summary dl { margin: 0 0 24px; }
.audit-summary details { border-top: 1px solid var(--line); padding-top: 17px; }
.audit-summary summary { cursor: pointer; font-size: .88rem; font-weight: 800; }
.audit-summary details pre { overflow: auto; max-height: 240px; padding: 14px; color: #e9f4ef; background: var(--ink); font-size: .72rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.status-good { color: #b8efd2; }
.status-warn { color: #ffd3a2; }

.about-grid { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr); gap: clamp(35px, 8vw, 120px); }
.about-copy { max-width: 670px; }
.about-copy .lead { font-size: clamp(1.5rem, 2.5vw, 2.25rem); line-height: 1.3; letter-spacing: -.025em; color: var(--ink); }
.about-copy p:not(.lead) { color: var(--ink-soft); }
.site-footer { background: var(--ink); color: var(--white); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; padding-block: 29px; font-size: .8rem; }
.site-footer a { color: #ffc4a5; text-decoration: none; font-weight: 800; }

.ledger-hero { padding-block: clamp(45px, 6vw, 76px); background: var(--ink); color: var(--white); }
.ledger-hero .eyebrow { color: #ffbd9d; }
.ledger-hero p:last-child { max-width: 720px; margin-bottom: 0; color: #d8e0df; font-size: 1.1rem; }
.ledger-hero code, .ledger-document code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ledger-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .36fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.ledger-document { min-width: 0; }
.ledger-document h1 { max-width: 740px; font-size: clamp(2.7rem, 5vw, 5rem); }
.ledger-document > p { max-width: 720px; color: var(--ink-soft); font-size: 1.08rem; }
.ledger-entry { margin-top: 28px; padding: clamp(24px, 3vw, 36px); background: var(--white); border: 1px solid var(--line); border-left: 6px solid var(--accent); box-shadow: 0 6px 0 #d8d1c5; }
.ledger-entry h2 { margin-bottom: 18px; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.25; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ledger-entry p { margin-bottom: 0; color: var(--ink-soft); }
.ledger-entry code { overflow-wrap: anywhere; font-size: .84em; }
.ledger-entry strong { color: var(--ink); }
.ledger-aside { padding: 25px; border-top: 3px solid var(--ink); background: var(--paper-deep); }
.ledger-aside h2 { font-size: 1.4rem; line-height: 1.25; }
.ledger-aside p:not(.eyebrow) { color: var(--ink-soft); font-size: .88rem; }
.ledger-companion { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.sentiment-document .ledger-entry { border-left-color: var(--accent-deep); }
.sentiment-document .ledger-entry p + p { margin-top: 16px; }
.sentiment-document .ledger-entry p { max-width: 70ch; font-size: 1rem; line-height: 1.72; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-document { width: min(100%, 510px); margin-inline: auto; transform: rotate(1deg); }
  .demo-grid { grid-template-columns: 1fr; }
  .demo-section .forecast-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .operations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { gap: 32px; }
  .ledger-shell { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .canary-panel { grid-template-columns: 1fr; }
  .shell { width: min(100% - 30px, 1180px); }
  .header-inner { align-items: flex-start; flex-direction: column; justify-content: center; padding-block: 18px; gap: 19px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 10px; }
  .site-header nav a { font-size: .82rem; }
  .hero-grid { padding-block: 66px; gap: 62px; }
  .hero-document { min-height: 330px; }
  .document-stamp { width: 78px; height: 78px; right: 22px; bottom: 25px; font-size: .6rem; }
  .trust-inner { justify-content: flex-start; }
  .section-heading, .about-grid { display: block; }
  .section-heading > p, .section-heading > div:last-child:not(:first-child) { margin-top: 14px; }
  .form-row { flex-direction: column; }
  .demo-section .forecast-list { grid-template-columns: 1fr; }
  input#limit { width: 100%; }
  .operations-grid, .audit-grid { grid-template-columns: 1fr; }
  .operation-card { min-height: 190px; }
  .about-copy { margin-top: 30px; }
  .run-meta { gap: 6px; }
  .run-meta strong { font-size: .94rem; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

/* Shared reception, reading controls, and resilient text layouts. */
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #172b31; outline-offset: 3px; box-shadow: 0 0 0 3px #fffdf8, 0 0 0 6px #172b31, 0 0 0 9px #fffdf8; }
main:focus { outline: none; }
.header-inner { flex-wrap: wrap; padding-block: 16px; }
.header-inner > *, .hero-grid > *, .api-hero-grid > *, .canary-panel > *, .brand > * { min-width: 0; }
.brand img { flex-shrink: 0; }
.site-header nav, .footer-inner nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-header nav a, .site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a[aria-current=page] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
h1, h2, h3, .brand, .document-result, .document-top, .canary-actions, .reading-page { overflow-wrap: anywhere; }
.hero-document { transform: none; }
.document-stamp { position: static; margin: 22px 0 0 auto; }
.button, select, input, .canary-actions { max-width: 100%; }
.button { white-space: normal; overflow-wrap: anywhere; }
button[aria-disabled=true] { cursor: default; }
button[aria-disabled=true]::after { content: ' (unavailable)'; font-size: .8em; }
.operation-card a { display: inline-flex; align-items: center; min-height: 32px; }
.reading-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }
.reading-controls .button { padding: 10px 14px; font-size: .8rem; }
.reading-controls label { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .85rem; }
.reading-controls input { width: 24px; height: 24px; flex-shrink: 0; accent-color: var(--ink); }
.reading-page { max-width: 900px; }
.reading-page h1, .ledger-hero h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.reading-page h2 { margin-top: 36px; }
.reading-page p { max-width: 72ch; }
.history-archives { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px; }
.history-archives .panel { padding: 24px; }
.document-output { white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; max-height: 32rem; padding: 20px; background: var(--ink); color: var(--white); }
@media (max-width: 640px) {
  .history-archives { grid-template-columns: 1fr; }
  .document-top { flex-wrap: wrap; }
  .run-meta { grid-template-columns: 1fr; }
  .brand { align-items: flex-start; }
}
@media (forced-colors: active) {
  :focus-visible { outline: 3px solid Highlight; box-shadow: none; }
  .button, .operation-card, .terminal, .document-output { border: 1px solid CanvasText; }
  a[aria-current=page] { text-decoration: underline; }
}
.panel, .ledger-aside { min-width: 0; overflow-wrap: anywhere; }
.ledger-document { overflow-wrap: anywhere; }
.forecast-list div, .audit-summary dl div { flex-wrap: wrap; }
body { overflow-wrap: anywhere; }
.document-stamp { width: 9em; height: auto; min-height: 9em; padding: .6em; aspect-ratio: 1; }

.procurement-panel > .fine-print, .procurement-panel > #procurement-results { grid-column: 1 / -1; }
.procurement-panel form { display: grid; gap: 12px; }
.procurement-panel select { min-height: 48px; width: 100%; padding: 9px 13px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); font: inherit; }
.procurement-panel ol { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,220px),1fr)); gap: 12px; padding: 0; list-style-position: inside; }
.procurement-panel li { padding: 14px; border: 1px solid var(--line); overflow-wrap: anywhere; }
.procurement-panel li strong { font-size: 1.35em; }
.procurement-panel li span { display: block; color: var(--ink-soft); }
.procurement-panel pre { max-width: 100%; max-height: 24rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--paper); }

.numeric-governance { display: flex; gap: 10px; align-items: center; min-height: 44px; margin-top: 14px; font-size: .9rem; }
.numeric-governance input { width: 22px; height: 22px; flex-shrink: 0; accent-color: var(--ink); }
.magnitude-warning { font-size: .78rem; line-height: 1.5; color: var(--warning); border-left: 3px solid currentColor; padding-left: 10px; overflow-wrap: anywhere; }
.forecast-list dd, #output-count, #run-status { overflow-wrap: anywhere; }

.form-row > .button { flex-shrink: 0; }

/* Personnel proceedings are documents in the output chamber; controls stay at the left desk. */
.personnel-controls { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.personnel-controls h3, .personnel-heading h3, .transcript-title { font-family: Georgia, "Times New Roman", serif; font-size: 1.15rem; font-weight: 500; margin-bottom: 12px; }
.personnel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.personnel-actions .button { font-size: .8rem; padding: 10px 12px; }
.personnel-rehearsals { min-width: 0; margin: 24px 0 0; padding: 16px; border: 1px solid var(--line); }
.personnel-rehearsals legend { padding-inline: 6px; font-weight: 800; font-size: .88rem; }
.personnel-rehearsals .field-help { font-size: .8rem; }
.personnel-case { margin: 8px 0 24px; padding: 18px; background: var(--paper); border: 1px solid var(--line); }
.personnel-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.personnel-heading h3 { margin: 0; }
.personnel-verdict { font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.personnel-premise { font-size: .85rem; margin: 10px 0; }
.personnel-origin { font-size: .73rem; color: var(--ink-soft); overflow-wrap: anywhere; margin-bottom: 12px; }
.personnel-case .inline-status { margin-bottom: 12px; }
.personnel-steps { list-style: none; padding: 0; margin: 0; }
.personnel-steps li { border-top: 1px solid var(--line); }
.personnel-steps summary { display: grid; grid-template-columns: 22px minmax(0,1fr) minmax(0,80px); align-items: center; gap: 8px; min-height: 48px; padding-block: 8px; cursor: pointer; }
.personnel-steps summary::marker { content: ''; }
.personnel-index { font-size: .7rem; font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.personnel-office { font-size: .8rem; font-weight: 800; }
.personnel-office::after { content: ' +'; color: var(--ink-soft); }
.personnel-steps details[open] .personnel-office::after { content: ' −'; }
.personnel-badge { font-size: .7rem; text-align: right; line-height: 1.35; overflow-wrap: anywhere; }
.personnel-steps [data-verdict=APPROVED] .personnel-badge { color: var(--success); font-weight: 850; }
.personnel-steps [data-verdict=APPROVED] .personnel-badge::before { content: '✓ '; }
.personnel-steps [data-verdict=REJECTED] .personnel-badge { color: var(--warning); font-weight: 850; }
.personnel-steps [data-verdict=REJECTED] .personnel-badge::before { content: '× '; }
.personnel-steps dl { margin: 0 0 12px; padding: 12px; background: var(--white); border-left: 3px solid var(--accent-deep); font-size: .78rem; }
.personnel-steps dl div + div { margin-top: 10px; }
.personnel-steps dt { font-weight: 850; }
.personnel-steps dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.personnel-record-note { font-size: .72rem; color: var(--ink-soft); }
@media(max-width:640px){.personnel-case {padding:14px;} .personnel-steps summary {grid-template-columns:18px minmax(0,1fr) minmax(0,70px);gap:6px;}}
@media(forced-colors:active){.personnel-case,.personnel-rehearsals {border-color:CanvasText;} .personnel-steps [data-verdict] .personnel-badge {color:CanvasText;}}

/* The answer remains a compact desk; the minutes scroll within their own premises. */
.output-panel #run-status { margin-bottom: 12px; font-size: .8rem; }
.chronicle { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.chronicle h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; line-height: 1.3; margin: 0 0 10px; }
.chronicle-current { font-size: .8rem; font-weight: 750; margin: 0 0 12px; }
.chronicle-tools { display: flex; gap: 12px; align-items: start; flex-wrap: wrap; font-size: .73rem; }
.chronicle-tools .check-label { display: flex; align-items: flex-start; gap: 8px; margin: 0; }
.chronicle-tools label { min-width: 0; flex: 1 1 160px; margin: 0; font-size: .73rem; line-height: 1.4; }
.chronicle-tools select { display: block; width: 100%; margin-top: 6px; font-size: .75rem; padding: 8px; }
.chronicle-caption { font-size: .71rem; margin: 12px 0; color: var(--ink-soft); }
.chronicle-scroll { position: relative; height: clamp(8rem, 22dvh, 16rem); min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: var(--paper); border: 1px solid var(--line); padding: 18px; }
.chronicle-folio, .chronicle-note { padding-block: 16px; border-bottom: 1px solid var(--line); }
.chronicle-folio:first-child, .chronicle-note:first-child { padding-top: 0; }
.chronicle-folio h4, .chronicle-note h4 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; line-height: 1.35; margin: 0 0 12px; }
.chronicle-folio p, .chronicle-note p { font-size: .82rem; line-height: 1.65; margin: 0 0 12px; }
.chronicle-folio .chronicle-source { text-transform: uppercase; font-size: .64rem; letter-spacing: .06em; font-weight: 800; color: var(--accent-deep); }
.chronicle-folio summary { cursor: pointer; min-height: 44px; padding-block: 10px; font-size: .78rem; font-weight: 800; }
.chronicle-folio ol { padding-left: 20px; }
.chronicle-folio li { padding-block: 8px; font-size: .78rem; }
.chronicle-document { overflow: visible; white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px; background: var(--white); border: 1px solid var(--line); font-size: .7rem; }
.chronicle-archive-note { font-size: .72rem; margin-bottom: 16px; }
#personnel-dialog { width: min(46rem, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; margin: auto; padding: 22px; background: var(--white); color: var(--ink); border: 2px solid var(--ink); }
#personnel-dialog::backdrop { background: rgb(12 31 38 / 70%); }
.case-dialog-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
#personnel-dialog .personnel-case { margin-bottom: 0; }
#personnel-dialog h2 { font-family: Georgia, 'Times New Roman', serif; font-size: 1.4rem; }
@media(max-width:640px){.chronicle-scroll {padding:14px;} .chronicle-tools label {flex-basis:100%;}}
@media(forced-colors:active){.chronicle-scroll,.chronicle-folio,.chronicle-note,#personnel-dialog {border-color:CanvasText;} .chronicle-folio .chronicle-source {color:CanvasText;}}
.output-panel[data-viewport-fit=true] { position: sticky; top: 12px; }
.chronicle-tools input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--ink); }
.chronicle-inspection { border: 2px solid var(--accent-deep); padding: 14px; margin-bottom: 18px; }
