.fn-lab{--fn-blue:#1d4ed8;--fn-ink:#172554;--fn-border:#cbd5e1;background:#fff;color:#172554;border:1px solid var(--fn-border);border-radius:16px;overflow:hidden;margin:1.5rem 0;isolation:isolate}
.fn-lab [hidden]{display:none!important}.fn-head{padding:1.5rem;background:#eff6ff;border-bottom:1px solid var(--fn-border)}
.fn-head h3{font-size:clamp(1.4rem,3vw,2rem);font-weight:750;margin:.3rem 0 .5rem}.fn-eyebrow{font-size:.72rem;letter-spacing:.1em;font-weight:750;color:#1e40af}.fn-head p{max-width:70ch}
.fn-views,.fn-modes,.fn-tools,.fn-playback,.fn-path-form,.fn-examples,.fn-compare-form{display:flex;flex-wrap:wrap;align-items:center;gap:.6rem;padding:.8rem 1rem}.fn-head .fn-views{padding:1rem 0 0}
.fn-lab button,.fn-lab select,.fn-lab input:not([type=checkbox]):not([type=range]){border:1px solid #94a3b8;border-radius:7px;min-height:44px;background:white;color:#172554;padding:.5rem .7rem;max-width:100%;font:inherit}
.fn-lab button{font-weight:600;cursor:pointer}.fn-lab button:hover{background:#eff6ff}.fn-lab button[aria-pressed=true],.fn-path-form button[type=submit]{background:#1d4ed8;color:#fff;border-color:#1d4ed8}
.fn-lab :is(button,input,select,summary,a):focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}.fn-lab label{display:flex;flex-direction:column;gap:.3rem;font-size:.84rem;font-weight:600;min-width:0}
.fn-playback{background:#f8fafc;border-bottom:1px solid #e2e8f0}.fn-playback input[type=range]{flex:1;min-width:150px;accent-color:#1d4ed8;height:44px}.fn-tools>label:first-child{flex:1}.fn-tools input{width:100%}
.fn-filters,.fn-comparison,.fn-listing{margin:.4rem 1rem 1rem;border:1px solid var(--fn-border);border-radius:8px;padding:.7rem}.fn-lab summary{cursor:pointer;min-height:32px;font-weight:650;padding:.25rem}.fn-filters p,.fn-listing>p{font-size:.85rem;margin:.7rem 0;color:#475569}
.fn-filter-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.fn-filter-grid .fn-check{flex-direction:row;align-items:center;gap:.7rem;min-height:44px}.fn-check input{width:20px;height:20px;accent-color:#1d4ed8;flex-shrink:0}
.fn-path-form{border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0;align-items:end;background:#f8fafc}.fn-path-form label{flex:1;min-width:170px}.fn-path-form select{width:100%}
.fn-examples{font-size:.8rem}.fn-examples button{font-size:.8rem}.fn-live{margin:.5rem 1rem;font-weight:700;font-size:.9rem;font-variant-numeric:tabular-nums}.fn-reading{margin:.5rem 1rem 1rem;font-size:.82rem;color:#475569;max-width:100ch}
.fn-body{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,30%);border-top:1px solid var(--fn-border);border-bottom:1px solid var(--fn-border)}.fn-scene{min-width:0;background:#f8fafc}.fn-canvas{overflow:auto;max-height:720px;min-height:330px;border-top:1px solid #e2e8f0;overscroll-behavior:auto}.fn-canvas svg{display:block;height:auto;width:100%;min-height:350px}.fn-zoom{display:flex;gap:.4rem;padding:.5rem}.fn-zoom button{min-width:44px}
.fn-domain{font:700 15px Inter,sans-serif;fill:#1e3a8a}.fn-edge{fill:none;stroke:#1d4ed8;stroke-width:1.6;opacity:.42}.fn-context{stroke:#64748b;stroke-dasharray:2 5;opacity:.32}.fn-hypothesis{stroke:#92400e;stroke-dasharray:8 4}.fn-node{cursor:pointer;outline:none}.fn-node text{font:12px Inter,sans-serif;fill:#172554;paint-order:stroke;stroke:#f8fafc;stroke-width:4px;stroke-linejoin:round}.fn-node.fn-active text{font-weight:750}.fn-node.fn-muted{opacity:.5}.fn-node:focus-visible circle{stroke:#0f172a;stroke-width:5}.fn-node:hover text{text-decoration:underline}
.fn-node text.fn-expanded-label{font-size:16px;font-weight:650}.fn-lab{scroll-margin-top:110px}.fn-relation h5 button{overflow-wrap:anywhere}
.fn-detail{padding:1rem;border-left:1px solid var(--fn-border);max-height:790px;overflow:auto;line-height:1.6;font-size:.9rem;background:#fff}.fn-detail h4{font-size:1.22rem;font-weight:750;line-height:1.3;margin:.3rem 0 .8rem}.fn-detail p{margin:.55rem 0}.fn-tag{font-size:.76rem;font-weight:700;color:#1e40af}.fn-period,.fn-source{font-size:.78rem;color:#475569}.fn-source a{color:#1d4ed8;text-decoration:underline;overflow-wrap:anywhere}.fn-warning{padding:.65rem;background:#fffbeb;color:#78350f;border-left:3px solid #b45309}
.fn-relation{padding:.8rem 0;border-bottom:1px solid #e2e8f0}.fn-relation h5{font-weight:700;line-height:1.5}.fn-relation h5 button{border:0;background:transparent;color:#1d4ed8;min-height:32px;padding:.15rem;text-align:left;text-decoration:underline}.fn-relation p{margin:.35rem 0}.fn-detail details{margin:.7rem 0}.fn-detail summary{font-size:.85rem}
.fn-legend{font-size:.78rem;line-height:1.7;padding:.7rem 1rem;color:#475569}.fn-node-list{display:flex;flex-wrap:wrap;gap:.4rem;max-height:300px;overflow:auto;margin:.7rem 0}.fn-node-list>p{flex-basis:100%;font-size:.8rem}.fn-node-list button{font-size:.8rem;text-align:left}.fn-edge-list{max-height:420px;overflow:auto;font-size:.85rem}.fn-edge-list details{padding:.3rem;border-bottom:1px solid #e2e8f0}.fn-listing h4{font-weight:700}.fn-comparison p{font-size:.85rem;margin:.5rem 0}
.fn-timeline{max-height:720px;overflow:auto;background:#fff}.fn-timeline svg{min-width:1000px}.fn-lab input[readonly]{width:100%;margin-top:.8rem}.fn-lab .fn-compare-form label{flex:1;min-width:140px}
@media(max-width:850px){.fn-body{grid-template-columns:minmax(0,1fr)}.fn-detail{border-left:0;border-top:1px solid var(--fn-border);max-height:500px}.fn-canvas{max-height:560px}.fn-canvas svg{min-width:850px!important}.fn-head{padding:1rem}.fn-modes button{flex:1 1 130px;font-size:.84rem}}
@media(max-width:480px){.fn-filter-grid{grid-template-columns:minmax(0,1fr)}.fn-path-form label{min-width:100%;width:100%}.fn-path-form button{width:100%}.fn-tools>label{min-width:100%}.fn-playback input[type=range]{flex-basis:100%}.fn-views button{flex:1}.fn-head h3{font-size:1.4rem}.fn-lab{border-radius:10px}.fn-modes,.fn-tools,.fn-playback,.fn-path-form,.fn-examples{padding:.65rem}.fn-lab select{font-size:.86rem}.fn-live,.fn-reading{margin-left:.65rem;margin-right:.65rem}.fn-detail{padding:.75rem}}
@media(prefers-reduced-motion:reduce){.fn-lab *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.fn-canvas.fn-vertical-path svg{min-width:0!important;min-height:0}.fn-canvas{scroll-margin-top:115px}.fn-canvas.fn-vertical-path .fn-edge{opacity:1;stroke-width:2}.fn-node.fn-muted{opacity:.75}
.fn-canvas.fn-domain-view svg{min-width:420px!important}.fn-canvas.fn-domain-view .fn-node text{font-size:14px}
.fn-atlas{padding:1.1rem;border-block:1px solid #cbd5e1;background:#f8fafc}.fn-atlas h4{font-size:1.5rem;font-weight:750;margin:0 0 .6rem}.fn-atlas h5{font-size:1.1rem;font-weight:750;margin:.8rem 0}.fn-atlas-intro{max-width:80ch}.fn-atlas-controls{display:flex;flex-wrap:wrap;gap:1rem;margin:1rem 0}.fn-atlas-controls label{flex:1;min-width:200px}.fn-atlas-note{font-size:.85rem;line-height:1.65;color:#475569;margin:.8rem 0;max-width:100ch}
.fn-domain-map{max-width:900px;margin:0 auto}.fn-domain-map svg{display:block;width:100%;height:auto}.fn-domain-link{fill:none;stroke:#1d4ed8;stroke-width:1.7;opacity:.4;cursor:pointer}.fn-domain-context{stroke:#64748b;stroke-dasharray:4 6}.fn-domain-selected,.fn-domain-link:hover,.fn-domain-link:focus{stroke-width:4;opacity:1;outline:none}.fn-domain-node{cursor:pointer}.fn-domain-node circle{stroke:#fff;stroke-width:3}.fn-domain-active circle,.fn-domain-node:focus circle{stroke:#172554;stroke-width:6}.fn-domain-node:focus{outline:none}.fn-domain-count{font:700 21px Inter,sans-serif;fill:#fff}.fn-domain-name{font:650 17px Inter,sans-serif;fill:#172554;paint-order:stroke;stroke:#f8fafc;stroke-width:4px}
.fn-domain-tiles{display:none}.fn-atlas-columns{display:grid;grid-template-columns:minmax(230px,35%) minmax(0,1fr);gap:1rem;align-items:start}.fn-domain-connections{max-height:660px;overflow:auto;padding:.6rem}.fn-domain-connections>button{display:block;width:100%;text-align:left;font-size:.84rem;margin-bottom:.5rem}.fn-domain-detail{background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:1rem;scroll-margin-top:115px;min-height:180px}.fn-mechanism{margin:.7rem 0;border-bottom:1px solid #e2e8f0;padding:.5rem 0}.fn-mechanism>summary{line-height:1.5;font-size:.9rem}.fn-mechanism .fn-relation{border:0}.fn-mechanism p{font-size:.9rem;line-height:1.65}.fn-dossier-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.8rem 0}.fn-dossier-actions button{font-size:.85rem}
.fn-atlas-method{border:1px solid #cbd5e1;border-radius:8px;background:#fff;padding:.8rem;margin:1rem 0}.fn-atlas-method p{font-size:.88rem;line-height:1.65;margin:.6rem 0}.fn-lenses{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.fn-lenses button{font-size:.85rem}.fn-dossiers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.7rem;align-items:start}.fn-dossier{background:#fff;border:1px solid #cbd5e1;border-radius:8px;padding:.7rem;min-width:0}.fn-dossier summary{font-size:.95rem}.fn-dossier-body{font-size:.9rem;line-height:1.65;padding:.5rem}.fn-dossier-body p{margin:.6rem 0}.fn-convergence-body>details{padding:.7rem 0;border-bottom:1px solid #e2e8f0}
@media(max-width:700px){.fn-domain-map{display:none}.fn-domain-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem;margin:1rem 0}.fn-domain-tiles button{display:flex;flex-direction:column;gap:.3rem;align-items:start;text-align:left;border-top-width:4px;min-height:85px;font-size:.86rem}.fn-domain-tiles span{font-size:.76rem}.fn-atlas-columns,.fn-dossiers{grid-template-columns:minmax(0,1fr)}.fn-domain-connections{max-height:310px}.fn-atlas{padding:.7rem}.fn-atlas-controls label{min-width:100%}.fn-domain-detail{padding:.75rem}.fn-atlas h4{font-size:1.25rem}}
.fn-story-lead{max-width:80ch;line-height:1.65}.fn-story-menu{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem;margin:1.4rem 0}.fn-story-menu button{display:flex;gap:.8rem;align-items:center;text-align:left;min-height:82px;font-size:.9rem;padding:.8rem}.fn-story-number{font-size:1.35rem;font-weight:750;opacity:.65}.fn-story-heading{border-top:1px solid #cbd5e1;padding-top:.7rem}.fn-story-heading h5{font-size:1.35rem}.fn-story-heading p{line-height:1.6;max-width:85ch}.fn-story-caution,.fn-evidence-note{font-size:.8rem;line-height:1.55;color:#475569;margin:.6rem 0}.fn-story-diagram{background:#eef3f9;border:1px solid #d7e0ed;border-radius:12px;margin:1rem 0;overflow:hidden}.fn-story-diagram svg{display:block;width:100%;height:auto}.fn-story-node{cursor:pointer;outline:none}.fn-story-node>rect:first-child{stroke:#b6c6dc;stroke-width:1.4}.fn-story-connected>rect:first-child,.fn-story-node:focus>rect:first-child{stroke:#1d4ed8;stroke-width:2.5}.fn-story-domain{fill:#64748b;font-weight:600}.fn-story-title{fill:#172554;font-weight:650}.fn-story-line{fill:none;stroke:#1d4ed8;stroke-width:2;opacity:.42;pointer-events:none}.fn-story-hit{fill:none;stroke:transparent;stroke-width:20;cursor:pointer}.fn-story-buffer{stroke:#047857;stroke-dasharray:6 5}.fn-story-selected,[data-story-edge]:focus .fn-story-line,[data-story-edge]:hover .fn-story-line{opacity:1;stroke-width:3.5}.fn-story-lower{display:grid;grid-template-columns:minmax(0,40%) minmax(0,1fr);gap:1rem;align-items:start}.fn-story-mechanisms{min-width:0}.fn-story-mechanisms button{display:flex;flex-direction:column;align-items:start;text-align:left;width:100%;margin:.5rem 0;font-size:.85rem;gap:.35rem;line-height:1.5}.fn-story-mechanisms button span{font-size:.78rem;font-weight:400}.fn-story-detail{background:#fff;border:1px solid #cbd5e1;border-radius:10px;padding:1rem;min-width:0;scroll-margin-top:120px}.fn-story-detail .fn-relation{border:0}.fn-story-boundary{border-left:4px solid #64748b;padding:.8rem 1rem;margin:1rem 0;line-height:1.6;font-size:.85rem}.fn-story-boundary p{margin-top:.3rem}.fn-matrix-scroll{overflow:auto;max-width:100%;margin:1rem 0;border:1px solid #cbd5e1;border-radius:9px;background:white}.fn-matrix{border-collapse:separate;border-spacing:0;width:100%;min-width:880px;font-size:.76rem;table-layout:fixed}.fn-matrix caption{padding:1rem;text-align:left;font-weight:700;color:#172554}.fn-matrix th{background:#edf2fa;font-size:.73rem;padding:.5rem;overflow-wrap:anywhere}.fn-matrix th:first-child{width:120px;position:sticky;left:0;z-index:1}.fn-matrix td{text-align:center;border-top:1px solid #e2e8f0;border-left:1px solid #e2e8f0;padding:.25rem;color:#94a3b8}.fn-matrix td button{background:#eaf1ff;min-width:44px;font-size:.85rem;margin:2px;padding:.3rem}.fn-matrix th button{border:0;min-height:44px;font-size:.75rem;background:transparent;padding:.2rem;text-align:left}.fn-overview-label{font-size:13px!important}.fn-canvas.fn-domain-view .fn-node text{font-size:13px}.fn-node text{stroke-width:2px}
@media(max-width:700px){.fn-story-menu{grid-template-columns:repeat(2,minmax(0,1fr))}.fn-story-menu button{flex-direction:column;align-items:start;gap:.3rem;font-size:.82rem;min-height:110px}.fn-story-lower{grid-template-columns:minmax(0,1fr)}.fn-story-heading h5{font-size:1.15rem}.fn-story-detail{padding:.7rem}.fn-story-mechanisms{max-height:350px;overflow:auto}.fn-story-diagram{max-height:650px;overflow:auto}.fn-story-diagram svg{min-height:0}.fn-story-number{font-size:1rem}}
@media(max-width:360px){.fn-story-menu{grid-template-columns:minmax(0,1fr)}.fn-story-menu button{flex-direction:row;align-items:center;min-height:62px}.fn-story-number{flex-shrink:0}}
.fc-controls{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}.fc-controls button{font-size:.87rem}.fc-counts{font-weight:650;font-size:.87rem;line-height:1.6;margin:1rem 0}.fc-gap{border-left:4px solid #b45309;background:#fffbeb;padding:.8rem 1rem;line-height:1.6;font-size:.9rem}.fc-drawings{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;margin:1rem 0}.fc-figure{margin:0;min-width:0;border:1px solid #cbd5e1;border-radius:12px;background:#eef3f9;overflow:hidden}.fc-figure figcaption{font-size:1.05rem;font-weight:750;margin:1rem 1rem .4rem}.fc-caption{font-size:.8rem;line-height:1.55;margin:.6rem 1rem}.fc-scroll{width:100%;overflow:auto;max-height:660px;scroll-margin-top:120px}.fc-scroll svg{display:block;max-width:none;margin:auto}.fc-node{cursor:pointer;outline:none}.fc-node>rect:first-child{stroke:#b6c6dc;stroke-width:1.5}.fc-focus>rect:first-child{fill:#eaf1ff;stroke:#1e40af;stroke-width:3}.fc-connected>rect:first-child{stroke:#2563eb;stroke-width:2}.fc-node:focus>rect:first-child{stroke:#172554;stroke-width:4}.fc-edge{fill:none;stroke:#1d4ed8;stroke-width:2;opacity:.65;pointer-events:none}.fc-context{stroke:#64748b;stroke-dasharray:5 5}.fc-selected,[data-comparison-edge]:focus .fc-edge,[data-comparison-edge]:hover .fc-edge{stroke-width:3.5;opacity:1}.fc-evidence-button{display:block;width:100%;text-align:left;margin:.5rem 0;font-size:.85rem!important;line-height:1.5}.fc-profile:empty{display:none}.fc-profile{margin:1rem 0;scroll-margin-top:125px}.fc-outside-list{max-height:440px;overflow:auto}.fc-outside-row{padding:.7rem 0;border-bottom:1px solid #e2e8f0}.fc-outside-row p{margin:0 0 .5rem}.fc-outside-row button{font-size:.8rem}.fc-outside-row button:disabled{opacity:.5;cursor:not-allowed}.fc-controls button:focus-visible,.fc-scroll:focus-visible{outline:3px solid #1d4ed8;outline-offset:3px}
@media(max-width:700px){.fc-controls button{flex:1 1 120px}.fc-caption{margin:.5rem .7rem}.fc-figure figcaption{margin:.7rem}.fc-scroll{max-height:560px}}
.fc-navigate{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;margin:.7rem 1rem;font-size:.8rem}.fc-navigate select{flex:1 1 180px;min-width:0;width:100%;font-size:.85rem}
/* Measured typography and bounded controls, shared by all exploration views. */
.fn-explorer-width{padding-inline:16px}.fn-explorer-shell{padding:16px!important}
.fn-lab{min-width:0}.fn-lab button,.fn-lab summary,.fn-lab p,.fn-lab h4,.fn-lab h5{overflow-wrap:anywhere}.fn-lab button{white-space:normal;text-align:left}.fn-lab select{width:100%;min-width:0;min-height:44px;height:44px;max-height:56px}
.fn-lab .fc-navigate{display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem;align-items:start;text-align:left}.fn-lab .fc-navigate select{flex:none;height:44px;min-height:44px;max-height:44px}
.fn-views button{flex:0 1 auto}.fn-story-diagram{overflow:auto;max-height:680px}.fn-story-diagram svg{max-width:none;margin-inline:auto}.fn-canvas svg{min-width:0!important;min-height:0}.fn-canvas.fn-domain-view svg{min-width:0!important}.fn-node:focus>rect{stroke:#1d4ed8;stroke-width:3}
.fc-scroll{max-height:620px;scrollbar-gutter:stable}.fc-dim{opacity:.12}.fm-controls{display:grid;grid-template-columns:minmax(180px,2fr) auto minmax(140px,1fr) minmax(180px,1fr);gap:.8rem;align-items:end;margin:1rem 0}.fm-origins{display:flex;flex-wrap:wrap;gap:.5rem;margin:1rem 0}.fm-origins button{background:#eff6ff;font-size:.85rem}.fm-route{padding:.8rem;background:#eff6ff;border-left:4px solid #2563eb;line-height:1.6}#fm-routes ol{padding-left:1.3rem}#fm-routes li{margin:.6rem 0}#fm-routes button{font-size:.85rem;line-height:1.6;width:100%}
@media(max-width:850px){.fm-controls{grid-template-columns:minmax(0,1fr) auto}.fm-controls label:nth-last-child(-n+2){grid-column:1/-1}.fn-body{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){.fn-explorer-width{padding-inline:12px!important}.fn-explorer-shell{padding:0!important}.fn-lab{border-radius:8px}.fn-head{padding:.85rem}.fn-views{gap:.5rem}.fn-views button{flex:1 1 145px}.fn-atlas{padding:.65rem}.fc-scroll{max-height:560px;scrollbar-gutter:auto}.fc-navigate{margin:.7rem}.fn-filters,.fn-comparison,.fn-listing{margin-inline:.65rem}.fn-story-menu{grid-template-columns:minmax(0,1fr)}.fn-story-menu button{flex-direction:row;min-height:60px;gap:.7rem}.fn-story-number{flex:0 0 auto}.fc-controls button{flex:1 1 150px}.fn-detail{max-height:none}.fn-story-diagram{max-height:600px}}

.fc-muted{opacity:.5}.fn-lab button:disabled{opacity:.5;cursor:not-allowed}#fn-branch-isolate{margin-top:.7rem}
.fn-more-views{margin-top:.6rem;font-size:.87rem}.fn-more-views button{margin:.4rem .4rem .2rem 0}.fn-more-views summary{width:fit-content}#fn-story-chooser{margin:.8rem 0}#fn-story-chooser>summary{color:#1d4ed8;font-size:.88rem}.fc-muted{opacity:1}.fc-muted>rect:first-child{fill:#f4f6fa;stroke:#cbd5e1}.fc-dim{opacity:.3}.fc-edge.fc-undated{stroke-dasharray:3 4}.fc-edge.fc-hypothesis{stroke:#92400e;stroke-dasharray:8 5}.fc-edge,.fc-status,.fc-number{pointer-events:none}.fc-badge-hit{pointer-events:all;cursor:pointer}.fc-badge-disc{pointer-events:none}[data-branch-edge]:focus .fc-badge-disc,[data-comparison-edge]:focus .fc-badge-disc{stroke:#172554;stroke-width:3}.fn-context-label{fill:#334155;font-weight:650}.fn-time-coverage{padding:.8rem 1rem;margin:1rem 0;border:1px solid #94a3b8;border-radius:8px;background:#fff;font-size:.88rem;line-height:1.6}.fn-time-coverage button{font-size:.85rem;margin-top:.5rem}.fn-time-coverage p{margin:.3rem 0}

/* Keep offscreen profile text available while deferring its layout until needed. */
.fn-detail{content-visibility:auto;contain-intrinsic-size:auto 500px}
@media print{.fn-detail{content-visibility:visible;contain-intrinsic-size:none}}
