:root {
  color-scheme: dark;
  --ink: #eef5f1;
  --muted: #98aaa1;
  --bg: #07110d;
  --panel: #0c1913;
  --line: #20362b;
  --green: #79f2ad;
  --amber: #ffc66d;
  --red: #ff8f83;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .25; background-image: linear-gradient(rgba(121,242,173,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(121,242,173,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, black, transparent 75%); }
a { color: inherit; }
.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 0 5vw; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.brand { display: flex; gap: .55rem; text-decoration: none; letter-spacing: .09em; font-size: .84rem; }
.brand span { color: var(--muted); }
.brand strong { color: var(--green); }
nav { display: flex; gap: 1.75rem; }
nav a { color: var(--muted); font-size: .88rem; text-decoration: none; padding: 1.75rem 0; border-bottom: 2px solid transparent; }
nav a:hover, nav a.active { color: var(--ink); border-color: var(--green); }
main { position: relative; z-index: 1; }
.hero { min-height: 590px; max-width: 1280px; margin: auto; padding: 8rem 5vw 6rem; }
.eyebrow { color: var(--green); font: 700 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .13em; }
h1 { margin: 1.4rem 0 1.6rem; max-width: 980px; font-size: clamp(3.2rem, 7.8vw, 7.6rem); line-height: .94; letter-spacing: -.065em; }
h1 em { color: transparent; -webkit-text-stroke: 1px var(--green); font-style: normal; }
.lede { max-width: 690px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }
.button { display: inline-block; padding: .9rem 1.15rem; border: 1px solid var(--line); text-decoration: none; font-size: .9rem; font-weight: 700; }
.button.primary { background: var(--green); border-color: var(--green); color: #05100a; }
.button.secondary:hover { border-color: var(--green); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 1280px; margin: 0 auto 8rem; border: 1px solid var(--line); background: rgba(12,25,19,.82); }
.metrics article { padding: 2rem; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics span { display: block; color: var(--green); font: 500 2.4rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.metrics p { margin: .5rem 0 0; color: var(--muted); font-size: .86rem; }
.catalogue-preview, .method { max-width: 1280px; margin: 0 auto; padding: 0 5vw 8rem; }
h2 { max-width: 780px; margin: .5rem 0 2rem; font-size: clamp(2rem, 4vw, 4.2rem); line-height: 1.06; letter-spacing: -.04em; }
.product-row { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 1.5rem; align-items: center; padding: 1.35rem 0; border-top: 1px solid var(--line); }
.product-row:last-child { border-bottom: 1px solid var(--line); }
.product-row > span:last-child { color: var(--muted); text-align: right; }
.status { width: max-content; padding: .3rem .45rem; border: 1px solid currentColor; font: 700 .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.status.supported { color: var(--green); }
.status.extended, .status.warning { color: var(--amber); }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.principles article { background: var(--panel); padding: 2rem; }
.principles b { color: var(--green); font: 500 .8rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.principles h3 { font-size: 1.2rem; }
.principles p { color: var(--muted); line-height: 1.65; }
footer { display: flex; justify-content: space-between; gap: 1rem; padding: 2rem 5vw; border-top: 1px solid var(--line); color: var(--muted); font-size: .78rem; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: .5rem; padding-top: 1.2rem; }
  nav { width: 100%; overflow-x: auto; }
  nav a { padding: .8rem 0 1rem; white-space: nowrap; }
  .hero { min-height: auto; padding-top: 5rem; }
  .metrics { grid-template-columns: 1fr 1fr; margin-inline: 5vw; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .product-row { grid-template-columns: 1fr; gap: .6rem; }
  .product-row > span:last-child { text-align: left; }
  .principles { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--green); color: #05100a; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.pilot-banner { position: relative; z-index: 2; padding: .45rem 1rem; text-align: center; background: var(--amber); color: #1b1306; font: 800 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .12em; }
.site-header { display: grid; grid-template-columns: auto 1fr auto; }
.site-header nav { justify-content: center; }
.account { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .76rem; white-space: nowrap; }
.account form { margin: 0; }
.account a, .text-button { color: var(--green); background: none; border: 0; padding: 0; text-decoration: none; }
.workspace-nav { display: flex; justify-content: center; gap: .25rem; padding: .7rem 5vw; border-bottom: 1px solid var(--line); background: #091610; overflow-x: auto; }
.workspace-nav a { padding: .55rem .75rem; border: 1px solid transparent; font-size: .78rem; text-decoration: none; white-space: nowrap; }
.workspace-nav a:hover, .workspace-nav a.active { color: var(--green); border-color: var(--line); background: var(--panel); }
.flash-stack { position: relative; z-index: 5; max-width: 1280px; margin: 1rem auto 0; padding: 0 5vw; }
.flash { margin-bottom: .5rem; padding: .8rem 1rem; border: 1px solid var(--line); background: var(--panel); font-size: .86rem; }
.flash.success { border-color: var(--green); color: var(--green); }
.flash.error { border-color: var(--red); color: #ffd0cb; }
.flash.warning { border-color: var(--amber); color: var(--amber); }
.section-shell { width: min(1280px, 100%); margin: 0 auto; padding: 0 5vw 8rem; }
.section-shell.compact { padding-top: 5rem; padding-bottom: 4rem; }
.page-intro { border-bottom: 1px solid var(--line); }
.page-title { max-width: 1080px; margin: 1rem 0 1.5rem; font-size: clamp(3rem, 7vw, 7rem); line-height: .96; letter-spacing: -.06em; }
.section-heading, .workspace-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-heading h2, .workspace-heading .page-title { margin-bottom: 0; }
.section-link, .panel-heading a, .workspace-heading a:not(.button):not(.back-link) { color: var(--green); font-size: .86rem; text-underline-offset: .25rem; }
.release-list { border-top: 1px solid var(--line); }
.release-row { display: grid; grid-template-columns: 175px 1fr 1fr auto; align-items: center; gap: 1.5rem; min-height: 88px; border-bottom: 1px solid var(--line); text-decoration: none; }
.release-row:hover { background: rgba(121,242,173,.035); }
.release-row strong, .release-row small { display: block; }
.release-row small, .row-date { margin-top: .25rem; color: var(--muted); font-size: .78rem; }
.row-date { text-align: right; }
.status { border-radius: 999px; }
.status.warning { color: var(--amber); }
.status.unsupported { color: var(--red); }
.status.unknown { color: var(--muted); }
.catalogue-shell { padding-top: 2rem; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 2fr) 1fr 1fr auto auto; align-items: end; gap: .8rem; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
label { display: grid; gap: .45rem; }
label > span, .form-help { color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
input, select, textarea { width: 100%; min-height: 44px; border: 1px solid #2b4538; border-radius: 0; background: #08130e; color: var(--ink); padding: .68rem .75rem; }
textarea { resize: vertical; line-height: 1.55; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.reset-link { align-self: center; color: var(--muted); font-size: .78rem; }
.result-count { margin: 2rem 0 1rem; color: var(--muted); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.catalogue-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.catalogue-card { display: flex; flex-direction: column; min-height: 410px; padding: 1.7rem; border: 1px solid var(--line); background: rgba(12,25,19,.82); }
.catalogue-card:hover { border-color: #3a654f; }
.discovery-card { border-style: dashed; }
.discovery-card .confidence { color: var(--amber); }
.discovery-evidence blockquote { white-space: pre-wrap; overflow-wrap: anywhere; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.confidence { color: var(--muted); font: 700 .65rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.card-meta, .variant { color: var(--green); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; }
.catalogue-card h2 { margin: .4rem 0 1rem; font-size: clamp(1.7rem, 3vw, 2.8rem); }
.catalogue-card h2 a { text-decoration: none; }
.catalogue-card > p:not(.card-meta):not(.variant) { color: var(--muted); line-height: 1.6; }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: auto; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.card-facts span { font-size: .82rem; }
.card-facts b { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.card-link { padding-top: 1rem; border-top: 1px solid var(--line); color: var(--green); text-decoration: none; font-size: .83rem; font-weight: 700; }
.card-link span { float: right; }
.empty-state { grid-column: 1 / -1; padding: 5rem 2rem; border: 1px dashed var(--line); text-align: center; }
.record-hero { border-bottom: 1px solid var(--line); }
.back-link { display: inline-block; margin-bottom: 2.5rem; color: var(--muted); font-size: .8rem; text-decoration: none; }
.record-kicker { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-bottom: 2rem; color: var(--muted); font: 700 .67rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.variant-callout { max-width: 850px; padding: 1rem; border-left: 3px solid var(--amber); background: rgba(255,198,109,.06); color: var(--muted); }
.record-layout { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, .8fr); gap: 4rem; padding-top: 5rem; }
.record-section { margin-bottom: 6rem; }
.record-section h2 { font-size: clamp(2rem, 3.5vw, 3.5rem); }
.timeline { margin-top: 3rem; }
.timeline-item { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 1.2rem; padding-bottom: 2.5rem; }
.timeline-item::before { content: ""; position: absolute; left: 6px; top: 15px; bottom: -4px; width: 1px; background: var(--line); }
.timeline-item:last-child::before { display: none; }
.timeline-dot { width: 13px; height: 13px; margin-top: 5px; border: 3px solid var(--bg); outline: 1px solid var(--green); background: var(--green); border-radius: 50%; z-index: 1; }
.timeline-item.extended .timeline-dot, .timeline-item.paid .timeline-dot { outline-color: var(--amber); background: var(--amber); }
.timeline-title { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.timeline-title h3 { margin: 0; font-size: 1.2rem; }
.date-state { padding: .2rem .4rem; border: 1px solid var(--line); color: var(--muted); font: 700 .63rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.date-state.conditional, .date-state.announced { color: var(--amber); }
.date-state.disputed { color: var(--red); }
.timeline-dates { color: var(--green); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.timeline-item p:not(.timeline-dates) { color: var(--muted); line-height: 1.6; }
.conditions { padding: .8rem; border-left: 2px solid var(--amber); background: rgba(255,198,109,.05); }
.evidence-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.evidence-card > div:first-child { display: flex; align-items: center; gap: .7rem; color: var(--muted); font-size: .7rem; }
blockquote { margin: 1.5rem 0; padding-left: 1rem; border-left: 2px solid var(--green); font-size: 1.05rem; line-height: 1.7; }
.evidence-card > p { color: var(--muted); }
.evidence-meta { display: flex; flex-wrap: wrap; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); color: var(--muted); font: .68rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.evidence-card > a { color: var(--green); font-size: .8rem; }
.record-aside { align-self: start; }
.aside-card { margin-bottom: 1rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.record-aside .aside-card:first-child { position: sticky; top: 1rem; }
.aside-card h3 { margin: .5rem 0 1rem; font-size: 1.35rem; }
.countdown { display: block; color: var(--green); font: 500 4.5rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: -.08em; }
.aside-card > span { color: var(--muted); font-size: .75rem; }
.fine-print { color: var(--muted); font-size: .72rem; line-height: 1.55; }
dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin: 0; }
dt { color: var(--muted); font-size: .7rem; }
dd { margin: 0; text-align: right; font-size: .76rem; overflow-wrap: anywhere; }
.audit-list article { display: grid; grid-template-columns: 100px 1fr auto; gap: 1rem; padding: 1rem 0; border-top: 1px solid var(--line); }
.audit-list time, .audit-list span { color: var(--muted); font-size: .72rem; }
.audit-list p { margin: .3rem 0 0; color: var(--muted); }
.prose-grid { display: grid; grid-template-columns: 210px 1fr; gap: 5rem; }
.prose-grid aside { position: sticky; top: 2rem; align-self: start; display: grid; }
.prose-grid aside a { padding: .7rem 0; border-bottom: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: .78rem; }
.prose-grid > div > section { padding-bottom: 5rem; scroll-margin-top: 2rem; }
.prose-grid h2 { margin-top: .8rem; }
.prose-grid p:not(.eyebrow) { max-width: 760px; color: #b4c4bc; font-size: 1.05rem; line-height: 1.85; }
.login-shell { min-height: calc(100vh - 160px); display: grid; grid-template-columns: 1.4fr .7fr; align-items: center; gap: 6rem; width: min(1180px, 100%); margin: auto; padding: 5rem 5vw; }
.login-copy > p:last-child { max-width: 600px; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.login-card { display: grid; gap: 1.2rem; padding: 2rem; border: 1px solid var(--line); background: var(--panel); }
.login-card h2 { margin: 0 0 .5rem; font-size: 1.7rem; }
.error-shell { padding-top: 8rem; min-height: 70vh; }
.error-shell > span { color: var(--green); font: 500 5rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.workspace-page { background: #07100c; }
.workspace-heading > div > p:last-child { color: var(--muted); }
.workspace-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); padding-bottom: 2rem; }
.workspace-metrics article { padding: 1.4rem; border: 1px solid var(--line); border-right: 0; background: var(--panel); }
.workspace-metrics article:last-child { border-right: 1px solid var(--line); }
.workspace-metrics article.attention { box-shadow: inset 0 3px var(--amber); }
.workspace-metrics span { color: var(--green); font: 500 2.2rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.workspace-metrics p { margin: .3rem 0 0; color: var(--muted); font-size: .76rem; }
.workspace-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-bottom: 1rem; }
.panel, .form-panel { border: 1px solid var(--line); background: var(--panel); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: .3rem 0 0; font-size: 1.4rem; }
.ops-list article { display: grid; grid-template-columns: 90px 1fr auto; gap: 1rem; align-items: start; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line); }
.ops-list article:last-child { border-bottom: 0; }
.ops-list time, .ops-list > article > span:last-child { color: var(--muted); font-size: .7rem; }
.ops-list p { margin: .25rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.4; }
.empty-copy { padding: 1.2rem; color: var(--muted); }
.severity, .workflow, .freshness { display: inline-block; width: max-content; padding: .25rem .45rem; border: 1px solid var(--line); font: 700 .65rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.severity.high, .severity.urgent, .freshness.stale { color: var(--red); border-color: var(--red); }
.severity.normal, .freshness.due { color: var(--amber); border-color: var(--amber); }
.workflow.published, .workflow.approved, .freshness.current { color: var(--green); border-color: var(--green); }
.workflow.disputed, .workflow.rejected { color: var(--red); border-color: var(--red); }
.source-health { padding: 0; margin-bottom: 8rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .8rem; }
th, td { padding: 1rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
td small, td b { display: block; }
td small { margin-top: .3rem; color: var(--muted); }
td a { color: var(--green); }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 1rem; padding-bottom: 1rem; }
.editor-main { display: grid; gap: 1rem; }
.form-panel { padding: 1.5rem; }
.form-grid { display: grid; gap: 1rem; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
.form-grid.three { grid-template-columns: repeat(3, 1fr); }
.span-all { grid-column: 1 / -1; }
.phase-editor { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); }
.phase-editor legend { padding: 0 .5rem; color: var(--green); font: 700 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.sticky { position: sticky; top: 1rem; display: grid; gap: 1rem; }
.evidence-form article { padding: 1rem 0; border-top: 1px solid var(--line); }
.evidence-form article p { color: var(--muted); line-height: 1.5; }
.evidence-form small { color: var(--muted); }
.add-evidence { margin-bottom: 8rem; }
.new-record-form { max-width: 850px; }
.form-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.5rem; }
.source-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 1rem; padding-bottom: 1rem; }
.checkbox-label { display: flex; align-items: center; gap: .6rem; padding: .8rem; border: 1px solid var(--line); }
.checkbox-label input { width: auto; min-height: auto; }
.review-stack { display: grid; gap: 1rem; }
.review-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.review-card header { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .72rem; }
.review-card header > div { display: flex; align-items: center; gap: .6rem; }
.review-card h2 { margin: 1.2rem 0 .4rem; font-size: 1.5rem; }
.diff { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 1.5rem 0; background: var(--line); border: 1px solid var(--line); }
.diff > div { min-width: 0; padding: 1rem; background: #08130e; }
.diff b { color: var(--muted); font-size: .7rem; text-transform: uppercase; }
.diff pre { max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; color: #c7d5ce; font-size: .72rem; line-height: 1.5; }
.decision-form { display: flex; align-items: end; gap: .8rem; margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.decision-form .grow { flex: 1; }
.decision-note { margin-top: 1.5rem; padding: 1rem; border-left: 2px solid var(--green); background: #08130e; }
.segmented { display: flex; border: 1px solid var(--line); }
.segmented a { padding: .55rem .8rem; text-decoration: none; font-size: .76rem; }
.segmented a.active { background: var(--green); color: #05100a; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .site-header nav a { padding: .75rem 0 1rem; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .catalogue-grid, .workspace-grid { grid-template-columns: 1fr; }
  .record-layout, .login-shell, .source-detail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .record-aside .aside-card:first-child { position: static; }
  .editor-layout { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .form-grid.three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .site-header { display: flex; }
  .account { width: 100%; justify-content: space-between; padding-bottom: 1rem; }
  .release-row { grid-template-columns: 1fr auto; gap: .7rem; padding: 1rem 0; }
  .release-row .status, .row-date { grid-column: 1 / -1; text-align: left; }
  .catalogue-grid, .filter-bar, .card-facts, .workspace-metrics, .form-grid.two, .form-grid.three, .prose-grid, .diff { grid-template-columns: 1fr; }
  .workspace-metrics article { border-right: 1px solid var(--line); border-bottom: 0; }
  .workspace-metrics article:last-child { border-bottom: 1px solid var(--line); }
  .prose-grid aside { position: static; }
  .section-heading, .workspace-heading { align-items: flex-start; flex-direction: column; }
  .decision-form { align-items: stretch; flex-direction: column; }
  .decision-form label { width: 100%; }
  .audit-list article, .ops-list article { grid-template-columns: 1fr; }
}

/* Phase 3 public alpha */
footer a { color: var(--ink); text-underline-offset: .2rem; }
.filter-bar { grid-template-columns: repeat(6, minmax(130px, 1fr)); }
.filter-search { grid-column: span 2; }
.filter-actions { display: flex; align-items: center; gap: .8rem; }
.transition-filters { grid-template-columns: repeat(4, 1fr) auto; }
.section-note { max-width: 760px; color: var(--muted); line-height: 1.65; }
.card-meta a, .family-link, .variant-callout a { color: var(--green); }
.family-link { margin-bottom: .8rem; font-size: .78rem; }
.card-facts small { display: block; margin-top: .25rem; color: var(--muted); text-transform: capitalize; }
.pagination { justify-content: space-between; align-items: center; margin-top: 2rem; padding: 1rem; border: 1px solid var(--line); }
.pagination a { padding: .35rem 0; color: var(--green); border: 0; }
.pagination span { color: var(--muted); font-size: .76rem; }
.timeline-table { margin-top: 2rem; border: 1px solid var(--line); }
caption { padding: 1rem; color: var(--ink); text-align: left; font-weight: 700; }
.date-state.paid, .date-state.approximate, .date-state.conditional { color: var(--amber); border-style: dashed; }
.date-state.exact { color: var(--green); }
.print-only { display: none; }
.coverage-warning { margin-top: 2rem; margin-bottom: 5rem; padding-top: 1.4rem; padding-bottom: 1.4rem; border: 1px solid var(--amber); background: rgba(255,198,109,.06); }
.coverage-warning strong { color: var(--amber); font: 700 .74rem ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.coverage-warning p { max-width: 920px; margin: .65rem 0 0; color: var(--muted); line-height: 1.65; }
.coverage-warning a { color: var(--green); }
.definition-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; max-width: 850px; border: 1px solid var(--line); background: var(--line); }
.definition-list article { padding: 1.2rem; background: var(--panel); }
.definition-list h3 { margin: 0; font-size: 1rem; }
.definition-list article p { margin-bottom: 0; font-size: .9rem !important; }
.source-cards, .change-list, .transition-list { display: grid; gap: 1rem; }
.feed-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.change-card, .transition-card { padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.change-card header { display: flex; justify-content: space-between; gap: 1rem; }
.change-card h2, .transition-card h2 { margin: 1rem 0; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.change-card p, .transition-card p { color: var(--muted); line-height: 1.6; }
.event-type { padding: .3rem .5rem; border: 1px solid var(--line); font: 700 .66rem ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.event-type.vendor_change { color: var(--green); border-color: var(--green); }
.event-type.blacktree_correction { color: var(--amber); border-color: var(--amber); }
.event-id { font: .68rem ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.card-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.card-actions a { color: var(--green); font-size: .8rem; }
.transition-card { display: grid; grid-template-columns: minmax(140px, .3fr) 1fr; gap: 2rem; }
.transition-card > time { color: var(--green); font: 600 1rem ui-monospace, SFMono-Regular, Menlo, monospace; }
.transition-card.approximate, .transition-card.conditional { border-left: 3px dashed var(--amber); }
.feedback-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 2rem; padding-top: 3rem; }
.type-switcher { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-bottom: 1rem; border: 1px solid var(--line); }
.type-switcher a { padding: 1rem; text-align: center; }
.type-switcher a.active { background: var(--green); color: #05100a; }
.feedback-form { display: grid; gap: 1.2rem; }
.feedback-form h2 { margin: .3rem 0 1rem; font-size: 2rem; }
.honeypot { position: absolute; left: -9999px; }
.receipt { min-height: 70vh; }
.receipt .aside-card { max-width: 650px; }
.receipt-id { display: block; color: var(--green); font: 600 clamp(1.5rem, 5vw, 3rem) ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.alpha-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding-top: 3rem; }
.alpha-grid .panel { padding-bottom: 1.5rem; }
.alpha-grid .panel > p, .alpha-grid .decision-note { margin-inline: 1.2rem; }
.checklist { display: grid; gap: 1rem; padding: 0 2.5rem; color: var(--muted); line-height: 1.55; }
.checklist li::marker { color: var(--green); }
.workflow.new, .workflow.triaged, .workflow.reviewing { color: var(--amber); border-color: var(--amber); }
.workflow.accepted, .workflow.closed { color: var(--green); border-color: var(--green); }

@media (max-width: 980px) {
  .filter-bar, .transition-filters { grid-template-columns: 1fr 1fr; }
  .filter-search { grid-column: span 2; }
  .feedback-layout, .alpha-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .filter-search { grid-column: auto; }
  .type-switcher { grid-template-columns: 1fr; }
  .transition-card { grid-template-columns: 1fr; gap: .5rem; }
  .timeline-table table, .timeline-table thead, .timeline-table tbody, .timeline-table tr, .timeline-table th, .timeline-table td { display: block; }
  .timeline-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .timeline-table tr { padding: .7rem; border-bottom: 1px solid var(--line); }
  .timeline-table th, .timeline-table td { padding: .4rem; border: 0; }
  .timeline-table td::before { display: block; color: var(--muted); font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .timeline-table td:nth-child(2)::before { content: "Start"; }
  .timeline-table td:nth-child(3)::before { content: "End"; }
  .timeline-table td:nth-child(4)::before { content: "Certainty"; }
  .timeline-table td:nth-child(5)::before { content: "Coverage and conditions"; }
  .pagination { gap: .7rem; }
}

@media (forced-colors: active) {
  .status, .date-state, .freshness, .event-type, .coverage-warning, .transition-card { forced-color-adjust: auto; border: 2px solid currentColor; }
  .timeline-dot { background: CanvasText; }
}

@media print {
  :root { color-scheme: light; }
  body, .workspace-page { background: white; color: black; font-family: Georgia, serif; }
  body::before, .pilot-banner, .site-header, .workspace-nav, .record-aside, .hero-actions, .feedback-layout, footer, .skip-link { display: none !important; }
  main, .section-shell, .record-layout { display: block; width: 100%; max-width: none; padding: 0; margin: 0; }
  .record-hero { padding-bottom: 1rem; }
  .page-title, h1, h2, h3, p, .lede, .section-note, .timeline-item p:not(.timeline-dates), .evidence-card > p { color: black; }
  .page-title { font-size: 32pt; }
  h2 { font-size: 20pt; page-break-after: avoid; }
  .record-section, .evidence-card, .timeline-item, tr { break-inside: avoid; }
  .record-section { margin-bottom: 2rem; }
  .timeline-dot { border-color: white; outline-color: black; background: black; }
  .timeline-item::before, .timeline-table, th, td, .evidence-card, .audit-list article { border-color: #777; }
  .status, .date-state, .freshness { color: black !important; border-color: black !important; }
  .print-only { display: block; }
  a { color: black; text-decoration: underline; }
  .evidence-card a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
}
