.bat-page{padding-top:28px;padding-bottom:48px;max-width:1120px}.bat-surface{position:relative;border:1px solid var(--line);border-radius:32px;padding:34px 32px 28px;--bat-purple:#8b6da6;--bat-teal:#387b72;--bat-gold:#a57b35;--bat-blue:#5484ac}.bat-surface p{font-size:14px;line-height:1.8;color:var(--muted);margin:12px 0}.bat-intro{max-width:820px;padding-right:34px}.bat-intro h1{font-size:clamp(29px,3.5vw,38px);font-weight:550;letter-spacing:-1.3px;max-width:none;line-height:1.15;margin:3px 0 25px}.bat-intro .bat-lead{font-weight:550;color:var(--ink)}.bat-surface .model-exit{position:absolute;right:16px;top:16px}.bat-surface .model-share{position:relative;margin:18px 0 25px}.bat-pipeline{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;margin:28px 0 34px}.bat-pipeline section{position:relative;padding:18px;background:var(--model-panel-bg);border:1px solid var(--line);border-radius:18px}.bat-pipeline section+section:before{content:'';position:absolute;top:50%;left:-27px;width:20px;height:4px;background:var(--muted);clip-path:polygon(0 25%,65% 25%,65% 0,100% 50%,65% 100%,65% 75%,0 75%)}.bat-step{font-size:10px;letter-spacing:.06em;color:var(--muted)}.bat-pipeline h2{font-size:15px;line-height:1.3;letter-spacing:-.2px;margin-top:7px}.bat-pipeline p{font-size:12px;margin:0}.bat-pipeline svg{width:100%;height:85px;margin:10px 0}.bat-pipeline svg text{font:18px var(--font);fill:var(--ink)}.bat-diagram-muted{fill:none;stroke:var(--muted);stroke-width:1.5;opacity:.6}.bat-diagram-line{fill:none;stroke:var(--green);stroke-width:2.5}.bat-goal{fill:var(--bat-purple)}.bat-section{margin-top:34px}.bat-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:6px}.bat-section h2{font-size:22px;letter-spacing:-.55px;line-height:1.25}.bat-section-heading>span,.bat-panel figcaption>span{font-size:11px;color:var(--muted);text-align:right}.bat-controls{display:grid;grid-template-columns:1.3fr 1fr .85fr 1.1fr;gap:14px;margin-top:22px}.bat-controls label{font-size:11px;font-weight:500;display:grid;gap:7px;min-width:0}.bat-controls select{width:100%;min-width:0;min-height:46px;padding:10px 30px 10px 12px;border:1px solid var(--line);border-radius:12px;font-size:12px}.bat-explorer-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:18px;margin-top:17px}.bat-panel{margin:0;min-width:0;border:1px solid var(--line);border-radius:18px;background:var(--model-panel-bg);padding:20px}.bat-panel figcaption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;min-height:28px}.bat-panel h3{font-size:15px;letter-spacing:-.2px;line-height:1.35}.bat-panel canvas{display:block;width:100%;height:340px}.bat-map-panel canvas{cursor:crosshair;touch-action:pan-y}.bat-map-actions{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.bat-check{display:flex;align-items:center;gap:8px;font-size:11px;min-height:44px}.bat-check input{width:17px;height:17px;accent-color:var(--green)}.bat-surface :is(.bat-playback,.bat-map-actions) button,#bat-retry{min-height:44px;padding:9px 16px;border:0;border-radius:24px;background:var(--model-control-bg);color:var(--ink);font-size:12px;cursor:pointer}.bat-surface :is(.bat-playback,.bat-map-actions) button:hover,#bat-retry:hover{background:var(--model-control-hover)}.bat-surface :is(button,a,select,input,canvas):focus-visible{outline:3px solid var(--art-accent);outline-offset:3px}.bat-surface :is(button,input):disabled{opacity:.5;cursor:default}.bat-surface .bat-note{font-size:11px;line-height:1.7}.bat-legend{display:flex;flex-wrap:wrap;gap:8px 14px;align-items:center;margin-top:8px;font-size:10px;color:var(--muted)}.bat-legend span{display:inline-flex;align-items:center;gap:6px}.bat-legend i{display:block;width:17px;height:3px;background:var(--green)}.bat-legend .bat-key-observed{width:5px;height:5px;border-radius:50%;background:var(--bat-purple)}.bat-legend .bat-key-band{height:10px;background:color-mix(in srgb,var(--green) 20%,transparent)}.bat-legend .bat-key-goal{background:var(--bat-purple)}.bat-legend .bat-key-background{height:0;border-top:2px dashed var(--muted);background:none}.bat-playback{display:flex;align-items:center;gap:14px;margin:18px 0 12px;flex-wrap:wrap}.bat-playback #bat-play{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;padding:0;background:var(--button-bg);color:var(--button-fg)}.bat-playback label{font-size:11px;display:grid;gap:2px;min-width:78px}.bat-playback output{font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.bat-playback input{flex:1;min-width:100px;accent-color:var(--green);min-height:44px}.bat-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;background:var(--model-panel-bg);padding:20px 22px;border-radius:18px;border:1px solid var(--line)}.bat-readout span,.bat-readout small{display:block;font-size:11px;color:var(--muted)}.bat-readout strong{display:block;font-size:26px;font-weight:500;margin:3px 0;font-variant-numeric:tabular-nums;letter-spacing:-.5px}.bat-model-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:24px;margin-top:20px;align-items:center}.bat-model-grid canvas{height:240px}.bat-model-copy{padding:6px 4px}.bat-equation{font-size:16px;color:var(--ink);line-height:1.7;margin-bottom:18px}.bat-model-copy dl{margin:0}.bat-model-copy dl>div{display:flex;gap:12px;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.bat-model-copy dt{color:var(--muted)}.bat-model-copy dd{margin:0;text-align:right;font-variant-numeric:tabular-nums}.bat-population-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}.bat-population-grid .bat-panel{padding:17px 14px}.bat-population-grid figcaption{display:block;min-height:50px}.bat-population-grid canvas{height:220px}.bat-comparison{display:grid;grid-template-columns:.9fr 1.1fr;gap:28px;align-items:center;margin:25px 0 30px}.bat-comparison h3{font-size:18px;letter-spacing:-.4px}.bat-comparison .bat-panel h3{font-size:14px}.bat-comparison canvas{height:240px}.bat-method{margin-top:15px}.bat-method .model-disclosure-body{padding-bottom:16px}.bat-table-wrap{overflow-x:auto}.bat-table-wrap table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}.bat-table-wrap caption{text-align:left;color:var(--muted);font-size:11px;margin:10px 0}.bat-table-wrap th,.bat-table-wrap td{padding:12px 8px;border-bottom:1px solid var(--line)}.bat-source-actions{display:flex;gap:24px;flex-wrap:wrap;font-size:12px;margin-top:20px}.bat-method a{color:var(--green)}.bat-method .citation-widget{border:0;margin:0;padding-top:8px}.bat-surface [hidden]{display:none!important}.model-embedded,.model-embedded body{background:transparent}.model-embedded .bat-page{padding-top:24px}.model-embedded .bat-surface>.model-exit{display:none!important}:root[data-theme=dark] .bat-surface{--bat-purple:#b5a0cc;--bat-teal:#82b5a5;--bat-gold:#d1b179;--bat-blue:#89afcc}@media(max-width:900px){.bat-controls{grid-template-columns:1fr 1fr}.bat-panel{padding:16px}.bat-panel figcaption{display:block;min-height:50px}.bat-population-grid{grid-template-columns:1fr}.bat-population-grid canvas{height:205px}.bat-population-grid figcaption{min-height:38px;display:flex}.bat-playback>.bat-note{width:100%;margin-top:-5px}}@media(max-width:640px){.bat-page{padding:12px 12px 28px}.bat-surface{padding:24px 20px;border-radius:24px}.bat-intro{padding-right:22px}.bat-intro h1{font-size:29px;margin-bottom:22px}.bat-surface .model-exit{right:10px;top:10px;width:40px;height:40px;min-height:40px;min-width:40px}.bat-pipeline{grid-template-columns:1fr;gap:15px;margin:24px 0}.bat-pipeline section{display:grid;grid-template-columns:1fr 100px;column-gap:12px;padding:16px}.bat-pipeline svg{grid-column:2;grid-row:1/4;align-self:center;height:65px}.bat-pipeline section+section:before{display:none}.bat-pipeline h2{font-size:14px;margin-top:3px}.bat-pipeline p{margin-top:8px}.bat-section-heading{display:block}.bat-section-heading>span{display:block;text-align:left;margin-top:7px}.bat-section h2{font-size:21px}.bat-explorer-grid,.bat-model-grid,.bat-comparison{grid-template-columns:1fr}.bat-panel canvas{height:310px}.bat-model-grid canvas{height:240px}.bat-comparison canvas{height:245px}.bat-controls{gap:13px 10px}.bat-controls label{font-size:10px}.bat-controls select{font-size:11px;padding-left:9px}.bat-readout{padding:15px;gap:12px;grid-template-columns:1fr 1fr}.bat-readout>div:last-child{grid-column:1/-1;border-top:1px solid var(--line);padding-top:10px}.bat-readout strong{font-size:24px}.bat-playback{gap:10px}.bat-playback>.bat-note{font-size:10px}.bat-population-grid canvas{height:205px}.bat-equation{font-size:14px}.model-embedded .bat-page{padding-top:12px}}@media(prefers-reduced-motion:reduce){.bat-surface *{scroll-behavior:auto}}@media print{.bat-controls,.bat-playback,.model-share,.model-exit{display:none}.bat-surface{padding:0;border:0}.bat-page{max-width:none}.bat-panel{break-inside:avoid}}

.bat-map-key{display:flex;align-items:center;justify-content:center;gap:9px;font-size:10px;color:var(--muted);margin:8px 0}.bat-map-key i{display:block;width:80px;height:7px;border-radius:4px;background:linear-gradient(90deg,rgb(151,115,180),rgb(157,164,152) 50%,rgb(49,144,116))}.bat-map-key span:first-child{margin-right:4px}

.bat-history-panel canvas{height:380px;cursor:crosshair;touch-action:pan-y}.bat-legend .bat-key-onset{background:var(--bat-gold)}.bat-onset-controls{display:flex;gap:16px;align-items:end;flex-wrap:wrap;margin:18px 0}.bat-onset-controls label{display:grid;gap:7px;font-size:11px;color:var(--muted)}.bat-onset-controls select{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:10px;font-size:12px}.bat-onset-controls button,.bat-onset-table-button{min-height:44px;border:1px solid var(--line);border-radius:24px;background:var(--model-control-bg);color:var(--ink);padding:10px 16px;font-size:12px;cursor:pointer}.bat-onset-controls button:hover,.bat-onset-table-button:hover{background:var(--model-control-hover)}.bat-onset-readout>div:last-child strong{font-size:20px}.bat-onset-table-button{padding:7px 12px;white-space:nowrap}.bat-onset-table-button[aria-current=true]{background:var(--button-bg);color:var(--button-fg)}@media(max-width:640px){.bat-history-panel canvas{height:390px}.bat-onset-controls{gap:12px}.bat-onset-controls label{flex:1;min-width:130px}.bat-onset-controls button{width:100%}.bat-map-key{flex-wrap:wrap}.bat-map-key span:first-child{flex-basis:100%;text-align:center}}

.bat-map-key{flex-wrap:wrap}.bat-map-key small{flex-basis:100%;text-align:center;font-size:10px}.bat-legend .bat-key-evidence{height:4px;width:24px;background:linear-gradient(90deg,rgb(151,115,180),rgb(157,164,152) 50%,rgb(49,144,116))}.bat-history-panel canvas{height:365px}.bat-onset-readout>div:first-child strong{font-size:21px}@media(max-width:640px){.bat-history-panel canvas{height:365px}}

/* Visual reading guide: symbols match the canvas, with text labels for access. */
.bat-directed-scale{margin:14px 0 16px;color:var(--muted);font-size:10px}
.bat-scale-title{display:block;color:var(--ink);font-size:11px;font-weight:500;margin-bottom:7px}
.bat-scale-ticks,.bat-scale-meaning{display:grid;grid-template-columns:1fr 1fr 1fr;gap:4px}
.bat-scale-ticks>span:nth-child(2),.bat-scale-meaning>span:nth-child(2){text-align:center}
.bat-scale-ticks>span:last-child,.bat-scale-meaning>span:last-child{text-align:right}
.bat-scale-ramp{height:7px;border-radius:4px;margin:4px 0 6px;background:linear-gradient(90deg,rgb(151,115,180),rgb(157,164,152) 50%,rgb(49,144,116));position:relative}
.bat-scale-ramp:after{content:'';position:absolute;left:50%;top:-2px;width:1px;height:11px;background:var(--ink);opacity:.65}
.bat-map-symbols{list-style:none;padding:12px 0 0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px 8px}
.bat-map-symbols li{display:flex;align-items:center;gap:5px;min-width:0;font-size:10px;line-height:1.35;color:var(--muted)}
.bat-map-symbols svg{width:38px;height:24px;flex:0 0 38px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bat-map-symbols .bat-symbol-movement{color:var(--green)}
.bat-map-symbols .bat-symbol-onset{color:var(--bat-gold)}
.bat-surface .bat-key-note{font-size:10px;margin:9px 0 0}
.bat-legend .bat-key-start-mass{width:18px;height:11px;background:var(--bat-gold);clip-path:polygon(0 100%,0 70%,20% 70%,20% 100%,35% 100%,35% 0,60% 0,60% 100%,75% 100%,75% 40%,100% 40%,100% 100%)}
@media(min-width:641px) and (max-width:900px){.bat-map-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:380px){.bat-map-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}.bat-scale-meaning{font-size:9px}}

/* A continuous reading flow, with details available on demand. */
.bat-eyebrow{display:block;font-size:10px;font-weight:550;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);margin-bottom:12px}
.bat-intro{max-width:780px}.bat-intro h1{margin-top:14px;margin-bottom:22px}.bat-intro .bat-lead{font-size:19px;line-height:1.5;letter-spacing:-.3px}.bat-intro>p:last-child{max-width:720px}
.bat-section{margin-top:40px;padding-top:0}.bat-section>p:not(.bat-note){max-width:760px}.bat-section-heading{margin-bottom:12px}
.bat-controls{grid-template-columns:minmax(0,1.4fr) minmax(160px,1fr);gap:18px 24px;margin:24px 0 18px}
.bat-controls>.bat-choice-field:first-child,.bat-controls>.bat-control-context{grid-column:1/-1}
.bat-choice-field{display:grid;gap:8px;min-width:0;font-size:11px;color:var(--muted)}
.bat-choice-field>select{min-width:0;min-height:44px;font:inherit}
.bat-surface .bat-control-context{font-size:11px;margin:-8px 0 0;line-height:1.6}
:root:root .decision-surface .bat-segments{display:flex;width:100%;border:1px solid var(--line)}
:root:root .decision-surface .bat-segments button{min-height:44px;flex:1 1 0;font-size:12px;white-space:normal}
:root:root .decision-surface .bat-segments button[aria-checked=true],:root:root .decision-surface .bat-segments button[aria-checked=true]:is(:hover,:active){background:transparent;color:var(--button-fg)}
.bat-sr-only{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.bat-scale-ramp{margin-top:10px}.bat-step-details{margin-top:8px}.bat-step-details .bat-readout{background:transparent;border:0;padding:12px 0}
.bat-onset-controls{display:grid;grid-template-columns:1fr 1fr;gap:18px 24px;align-items:start;margin:24px 0}
.bat-onset-controls>button{grid-column:1/-1;justify-self:start}
.bat-outcome{padding:0 0 12px}.bat-outcome>p{font-size:13px;color:var(--ink);margin-bottom:14px}
.bat-outcome-track{display:flex;height:11px;border-radius:999px;overflow:hidden;background:var(--line);width:100%}
.bat-outcome-track>span{flex-basis:0;min-width:0;transition:flex-grow 420ms var(--model-ui-fast,ease)}
#bat-outcome-located,.bat-outcome-legend .bat-key-located{background:var(--bat-gold)}
#bat-outcome-boundary,.bat-outcome-legend .bat-key-boundary{background:repeating-linear-gradient(135deg,var(--bat-gold) 0 2px,var(--model-panel-bg) 2px 5px)}
#bat-outcome-none,.bat-outcome-legend .bat-key-none{background:var(--muted);opacity:.5}
.bat-outcome-legend{margin-top:12px}.bat-outcome-legend i{height:8px;width:18px;border-radius:2px}
.bat-model-choice{max-width:440px;margin:22px 0}.bat-model-copy h3{font-size:18px;line-height:1.4;letter-spacing:-.3px}.bat-model-copy p{font-size:13px}
.bat-model-grid{grid-template-columns:1.3fr 1fr}.bat-model-grid+.bat-method{margin-top:24px}
.bat-comparison{margin:16px 0}.bat-method .bat-readout{margin:14px 0}
.bat-playback label{min-width:0}.bat-playback>.bat-note{font-size:10px}.bat-readout strong{font-size:20px}
@media(max-width:640px){.bat-section{margin-top:32px;padding-top:22px}.bat-eyebrow{font-size:9px}.bat-intro .bat-lead{font-size:17px}.bat-controls{grid-template-columns:1fr;gap:16px}.bat-controls>.bat-choice-field:first-child,.bat-controls>.bat-control-context{grid-column:auto}:root:root .decision-surface .bat-segments button{font-size:10px;padding:8px 5px}.bat-onset-controls{grid-template-columns:1fr;gap:16px}.bat-onset-controls>button{grid-column:auto;width:auto}.bat-model-grid{grid-template-columns:1fr}.bat-model-copy{padding:4px 2px}.bat-outcome-legend{gap:8px 14px}.bat-history-panel{padding:13px 10px}.bat-panel figcaption>span{font-size:10px}}
@media(prefers-reduced-motion:reduce){.bat-outcome-track>span{transition:none!important}}

/* Linked route/history workspace, with the circular model explained once. */
.bat-flight-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px;margin-top:20px;align-items:start}
.bat-flight-workspace .bat-panel{padding:16px}
.bat-flight-workspace .bat-panel canvas{height:360px}
.bat-flight-workspace .bat-panel figcaption{min-height:32px}
.bat-flight-workspace .bat-map-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}
.bat-flight-workspace .bat-legend{font-size:9px;gap:7px 11px}
.bat-onset-sliders{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px;padding-top:16px;margin-top:16px;border-top:1px solid var(--line)}
.bat-onset-sliders label{display:grid;gap:6px;min-width:0;font-size:11px;color:var(--muted)}
.bat-onset-sliders label>span{display:flex;justify-content:space-between;align-items:baseline;gap:6px;flex-wrap:wrap}
.bat-onset-sliders output{color:var(--ink);font-variant-numeric:tabular-nums;white-space:nowrap}
.bat-onset-sliders input{width:100%;min-width:0;min-height:36px;margin:0;accent-color:var(--green);cursor:pointer}
.bat-onset-sliders button{grid-column:1/-1;justify-self:start;border:1px solid var(--line);border-radius:24px;padding:10px 14px;min-height:44px;font-size:11px;cursor:pointer}
.bat-outcome-inline{margin-top:18px;padding-bottom:0}.bat-outcome-inline .bat-outcome-track{height:7px}
.bat-outcome-inline .bat-outcome-legend{font-size:9px;margin-top:9px;gap:6px 12px}
.bat-model-grid .bat-polar-panel canvas{height:400px}.bat-model-grid .bat-polar-panel{padding:22px}
@media(max-width:900px){.bat-flight-workspace{grid-template-columns:1fr}.bat-flight-workspace .bat-map-panel canvas{height:340px}.bat-flight-workspace .bat-history-panel canvas{height:340px}.bat-flight-workspace .bat-map-symbols{grid-template-columns:repeat(3,minmax(0,1fr))}.bat-flight-workspace .bat-panel figcaption{min-height:30px;display:flex}.bat-flight-workspace .bat-map-actions{margin-top:4px}.bat-flight-workspace .bat-directed-scale{margin:10px 0}.bat-model-grid .bat-polar-panel canvas{height:340px}}
@media(max-width:640px){.bat-flight-workspace{gap:12px;margin-top:16px}.bat-flight-workspace .bat-panel{padding:13px 10px}.bat-flight-workspace .bat-legend{font-size:10px}.bat-onset-sliders{gap:12px}.bat-onset-sliders label{font-size:10px}.bat-onset-sliders input{min-height:44px}.bat-flight-workspace .bat-map-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}.bat-model-grid .bat-polar-panel{padding:16px}.bat-model-grid .bat-polar-panel canvas{height:320px}}

/* One explorer: shared controls, route and circular fit, then the linked history. */
.bat-explorer-workspace{margin-top:22px;padding:20px;border:1px solid var(--line);border-radius:22px;background:var(--model-panel-bg)}
.bat-explorer-workspace .bat-controls{grid-template-columns:minmax(0,1.1fr) minmax(130px,.7fr) minmax(0,1.1fr);margin:0 0 18px;gap:12px 18px}
.bat-explorer-workspace .bat-controls>.bat-choice-field:first-child,.bat-explorer-workspace .bat-control-context{grid-column:1/-1}
.bat-explorer-workspace .bat-control-context{margin:0}
.bat-flight-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0;margin:0;align-items:start}
.bat-flight-workspace .bat-panel{border:0;border-radius:0;background:transparent;padding:14px 0 0}
.bat-flight-workspace .bat-map-panel{padding-right:18px}
.bat-flight-workspace .bat-polar-panel{padding-left:18px}
.bat-flight-workspace .bat-map-panel canvas,.bat-flight-workspace .bat-polar-panel canvas{height:340px}
.bat-flight-workspace .bat-panel figcaption{display:flex;min-height:30px}
.bat-flight-workspace .bat-history-panel{grid-column:1/-1;margin-top:20px;padding-top:0}
.bat-flight-workspace .bat-history-panel canvas{height:300px}
.bat-flight-workspace .bat-map-symbols{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.bat-flight-workspace .bat-map-symbols svg{width:26px;flex-basis:26px}
.bat-flight-workspace .bat-legend{font-size:10px}
.bat-flight-workspace .bat-model-interpretation{font-size:12px;margin:12px 0 0}
.bat-explorer-workspace .bat-directed-scale{margin:8px 0 12px}
.bat-explorer-workspace .bat-onset-sliders{grid-template-columns:1fr 1fr auto;align-items:center;gap:12px 22px;margin:0;padding:8px 0 0;border:0}
.bat-explorer-workspace .bat-onset-sliders button{grid-column:auto;align-self:center}
.bat-explorer-workspace .bat-outcome-inline{margin-top:12px}
.bat-explorer-workspace .bat-playback{margin:14px 0 0;padding-top:10px;border-top:1px solid var(--line)}
@media(max-width:900px){.bat-explorer-workspace{padding:16px}.bat-explorer-workspace .bat-controls{grid-template-columns:1fr 1fr}.bat-explorer-workspace .bat-controls>.bat-choice-field:last-child{grid-column:1/-1}.bat-flight-workspace{grid-template-columns:1fr 1fr}.bat-flight-workspace .bat-map-panel{padding-right:12px}.bat-flight-workspace .bat-polar-panel{padding-left:12px}.bat-flight-workspace .bat-map-panel canvas,.bat-flight-workspace .bat-polar-panel canvas{height:310px}.bat-flight-workspace .bat-map-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.bat-explorer-workspace{padding:12px;margin-top:16px;border-radius:16px}.bat-explorer-workspace .bat-controls{gap:12px}.bat-flight-workspace{grid-template-columns:1fr}.bat-flight-workspace .bat-map-panel,.bat-flight-workspace .bat-polar-panel{padding:12px 0 0;border-left:0}.bat-flight-workspace .bat-polar-panel{margin-top:20px}.bat-flight-workspace .bat-map-panel canvas,.bat-flight-workspace .bat-polar-panel canvas{height:310px}.bat-explorer-workspace .bat-onset-sliders{grid-template-columns:1fr 1fr;gap:8px 16px}.bat-explorer-workspace .bat-onset-sliders button{grid-column:1/-1}.bat-flight-workspace .bat-history-panel canvas{height:310px}.bat-flight-workspace .bat-map-symbols{grid-template-columns:repeat(2,minmax(0,1fr))}.bat-explorer-workspace .bat-playback{gap:8px}}

/* Keep the single scrubber within reach of every linked figure. */
.bat-explorer-workspace .bat-playback{position:sticky;top:8px;z-index:5;display:grid;grid-template-columns:44px auto minmax(0,1fr);gap:14px;align-items:center;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:16px;background:var(--model-card-bg,var(--paper));box-shadow:none}
.bat-explorer-workspace .bat-playback #bat-play{width:44px;height:44px;min-height:44px}
.bat-explorer-workspace .bat-playback label{font-size:12px;white-space:nowrap;color:var(--ink)}
.bat-explorer-workspace .bat-playback input{width:100%;min-width:0;margin:0;min-height:44px;cursor:ew-resize}
.bat-flight-workspace{margin-top:8px}
.bat-flight-workspace :is(canvas,button,input){scroll-margin-top:92px}
@media(max-width:640px){.bat-explorer-workspace .bat-playback{top:4px;grid-template-columns:44px minmax(0,1fr);gap:2px 10px;padding:8px 10px;border-radius:14px}.bat-explorer-workspace .bat-playback #bat-play{grid-row:1/3}.bat-explorer-workspace .bat-playback label{grid-column:2;font-size:11px}.bat-explorer-workspace .bat-playback input{grid-column:2;min-height:32px}.bat-flight-workspace :is(canvas,button,input){scroll-margin-top:90px}}

/* A selected heading, its generative mixture, and draw-wise baseline adjustment. */
.bat-mixture-diagram{margin:22px 0 10px}
.bat-mixture-diagram[hidden]{display:none}
.bat-mixture-diagram h3{font-size:16px;letter-spacing:-.25px;margin:0}
.bat-mixture-diagram figcaption>p{font-size:12px;margin:5px 0 18px}
.bat-mixture-flow{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.35fr) minmax(0,1fr);gap:32px;align-items:stretch}
.bat-mixture-stage{position:relative;min-width:0;padding:16px;border:1px solid var(--line);border-radius:18px;background:var(--model-panel-bg);display:flex;flex-direction:column;justify-content:center}
.bat-mixture-stage+.bat-mixture-stage:before{content:'';position:absolute;left:-27px;top:50%;width:20px;height:12px;background:var(--muted);clip-path:polygon(0 33%,65% 33%,65% 0,100% 50%,65% 100%,65% 67%,0 67%)}
.bat-mixture-diagram h4{font-size:12px;font-weight:550;line-height:1.5;letter-spacing:0;margin:0}
.bat-mixture-diagram p{font-size:11px;line-height:1.65;margin:7px 0 0}
.bat-heading-diagram{display:block;width:100%;max-width:200px;align-self:center;margin:10px 0}
.bat-heading-diagram text{font:12px var(--font);fill:var(--muted)}
.bat-heading-diagram #bat-heading-theta{fill:var(--bat-purple);font-size:15px;font-style:italic;text-anchor:middle}
.bat-angle-ring{fill:none;stroke:var(--line);stroke-width:1}
.bat-reference-arrow{fill:none;stroke:var(--muted);stroke-width:1.5;stroke-dasharray:3 3}
.bat-movement-arrow{fill:none;stroke:var(--green);stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.bat-heading-arc{fill:none;stroke:var(--bat-purple);stroke-width:2}
.bat-components-stage{padding:14px}
.bat-component{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:8px;align-items:center}
.bat-component svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.bat-component svg circle{stroke:var(--line);stroke-width:1}
.bat-component-directed{color:var(--bat-purple)}
.bat-component-undirected{color:var(--muted)}
.bat-component h4{color:var(--ink);font-size:11px}
.bat-component h4 span{display:block;color:currentColor;font-size:10px;font-weight:400}
.bat-component p{font-size:10px;line-height:1.5;margin:2px 0 0}
.bat-component-weight{font-size:12px;white-space:nowrap}
.bat-mixture-plus{color:var(--muted);text-align:center;font-size:20px;line-height:23px}
.bat-mixture-balance{margin:0 0 16px}
.bat-mixture-balance h4{margin-bottom:8px}
.bat-probability-graphic{position:relative;height:24px;margin:5px 5px 0}
.bat-baseline-track,.bat-score-track{position:absolute;left:0;right:0;top:10px;height:7px;border-radius:6px;overflow:hidden;background:color-mix(in srgb,var(--muted) 30%,var(--model-panel-bg))}
.bat-baseline-track span{display:block;height:100%;background:var(--bat-purple)}
.bat-probability-interval{position:absolute;top:4px;height:17px;border:1px solid var(--ink);border-top:0;border-bottom:0;min-width:1px}
.bat-probability-interval:before{content:'';position:absolute;top:8px;left:0;right:0;height:2px;background:var(--ink)}
.bat-probability-mean{position:absolute;top:8px;width:10px;height:10px;transform:translateX(-50%);border:2px solid var(--model-panel-bg);border-radius:50%;background:var(--ink);box-sizing:border-box}
.bat-probability-labels{display:flex;justify-content:space-between;gap:8px;color:var(--muted);font-size:10px;margin-top:1px}
.bat-mixture-join{height:14px;width:75%;margin:5px auto 0;border:1px solid var(--line);border-top:0;border-radius:0 0 8px 8px;position:relative}
.bat-mixture-join:after{content:'';position:absolute;top:100%;left:50%;height:8px;border-left:1px solid var(--line)}
.bat-mixture-sum{align-self:center;margin-top:8px;padding:5px 12px;border-radius:20px;background:color-mix(in srgb,var(--green) 10%,transparent);color:var(--green);font-size:11px}
.bat-score-graphic{margin-top:24px}
.bat-score-track{background:linear-gradient(90deg,rgb(151,115,180),rgb(157,164,152),rgb(49,144,116))}
.bat-score-neutral{position:absolute;left:50%;top:7px;height:13px;border-left:1px solid var(--muted)}
.bat-diagram-key{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px;color:var(--muted);font-size:10px}
.bat-diagram-key span{display:flex;align-items:center;gap:5px}
.bat-diagram-mean{width:6px;height:6px;border-radius:50%;background:var(--ink)}
.bat-diagram-interval{width:19px;height:7px;border-left:1px solid var(--ink);border-right:1px solid var(--ink);position:relative}
.bat-diagram-interval:after{content:'';position:absolute;left:0;right:0;top:3px;border-top:1px solid var(--ink)}
.bat-mixture-diagram .bat-score-link{margin-top:16px}

/* One connected account of processing and modeling, using one connector shape. */
.bat-mixture-diagram{margin:28px 0 0;padding:0}
.bat-mixture-flow{grid-template-columns:minmax(0,.85fr) minmax(0,.85fr) minmax(0,1.4fr) minmax(0,1fr);gap:28px}
.bat-mixture-diagram .bat-stage-title{font-size:14px;line-height:1.4;margin:0 0 14px;letter-spacing:-.2px}
.bat-mixture-stage{padding:16px;justify-content:flex-start}
.bat-mixture-stage+.bat-mixture-stage:before{left:-24px;top:50%;width:20px;height:14px;clip-path:polygon(0 36%,60% 36%,60% 0,100% 50%,60% 100%,60% 64%,0 64%)}
.bat-tracking-stage>svg,.bat-heading-diagram{display:block;width:100%;height:138px;margin:4px 0 14px;align-self:center}
.bat-tracking-stage>svg{overflow:visible}
.bat-heading-diagram{max-width:180px}
.bat-components-stage{padding:16px 12px}
.bat-component{grid-template-columns:30px minmax(0,1fr) auto;gap:6px}
.bat-component svg{width:30px;height:30px}
.bat-component-weight{font-size:11px}
.bat-mixture-balance{margin:0 0 14px}
.bat-mixture-diagram .bat-score-stage>p{margin-top:0}
.bat-mixture-diagram .bat-score-link{margin-top:16px}
@media(max-width:1100px) and (min-width:641px){
 .bat-mixture-flow{grid-template-columns:1fr 1fr;grid-template-areas:"track heading" "score components";gap:28px}
 .bat-tracking-stage{grid-area:track}.bat-heading-stage{grid-area:heading}.bat-components-stage{grid-area:components}.bat-score-stage{grid-area:score}
 .bat-mixture-stage{padding:18px}
 .bat-mixture-diagram .bat-components-stage:before{top:-22px;left:calc(50% - 10px);transform:rotate(90deg)}
 .bat-mixture-diagram .bat-score-stage:before{left:auto;right:-24px;transform:rotate(180deg)}
 .bat-component{grid-template-columns:38px minmax(0,1fr) auto}
 .bat-component svg{width:38px;height:38px}
}
@media(max-width:640px){
 .bat-mixture-flow{grid-template-columns:minmax(0,1fr);gap:28px}
 .bat-mixture-stage+.bat-mixture-stage:before{top:-22px;left:calc(50% - 10px);transform:rotate(90deg)}
 .bat-mixture-stage{padding:18px}
 .bat-tracking-stage,.bat-heading-stage{display:grid;grid-template-columns:1fr 1fr;gap:0 12px;align-items:center}
 .bat-tracking-stage .bat-stage-title,.bat-heading-stage .bat-stage-title{grid-column:1;grid-row:1;margin-bottom:8px}
 .bat-tracking-stage>p,.bat-heading-stage>p{grid-column:1;grid-row:2}
 .bat-tracking-stage>svg,.bat-heading-diagram{grid-column:2;grid-row:1/3;margin:0;height:125px}
 .bat-component{grid-template-columns:38px minmax(0,1fr) auto}
 .bat-component svg{width:38px;height:38px}
}

/* Compact component key and a visual, baseline-adjusted directedness readout. */
.bat-mixture-diagram figcaption{margin-bottom:18px}
.bat-mixture-flow{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr) minmax(0,1.2fr)}
.bat-mixture-stage{justify-content:space-between;min-height:250px}
.bat-tracking-stage .bat-diagram-line{stroke-width:4}
.bat-component-pair{display:grid;gap:8px;margin:10px 0 18px}
.bat-component-name{display:flex;gap:12px;align-items:center;font-size:13px;color:var(--ink)}
.bat-component-name small{display:block;font-size:11px;color:var(--muted);margin-top:2px}
.bat-component-swatch{width:28px;flex:0 0 28px;height:3px;background:var(--bat-purple)}
.bat-exploration-swatch{height:0;background:none;border-top:2px dashed var(--muted)}
.bat-component-plus{padding-left:10px;font-size:20px;line-height:20px;color:var(--muted)}
.bat-components-stage .bat-mixture-balance{margin:0}
.bat-mixture-diagram .bat-balance-caption{margin:4px 0 0;text-align:center;font-size:11px}
.bat-score-stage{justify-content:flex-start}
.bat-score-stage>p{font-size:12px;line-height:1.5}
.bat-score-graphic{height:46px;margin:30px 5px 0}
.bat-score-graphic .bat-score-track{top:20px;height:10px}
.bat-score-graphic .bat-score-neutral{top:14px;height:22px}
.bat-score-graphic .bat-probability-interval{top:12px;height:25px}
.bat-score-graphic .bat-probability-interval:before{top:12px;height:2px}
.bat-score-graphic .bat-probability-mean{top:18px;width:14px;height:14px;border-width:3px}
.bat-score-labels{display:grid;grid-template-columns:1fr 1fr 1fr;gap:3px;font-size:10px;line-height:1.3}
.bat-score-labels span:nth-child(2){text-align:center}.bat-score-labels span:last-child{text-align:right}
.bat-diagram-key{justify-content:center;margin-top:18px}
.bat-legend .bat-key-observed{width:22px;height:7px;border-radius:5px;background:linear-gradient(90deg,rgb(151,115,180),rgb(157,164,152),rgb(49,144,116))}
.bat-explorer-workspace .bat-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.bat-explorer-workspace .bat-controls>.bat-choice-field:last-child{grid-column:auto}
.bat-surface .bat-transition-rule{font-size:11px;line-height:1.6;margin:8px 0 0}
.bat-map-panel canvas{touch-action:none;cursor:grab}
.bat-map-panel canvas.is-panning{cursor:grabbing}
.bat-map-actions{gap:8px}
.bat-map-camera{display:flex;gap:4px;margin-left:auto}
.bat-surface .bat-map-camera button{display:grid;place-items:center;width:40px;min-height:44px;padding:0}
.bat-map-camera svg{fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
@media(max-width:1100px) and (min-width:641px){.bat-mixture-flow{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.bat-mixture-flow{grid-template-columns:minmax(0,1fr)}.bat-mixture-stage{min-height:0}.bat-score-graphic{margin-top:22px}.bat-component-pair{margin:2px 0 16px}.bat-map-camera{margin-left:0}.bat-map-actions .bat-check{margin-right:auto}}

/* Keep card outlines; use spacing instead of redundant section dividers. */

/* Smoothing, threshold and persistence act on the same linked posterior. */
.bat-explorer-workspace .bat-onset-sliders{grid-template-columns:repeat(3,minmax(0,1fr)) auto}
@media(max-width:900px){.bat-explorer-workspace .bat-onset-sliders{grid-template-columns:repeat(3,minmax(0,1fr))}.bat-explorer-workspace .bat-onset-sliders button{grid-column:1/-1}}
@media(max-width:640px){.bat-explorer-workspace .bat-onset-sliders{grid-template-columns:1fr 1fr}.bat-explorer-workspace .bat-onset-sliders label:first-child{grid-column:1/-1}}

/* Compact component pictures and an angular key for heading-level evidence. */
.bat-component-pair{gap:5px;margin:0 0 12px}
.bat-component-example{display:grid;grid-template-columns:44px minmax(0,1fr);column-gap:9px;align-items:center}
.bat-component-arrows{grid-row:1/3;width:44px;height:48px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bat-example-directed{color:var(--bat-purple)}.bat-example-exploration{color:var(--muted)}
.bat-component-density{width:100%;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bat-component-density .bat-mini-baseline{stroke:var(--line);stroke-width:1}
.bat-example-exploration .bat-component-density{stroke-dasharray:4 3}
.bat-component-plus{text-align:center;padding:0;font-size:18px;line-height:18px}
.bat-score-stage{justify-content:space-between}
#bat-heading-key{display:block;width:100%;height:176px;margin:-2px 0 6px}
.bat-heading-key-legend{display:flex;justify-content:space-between;gap:8px;font-size:10px;color:var(--muted);margin-bottom:10px}
.bat-heading-key-legend span{display:flex;align-items:center;gap:5px}
.bat-heading-key-legend i{display:block;width:7px;height:7px;border-radius:50%;flex:0 0 7px}
.bat-angle-exploration{background:rgb(151,115,180)}.bat-angle-directed{background:rgb(49,144,116)}
.bat-mixture-diagram .bat-score-stage>p{font-size:11px;line-height:1.55;margin:0}
