:root { --fg:#1d232a; --muted:#5b6570; --line:#e2e6ea; --bg:#fbfbfa; --card:#fff; --accent:#1f5f8b; --warn:#9a5b00; --ok:#2e7d4f; --soft:#f3f5f7; }
* { box-sizing: border-box; }
body { margin:0; font:15px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; color:var(--fg); background:var(--bg); }
nav { border-bottom:1px solid var(--line); background:#fff; position:sticky; top:0; z-index:5; }
nav .in { max-width:1100px; margin:0 auto; padding:10px 24px; display:flex; gap:18px; align-items:center; flex-wrap:wrap; }
nav b { margin-right:8px; } nav a { color:var(--fg); text-decoration:none; font-size:14px; padding:4px 0; border-bottom:2px solid transparent; }
nav a.on, nav a:hover { border-color:var(--accent); color:var(--accent); }
header, main { max-width:1100px; margin:0 auto; padding:20px 24px; }
header h1 { margin:0 0 6px; font-size:26px; } header p { margin:0; color:var(--muted); max-width:800px; }
h2 { font-size:19px; margin:34px 0 10px; } h3 { font-size:16px; margin:20px 0 8px; }
p, li { max-width:860px; }
.notice { margin-top:12px; padding:10px 12px; border-left:3px solid var(--warn); background:#fff7ea; font-size:13px; max-width:860px; }
.callout { padding:10px 12px; border-left:3px solid var(--accent); background:#eef5fa; font-size:14px; margin:12px 0; max-width:860px; }
.row { display:flex; gap:12px; flex-wrap:wrap; align-items:center; }
.card { background:var(--card); border:1px solid var(--line); border-radius:8px; padding:14px; }
.kpis { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:12px; }
.kpi b { display:block; font-size:20px; } .kpi span { color:var(--muted); font-size:12px; }
.grid3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(310px,1fr)); gap:12px; }
table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); font-size:13px; }
th, td { text-align:left; padding:7px 9px; border-bottom:1px solid var(--line); vertical-align:top; }
th { background:var(--soft); font-weight:600; }
code, .mono { font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:12px; }
pre { background:#0f1720; color:#e6edf3; padding:12px; border-radius:6px; overflow:auto; font-size:12px; }
.tag { display:inline-block; padding:1px 7px; border-radius:10px; font-size:11px; border:1px solid var(--line); white-space:nowrap; }
.tag.proposed, .tag.partial, .tag.referenced { color:var(--warn); border-color:#f0d5a8; background:#fffaf2; }
.tag.confirmed, .tag.done, .tag.ingested { color:var(--ok); border-color:#b9dfc8; background:#f3fbf6; }
.tag.missing, .tag.planned { color:#6b7280; background:#f6f7f8; }
select, button { font:inherit; padding:6px 10px; border:1px solid var(--line); border-radius:6px; background:#fff; }
button { cursor:pointer; } .muted { color:var(--muted); } a { color:var(--accent); }
.mermaid { background:#fff; border:1px solid var(--line); border-radius:8px; padding:12px; overflow:auto; }
footer { max-width:1100px; margin:30px auto; padding:0 24px 30px; color:var(--muted); font-size:12px; }
/* ── v0.4: pathway, audit, translate, medtech, legal ── */
nav .src { margin-left:auto; }
.tag.mvp { color:#7a3e00; background:#fff3e0; border-color:#f3c98b; margin-right:6px; }
.tag.v-verified { color:var(--ok); border-color:#b9dfc8; background:#f3fbf6; }
.tag.v-secondary { color:#1f5f8b; border-color:#bcd6ea; background:#eef5fa; }
.tag.v-cited_unverified { color:var(--warn); border-color:#f0d5a8; background:#fffaf2; }
.tag.v-needs_research { color:#8a1f1f; border-color:#efc2c2; background:#fdf3f3; }
.tag.sev0 { color:#6b7280; } .tag.sev1 { color:var(--warn); } .tag.sev2 { color:#b3541e; border-color:#f0c4a8; } .tag.sev3 { color:#fff; background:#a32020; border-color:#a32020; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; margin:14px 0 4px; border-bottom:1px solid var(--line); }
.tabs button { border:1px solid var(--line); border-bottom:none; border-radius:6px 6px 0 0; background:var(--soft); }
.tabs button.on { background:#fff; color:var(--accent); font-weight:600; position:relative; top:1px; }
.split { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:12px; }
@media (max-width: 860px) { .split { grid-template-columns:1fr; } }
.graph { background:#fff; border:1px solid var(--line); border-radius:8px; width:100%; height:620px; display:block; touch-action:none; }
.legend { display:flex; gap:10px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin:8px 0; }
.legend i { display:inline-block; width:10px; height:10px; border-radius:50%; margin-right:4px; vertical-align:-1px; }
.detail { max-height:620px; overflow:auto; font-size:13px; }
.detail h3 { margin-top:0; }
.matrix td.cell { white-space:nowrap; cursor:pointer; }
.matrix td.cell:hover { background:var(--soft); }
.filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:8px 0; }
.filters label { font-size:13px; color:var(--muted); }
input[type=search], input[type=text] { font:inherit; padding:6px 10px; border:1px solid var(--line); border-radius:6px; }
.copy { font-size:12px; padding:3px 8px; }
.prose h2 { margin-top:28px; } .prose p, .prose li { max-width:780px; }
.placeholder { border:2px dashed #f0d5a8; background:#fffaf2; border-radius:8px; padding:14px; }
footer p { margin:4px 0; max-width:none; }
.wrap-table { overflow:auto; }
.split > .detail { position:sticky; top:60px; align-self:start; }

.wip { background:#fff7ea; border-bottom:1px solid #f3c98b; font-size:13px; }
.wip .in { max-width:1100px; margin:0 auto; padding:8px 24px; }
.tag.wip-tag { color:#7a3e00; background:#fff3e0; border-color:#f3c98b; margin-right:4px; }
