:root { --ink:#17231d; --muted:#657168; --paper:#f4f1e8; --card:#fffdf7; --line:#d9d5c8; --green:#174f3b; --lime:#bdd968; --amber:#d88e3c; --blue:#587f8d; --red:#aa5a4f; --purple:#735f91; }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:var(--paper); font-family:Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
.masthead { height:72px; display:flex; align-items:center; gap:28px; padding:0 32px; color:white; background:var(--ink); border-bottom:4px solid var(--lime); }
.brand { color:white; text-decoration:none; font:700 28px/1 Georgia, serif; letter-spacing:-1px; }
.brand span { color:var(--lime); }
.masthead p { margin:0; color:#cbd4ce; font-size:13px; }
.status { margin-left:auto; font-size:12px; letter-spacing:.04em; }
.status i { display:inline-block; width:8px; height:8px; margin-right:8px; background:var(--lime); border-radius:50%; }
main { min-height:calc(100vh - 112px); display:grid; grid-template-columns:270px 1fr; }
aside { padding:32px 22px; border-right:1px solid var(--line); background:#ebe7dc; }
.eyebrow { color:var(--green); font-size:11px; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
nav { margin:14px 0 40px; display:grid; gap:8px; }
nav button,.lab-nav { width:100%; padding:14px; text-align:left; color:var(--ink); background:transparent; border:1px solid transparent; border-radius:8px; cursor:pointer; }
nav button span,.lab-nav span { display:block; margin-bottom:5px; font-size:11px; color:var(--muted); }
nav button.active,.lab-nav.active { background:var(--card); border-color:var(--line); box-shadow:0 3px 12px #17231d0d; }
.lab-nav { margin:14px 0 34px; font-size:13px; }
.saved-files { margin:0 0 24px; border:1px solid var(--line); border-radius:7px; background:var(--card); }
.saved-files>summary { padding:11px 12px; cursor:pointer; font-weight:700; }
.saved-files>p { margin:8px 12px 14px; color:var(--muted); font-size:12px; line-height:1.4; }
.saved-files>.eyebrow { margin:12px 12px 6px; font-size:10px; }
.saved-files .import-action,.saved-files .comparison-open { width:calc(100% - 24px); margin:8px 12px; }
.saved-files .comparison-open:last-child { margin-bottom:12px; }
.legend { padding-top:20px; border-top:1px solid var(--line); }
.legend p { color:var(--muted); font-size:12px; }
.dot { display:inline-block; width:8px; height:8px; margin-right:8px; border-radius:50%; }
.observation { background:var(--blue); }.inference { background:var(--amber); }.speculation { background:var(--red); }.assumption { background:var(--green); }.calculated { background:var(--purple); }
.workspace { padding:44px clamp(28px,5vw,76px) 70px; overflow:hidden; }
.guided { margin-bottom:32px; padding:24px; background:#e4ebd9; border:1px solid #bccdb2; border-radius:12px; }
.guided h2 { margin:6px 0 10px; }.guided p { line-height:1.55; }
#closure-experiment select { display:block; width:100%; max-width:380px; margin:8px 0 18px; padding:10px 12px; color:var(--ink); background:white; border:1px solid var(--line); border-radius:7px; font:16px/1.4 system-ui,sans-serif; letter-spacing:normal; text-transform:none; }
#closure-experiment .service-note { max-width:430px; margin:-6px 0 14px; color:var(--muted); font-size:12px; line-height:1.4; }
#closure-experiment [data-result] { padding:0 16px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
#closure-experiment .closure-lead { display:grid; gap:5px; padding:15px 0; }
#closure-experiment .closure-lead span { color:var(--muted); font-size:12px; }
#closure-experiment .closure-lead strong { font:600 clamp(22px,3vw,30px)/1.2 Georgia,serif; }
#closure-experiment .closure-lead small { color:#78572f; font-size:11px; }
.guided-fixed { color:var(--muted); font-size:13px; line-height:1.45; }
#closure-experiment .closure-lead .guided-fixed { margin:3px 0 0; }
#closure-experiment [data-result] details { margin:0; padding:12px 0 15px; border-top:1px solid var(--line); }
#closure-experiment [data-result] summary { font-size:13px; }
.queue-chart { margin:14px 0 0; padding:16px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.queue-chart figcaption { display:grid; gap:4px; }.queue-chart figcaption strong { font:600 19px/1.2 Georgia,serif; }
.queue-chart figcaption small { color:var(--muted); font-size:11px; }
.queue-chart-legend { display:flex; flex-wrap:wrap; gap:8px 18px; margin:12px 0 0; color:var(--ink); font-size:11px; }
.queue-chart-legend span { display:inline-flex; align-items:center; gap:7px; }
.queue-chart-legend span::before { display:inline-block; width:21px; border-top:3px solid #326676; content:""; }
.queue-chart-legend .alternate::before { border-color:#aa5a30; border-top-style:dashed; }
.queue-chart svg { display:block; width:100%; height:auto; margin-top:5px; overflow:visible; }
.queue-chart .mobile-plot { display:none; }
.queue-grid { stroke:#dedbd0; stroke-width:1; }.queue-axis { fill:var(--muted); font:11px ui-sans-serif,system-ui,sans-serif; }
.queue-line { fill:none; stroke:#326676; stroke-width:3; stroke-linecap:round; stroke-linejoin:round; vector-effect:non-scaling-stroke; }
.queue-line.alternate { stroke:#aa5a30; stroke-dasharray:7 5; }
.guided-variable { margin:0 0 15px; color:var(--muted); font-size:13px; }
.guided-question { max-width:780px; margin:0 0 18px; font:600 clamp(19px,2.5vw,27px)/1.3 Georgia,serif; }
.guided-change { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.guided-change article,.guided-outcome { padding:16px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.guided-change p { margin:0; font-size:13px; }.guided-outcome { margin-top:12px; }.guided-outcome p { margin:8px 0; font-size:13px; }
.guided-step { padding:14px 0; border-bottom:1px solid var(--line); }.guided-step:first-child { padding-top:0; }.guided-step:last-child { border-bottom:0; padding-bottom:0; }.guided-step h3 { margin:0 0 12px; font:600 19px/1.2 Georgia,serif; }.guided-step li { margin:9px 0; line-height:1.5; }.guided-step .refs { display:inline-flex; margin:0 0 0 7px; vertical-align:middle; }.guided-step a { color:var(--green); font-weight:700; }
.guided-choice-note { margin-top:10px; color:var(--muted); font-size:12px; line-height:1.5; }
.guided-limit { color:#78572f; }.guided-cases { display:flex; gap:8px; }
.guided-cases button { padding:6px 12px; background:#f1ede3; border:1px solid var(--line); border-radius:6px; cursor:pointer; }
.guided-cases button[aria-pressed="true"] { color:white; background:var(--green); border-color:var(--green); }
.guided details { margin-top:15px; font-size:12px; }.guided summary { color:var(--green); font-weight:700; cursor:pointer; }.guided li { margin:6px 0; }
.guided details .refs { display:inline-flex; margin:0 8px 0 0; vertical-align:middle; }
#cern-dependency { display:block; width:100%; max-width:390px; margin:8px 0 16px; padding:10px 12px; color:var(--ink); background:white; border:1px solid var(--line); border-radius:7px; font:16px/1.4 system-ui,sans-serif; }
.cern-result-card { padding:18px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.cern-result-card>span { color:var(--muted); font-size:12px; }
.cern-result-card h3 { margin:6px 0 10px; font:600 clamp(20px,2.4vw,26px)/1.2 Georgia,serif; }
.cern-result-card p { margin:9px 0; font-size:13px; }.cern-result-card .guided-limit { margin-top:13px; }
.cern-paths { padding-top:12px; margin-top:15px; border-top:1px solid var(--line); }
.cern-paths h3 { font-size:18px; }.cern-paths li { font-size:12px; line-height:1.5; }
.cern-paths button { padding:0; border:0; color:var(--green); background:none; font-family:inherit; font-size:12px; font-weight:700; text-decoration:underline; cursor:pointer; }.cern-paths p,.cern-path-note,.cern-saved-note { color:var(--muted); font-size:12px; }
.vaccine-interval { margin:16px 0; color:var(--muted); font-size:12px; }
.vaccine-conclusion { margin:16px 0 0; padding:17px 18px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.vaccine-conclusion h3 { margin:0 0 8px; font:600 clamp(20px,2.4vw,26px)/1.2 Georgia,serif; }
.vaccine-conclusion p { margin:8px 0 0; font-size:13px; }
.vaccine-links details { padding:12px 16px; background:var(--card); border:1px solid var(--line); border-radius:8px; }
.vaccine-links details p { margin:10px 0; font-size:13px; }
.vaccine-links .vaccine-ref-role,.vaccine-analyst-note { color:var(--muted); font-size:12px; }
.vaccine-links .refs { margin:6px 0 0; }
#loading { color:var(--muted); }
.title-row { display:flex; justify-content:space-between; align-items:flex-start; gap:24px; }
h1 { max-width:820px; margin:8px 0 0; font:600 clamp(30px,4vw,48px)/1.08 Georgia, serif; letter-spacing:-1.5px; }
h2 { margin:6px 0 16px; font:600 25px/1.2 Georgia, serif; }
.calibration { padding:8px 12px; border:1px solid var(--amber); border-radius:30px; color:#825421; font-size:11px; font-weight:800; text-transform:uppercase; white-space:nowrap; }
@media (max-width:600px) { .title-row { flex-wrap:wrap; gap:14px; }.calibration { max-width:100%; white-space:normal; } }
.scope-grid { display:grid; grid-template-columns:1fr 1fr 2fr; gap:12px; margin:30px 0 14px; }
.scope-grid article,.intervention,.detail,.lower-grid>section { background:var(--card); border:1px solid var(--line); border-radius:10px; }
.scope-grid article { padding:16px 18px; }
label { display:block; margin-bottom:7px; color:var(--muted); font-size:10px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; }
.scope-grid strong { font-size:13px; }
.intervention { display:grid; grid-template-columns:1fr 44px 1fr; gap:16px; padding:22px; }
.intervention p { margin:0; line-height:1.55; }
.provenance-section { margin-top:38px; }
.evidence-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-bottom:12px; }
.evidence-summary article { display:flex; align-items:baseline; gap:9px; padding:14px 16px; color:white; border-radius:9px; }
.evidence-summary strong { font:600 25px/1 Georgia,serif; }.evidence-summary span { font-size:10px; font-weight:800; letter-spacing:.09em; text-transform:uppercase; }
.provenance-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(260px,1fr); gap:12px; }
.provenance-side { display:grid; gap:12px; align-content:start; }
.contract-panel { overflow:hidden; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.contract-panel>header { display:flex; justify-content:space-between; align-items:center; padding:15px 17px; border-bottom:1px solid var(--line); }
.contract-panel h3 { margin:0; font:600 17px/1.2 Georgia,serif; }.contract-panel>header span { color:var(--muted); font-size:10px; font-weight:800; text-transform:uppercase; }
.claim-table-wrap { max-height:440px; overflow:auto; }
.claim-table { width:100%; border-collapse:collapse; font-size:11px; }
.claim-table th { position:sticky; top:0; z-index:1; padding:9px 12px; color:var(--muted); background:#f1ede3; text-align:left; text-transform:uppercase; letter-spacing:.08em; }
.claim-table td { padding:10px 12px; border-top:1px solid var(--line); vertical-align:top; }
.claim-table .refs { margin-top:0; }.claim-link { display:grid; gap:4px; padding:0; color:var(--ink); background:none; border:0; text-align:left; cursor:pointer; }
.claim-link code { color:var(--green); font-weight:800; }.claim-link span { line-height:1.35; }
.muted,.empty-state { color:var(--muted); }.empty-state { margin:0; padding:18px; font-size:12px; line-height:1.5; }
.calc-row,.knowledge-row { display:grid; gap:6px; padding:13px 16px; border-top:1px solid var(--line); }
.calc-row:first-child,.knowledge-row:first-child { border-top:0; }.calc-row code { color:var(--green); font-size:10px; }
.calc-row strong { font:600 19px/1.1 Georgia,serif; }.calc-row strong small,.calc-row>span,.knowledge-row>span { color:var(--muted); font:500 10px/1.4 ui-sans-serif,system-ui; }
.knowledge-row p { margin:0; color:var(--muted); font-size:11px; }
.propagation-section { margin-top:38px; }
.propagation-note { display:flex; align-items:center; gap:10px; margin-bottom:12px; padding:12px 15px; color:#ece8f3; background:#2d2638; border-radius:9px; }
.propagation-note strong { font:700 12px/1 ui-monospace,monospace; }.propagation-note span { padding:4px 8px; color:#30263e; background:#d9cdec; border-radius:20px; font-size:9px; font-weight:800; text-transform:uppercase; }.propagation-note p { margin:0 0 0 auto; color:#cfc5dc; font-size:11px; }
.propagation-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.propagation-card { padding:18px; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--purple); border-radius:10px; }
.propagation-card header { display:flex; justify-content:space-between; align-items:center; gap:8px; }.propagation-card header strong { color:var(--purple); font:800 12px/1 ui-monospace,monospace; }.propagation-card header span { color:var(--muted); font-size:10px; text-align:right; }
.paired { display:grid; grid-template-columns:1fr 20px 1fr; align-items:center; gap:5px; margin:18px 0; }.paired b,.paired small { display:block; }.paired b { font:600 25px/1 Georgia,serif; }.paired small { margin-top:4px; color:var(--muted); font-size:9px; }.paired-arrow { color:var(--purple); text-align:center; }
.propagation-card dl { margin:0; }.propagation-card dl>div { display:flex; justify-content:space-between; gap:12px; padding:8px 0; border-top:1px solid var(--line); font-size:11px; }.propagation-card dt { color:var(--muted); }.propagation-card dd { margin:0; font-weight:700; text-align:right; }.model-warning { margin:12px 0 0; color:#78572f; font-size:10px; line-height:1.4; }
.arrow { align-self:center; color:var(--green); font-size:28px; text-align:center; }
.section-heading { display:flex; justify-content:space-between; align-items:end; margin:42px 0 16px; }
.section-heading h2 { margin-bottom:0; }
.section-heading p { color:var(--muted); font-size:12px; }
.branches { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.branch { min-height:135px; padding:18px; color:var(--ink); background:transparent; border:1px solid var(--line); border-radius:10px; text-align:left; cursor:pointer; transition:.15s ease; }
.branch:hover,.branch.active { transform:translateY(-2px); background:var(--card); border-color:var(--green); box-shadow:0 7px 20px #17231d12; }
.branch b { display:block; margin:8px 0; font-family:Georgia,serif; font-size:18px; }
.branch small { color:var(--muted); line-height:1.45; }
.type { font-size:10px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; }
.detail { margin-top:12px; padding:22px; }
.branch-rules { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:18px; padding-top:18px; border-top:1px solid var(--line); }
.branch-rules ul { margin:7px 0 0; padding-left:18px; color:var(--muted); font-size:12px; line-height:1.55; }
.path { display:flex; align-items:stretch; gap:0; overflow-x:auto; padding-bottom:4px; }
.node { min-width:170px; max-width:240px; padding:12px; background:#f7f4eb; border-left:3px solid var(--amber); }
.node:first-child { border-left-color:var(--blue); border-radius:6px 0 0 6px; }
.node:last-child { border-radius:0 6px 6px 0; }
.node strong,.node span { display:block; }
.node strong { font-size:12px; }.node span { margin-top:5px; color:var(--muted); font-size:11px; line-height:1.4; }
.refs { display:flex; flex-wrap:wrap; gap:5px; margin-top:9px; }
.ref { padding:3px 7px; color:var(--green); background:#e7edde; border:1px solid #c7d1bd; border-radius:20px; font:800 9px/1.2 ui-monospace,monospace; cursor:pointer; }
.connector { align-self:center; padding:0 7px; color:var(--muted); }
.delta-section { margin-top:38px; }
.delta-grid { display:grid; gap:10px; }
.delta-row { display:grid; grid-template-columns:150px 1fr 34px 1fr 110px; gap:14px; align-items:center; padding:17px; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.delta-row h3,.delta-row p { margin:0; }
.delta-row h3 { margin-top:4px; font:600 16px/1.2 Georgia,serif; }
.delta-row p { font-size:12px; line-height:1.45; }
.delta-row .delta-reason { grid-column:1/-1; margin:0; padding-top:10px; border-top:1px solid var(--line); color:var(--muted); }
.delta-arrow { color:var(--green); font-size:22px; text-align:center; }
.match { padding:6px 8px; border-radius:20px; font-size:9px; font-weight:800; text-align:center; text-transform:uppercase; }
.match.yes { color:#285b43; background:#dce9da; }.match.no { color:#875321; background:#f4dfc4; }
.challenge-section { margin-top:38px; }
.challenge-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.challenge { padding:19px; background:var(--card); border:1px solid var(--line); border-top:4px solid var(--amber); border-radius:10px; }
.challenge.open { border-top-color:var(--red); }.challenge.answered { border-top-color:var(--green); }
.challenge header { display:flex; justify-content:space-between; gap:12px; align-items:center; }
.challenge header code { color:var(--green); font-weight:800; }
.challenge .challenge-status { font-size:9px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.challenge h3 { margin:14px 0 8px; font:600 17px/1.3 Georgia,serif; }
.challenge p { margin:7px 0; color:var(--muted); font-size:12px; line-height:1.5; }
.challenge ul { margin:8px 0 12px; padding-left:18px; color:var(--muted); font-size:12px; line-height:1.5; }
.challenge li { margin:4px 0; }
.challenge-inspect { padding:0; margin-top:9px; border:0; background:none; color:var(--green); font-family:inherit; font-size:12px; font-weight:700; line-height:1.4; text-decoration:underline; cursor:pointer; }
.lower-grid { display:grid; grid-template-columns:1.6fr 1fr; gap:14px; margin-top:38px; }
.lower-grid>section { padding:24px; }
.edge { padding:14px 0; border-top:1px solid var(--line); }
.edge:first-of-type { border-top:0; }
.edge-head { display:flex; gap:10px; align-items:center; }
.edge p { margin:7px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.edge code { color:var(--green); font-weight:800; }
.unknown-panel { background:var(--ink)!important; color:white; }
.unknown-panel .eyebrow { color:var(--lime); }
.unknown-panel ul { padding-left:18px; color:#d6ddd8; line-height:1.7; font-size:13px; }
#analyst-sources { margin-top:20px; padding-top:16px; border-top:1px solid #ffffff2b; }
#analyst-sources label { color:#b7c4bb; }
#analyst-sources .ref { color:var(--lime); background:#ffffff0d; border-color:#ffffff30; }
dialog { width:min(620px,calc(100vw - 32px)); max-height:calc(100dvh - 32px); overflow:auto; padding:30px; color:var(--ink); background:var(--card); border:1px solid var(--line); border-radius:12px; box-shadow:0 24px 80px #101a1570; }
dialog::backdrop { background:#101a1590; backdrop-filter:blur(3px); }
.receipt-action,.receipt-actions button { padding:10px 14px; margin:12px 0; background:var(--green); color:white; border:0; border-radius:7px; font:600 13px system-ui,sans-serif; cursor:pointer; }
.receipt-actions { display:flex; gap:10px; flex-wrap:wrap; }
#receipt-dialog { box-sizing:border-box; }
#saved-lab-dialog { box-sizing:border-box; width:min(820px,calc(100vw - 32px)); }
#saved-lab-dialog h2 { overflow-wrap:anywhere; padding-right:24px; }
#saved-lab-dialog p { line-height:1.5; }
#saved-lab-summary { white-space:pre-wrap; overflow-wrap:anywhere; max-height:45dvh; overflow:auto; padding:14px; background:#f7f4eb; border-radius:7px; font:12px/1.5 ui-monospace,monospace; }
#saved-lab-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:27px; cursor:pointer; }
#saved-lab-open:disabled { opacity:.55; cursor:default; }
#opened-lab-open { margin:14px 0; }
#opened-lab-dialog { box-sizing:border-box; width:min(820px,calc(100vw - 32px)); }
#opened-lab-title { overflow-wrap:anywhere; padding-right:24px; }
#opened-lab-dialog label { display:block; margin:12px 0 6px; font-weight:700; }
#opened-lab-file { display:block; width:100%; max-width:100%; }
#opened-lab-clear { margin:12px 0; padding:8px 12px; cursor:pointer; }
#opened-lab-status,#opened-lab-content p { line-height:1.5; overflow-wrap:anywhere; }
#opened-lab-summary { white-space:pre-wrap; overflow-wrap:anywhere; max-height:38dvh; overflow:auto; padding:14px; background:#f7f4eb; border-radius:7px; font:12px/1.5 ui-monospace,monospace; }
#opened-lab-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:27px; cursor:pointer; }
#lab-pair-open { margin:0 0 14px; }
#lab-pair-dialog { box-sizing:border-box; width:min(900px,calc(100vw - 32px)); }
#lab-pair-dialog h2 { overflow-wrap:anywhere; padding-right:24px; }
#lab-pair-dialog p,#lab-pair-dialog span { line-height:1.5; overflow-wrap:anywhere; }
#lab-pair-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:27px; cursor:pointer; }
.lab-pair-files { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.lab-pair-files section { min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; }
.lab-pair-files label { display:block; margin:8px 0 5px; font-weight:700; }
.lab-pair-files input { display:block; max-width:100%; width:100%; }
.lab-pair-files button,#lab-pair-swap { margin:10px 0; padding:8px 12px; cursor:pointer; }
.lab-pair-files pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:35dvh; overflow:auto; padding:12px; background:#f7f4eb; border-radius:6px; font:11px/1.5 ui-monospace,monospace; }
.lab-pair-row { display:grid; grid-template-columns:minmax(130px,.7fr) repeat(2,minmax(0,1fr)); gap:8px; padding:8px 0; border-bottom:1px solid var(--line); }
.lab-pair-row span { white-space:pre-wrap; min-width:0; }
.lab-pair-row small { grid-column:1/-1; color:var(--muted); }
@media (max-width:600px) { .lab-pair-files,.lab-pair-row { display:block; }.lab-pair-files section { margin-bottom:10px; }.lab-pair-row span { display:block; margin:5px 0; }#lab-pair-dialog { padding:20px; } }
#receipt-dialog h2 { padding-right:25px; overflow-wrap:anywhere; }
#receipt-dialog p,#receipt-dialog li { line-height:1.55; overflow-wrap:anywhere; }
#receipt-dialog details { border-top:1px solid var(--line); padding-top:12px; }
#receipt-dialog ul { padding-left:22px; }
#receipt-dialog code { overflow-wrap:anywhere; }
#receipt-status { color:var(--green); min-height:1.5em; }
.dialog-close,#receipt-close,#import-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:27px; cursor:pointer; }
.import-action { display:block; margin:14px 0; padding:12px; border:1px solid var(--line); border-radius:7px; cursor:pointer; font-weight:700; }
.import-action input { display:block; width:100%; max-width:100%; margin-top:8px; font-size:13px; }
#import-dialog { box-sizing:border-box; width:min(620px,calc(100vw - 32px)); }
#import-dialog h2 { overflow-wrap:anywhere; padding-right:22px; }
#import-dialog section { padding:12px 0; border-top:1px solid var(--line); }
#import-dialog p,#import-dialog li { line-height:1.5; overflow-wrap:anywhere; }
#import-dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; }
.comparison-open { display:block; width:100%; padding:11px 12px; border:1px solid var(--line); border-radius:7px; background:var(--card); color:var(--ink); text-align:left; font:700 14px system-ui,sans-serif; cursor:pointer; }
#comparison-dialog { box-sizing:border-box; width:min(880px,calc(100vw - 32px)); }
#comparison-close { position:absolute; top:12px; right:14px; border:0; background:transparent; font-size:27px; cursor:pointer; }
#comparison-dialog h2 { padding-right:24px; }
#comparison-dialog p,#comparison-dialog span { line-height:1.5; overflow-wrap:anywhere; }
.comparison-files { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.comparison-files section { min-width:0; padding:12px; border:1px solid var(--line); border-radius:8px; }
.comparison-files h3 { margin:0 0 8px; }
.comparison-files label { display:block; margin-bottom:5px; font-weight:600; }
.comparison-files input { display:block; max-width:100%; width:100%; font-size:0; }
.comparison-files input::file-selector-button { font-size:13px; }
.comparison-files input::-webkit-file-upload-button { font-size:13px; }
.comparison-files p { overflow-wrap:anywhere; }
.comparison-files button { margin-top:10px; }
#comparison-dialog button { cursor:pointer; }
#comparison-dialog button:disabled { cursor:default; opacity:.55; }
#comparison-result { border-top:1px solid var(--line); padding-top:12px; }
.comparison-row { display:grid; grid-template-columns:minmax(130px,.75fr) repeat(2,minmax(0,1fr)); gap:12px; padding:9px 0; border-bottom:1px solid var(--line); }
.comparison-row span { min-width:0; }
#comparison-result details { border-top:1px solid var(--line); padding:12px 0; }
#comparison-result pre { white-space:pre-wrap; overflow-wrap:anywhere; font-size:11px; }
@media (max-width:600px) { .comparison-files { grid-template-columns:1fr; gap:8px; }.comparison-row { grid-template-columns:1fr; gap:2px; }.comparison-row span { display:block; }#comparison-dialog { padding:20px; } }
#evidence-detail { color:var(--muted); line-height:1.65; }
#challenge-statusline { margin:14px 0 8px; color:#875321; font-size:12px; font-weight:700; }
#evidence-challenge { font-size:13px; line-height:1.5; }
#evidence-challenge ul { padding-left:20px; }
#evidence-challenge li { margin:6px 0; }
#evidence-links a { display:inline-block; margin-top:10px; color:var(--green); font-weight:700; }
.lab-intro { max-width:760px; margin:22px 0 30px; color:var(--muted); line-height:1.6; }
.lab-layout { display:grid; grid-template-columns:minmax(240px,320px) minmax(0,1fr); gap:16px; }
.lab-controls,.lab-main { padding:24px; background:var(--card); border:1px solid var(--line); border-radius:10px; }
.lab-controls select { width:100%; margin-bottom:18px; padding:10px 12px; color:var(--ink); background:white; border:1px solid var(--line); border-radius:7px; }
.form-actions,.lab-presets { display:flex; flex-wrap:wrap; gap:8px; }
.form-actions button,.lab-presets button { padding:9px 13px; color:var(--ink); background:#f1ede3; border:1px solid var(--line); border-radius:7px; cursor:pointer; }
.form-actions .primary { color:white; background:var(--green); border-color:var(--green); }
.lab-presets { margin:10px 0 22px; }
.lab-result { min-height:320px; padding:22px; background:#f7f4eb; border-radius:9px; }
.lab-result>p { color:var(--muted); line-height:1.55; }
.submitted-inputs,.result-stale,.policy-note { margin:0 0 14px; padding:9px 11px; color:var(--muted); background:#eee9dd; border-radius:6px; font-size:11px; line-height:1.5; }
.result-stale { color:#875321!important; background:#f4dfc4; font-weight:700; }.policy-note code { color:var(--green); }
.belief-limit { margin:-8px 0 18px; color:#78572f; font-size:11px; line-height:1.45; }
.lab-outcome { display:flex; justify-content:space-between; align-items:center; gap:20px; padding-bottom:17px; border-bottom:1px solid var(--line); }
.lab-outcome h2 { margin-bottom:0; text-transform:capitalize; }.lab-outcome>strong { padding:8px 11px; border-radius:20px; background:#e6e1d5; font-size:11px; text-transform:uppercase; }
.lab-outcome.applied>strong { color:#285b43; background:#dce9da; }.lab-outcome.denied>strong { color:#843d35; background:#f0d8d3; }.lab-outcome.blocked>strong { color:#875321; background:#f4dfc4; }
.decision-grid,.condition-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }.condition-grid { grid-template-columns:repeat(3,1fr); }
.decision-grid article,.condition-grid article { padding:14px; background:var(--card); border:1px solid var(--line); border-radius:8px; }.decision-grid strong,.condition-grid strong { font-size:12px; text-transform:capitalize; }
.condition-title { margin:22px 0 10px; }
.comparison-finding { display:flex; justify-content:space-between; gap:16px; margin-bottom:14px; padding:13px; color:#285b43; background:#dce9da; border-radius:8px; font-size:12px; }.comparison-finding.unresolved { color:#875321; background:#f4dfc4; }.comparison-finding span { font-size:9px; font-weight:800; text-transform:uppercase; }
.comparison-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }.comparison-card { padding:17px; background:var(--card); border:1px solid var(--line); border-radius:8px; }.comparison-card h3 { margin:8px 0 14px; font:600 22px/1.1 Georgia,serif; text-transform:capitalize; }.comparison-card dl { margin:0; }.comparison-card dl>div { display:flex; justify-content:space-between; gap:10px; padding:7px 0; border-top:1px solid var(--line); font-size:11px; }.comparison-card dt { color:var(--muted); }.comparison-card dd { margin:0; font-weight:700; text-align:right; text-transform:capitalize; }.comparison-card p { margin:12px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.lab-result details { margin-top:20px; border-top:1px solid var(--line); }.lab-result summary { padding:14px 0 0; color:var(--green); font-size:12px; font-weight:700; cursor:pointer; }.lab-result pre { max-height:360px; overflow:auto; padding:14px; background:var(--ink); color:#dce7df; border-radius:7px; font-size:10px; white-space:pre-wrap; }.lab-error { color:var(--red)!important; font-weight:700; }
.sequence-note { color:var(--muted); font-size:12px; line-height:1.5; }
.sequence-cards { display:grid; grid-template-columns:1fr; gap:12px; margin-top:20px; }
.sequence-card { min-width:0; padding:18px; border:1px solid var(--line); border-radius:8px; background:white; }
.sequence-card.sequence-blocked { background:#fff6ea; border-color:#d8bd94; }
.sequence-card.elapsed-wait { background:#eef4f1; border-color:#a8c5b5; }
.sequence-card h3 { margin:8px 0; text-transform:capitalize; }.sequence-card p { line-height:1.5; }
.sequence-card dl { margin:16px 0 0; }.sequence-card dl div { padding:8px 0; border-top:1px solid var(--line); }
.sequence-card dt { color:var(--muted); font-size:11px; }.sequence-card dd { margin:3px 0 0; font-weight:650; overflow-wrap:anywhere; }
.sequence-card pre { overflow-wrap:anywhere; }
.aligned-decision { margin:20px 0; }.aligned-decision h3 { margin:0 0 8px; }
.aligned-decision h4 { margin:8px 0; font:600 21px/1.2 Georgia,serif; text-transform:capitalize; }
.aligned-decision .sequence-card { padding:15px; }
.aligned-decision .sequence-card dl { margin-top:10px; }
.comparison-indicators { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:10px; }
.comparison-indicator { padding:5px 7px; color:var(--muted); background:#ebe7dc; border-radius:5px; font-size:10px; }
.comparison-wait { margin:14px 0; }
.comparison-wait p { margin:7px 0; }
footer { height:40px; padding:12px 32px; color:var(--muted); background:#ebe7dc; border-top:1px solid var(--line); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
@media (max-width:850px) { main{grid-template-columns:1fr} aside{border-right:0;border-bottom:1px solid var(--line)} nav{grid-template-columns:repeat(2,1fr);margin-bottom:20px}.legend{display:none}.workspace{padding:30px 20px}.branches,.lower-grid,.scope-grid,.challenge-grid,.branch-rules,.provenance-grid,.propagation-grid,.lab-layout,.comparison-grid,.guided-change{grid-template-columns:1fr}.evidence-summary{grid-template-columns:repeat(2,1fr)}.intervention{grid-template-columns:1fr}.arrow{transform:rotate(90deg)}.masthead p{display:none}.propagation-note{align-items:flex-start;flex-wrap:wrap}.propagation-note p{width:100%;margin-left:0}.delta-row{grid-template-columns:1fr}.delta-arrow{transform:rotate(90deg)}.comparison-finding{display:grid} }
@media (max-width:850px) { aside{padding:14px 20px} aside>.eyebrow{font-size:10px} nav{gap:4px;margin:5px 0 10px} nav button,.lab-nav{padding:8px 9px;font-size:12px;line-height:1.25} nav button span,.lab-nav span{margin-bottom:2px;font-size:9px}.lab-nav{margin:5px 0 0}.workspace{padding-top:20px} }
@media (max-width:850px) { .saved-files{margin:8px 0 0}.saved-files>summary{padding:10px 12px} }
@media (max-width:600px) { #closure-experiment{padding:16px}#closure-experiment h2{margin:4px 0 8px}#closure-experiment>p:first-of-type{margin:0 0 10px}#closure-experiment select{margin:5px 0 10px}#closure-experiment .service-note{margin:0 0 10px} }
@media (max-width:600px) { .queue-chart .desktop-plot{display:none}.queue-chart .mobile-plot{display:block}.queue-chart{padding:14px}.queue-chart-legend{gap:7px 12px} }
