html{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex-shrink:0;padding:8px 12px;border:1px solid #aabac7;border-radius:5px;background:#fff;color:#173851;font:14px/1.5 Arial,Helvetica,sans-serif;cursor:pointer;white-space:nowrap}
.theme-toggle span{font-size:20px;line-height:1}
.theme-toggle:focus-visible{outline:3px solid #4f90bf;outline-offset:4px}
.masthead nav{margin-left:auto}
@media(max-width:1000px){.masthead{flex-wrap:wrap}.masthead nav{order:3;width:100%;margin-left:0}.masthead .theme-toggle{margin-left:auto}}
@media(max-width:600px){header.masthead{flex-direction:row;align-items:center}.masthead nav{gap:16px}}
#privacy-theme-toggle{float:right}
html.dark{color-scheme:dark;--background:#111922;--foreground:#e0e8ef;--card:#18232e;--card-foreground:#e0e8ef;--popover:#1b2835;--popover-foreground:#e0e8ef;--primary:#94c7ed;--primary-foreground:#102236;--secondary:#243747;--secondary-foreground:#d3e7f7;--muted:#202e3b;--muted-foreground:#afbfcc;--accent:#293e50;--accent-foreground:#c8e5fa;--destructive:#ffaaa0;--border:#364958;--input:#617889;--ring:#94c7ed}
html.dark body{background:var(--background);color:var(--foreground)}
html.dark .masthead{background:#151f29;border-top-color:#94c7ed}
html.dark .brand,html.dark .prose strong{color:#e0e8ef}
html.dark .masthead nav a,html.dark .contents nav a,html.dark .warsh-topics button{color:#bacddd}
html.dark .masthead nav a.active{color:#a3d5fa;border-color:#a3d5fa}
html.dark h1 em,html.dark .eyebrow,html.dark .warsh-day>h3{color:#94c7ed}
html.dark :is(.dek,.eyebrow span,.facts span,.facts small,.contents>p,.contents nav span,footer,.valuation-title p,.valuation-caveat,.section-title p,.control-edit>span,.assumption-control details,.assumption-control .source,.forecast th small,.footnote,.all-results span,.solver-results small,.delay p,.delay small,.document-section small,.scenario-label,.scenario-card em,.scenario-card ul,.chat-heading p,.chat-note,.chat-empty p,.chat-message time,.warsh-heading p,.warsh-heading-meta,.warsh-topics h2,.warsh-topics button span,.warsh-result-heading p,.warsh-date-nav>span,.warsh-date-nav small,.warsh-day>h3>span,.warsh-empty,.warsh-sources>summary>span,.warsh-coverage time,.warsh-coverage li p){color:#afbfcc}
html.dark :is(.facts,.facts>div+div,.model-link,.prose h2,.prose [data-slot=table-container],footer,.valuation-summary,.valuation-summary>div,.section-nav,.assumption-group,.assumption-group h3,.assumption-control,.forecast [data-slot=table-container],.forecast td,.all-results,.all-results>div,.reverse,.document-section,.scenario-card,.warsh-heading,.warsh-controls,.warsh-date-nav,.warsh-passage,.warsh-tags button,.warsh-sources,.warsh-coverage li){border-color:#364958}
html.dark :is(.theme-toggle,.chat-refresh,.scenario-card,.skip:focus,.control-edit [data-slot=input],.control-edit [data-slot=select-trigger],.forecast td:first-child){background:#18232e;color:#e0e8ef}
html.dark :is(.prose code,.prose th,.assumption-group h3,.forecast th,.forecast th:first-child,.forecast .group-row td,.basis,.delay,.document-section>summary,.scenario-card.active,.warsh-controls,.warsh-date-nav a,.warsh-tags button){background:#202e3b;color:#d3e7f7}
html.dark .prose tr:nth-child(even){background:#17232e}
html.dark .valuation-summary>div:first-child{background:#244962;color:#f1f7fc}
html.dark .basis.assumption{background:#48391e;color:#f2d09a}
html.dark .basis.guidance{background:#1c3e50;color:#a5d8f1}
html.dark .basis.actual{background:#203d31;color:#a4dfbd}
html.dark :is(.warning-text,.negative){color:#ffaaa0}
html.dark :is(.alert,.chat-error){background:#412725;color:#ffb5aa;border-color:#b76d65}
html.dark .scenario-card.bear{border-top-color:#d8867b}
html.dark .scenario-card.base{border-top-color:#85b6dc}
html.dark .scenario-card.bull{border-top-color:#79bf96}
html.dark .warsh-controls input,html.dark .warsh-controls select{background:#18232e!important;color:#e0e8ef}
html.dark .warsh-topics button:hover,html.dark .warsh-tags button:hover{background:#293e50;color:#e0e8ef}
html.dark .warsh-topics button.selected{background:#293e50;color:#c8e5fa;border-left-color:#94c7ed}
html.dark .warsh-permalink{color:#afbfcc!important}
html.dark .warsh-passage:target{background:#243747;box-shadow:0 0 0 12px #243747}
html.dark .warsh-passage mark{background:#68531e;color:#fff0c4}
html.dark #az-analytics{background:#18232e;color:#e0e8ef;border-color:#617889}
html.dark #az-analytics button{background:#243747;color:#e0e8ef;border-color:#8197a8}
html.dark #az-analytics a,html.dark body>main a{color:#94c7ed}
@media print{.theme-toggle,#az-analytics,.az-privacy{display:none!important}html.dark{color-scheme:light}html.dark body,html.dark main{background:#fff!important;color:#172331!important}html.dark main *{color:inherit!important;background:transparent!important;box-shadow:none!important}}
