:root { color-scheme: light; --paper: #f4f0e8; --ink: #17243a; --muted: #5b6573; --line: #aeb5bc; --required: #aa463f; --parallel: #19706d; --substitute: #27724b; --enabler: #a76b16; --panel: #fffdf9; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
main { width: min(1248px, calc(100% - 32px)); margin: 28px auto; }
header { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin: 0 8px 20px; }
.eyebrow { color: var(--required); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1 { margin: 6px 0 8px; font-size: clamp(28px, 4vw, 46px); letter-spacing: -.035em; line-height: 1.02; }
header p { max-width: 760px; margin: 0; color: var(--muted); line-height: 1.5; }
.status { padding: 9px 12px; border: 1px solid #c7bfb0; border-radius: 999px; color: var(--muted); background: #fffaf1; font-size: 12px; font-weight: 700; white-space: nowrap; }
.frame { overflow-x: auto; background: var(--panel); border: 1px solid #c9c4ba; border-radius: 18px; box-shadow: 0 10px 28px rgba(23, 36, 58, .08); }
svg { display: block; width: 100%; min-width: 1000px; height: auto; }
.node rect { fill: #fffdf9; stroke: #687385; stroke-width: 1.5; rx: 12; }
.node.primary rect { stroke: var(--required); stroke-width: 2; }
.node.mitigation rect { stroke: var(--substitute); }
.node.regeneration rect { stroke: var(--parallel); }
.node-title { fill: var(--ink); font-size: 17px; font-weight: 800; }
.node-id { fill: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; }
.node-copy { fill: var(--muted); font-size: 11.5px; }
.edge { fill: none; stroke-width: 2.3; }
.required { stroke: var(--required); marker-end: url(#arrow-required); }
.substitute { stroke: var(--substitute); stroke-dasharray: 7 5; marker-end: url(#arrow-substitute); }
.parallel { stroke: var(--parallel); stroke-dasharray: 3 5; marker-end: url(#arrow-parallel); }
.visibility { stroke: #6b7280; stroke-width: 1.4; stroke-dasharray: 4 5; }
.edge-label { fill: #fffdf9; stroke: #ded8cd; stroke-width: 1; rx: 8; }
.edge-text { fill: var(--muted); font-size: 11px; font-weight: 750; }
.band { fill: #ebe6dc; stroke: #a8a095; stroke-width: 1.3; rx: 13; }
.band-title { fill: var(--ink); font-size: 15px; font-weight: 800; }
.band-copy { fill: var(--muted); font-size: 12px; }
.legend text { fill: var(--muted); font-size: 11px; font-weight: 700; }
.note { fill: #fff7e9; stroke: #d6b574; stroke-width: 1.2; rx: 10; }
.note-title { fill: #80520e; font-size: 12px; font-weight: 800; }
.note-copy { fill: #80520e; font-size: 11px; }
footer { display: flex; justify-content: space-between; gap: 24px; margin: 14px 8px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
footer span:last-child { text-align: right; }
@media (max-width: 720px) { header { grid-template-columns: 1fr; } .status { justify-self: start; } footer { flex-direction: column; } footer span:last-child { text-align: left; } }
