@font-face{font-family:DM Sans;src:url('assets/dm-sans-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}@font-face{font-family:Montserrat;src:url('assets/montserrat-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{font-family:'DM Sans',sans-serif;font-size:16px;color:#202a3a;background:#f5f7fa;font-synthesis:none;--navy:#171b24;--blue:#2464b8;--muted:#53657c;--line:#e2e7ef}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;min-height:32px;border:1px solid #d4e0ef;border-radius:7px;background:white;color:#253650;padding:6px 9px;font-size:14px;transition:background .15s}button:hover{background:#edf4fe}button:disabled{opacity:.4;cursor:default}button.primary,.primary{background:#2464b8;color:white;border-color:#2464b8}button.danger{color:#a04432}a{color:#174b8d}h1,h2,h3,h4{font-family:Montserrat,sans-serif}h1,h2,h3,p{margin-top:0}p{line-height:1.45}input,textarea,select{width:100%;min-height:36px;padding:8px 10px;border:1px solid #a8b5c5;border-radius:6px;background:white;color:#202a3a}textarea{resize:vertical}label{display:block;font-size:14px;font-weight:600;margin-bottom:16px}label input,label select,label textarea{margin-top:6px;font-weight:400}:focus-visible{outline:3px solid #4e90e6;outline-offset:4px}[hidden]{display:none!important}.muted{color:var(--muted)}.eyebrow{font-size:12px;font-weight:700;letter-spacing:.17em;text-transform:uppercase}.sr-only{position:absolute;clip-path:inset(50%);width:1px;height:1px;overflow:hidden}
.login-shell{min-height:100dvh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:#171b24;color:white;padding:52px 9%;display:flex;flex-direction:column;justify-content:space-between;min-height:100dvh}.login-story .eyebrow{color:#a9bfde}.login-story h1{font-size:clamp(32px,3.6vw,62px);line-height:1.12;letter-spacing:-.045em;font-weight:600;margin:24px 0}.login-story p{color:#b9c5d8;font-size:20px}.login-foot{font-size:11px;letter-spacing:.15em;color:#b9c5d8}.login-form{width:min(440px,85%);align-self:center;justify-self:center;padding:36px 0}.login-form h2{font-size:29px;letter-spacing:-.035em;margin:20px 0 12px}.login-form>.muted{margin-bottom:32px}.login-form button{width:100%;display:flex;justify-content:space-between;padding:12px 16px}.fixture-help{font-size:12px;color:#657187;background:#edf4fe;padding:12px;border-radius:8px;margin-top:22px}
#application{height:100dvh;display:flex;flex-direction:column;overflow:hidden}.topbar{background:#171b24;min-height:58px;display:flex;align-items:center;gap:18px;padding:10px 22px;flex:none}.topbar img{width:136px;height:34px}.project-label{font-size:12px;letter-spacing:.13em;color:#b9c5d8;border-left:1px solid #475267;padding-left:18px;white-space:nowrap}.project-label b{display:block;font-size:10px;font-weight:400;letter-spacing:.05em;margin-top:3px}.toolbar{display:flex;gap:6px;margin:auto}.topbar button{border-color:#ffffff36;background:transparent;color:#e8edf5;white-space:nowrap}.topbar button:hover,.topbar button[aria-pressed=true]{background:#ffffff15}.role-tools{display:flex;align-items:center;gap:6px}.role-tools select{width:90px;background:#253650;color:white;border-color:#657187;font-size:13px}.fixture-banner{background:#edf4fe;color:#335d8a;font-size:10px;font-weight:650;letter-spacing:.1em;text-align:center;padding:4px 10px;flex:none}.workspace{display:flex;flex:1;min-height:0}.deck{flex:1;min-width:0;display:flex;flex-direction:column;container-type:inline-size}.topic-nav{display:flex;flex:none;gap:6px;align-items:center;padding:8px 22px;background:white;border-bottom:1px solid var(--line);overflow-x:auto}.topic-nav button{border:0;border-radius:5px;color:#53657c;background:#eef2f8;white-space:nowrap}.topic-nav button.active{background:#edf4fe;color:#174b8d;font-weight:650}.edit-strip{display:flex;align-items:center;gap:8px;flex:none;overflow:auto;background:#edf4fe;border-bottom:1px solid #d4e3f8;padding:6px 22px}.edit-strip span{font-size:10px;letter-spacing:.1em;white-space:nowrap}.edit-strip button{white-space:nowrap;font-size:12px}.slide{padding:18px 22px 8px;display:flex;flex-direction:column;gap:.65rem;min-height:0;flex:1}.slide-heading{flex:none}.kicker{display:flex;align-items:center;gap:9px;color:#53657c;font-size:12px;font-weight:700;letter-spacing:.17em;text-transform:uppercase;margin:4px 0 14px}.kicker::before{content:'';width:35px;height:1px;background:#a9bfde}.kicker .slide-no{font-weight:500;color:#657187}.slide h1{font-size:clamp(24px,2.15vw,38px);font-weight:650;line-height:1.15;letter-spacing:-.045em;margin:0 0 10px}.slide .subtitle{font-size:16px;color:#657187;margin:0 0 6px}.content-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,.85fr);gap:14px;flex:1;min-height:0;overflow:auto;align-content:start;padding:2px 2px 10px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:.8rem 1rem;min-width:0}.panel h2{font-size:1.08rem;line-height:1.25;font-weight:650;margin:4px 0 8px}.chart-panel{display:flex;flex-direction:column;min-height:320px;height:max-content}.chart-host{width:100%;min-width:0;flex:none}.chart-host svg{display:block;width:100%;height:auto;min-height:220px;max-height:420px}.panel-caption{font-size:12px;line-height:1.45;color:#53657c;border-top:1px solid var(--line);padding-top:10px;margin:6px 0 0}.story-panel{background:#171b24;color:white;padding:24px;border:0;border-radius:16px}.story-panel .eyebrow{color:#a9bfde}.story-panel h2{font-size:clamp(20px,1.8vw,28px);line-height:1.3;letter-spacing:-.025em;font-weight:550;margin:22px 0}.story-panel p{color:#c1ccdc;font-size:15px}.story-rule{width:36px;height:3px;background:#4e90e6;margin:24px 0}.source-line{flex:none;font-size:12px;color:#53657c;line-height:1.45;display:flex;align-items:start;justify-content:space-between;gap:12px}.source-line p{margin:0}.source-line button{font-size:12px;white-space:nowrap}.state-label{display:inline-block;background:#edf4fe;color:#335d8a;border-radius:4px;padding:3px 7px;font-size:12px;margin:4px 4px 4px 0}.state-label.warning{background:#fff4df;color:#755011}.narration{flex:none;height:30%;max-height:35%;overflow:auto;padding:16px 24px;background:#fff;border-top:1px solid #d4e3f8;font-size:16px}.section-label{display:flex;justify-content:space-between;align-items:center;color:#53657c;font-size:12px;letter-spacing:.12em;font-weight:650;margin-bottom:8px}.section-label button{font-size:12px;letter-spacing:0}.deck-footer{height:42px;flex:none;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;background:white;padding:0 22px;gap:12px;font-size:12px}.navigation{display:flex;gap:18px;align-items:center}.navigation button{border:0;font-size:18px}.dots{display:flex;align-items:center;gap:7px}.dots button{width:7px;height:7px;min-height:7px;padding:0;border-radius:10px;background:#b9c5d8;font-size:0}.dots button.active{width:24px;background:#2464b8}.counter{min-width:60px;text-align:right;font-variant-numeric:tabular-nums}.status{position:fixed;bottom:56px;left:24px;background:#253650;color:white;border-radius:8px;font-size:14px;max-width:min(640px,90vw);z-index:15;padding:0}.status:not(:empty){padding:12px 16px}.empty{padding:48px 24px;color:#53657c}.editable{outline:1px dashed #a9bfde;outline-offset:3px}.data-table{width:100%;border-collapse:collapse;font-size:14px;font-variant-numeric:tabular-nums}.data-table th{text-align:left;color:#53657c;font-weight:600}.data-table td,.data-table th{padding:10px;border-bottom:1px solid #e2e7ef}.data-table td:not(:first-child){text-align:right}.table-wrap{overflow:auto}.panel details{margin-top:8px;font-size:12px;color:#53657c}.panel summary{cursor:pointer}.big-number{font-size:clamp(48px,8vw,100px);font-weight:600;color:#204f90;letter-spacing:-.045em;padding:22px 0}.flags{display:flex;gap:8px;flex-wrap:wrap}
.chat{flex:0 0 33.333333vw;width:33.333333vw;background:white;border-left:1px solid #d4e3f8;display:flex;flex-direction:column;min-height:0}.chat-heading{padding:24px 22px 14px;display:flex;justify-content:space-between;align-items:start}.chat-heading h2{font-size:24px;letter-spacing:-.035em;margin:10px 0 0}.chat-heading .eyebrow{color:#657187;font-size:10px}.chat-heading>button{border:0;font-size:24px}.chat-context{padding:0 22px 12px;border-bottom:1px solid var(--line);font-size:12px;color:#53657c}.chat-context p{margin:4px 0 8px}.chat-context select{font-size:12px;max-width:65%;display:inline-block}.chat-context button{font-size:12px}.chat-messages{flex:1;min-height:0;overflow:auto;padding:16px 22px;display:flex;flex-direction:column;gap:14px}.message{padding:13px 15px;background:#f5f7fa;border-radius:12px;font-size:14px;line-height:1.5}.message.question{background:#edf4fe;margin-left:28px}.message .label{font-size:10px;font-weight:700;letter-spacing:.1em;color:#53657c;margin-bottom:7px}.message p{margin:0 0 8px}.message:last-child{margin-bottom:0}.message button{font-size:12px}.request-status{border:1px solid #d4e3f8;background:white}.request-status small{display:block;margin:7px 0;color:#53657c}.chat form{padding:14px 18px;border-top:1px solid var(--line);flex:none;max-height:50%;overflow:auto}.chat form textarea{font-size:14px;min-height:60px}.chat form>button{margin-top:10px;width:100%}.chat details{font-size:12px;margin:8px 0}.chat-note{font-size:11px;color:#53657c;line-height:1.4;margin:10px 0 0}.chat .chart-host svg{min-height:140px}.chat .panel{padding:12px}
dialog{border:1px solid #d6e1ee;border-radius:.9rem;padding:0;width:min(66rem,94vw);max-height:90dvh;background:white;box-shadow:0 1rem 5rem #0006;color:#202a3a}dialog::backdrop{background:#171b2477}dialog>header{display:flex;justify-content:space-between;align-items:center;padding:20px 24px;border-bottom:1px solid var(--line)}dialog>header h2{font-size:1.3rem;margin:0}dialog>header button{font-size:24px;border:0}#modal-body{padding:24px;max-height:calc(90dvh - 90px);overflow:auto}.dialog-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.card{border:1px solid #d6e1ee;border-radius:12px;padding:18px;margin-bottom:14px}.card h3{font-size:17px;margin-bottom:8px}.card p{font-size:14px}.card .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.card pre,pre{font-size:12px;white-space:pre-wrap;word-break:break-word;background:#f5f7fa;padding:12px;border-radius:8px;line-height:1.5}.tree-card{display:block;text-align:left;width:100%;margin-bottom:10px;padding:20px}.tree-card h3{font-size:18px;margin-bottom:8px}.tree-card p{font-size:13px;margin-bottom:0}.file-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 0;border-bottom:1px solid var(--line);font-size:14px}.full-insight{background:white;width:100%;aspect-ratio:3/2}.full-insight svg{max-height:none}.form-actions{display:flex;justify-content:end;gap:8px;margin-top:20px}.form-actions button{min-width:100px}.edit-grid{display:grid;grid-template-columns:180px 1fr;gap:18px}.edit-grid textarea{min-height:240px}.notice{padding:14px;background:#edf4fe;border-radius:8px;font-size:14px;line-height:1.5}.badge{font-size:11px;font-weight:650;letter-spacing:.08em;text-transform:uppercase;color:#335d8a}
@container (max-width:1100px){.content-grid{grid-template-columns:minmax(0,1.5fr) minmax(230px,1fr)}.chart-host svg{max-height:none}.chart-panel{min-height:300px}.story-panel{padding:20px}}@container (max-width:820px){.content-grid{grid-template-columns:1fr}.slide{padding:12px 16px 8px}.slide h1{font-size:26px}.chart-host svg{max-height:340px}.story-panel h2{font-size:22px;margin:14px 0}.story-rule{margin:16px 0}.deck-footer{padding:0 16px}.topic-nav{padding:8px 16px}.source-line p{font-size:12px}.narration{position:absolute;inset:130px 0 42px;height:auto;max-height:none;z-index:5}.source-line{gap:6px}.source-line button{padding:4px}.kicker{margin-bottom:8px}}@container (max-width:700px){#footer-topic{display:none}.deck-footer{justify-content:center}.data-table{font-size:12px}.data-table td,.data-table th{padding:7px}.chart-panel{padding:12px}.source-line{flex-direction:column}.slide .subtitle{font-size:14px}}@media(max-width:1100px){.topbar{flex-wrap:wrap;gap:10px;padding:8px 16px}.toolbar{order:3;width:100%;justify-content:center}.role-tools{margin-left:auto}.project-label{margin-right:auto}}@media(max-width:820px){.project-label{display:none}.chat{position:absolute;inset:110px 0 0;width:100%;z-index:10}.login-shell{grid-template-columns:1fr}.login-story{min-height:330px;padding:30px}.login-story h1{font-size:32px;margin:18px 0}.login-story p{font-size:16px}.login-foot{display:none}.login-form{padding:32px 0}.dialog-grid{grid-template-columns:1fr}.edit-grid{grid-template-columns:1fr}.topbar img{width:112px;height:28px}.source-line p{line-height:1.3}.fixture-banner{font-size:9px}.chat-heading{padding-top:16px}.chat-messages{padding:12px 16px}.role-tools button{font-size:12px}}@media(max-width:520px){.toolbar{gap:5px;justify-content:space-between}.toolbar button{font-size:11px;padding:6px;min-width:32px}.toolbar #fullscreen-btn{display:none}.topbar{padding:8px 12px}.role-tools select{width:72px;font-size:12px}.source-line>button{display:none}#modal-body{padding:16px}.narration{top:140px}.content-grid{gap:10px}.slide h1{font-size:24px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}@media print{@page{size:16in 9in;margin:0}:root{font-size:16px}body{background:white}.topbar,.topic-nav,.deck-footer,.chat,.fixture-banner,.edit-strip,.status,dialog,.source-line button{display:none!important}#application,.workspace,.deck,.slide{height:auto;overflow:visible;display:block}.slide{padding:30px;break-after:page}.content-grid{overflow:visible;display:grid}.slide h1{font-size:34px}.kicker{font-size:9px}.narration{display:block!important;height:auto;max-height:none;overflow:visible;position:static;border:0}.source-line{display:block}.panel{break-inside:avoid}.chart-host svg{max-height:400px}.print-title{display:block!important;break-after:page;padding:80px}button,details{display:none!important}}

.source-view{width:100%;height:min(76vh,900px);min-height:460px;border:0;border-radius:12px;background:#f5f7fb}.source-transcript{margin-top:12px}.source-transcript pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:320px;overflow:auto}@media(max-width:600px){.source-view{min-height:560px;height:75vh}}

.chart-host svg.long-chart{max-height:none;min-height:0}.source-view{height:76vh}
/* Long imported chapters retain reachable arrows and a scrollable dot strip. */
.deck-footer .navigation{min-width:0;flex:0 1 auto;gap:8px;overflow:hidden}
.navigation>button{flex:none}
.dots{min-width:0;max-width:55vw;overflow-x:auto;scrollbar-width:none;padding:10px 0}
.dots button{flex:none}
.counter{flex:none}
