/* The argument is in document flow; its scientific object is the stable companion. */
.scroll-experience{border:0;background:none;overflow:visible;border-radius:0}.scroll-experience #demo-root{border:0}.n-intro{display:flex;align-items:center;justify-content:space-between;margin:0 0 26px;padding:15px 0;border-top:1px solid #dae2df;color:#718178;font-size:12px}.n-intro button{background:none;border:0;border-bottom:1px solid #899e94;padding:8px 0;font:inherit;color:#426c5a;cursor:pointer}.n-story-layout{display:grid;grid-template-columns:minmax(235px,300px) minmax(0,1fr);gap:40px;align-items:start;position:relative}.n-stage{grid-column:2;grid-row:1;position:sticky;top:98px;height:min(740px,calc(100svh - 124px));min-height:420px;display:flex;flex-direction:column;align-self:start;border-radius:12px;overflow:hidden;z-index:3;box-shadow:0 12px 40px #1c34210a}.n-stage:focus-visible{outline:2px solid #3e8970;outline-offset:6px}.n-stage-top{position:relative;flex:none;min-height:44px;display:flex;align-items:center;justify-content:space-between;padding:6px 15px;border-bottom:1px solid var(--world-line);background:var(--world-bg)}.n-stage-top>span{font:10px var(--mono);color:var(--world-muted)}.n-stage-top>div{display:flex;gap:5px}.n-stage-top button{min-height:29px;padding:5px 10px;font-size:10px;border:0}.n-stage-top button[data-prev],.n-stage-top button[data-next]{font-size:16px}.n-progress-line{position:absolute;bottom:-1px;left:0;width:100%;height:2px;background:var(--world-accent);transform:scaleX(0);transform-origin:left}.n-stage-render{flex:1;min-height:0;position:relative}.n-render-host{width:100%;height:100%;position:relative;overflow:hidden;color:var(--world-ink);background:var(--world-bg)}.n-canvas-host.world-viewport{position:absolute;inset:0;width:100%;height:100%!important;min-height:0}.n-scene-overlay{position:absolute;inset:0;pointer-events:none;overflow:hidden}.n-render-host .camera-hint{display:none}.n-render-host[data-mode="guide"] .camera-tools{display:none}.n-render-host[data-mode="guide"] .world-canvas{pointer-events:none!important;touch-action:pan-y!important}.n-render-host[data-mode="explore"] .camera-tools{bottom:86px;right:10px;left:auto}.n-render-host .camera-tools [data-view="motion"]{display:none!important}.n-render-host .world-viewport.expanded{position:fixed;inset:82px 15px 15px;z-index:1000;height:auto!important;width:auto}.n-stage-caption{flex:none;position:relative;min-height:78px;background:var(--world-panel);padding:15px 18px;border-top:1px solid var(--world-line)}.n-stage-caption p{font-size:13px;line-height:1.5;color:var(--world-ink);max-width:67ch}.n-stage-caption>span{font-size:9px;line-height:1.5;color:var(--world-muted);display:block;margin-top:6px}.n-prose{grid-column:1;grid-row:1;min-width:0}.n-chapter{min-height:77svh;display:flex;align-items:center;position:relative;padding:45px 0;color:#697c70}.n-chapter>div{width:100%;padding-left:18px;border-left:2px solid #dce6df;transition:border-color .16s}.n-chapter[aria-current="step"]>div{border-color:#2f8264}.n-step{display:block;font:11px var(--mono);letter-spacing:.02em;color:#8ba292;margin-bottom:17px}.n-chapter h2,.n-explore-chapter h2{font-size:30px;font-weight:500;line-height:1.18;letter-spacing:-1px;color:#203c2d;margin:0 0 23px}.n-chapter p,.n-explore-chapter>div>p{font-size:16px;line-height:1.85;color:#6b7e71;max-width:40ch}.n-chapter[aria-current="step"] p{color:#405e4c}.n-explore-chapter{padding:70px 0 60px;min-height:110svh}.n-explore-chapter .n-step{color:#367b5b}.n-explore-chapter>div>p{font-size:14px}.n-explorer{visibility:hidden;opacity:0;pointer-events:none;margin-top:24px;min-height:260px}.n-explorer.unlocked{visibility:visible;opacity:1;pointer-events:auto}.n-explorer-controls{display:flex;flex-direction:column;align-items:stretch;gap:13px}.n-explorer-controls button,.n-restart{border:1px solid #c7d8cc;border-radius:5px;background:white;color:#315d43;font-size:12px;line-height:1.5;padding:10px 12px;cursor:pointer;min-height:39px}.n-explorer-controls button:hover,.n-explorer-controls button[aria-pressed="true"]{background:#e9f2eb;border-color:#6d9d7a}.n-explorer-controls button:disabled{opacity:.4;cursor:default}.n-explorer-controls [role="status"]{font-size:11px;line-height:1.7;color:#617b68;overflow-wrap:anywhere;min-height:20px}.n-explorer-controls small{font-size:10px;line-height:1.6;color:#819585}.n-control{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}.n-control>span{display:flex;justify-content:space-between;font-size:11px;color:#6b8272;gap:12px}.n-control output{font:11px var(--mono);color:#335f44}.n-control input[type=range]{width:100%;height:27px;accent-color:#387e59}.n-control select,.n-coordinate-row input,.n-compile-form textarea{padding:10px 9px;border:1px solid #c7d8cc;border-radius:5px;background:white;color:#315641;font:12px/1.5 inherit;width:100%;min-width:0}.n-control select{font-size:12px}.n-button-row,.n-memory-controls{display:flex;flex-wrap:wrap;gap:7px}.n-button-row>button,.n-memory-controls>button{flex:1;min-width:67px;font-size:11px}.n-coordinate-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.n-coordinate-row label{font:11px var(--mono);color:#718879}.n-coordinate-row input{font:12px var(--mono);margin-top:6px;padding:9px 4px}.n-compile-form>label{font-size:12px;color:#617d69;display:block;margin-bottom:10px}.n-compile-form textarea{font-size:13px;resize:vertical;line-height:1.6}.n-compile-form>div{display:flex;gap:7px;margin-top:10px}.n-compile-form button{flex:1}.n-restart{background:none;border:0;padding-left:0;margin-top:30px;font-size:11px}.n-accessible-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
/* Notation stays crisp and planar; it enters only after the corresponding intuition. */
.n-small{display:block;font-size:9px;line-height:1.5;letter-spacing:.01em;color:var(--world-muted)}.n-bottom-metrics{position:absolute;left:17px;right:17px;bottom:17px;display:flex;align-items:flex-end;gap:18px;background:color-mix(in srgb,var(--world-bg) 90%,transparent);padding:11px 13px;border:1px solid var(--world-line);border-radius:6px;backdrop-filter:blur(8px)}.n-metric{min-width:0;flex:1}.n-metric>span{display:block;font-size:9px;line-height:1.4;color:var(--world-muted)}.n-metric>strong{display:block;font:19px/1.3 var(--mono);letter-spacing:-.7px;color:var(--world-ink);margin-top:5px}.n-metric.danger>strong{color:#c8755b}.n-operator{position:absolute;right:17px;top:20px;width:183px;padding:12px;background:#112a36ed;border:1px solid #3f596434;border-radius:6px}.n-matrix{display:grid;grid-template-columns:repeat(5,1fr);gap:3px;margin-top:10px;border-left:1px solid #668592;border-right:1px solid #668592;padding:3px}.n-matrix>span{font:9px var(--mono);height:29px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#97b6c5;background:#203c48}.n-matrix small{font:7px var(--mono)}.n-matrix .changed{background:#6a542e;color:#f6dcab}.n-spectrum{height:76px;display:flex;align-items:flex-end;justify-content:space-between;gap:4px;margin-top:8px}.n-spectrum>div{display:flex;flex-direction:column;align-items:center;gap:6px}.n-spectrum i{width:13px;display:block;background:#75b2c8;border-radius:2px}.n-spectrum>div:first-child i{background:#eac17e}.n-spectrum small{font:8px var(--mono);color:#abc5d0}.n-certificate{position:absolute;left:18px;bottom:21px;max-width:360px;display:flex;gap:18px;flex-wrap:wrap;background:#122c38ed;padding:15px;border:1px solid #385663;border-radius:6px}.n-certificate .n-metric{min-width:100px}.n-certificate>.n-small{width:100%}.n-buffer{position:absolute;right:17px;top:18px;padding:12px 15px;border-left:2px solid #63a283;background:#f7faf2e8;max-width:235px}.n-buffer>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}.n-buffer b{font-size:11px;font-weight:500;border:1px solid #afc6b0;padding:5px 8px;background:#e9f2e8}.n-buffer>strong{display:block;font-size:10px;font-weight:500;color:#688a72;margin-top:9px}.n-constraints{position:absolute;right:17px;top:18px;padding:13px;background:#23283de6;border:1px solid #4b4b6457;border-radius:6px}.n-constraints code{font:13px/1.8 var(--mono);display:block;margin-top:5px;color:#d5c8e9}.n-budget{position:absolute;left:17px;right:17px;top:16px;padding:13px 15px;background:#f9f2e5e8;border:1px solid #dbc8a999;border-radius:6px;max-width:365px}.n-budget-cells{display:grid;grid-template-columns:repeat(16,1fr);gap:3px;margin:9px 0}.n-budget-cells i{display:block;aspect-ratio:1;border-radius:2px;background:#729582}.n-budget-cells .replay{background:#c99f5d}.n-budget>strong{font:11px var(--mono);color:#715e3e}.n-budget.attention{border-color:#b99862}.n-error-chart{position:absolute;left:17px;top:17px;width:190px;padding:12px;background:#1a3340df;border:1px solid #5c727344;border-radius:6px}.n-error-chart canvas{width:100%;height:75px;margin-top:6px}.n-service{position:absolute;left:17px;right:17px;bottom:17px;background:#f3f7edee;padding:13px 15px;border:1px solid #cbd7bc;border-radius:6px}.n-service>div{display:flex;gap:10px;align-items:center;margin:12px 0;font-size:11px}.n-service>div>span{width:36px;flex-shrink:0}.n-service section{flex:1;display:flex;height:14px;gap:2px}.n-service section i{height:100%;display:block;background:#62947f;min-width:0}.n-service section .part-1{background:#b59560}.n-service section .part-2{background:#a9b69b}.n-service b{font:12px var(--mono);width:35px}.n-service small{font-size:9px;color:#859480}
/* CasePath is one persistent desk, not a spatial metaphor pasted over documents. */
.n-case-canvas{padding:18px;background:#e9eff3}.n-case-workspace{height:100%;display:flex;flex-direction:column;gap:14px;color:#304757}.n-case-top{display:flex;justify-content:space-between;gap:12px;align-items:center;flex:none}.n-case-top>span{font:10px var(--mono);color:#617d8c}.n-case-top small{font:7px var(--mono);display:block;margin-top:5px;color:#91a1ab}.n-case-top>b{font:9px var(--mono);background:#f1e3c9;color:#886537;padding:10px;border-radius:4px;max-width:45%}.n-case-top>b.ready{background:#d4e8da;color:#416e57}.n-case-records{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:12px;flex:1;min-height:0}.n-original{background:#fff;border:1px solid #d3dee5;border-radius:3px;padding:19px;box-shadow:0 9px 20px #50708509;position:relative;min-width:0}.n-original>header{display:flex;gap:9px;align-items:center;font-size:11px}.n-original i{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:#edf1f2;color:#667e89;font:10px var(--mono);flex:none}.n-original header small{display:block;font-size:8px;color:#8397a3;margin-top:3px}.n-original h3{font-size:17px;line-height:1.25;letter-spacing:-.4px;margin:23px 0 18px}.n-original p{font-size:13px;line-height:1.75;color:#677c8a;margin:12px 0}.n-original mark{background:#fff0bf;color:#765b28;padding:2px 4px}.n-original mark.reviewed{background:#d6eedd;color:#416d4f}.n-original footer{position:absolute;bottom:15px;left:19px;right:12px;font:7px var(--mono);color:#92a6b2}.n-case-side{display:flex;flex-direction:column;gap:10px}.n-case-side>article{padding:13px;background:#f9fbfd;border:1px solid #d5e0e6;border-radius:3px}.n-case-side small{font:8px var(--mono);color:#869aa8;display:block}.n-case-side strong{display:block;font:18px var(--mono);margin:11px 0;color:#526d7c}.n-case-side span{font-size:9px;color:#8b9ea9;line-height:1.5}.n-case-side .n-later{background:#fbf0e4;border-color:#e6cdad}.n-later strong{color:#a67439}.n-case-side .n-later.resolved{background:#edf3ee;border-color:#ccdcd0}.n-assertion{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;padding:11px 13px;border-left:2px solid #a38b63;background:#fff9eef5;font-size:10px}.n-assertion span{color:#918575}.n-assertion strong{font-weight:500;color:#745d3b;font-size:11px}.n-assertion small{font-size:8px;color:#a19787}.n-case-checks{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.n-case-checks>div{padding:11px 8px;border:1px solid #cedae1;background:#f8fafb;border-top:2px solid #a8bcb4;border-radius:4px}.n-case-checks span{font-size:9px;display:block;color:#7f919b}.n-case-checks b{font:9px var(--mono);display:block;margin:8px 0;color:#a3875c}.n-case-checks small{font:8px var(--mono);color:#8e9fa9;display:block}.n-case-checks .satisfied b{color:#588b6f}.n-case-checks .retained{background:#e3eaee;border-top-color:#bac8cf}.n-case-provenance{padding:10px 13px;border:1px solid #bad3c3;background:#edf4ef;display:flex;gap:15px;align-items:center}.n-case-provenance span{font-size:10px;color:#518063;flex:none}.n-case-provenance p{font:8px/1.6 var(--mono);color:#81988a}
/* The compiler's output passes through entities and anchors before becoming geometry. */
.n-sentence{position:absolute;left:8%;right:8%;top:24%;max-width:540px}.n-sentence p{font-size:clamp(24px,3vw,39px);line-height:1.4;letter-spacing:-1.2px;color:#53695b;margin:18px 0 20px}.n-sentence mark{background:none;color:inherit;border-bottom:1px solid transparent}.n-sentence.parsed mark{background:#c8e1cc77;border-color:#659275;color:#3f7251}.n-sentence>small{font:11px var(--mono);color:#769c81}.n-structure{position:absolute;left:7%;right:7%;top:24%;max-width:570px;padding:23px;background:#f5f7efe8;border:1px solid #b9d0ba;border-radius:7px}.n-structure>div{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:16px;font:12px var(--mono)}.n-structure b{font-weight:500;color:#52795d;background:#e5eee0;padding:8px;border:1px solid #c2d6c0;border-radius:3px}.n-structure>div>span{font:9px var(--mono);color:#a2b09d}.n-spatial-diff{position:absolute;bottom:17px;left:17px;max-width:450px;display:flex;gap:20px;flex-wrap:wrap;padding:12px 15px;background:#f3f6e9eb;border:1px solid #c2d4b5;border-radius:5px}.n-spatial-diff>.n-small{width:100%}.n-spatial-diff .n-metric{min-width:65px}.n-spatial-diff .n-metric strong{font-size:16px}.n-graphics-fallback{padding:40px;font-size:16px;line-height:1.7;color:var(--world-muted)}.n-fallback-reading{position:absolute;left:20px;right:20px;bottom:24px;padding:20px;background:var(--world-panel);color:var(--world-ink);font-size:18px}
/* A compact chronological journey; only the reading-zone work owns the live field. */
.journey-period-nav{display:flex;gap:30px;border-bottom:1px solid #dce4dd;padding:7px 0 22px;margin-bottom:36px}.journey-period-nav a{font-size:16px;letter-spacing:-.4px;color:#31573e}.journey-period-nav span{font-size:11px;color:#8d9e90;margin-left:10px;letter-spacing:0}.journey-layout{display:grid;grid-template-columns:minmax(275px,360px) minmax(0,1fr);gap:52px;align-items:start}.journey-field{position:sticky;top:105px;height:min(740px,calc(100svh - 130px));display:flex;flex-direction:column;grid-column:2;grid-row:1;min-width:0;border-radius:10px;overflow:hidden}.journey-render{flex:1;min-height:230px;position:relative}.journey-reading{padding:22px 24px;flex:none;background:var(--world-panel);border-top:1px solid var(--world-line)}.journey-reading [data-preview-cue]{font-size:21px;line-height:1.35;letter-spacing:-.5px;color:var(--world-ink)}.journey-reading [data-preview-status]{display:block;font:10px/1.6 var(--mono);color:var(--world-muted);margin:13px 0 7px}.journey-reading [data-preview-contribution]{font-size:12px;line-height:1.7;color:var(--world-muted)}.journey-reading .text-link{font-size:12px;margin-top:17px;color:var(--world-accent)}.journey-records{grid-column:1;grid-row:1}.journey-period>header{padding:35px 0 20px;border-top:1px solid #d4dfd5}.journey-period>header>span{font:11px var(--mono);color:#7c9384}.journey-period h3{display:flex;align-items:baseline;gap:13px;font-size:34px;letter-spacing:-1px;color:#274531;margin:6px 0 13px}.journey-period h3 small{font-size:13px;font-weight:400;letter-spacing:0;color:#83978a}.journey-period header p{font-size:13px;line-height:1.65;color:#7a8f80;max-width:32ch}.journey-period ol{list-style:none;padding:0;margin:0}.journey .work-row{padding:33px 15px 35px 19px;min-height:264px;border:0;border-left:2px solid #dde6df;display:flex;flex-direction:column;justify-content:center}.journey .work-row[aria-current=true]{border-left-color:#3b8157}.journey .work-row .work-year{font-size:10px;line-height:1.65;color:#869b8c}.journey .work-row h4{font-size:24px;line-height:1.22;letter-spacing:-.7px;margin-top:12px}.journey .work-row p{font-size:14px;line-height:1.7;color:#69826f;margin-top:15px;max-width:32ch}.journey .work-cta{margin-top:20px;font-size:11px}.journey .n-operator,.journey .n-certificate,.journey .n-buffer,.journey .n-constraints,.journey .n-error-chart,.journey .camera-tools{display:none!important}.journey .n-bottom-metrics{padding:9px;bottom:13px;left:13px;right:13px;gap:9px}.journey .n-bottom-metrics .n-metric>strong{font-size:17px}.journey .n-budget{max-width:240px;padding:9px;font-size:9px}.journey .n-budget-cells{grid-template-columns:repeat(16,1fr);gap:2px}.journey .n-budget>strong{font-size:9px}.journey .n-case-canvas{padding:12px}.journey .n-case-workspace{gap:8px}.journey .n-original h3{font-size:14px;margin:15px 0 12px}.journey .n-original p{font-size:11px}.journey .n-original{padding:13px}.journey .n-case-side article{padding:9px}.journey .n-case-side strong{font-size:14px;margin:8px 0}.journey .n-case-checks>div{padding:6px}.journey .n-case-checks b{font-size:8px}.journey .n-case-provenance{display:none}.journey .n-spatial-diff{gap:10px}.journey .n-spatial-diff .n-metric strong{font-size:13px}.journey .n-sentence p{font-size:29px}.journey .n-structure{padding:15px}.journey .n-structure b{font-size:10px;padding:6px}
@media(max-width:1150px){.n-story-layout{grid-template-columns:250px minmax(0,1fr);gap:27px}.n-chapter h2,.n-explore-chapter h2{font-size:27px}.n-chapter p{font-size:15px;line-height:1.8}.n-operator{width:157px;padding:10px}.n-matrix>span{font-size:8px;height:26px}.n-bottom-metrics{gap:12px}.n-metric strong{font-size:17px}.journey-layout{grid-template-columns:300px minmax(0,1fr);gap:35px}.n-case-canvas{padding:12px}.n-original{padding:14px}.n-original h3{font-size:15px}.n-original p{font-size:12px}.n-case-side>article{padding:10px}.n-case-side strong{font-size:16px}.n-case-provenance{gap:8px}}
@media(max-width:900px){.n-story-layout{grid-template-columns:220px minmax(0,1fr);gap:22px}.n-chapter>div{padding-left:14px}.n-chapter h2{font-size:25px}.n-chapter p{font-size:14px}.n-stage-top{padding:5px 12px}.n-stage-caption{padding:13px}.n-stage-caption p{font-size:12px}.n-operator{width:140px;right:10px;top:12px}.n-matrix>span{height:24px}.n-spectrum{height:60px}.n-certificate{left:12px;right:12px;bottom:15px;max-width:none}.n-metric strong{font-size:15px}.n-bottom-metrics{left:10px;right:10px;bottom:12px;padding:9px;gap:9px}.n-case-side>article{padding:9px}.n-case-records{gap:8px}.n-original h3{font-size:14px;margin:16px 0}.n-original p{font-size:11px}.n-original>header{font-size:10px}.n-case-checks b{font-size:8px}.n-case-checks span{font-size:8px}.n-case-checks small{font-size:7px}.journey-layout{grid-template-columns:260px minmax(0,1fr);gap:28px}.journey .work-row h4{font-size:22px}.journey-reading{padding:18px}.journey-reading [data-preview-cue]{font-size:19px}.journey .n-budget{max-width:210px}}
@media(max-width:780px){.scroll-experience{margin:0}.n-story-layout{display:block}.n-stage{position:sticky;top:65px;height:47svh;min-height:290px;max-height:445px;width:100%;z-index:7;box-shadow:0 8px 20px #1c34210d}.n-prose{padding:0 22px}.n-chapter{min-height:65svh;padding:46px 0 40px;align-items:center}.n-chapter>div{padding-left:19px;max-width:490px}.n-chapter h2,.n-explore-chapter h2{font-size:32px;max-width:22ch}.n-chapter p{font-size:16px;line-height:1.8;max-width:44ch}.n-stage-top{min-height:36px;padding:4px 12px}.n-stage-caption{min-height:66px;padding:11px 14px}.n-stage-caption p{font-size:12px;line-height:1.45}.n-stage-caption>span{font-size:8px;margin-top:5px}.n-explore-chapter{padding:55px 0 65px;min-height:115svh;max-width:490px;margin:auto}.n-explorer-controls{gap:14px}.n-explorer-controls button{font-size:13px;min-height:42px}.n-render-host .world-canvas{pointer-events:none!important;touch-action:pan-y!important}.n-render-host[data-mode=explore] .camera-tools{bottom:70px}.n-operator{top:10px;width:153px}.n-matrix>span{height:23px;font-size:8px}.n-matrix small{font-size:6px}.n-spectrum{height:54px}.n-spectrum i{max-height:42px;width:12px}.n-spectrum small{font-size:7px}.n-budget{top:10px;left:10px;padding:8px 10px;max-width:300px}.n-budget-cells{gap:2px;margin:6px 0}.n-budget>strong{font-size:9px}.n-small{font-size:8px}.n-buffer{top:10px;right:10px;padding:8px 10px}.n-buffer b{font-size:10px;padding:4px 6px}.n-buffer>strong{font-size:9px}.n-constraints{top:10px;right:10px;padding:8px 11px}.n-constraints code{font-size:11px;line-height:1.5}.n-error-chart{top:10px;left:10px;width:155px;padding:8px}.n-error-chart canvas{height:45px;margin-top:4px}.n-sentence{top:22%}.n-sentence p{font-size:28px;margin:12px 0}.n-structure{top:13%;padding:15px}.n-structure>div{margin-top:11px;font-size:11px}.n-structure b{padding:6px}.n-spatial-diff{bottom:10px;left:10px;padding:9px 11px;gap:13px}.n-spatial-diff .n-metric strong{font-size:14px}.n-spatial-diff>.n-small{display:none}.n-case-canvas{padding:10px}.n-case-workspace{gap:8px}.n-case-top small{font-size:6px;margin-top:3px}.n-case-top>b{padding:7px;font-size:7px}.n-case-records{flex:1}.n-original{padding:12px}.n-original header small{font-size:7px}.n-original h3{font-size:14px;line-height:1.22;margin:12px 0}.n-original p{font-size:11px;line-height:1.65;margin:8px 0}.n-original footer{display:none}.n-original>header i{width:23px;height:23px;font-size:8px}.n-case-side{gap:5px}.n-case-side>article{padding:7px 9px}.n-case-side small{font-size:7px}.n-case-side strong{font-size:13px;margin:5px 0}.n-case-side>article>span{display:none}.n-assertion{padding:7px 9px;font-size:8px}.n-assertion strong{font-size:9px}.n-assertion small{display:none}.n-case-checks{gap:5px}.n-case-checks>div{padding:6px 7px}.n-case-checks span{font-size:7px}.n-case-checks b{font-size:7px;margin:4px 0}.n-case-checks small{font-size:6px}.n-case-provenance{padding:6px 8px;gap:10px}.n-case-provenance p{font-size:6px;line-height:1.4}.n-case-provenance span{font-size:8px}.journey-layout{display:block}.journey-field{top:65px;height:42svh;min-height:300px;max-height:410px;z-index:7;box-shadow:0 8px 20px #1c34210d}.journey-render{min-height:180px}.journey-reading{padding:12px 16px}.journey-reading [data-preview-cue]{font-size:16px;line-height:1.3}.journey-reading [data-preview-status]{font-size:8px;margin:7px 0 0}.journey-reading [data-preview-contribution]{display:none}.journey-reading .text-link{position:absolute;inset:auto 15px 9px auto;font-size:10px}.journey-reading .text-link svg{width:13px}.journey-records{padding:30px 20px 0}.journey-period header{padding:24px 0 22px}.journey .work-row{min-height:300px;padding:35px 15px 35px 20px}.journey .work-row h4{font-size:25px}.journey .work-row p{font-size:15px}.journey-period-nav{gap:26px;margin-bottom:20px}.journey-period-nav span{display:none}.journey .n-bottom-metrics{display:none}.journey .n-budget{max-width:240px}.journey .n-budget-cells{grid-template-columns:repeat(16,1fr)}.journey .n-case-checks,.journey .n-assertion{display:none}.journey .n-case-top{display:none}.journey .n-case-side{gap:6px}.journey .n-original>header{display:none}.journey .n-original h3{font-size:13px;margin:5px 0 10px}.journey .n-original p{font-size:11px}.journey .n-case-side strong{font-size:13px}.journey .n-structure{padding:10px;top:12%}.journey .n-structure>div{font-size:9px;margin-top:8px}.journey .n-structure b{padding:4px}.journey .n-sentence p{font-size:22px}.journey .n-spatial-diff{padding:6px 9px;gap:10px}.journey .n-spatial-diff .n-metric strong{font-size:12px}}
@media(max-width:520px){.n-intro{font-size:10px;margin-bottom:18px;gap:15px}.n-prose{padding:0 8px}.n-stage{height:48svh;min-height:302px;border-radius:8px}.n-chapter{min-height:65svh;padding:36px 0}.n-chapter>div{padding-left:16px}.n-chapter h2,.n-explore-chapter h2{font-size:29px;letter-spacing:-.9px;margin-bottom:20px}.n-chapter p{font-size:15px;line-height:1.85}.n-step{font-size:10px;margin-bottom:15px}.n-explore-chapter{padding:45px 10px 60px}.n-stage-caption{padding:9px 12px;min-height:64px}.n-stage-caption p{font-size:11px}.n-stage-caption>span{font-size:7px}.n-bottom-metrics{bottom:9px;left:9px;right:9px;padding:8px;gap:8px}.n-metric>span{font-size:8px}.n-metric>strong{font-size:15px;letter-spacing:-.4px;line-height:1.2;margin-top:5px}.n-bottom-metrics>.n-metric:last-child:nth-child(4){display:none}.n-operator{width:128px;padding:8px;right:8px;top:8px}.n-operator>.n-small{font-size:7px}.n-matrix{gap:2px;margin-top:6px;padding:2px}.n-matrix>span{font-size:7px;height:21px}.n-spectrum{height:46px;gap:2px;margin-top:5px}.n-spectrum small{font-size:6px}.n-spectrum i{width:10px;max-height:34px}.n-certificate{left:9px;right:9px;bottom:10px;padding:9px;gap:10px}.n-certificate .n-small{font-size:7px}.n-buffer{max-width:170px;right:8px;top:8px;padding:8px}.n-buffer b{font-size:8px;padding:4px}.n-buffer>strong{font-size:8px}.n-constraints{right:9px;top:9px;padding:8px}.n-constraints code{font-size:9px}.n-budget{max-width:258px;top:9px;left:9px;padding:8px}.n-budget>.n-small{font-size:7px}.n-budget>strong{font-size:8px}.n-error-chart{width:136px;top:9px;left:9px;padding:8px}.n-error-chart canvas{height:40px}.n-service{left:9px;right:9px;bottom:9px;padding:9px}.n-service>div{font-size:9px;margin:8px 0}.n-service section{height:9px}.n-service b{font-size:10px}.n-service small{font-size:8px}.n-spatial-diff{bottom:9px;left:9px;padding:8px 10px;gap:10px}.n-spatial-diff .n-metric strong{font-size:12px}.n-spatial-diff .n-metric{min-width:42px}.n-spatial-diff .n-metric span{font-size:7px}.n-sentence{left:7%;right:7%;top:23%}.n-sentence p{font-size:23px;letter-spacing:-.7px}.n-sentence>small{font-size:9px}.n-structure{left:6%;right:6%;top:15%;padding:12px}.n-structure>div{gap:8px;margin-top:10px}.n-structure b{font-size:9px;padding:5px}.n-structure>div>span{font-size:7px}.n-case-canvas{padding:8px}.n-case-workspace{gap:6px}.n-case-top>span{font-size:8px}.n-case-top small{font-size:5px}.n-case-top>b{font-size:6px;padding:6px}.n-original{padding:10px}.n-original h3{font-size:12px;margin:10px 0 8px}.n-original p{font-size:10px;margin:7px 0;line-height:1.6}.n-original header small{font-size:6px}.n-original>header{font-size:9px;gap:6px}.n-original>header i{width:20px;height:20px}.n-case-side small{font-size:6px}.n-case-side strong{font-size:11px}.n-case-side>article{padding:6px 7px}.n-assertion{font-size:7px;padding:6px 7px}.n-assertion strong{font-size:8px}.n-case-checks>div{padding:5px}.n-case-checks b{font-size:6px}.n-case-checks span{font-size:7px}.n-case-checks small{font-size:5px}.n-case-provenance{padding:5px 7px}.n-case-provenance p{font-size:5px}.n-case-provenance span{font-size:7px}.journey-records{padding:25px 9px 0}.journey .work-row{min-height:295px;padding-left:17px}.journey .work-row h4{font-size:24px}.journey .work-row p{font-size:14px}.journey-period h3{font-size:32px}.journey-reading [data-preview-cue]{font-size:15px}.journey-reading{padding:11px 13px 27px}.journey-reading .text-link{bottom:7px;right:13px;font-size:9px}.journey-field{height:42svh;min-height:310px}.journey-render{min-height:160px}.journey .n-budget{max-width:215px}.journey .n-budget>.n-small{font-size:6px}}
@media(prefers-reduced-motion:reduce){.n-chapter>div{transition:none}.n-chapter p{color:#4d6856}.n-explorer{transition:none}.n-progress-line{transition:none}}
@media print{.n-stage,.journey-field,.n-intro button,.n-explorer{display:none}.n-story-layout,.journey-layout{display:block}.n-chapter{min-height:0;padding:20px 0}.n-explore-chapter{min-height:0}.journey .work-row{min-height:0}.journey-period-nav{display:none}}

.n-fallback-reading{bottom:30px;display:grid;grid-template-columns:repeat(2,1fr);gap:20px;padding:25px}.n-fallback-reading .n-metric{border-bottom:1px solid var(--world-line);padding:13px 0}.n-fallback-reading[hidden]{display:none!important}@media(max-width:780px){.n-graphics-fallback{font-size:10px;padding:15px}.n-fallback-reading{bottom:10px;gap:8px;padding:8px;left:10px;right:10px}.n-fallback-reading .n-metric{padding:6px 0}.n-fallback-reading .n-metric strong{font-size:16px}}

.n-original mark{white-space:nowrap}@media(max-width:520px){.n-case-top>b{font-size:8px;max-width:49%;line-height:1.45}.n-case-checks b{font-size:8px;line-height:1.4}.n-case-checks small{font-size:7px;line-height:1.4}.n-case-checks span{font-size:8px}.n-case-provenance p{font-size:7px;line-height:1.55}.n-case-provenance span{font-size:9px}.n-original header small{font-size:7px}}

/* Render review: legible exact notation and a visible current-only vector. */
@media(min-width:1151px){.n-operator{width:224px;padding:14px}.n-matrix>span{font-size:10px;height:36px}.n-matrix small{font-size:9px}.n-spectrum small{font-size:10px}.n-spectrum{height:90px}}
.n-case-cards [data-amount]{font:inherit;color:inherit}.n-fallback-sentence{font-size:25px;line-height:1.35;margin:0 0 24px}.n-fallback-reading{max-height:100%;overflow:auto}

/* Final reading pass: withheld elements must not leak through flex/grid display rules. */
.scroll-narrative [hidden],.journey-field [hidden]{display:none!important}
/* The mobile claim remains an actual readable document, not a shrunken desktop screenshot. */
@media(max-width:780px){
 .n-stage:has(.n-case-canvas){height:54svh;max-height:500px;min-height:395px}
 .n-case-workspace{gap:8px}
 .n-original{padding:12px}
 .n-original>header{font-size:10px}
 .n-original header small{font-size:8px;line-height:1.35}
 .n-original h3{font-size:14px;line-height:1.3;margin:12px 0 10px}
 .n-original p{font-size:12px;line-height:1.6;margin:10px 0}
 .n-case-side small{font-size:8px;line-height:1.35}
 .n-case-side strong{font-size:13px;line-height:1.3;margin:5px 0}
 .n-case-side>article{padding:8px}
 .n-case-top>b{font-size:9px;line-height:1.45}
 .n-assertion{font-size:10px;padding:8px 10px}
 .n-assertion strong{font-size:10px}
 .n-case-checks>div{padding:7px 6px}
 .n-case-checks span{font-size:9px;line-height:1.35}
 .n-case-checks b{font-size:9px;line-height:1.4}
 .n-case-checks small{font-size:8px;line-height:1.45}
 .n-case-provenance p{font-size:8px;line-height:1.5}
 .n-case-provenance span{font-size:10px}
}

/* Keep source cards, assertion, checks and provenance in disjoint reading bands. */
@media(max-width:780px){
.scroll-narrative .n-stage:has(.n-case-canvas){height:64svh;min-height:515px;max-height:620px}
.scroll-narrative .n-case-records{flex:1 0 auto;min-height:min-content}
.scroll-narrative .n-case-workspace>div{flex-shrink:0}
}
.n-case-side [data-amount]{font:inherit;color:inherit}
/* Final reading surfaces: preserve the argument, not merely containment of the canvas. */
.work-byline{font-size:13px;line-height:1.65;color:#6c7f76;margin-top:12px;max-width:80ch}
.n-source-link{font:inherit!important;color:#39687c!important;text-decoration:underline;text-underline-offset:3px;border:0!important;padding:0 4px!important;min-height:0!important;background:none!important;pointer-events:auto}
.n-case-canvas.source-focused .n-original mark{outline:2px solid #7caa99;outline-offset:3px}
.n-mode-reading{margin-top:14px;padding-top:12px;border-top:1px solid #3c5661}
.n-case-checks{transition:none}
@media(max-width:780px){
 .scroll-narrative .n-stage:has(.n-case-canvas){height:54svh;min-height:0;max-height:none}
 .n-stage:has(.n-case-canvas) .n-stage-top{min-height:36px;padding:3px 10px}
 .n-stage:has(.n-case-canvas) .n-stage-caption{min-height:0;padding:9px 12px}
 .n-stage:has(.n-case-canvas) .n-stage-caption p{font-size:11px;line-height:1.4}
 .n-stage:has(.n-case-canvas) .n-stage-caption>span{font-size:8px;margin-top:3px}
 .scroll-narrative .n-case-workspace{gap:6px;padding:10px}
 .scroll-narrative .n-case-records{min-height:0;flex:1 1 auto;gap:7px}
 .scroll-narrative .n-case-workspace>div{flex-shrink:0}
 .scroll-narrative .n-case-workspace>.n-case-records{flex-shrink:1}
 .scroll-narrative .n-original{padding:10px;min-height:0}
 .scroll-narrative .n-original>header{font-size:10px;line-height:1.3}
 .scroll-narrative .n-original header i{display:none}
 .scroll-narrative .n-original header small{font-size:8px;line-height:1.3;margin-top:3px}
 .scroll-narrative .n-original h3{font-size:13px;line-height:1.35;margin:9px 0}
 .scroll-narrative .n-original p{font-size:12px;line-height:1.55;margin:6px 0}
 .scroll-narrative .n-original p+p{display:none} /* amount remains legible in the adjacent invoice */
 .scroll-narrative .n-case-side{gap:5px}
 .scroll-narrative .n-case-side>article{padding:7px}
 .scroll-narrative .n-case-side small{font-size:8px;line-height:1.3}
 .scroll-narrative .n-case-side strong{font-size:12px;margin:4px 0;line-height:1.3}
 .scroll-narrative .n-case-top>b{font-size:9px;line-height:1.35;padding:6px 7px}
 .scroll-narrative .n-assertion{padding:6px 8px;font-size:10px;gap:5px;flex-wrap:wrap}
 .scroll-narrative .n-assertion strong{font-size:10px}
 .scroll-narrative .n-case-checks{gap:4px}
 .scroll-narrative .n-case-checks>div{padding:5px}
 .scroll-narrative .n-case-checks span,.scroll-narrative .n-case-checks b{font-size:9px;line-height:1.3}
 .scroll-narrative .n-case-checks small{font-size:8px;line-height:1.3}
 .scroll-narrative .n-case-provenance{padding:6px 7px;gap:8px}
 .scroll-narrative .n-case-provenance p{font-size:8px;line-height:1.35}
 .scroll-narrative .n-case-provenance span{font-size:9px}
 .n-render-host[data-mode="explore"] .camera-tools{bottom:auto;top:8px;right:8px;left:8px;justify-content:flex-end}
 .n-render-host .camera-tools [data-view="expand"]{display:none}
 .camera-tools [data-touch-view]{background:#f2f6f3;color:#356f59;border:1px solid #94b4a4}
 .n-explorer-controls small{font-size:12px;line-height:1.65}
}
@media(max-width:360px),(max-width:780px) and (max-height:740px){
 .scroll-narrative .n-stage:has(.n-case-canvas){height:55svh}
 .scroll-narrative .n-case-workspace{gap:4px;padding:7px}
 .scroll-narrative .n-original{padding:8px}
 .scroll-narrative .n-original h3{display:none}
 .scroll-narrative .n-original header small{display:none}
 .scroll-narrative .n-case-side>article{padding:4px 6px}
 .scroll-narrative .n-case-side strong{font-size:11px;margin:2px 0}
 .scroll-narrative .n-case-provenance p{max-height:26px;overflow:auto}
 .n-stage:has(.n-case-canvas) .n-stage-caption{padding:7px 9px}
 .n-stage:has(.n-case-canvas) .n-stage-caption>span{display:none} /* the same synthetic label remains at the top */
}
@media(max-width:780px){
 .n-case-canvas[data-report="true"] .n-original header,.n-case-canvas[data-report="true"] .n-original h3{display:none}
 .n-case-canvas[data-report="true"] .n-original:before{content:'CUSTOMER · MESSAGE 1';font:8px var(--mono);color:#81929b;display:block;margin-bottom:7px}
 .n-case-canvas[data-report="true"] .n-invoice,.n-case-canvas[data-report="true"] .n-policy{display:none} /* attention moves to the conflicting record; the invoice retains its check */
 .scroll-narrative .n-case-workspace>.n-case-records{min-height:min-content;flex:1 0 auto}
 .scroll-narrative .n-case-checks small{font-size:0;min-height:12px;line-height:1}
 .scroll-narrative .n-case-checks small:after{content:attr(data-short);font:9px/1.3 var(--mono)}
 .scroll-narrative .n-case-checks span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:8px}
 .scroll-narrative .n-case-checks b{font-size:8px;margin:4px 0}
 .scroll-narrative .n-case-provenance p{max-height:none;overflow:visible;line-height:1.4}
 .n-source-link{font-size:9px!important}
 .scroll-narrative .n-assertion>span{white-space:nowrap;font-size:9px}
}
@media(max-width:360px),(max-width:780px) and (max-height:740px){
 .scroll-narrative .n-case-top{min-height:0}
 .scroll-narrative .n-case-top>b{font-size:0;padding:5px 6px}
 .scroll-narrative .n-case-top>b:after{content:attr(data-short);font:9px/1.3 var(--mono)}
 .scroll-narrative .n-case-provenance{padding:4px 6px}
 .scroll-narrative .n-case-provenance>span{display:none}
 .scroll-narrative .n-assertion{padding:5px;display:grid;grid-template-columns:1fr auto}
 .scroll-narrative .n-assertion strong{font-size:9px}
 .scroll-narrative .n-case-checks>div{padding:4px 3px}
 .scroll-narrative .n-case-checks b{font-size:7px}
 .scroll-narrative .n-case-checks span{font-size:8px}
 .scroll-narrative .n-case-side small{font-size:7px}
 .n-case-canvas[data-report="true"] .n-original:before{font-size:7px;margin-bottom:3px}
 .scroll-narrative .n-original p{line-height:1.4}
 .scroll-narrative .n-case-top>span small{font-size:6px;line-height:1.2}
}
@media(max-width:780px) and (max-height:650px){
 .scroll-narrative .n-case-workspace{padding:6px;gap:3px}
 .scroll-narrative .n-case-checks b{display:none}
 .scroll-narrative .n-case-checks span:after{content:' !';font-weight:700;color:#a66b38}
 .scroll-narrative .n-case-checks .satisfied span:after{content:' ✓';color:#347962}
 .scroll-narrative .n-case-checks small{display:block;margin-top:4px}
}
@media(max-width:780px) and (max-height:650px){.n-canvas-host.n-case-canvas{padding:3px}}
/* The director owns reader-position preservation. Native scroll anchoring must
   not apply a second correction after the same DOM/layout update. */
body:has(.scroll-narrative){overflow-anchor:none}

/* On compact screens, the same 64 budget slots become two thin rows.
   The allocation stays visible without covering the temporal field it explains. */
@media(max-width:520px){
 .scroll-narrative .n-render-host .n-budget-cells{grid-template-columns:repeat(32,minmax(0,1fr));gap:1px;margin:5px 0}
 .scroll-narrative .n-render-host .n-budget-cells i{height:4px;aspect-ratio:auto;border-radius:1px}
 .scroll-narrative .n-render-host .n-budget>.n-small{font-size:8px}
 .scroll-narrative .n-render-host .n-budget>strong{font-size:9px}
}

/* Preserve the geometry's reading lane: metadata becomes a compact key.
   Redundant headings remain available to assistive technology. */
@media(max-width:520px){
 .scroll-narrative .n-budget{padding:6px 8px}
 .scroll-narrative .n-budget>.n-small,.scroll-narrative .n-buffer>.n-small,.scroll-narrative .n-buffer .n-independence{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 .scroll-narrative .n-budget-cells{margin:4px 0}
 .scroll-narrative .n-budget>strong{display:block;font-size:10px;line-height:1.35}
 .scroll-narrative .n-buffer{left:9px;right:9px;top:9px;max-width:none;padding:6px 8px;display:flex;flex-wrap:wrap;align-items:center;gap:5px 9px}
 .scroll-narrative .n-buffer>div{margin:0;gap:4px}
 .scroll-narrative .n-buffer>strong{margin:0;font-size:9px}
 .scroll-narrative .n-buffer b{padding:3px 5px;font-size:10px}
}

/* Mode inspection focuses on the actual arrows, not the repair panel.
   Keep exact numbers beside the operator on desktop; use a shallow footer
   on phones rather than placing a matrix on top of the five-node geometry. */
.n-operator .n-mode-reading{margin-top:12px;padding-top:10px}
.n-operator .n-mode-reading>.n-small{margin-top:6px}
@media(max-width:780px){
 .n-operator[data-inspecting="true"]{top:auto;bottom:9px;left:9px;right:9px;width:auto;padding:7px 10px}
 .n-operator[data-inspecting="true"]>.n-small,.n-operator[data-inspecting="true"]>.n-matrix,.n-operator[data-inspecting="true"]>.n-spectrum{display:none}
 .n-operator[data-inspecting="true"] .n-mode-reading{margin:0;padding:0;border:0;display:flex;align-items:center;gap:12px}
 .n-operator[data-inspecting="true"] .n-metric{flex:0 0 76px}
 .n-operator[data-inspecting="true"] .n-metric>span{font-size:9px}
 .n-operator[data-inspecting="true"] .n-metric>strong{font-size:16px;margin-top:2px}
 .n-operator[data-inspecting="true"] .n-mode-reading>.n-small{font-size:9px;line-height:1.35;margin:0;flex:1}
}

/* Detailed inspection is a deliberate explorer action. On a short phone,
   keep the graph area stable across mode selections, with space for the
   controls and exact footer. The guided stage keeps its original height. */
@media(max-width:780px) and (max-height:650px){
 .scroll-narrative .n-stage[data-mode="explore"]:has(.n-operator){height:min(440px,calc(100svh - 152px));min-height:0;max-height:none}
}
