@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root { --navy: #071326; --navy-2: #0a1d39; --panel: rgba(8, 28, 57, .91); --line: rgba(143, 182, 226, .2); --muted: #8ea5c3; --white: #f3f7fa; --cyan: #63e4e8; --coral: #ff766a; --violet: #9267ff; --orange: #f59b47; --lime: #b7f36e; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--navy); color: var(--white); font-family: Manrope, sans-serif; }
.electron-titlebar { display: none; }
.electron-shell .electron-titlebar { position: fixed; z-index: 50; top: 0; right: 120px; left: 0; display: block; height: 46px; background: linear-gradient(180deg, rgba(2, 18, 15, .22), transparent); -webkit-app-region: drag; }
.spread-loader { position: fixed; z-index: 100; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; background: radial-gradient(circle at 50% 45%, rgba(18, 72, 57, .64), transparent 32%), linear-gradient(145deg, #010908, #031b18 56%, #010609); opacity: 1; transition: opacity .8s cubic-bezier(.4, 0, .2, 1), visibility .8s; }
.spread-loader[hidden] { display: none; }
.spread-loader.departing { visibility: hidden; opacity: 0; pointer-events: none; }
.spread-loader-insect { position: relative; width: min(520px, 72vw); aspect-ratio: 1.55; filter: drop-shadow(0 0 26px rgba(107, 232, 182, .2)); animation: loader-breathe 2.1s ease-in-out infinite; }
.spread-loader-insect > img, .spread-loader-insect > div, .spread-loader-insect > div img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.spread-loader-insect > img { filter: grayscale(1) brightness(.28) sepia(.25) hue-rotate(90deg); opacity: .7; }
.spread-loader-insect > div { overflow: hidden; clip-path: inset(100% 0 0); animation: loader-fill 3s cubic-bezier(.33, .7, .3, 1) infinite; filter: saturate(1.15) brightness(1.06); }
.spread-loader.ready .spread-loader-insect > div { clip-path: inset(0); animation: none; transition: clip-path .45s ease-out; }
.spread-loader span { color: #9cd9bf; font: 700 9px 'DM Mono', monospace; letter-spacing: .2em; animation: loader-text 1.5s ease-in-out infinite; }
@keyframes loader-fill { 0% { clip-path: inset(100% 0 0); } 72%, 100% { clip-path: inset(8% 0 0); } }
@keyframes loader-breathe { 0%, 100% { transform: scale(.985); } 50% { transform: scale(1.015); } }
@keyframes loader-text { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spread-loader-insect, .spread-loader-insect > div, .spread-loader span { animation: none; } }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
.app-shell { display: flex; flex-direction: column; height: 100vh; width: 100vw; background: #071326; }
.reference-topbar { position: relative; z-index: 20; display: flex; flex: 0 0 52px; align-items: stretch; height: 52px; padding: 0 28px 0 150px; border-bottom: 1px solid rgba(118, 169, 229, .28); background: linear-gradient(180deg, #0a2b63 0%, #092354 100%); color: #c6d9e9; -webkit-app-region: drag; box-shadow: 0 4px 18px rgba(0, 0, 0, .2); }
.topbar-sections { display: flex; height: 100%; align-items: stretch; gap: 0; }
.topbar-section { min-width: 148px; padding: 0 15px; border: 0; border-right: 1px solid rgba(147, 190, 233, .18); background: transparent; color: #9bb2cf; text-align: left; font: 700 9px/1.12 'DM Mono', monospace; letter-spacing: .07em; text-transform: uppercase; transition: background .18s ease, color .18s ease; }
.topbar-section:first-child { border-left: 1px solid rgba(147, 190, 233, .18); }
.topbar-section:hover, .topbar-section.active { background: rgba(92, 174, 226, .16); color: #eef8fb; box-shadow: inset 0 -3px 0 #68d9e0; }
.app-body { display: flex; flex: 1; min-height: 0; width: 100%; }
.reference-topbar { position: relative; z-index: 20; display: flex; flex: 0 0 58px; align-items: center; justify-content: space-between; height: 58px; padding: 0 16px 0 84px; border-bottom: 1px solid rgba(118, 169, 229, .28); background: linear-gradient(180deg, #0a2b63 0%, #092354 100%); color: #c6d9e9; -webkit-app-region: drag; box-shadow: 0 4px 18px rgba(0, 0, 0, .2); }
.topbar-left, .topbar-actions { display: flex; align-items: center; gap: 10px; }
.topbar-sidebar-icon { display: grid; width: 39px; height: 32px; place-items: center; gap: 4px; padding: 7px 9px; border: 1px solid rgba(147, 190, 233, .25); border-radius: 10px; background: rgba(7, 22, 49, .34); }
.topbar-sidebar-icon span { display: block; width: 17px; height: 1px; background: #b8cce0; }
.topbar-history { display: flex; overflow: hidden; border: 1px solid rgba(147, 190, 233, .25); border-radius: 18px; background: rgba(7, 22, 49, .34); }
.topbar-history button { width: 37px; height: 32px; border: 0; border-right: 1px solid rgba(147, 190, 233, .16); background: transparent; color: #b8cce0; font-size: 25px; line-height: 1; }.topbar-history button:last-child { border-right: 0; color: #6480a6; }
.topbar-title { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; gap: 10px; min-width: 430px; height: 32px; padding: 0 13px; transform: translate(-50%, -50%); border: 1px solid rgba(147, 190, 233, .22); border-radius: 999px; background: linear-gradient(180deg, rgba(13, 43, 91, .72), rgba(5, 24, 57, .44)); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 4px 15px rgba(0, 0, 0, .12); color: #d7e8f2; font: 700 12px 'DM Mono', monospace; letter-spacing: .1em; pointer-events: none; white-space: nowrap; }
.topbar-brand-glyph { position: relative; display: block; width: 19px; height: 19px; flex: 0 0 19px; border: 1px solid #71dfe7; border-radius: 50%; background: radial-gradient(circle, #71dfe7 0 27%, transparent 29% 48%, rgba(113,223,231,.52) 50% 58%, transparent 60%); box-shadow: 0 0 10px rgba(113,223,231,.42); }
.topbar-title b { color: #eef8fb; letter-spacing: .14em; }
.topbar-divider { width: 1px; height: 15px; background: rgba(147, 190, 233, .34); }
.topbar-title small { color: #91abc8; font: 500 8px 'DM Mono', monospace; letter-spacing: .12em; }
.topbar-live { display: flex; align-items: center; gap: 5px; margin-left: auto; color: #79e3d7; font: 500 8px 'DM Mono', monospace; letter-spacing: .08em; }
.topbar-live i { display: block; width: 5px; height: 5px; border-radius: 50%; background: #79e3d7; box-shadow: 0 0 8px #79e3d7; }
.topbar-actions { margin-left: auto; }.topbar-actions button { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(147, 190, 233, .25); border-radius: 10px; background: rgba(7, 22, 49, .34); color: #d3e5ef; font-size: 18px; }.topbar-actions button:hover, .topbar-sidebar-icon:hover, .topbar-history:hover { background: rgba(111, 185, 236, .18); }
.no-drag { -webkit-app-region: no-drag; }
.sidebar { position: relative; z-index: 10; display: flex; flex: 0 0 405px; flex-direction: column; height: 100%; background: linear-gradient(180deg, #0a244c 0%, #081a35 100%); border-right: 1px solid rgba(143, 182, 226, .25); box-shadow: 12px 0 35px rgba(0, 0, 0, .16); }
.brand-row { display: flex; align-items: center; gap: 25px; height: 88px; padding: 0 25px; border-bottom: 1px solid var(--line); }
.menu-button { display: grid; gap: 7px; width: 45px; height: 45px; align-content: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; }
.menu-button span { display: block; width: 27px; height: 2px; background: #b7c7dc; }
.brand-mark { display: flex; flex-direction: column; gap: 2px; letter-spacing: .13em; }
.brand-mark i { display: block; width: 31px; height: 3px; margin-bottom: 3px; background: var(--cyan); }
.brand-mark strong { font-family: 'Barlow Condensed', sans-serif; font-size: 21px; letter-spacing: .13em; }
.brand-mark small { color: #7f9bc0; font: 8px 'DM Mono', monospace; letter-spacing: .17em; }
.section-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.section-tab { display: flex; min-height: 104px; flex-direction: column; justify-content: center; gap: 8px; padding: 12px 11px; border: 0; border-right: 1px solid rgba(143, 182, 226, .12); background: transparent; color: #8fa7c5; text-align: left; font: 600 16px/1.03 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.section-tab.active { color: var(--white); background: rgba(98, 178, 240, .22); box-shadow: inset 0 -3px var(--cyan); }
.tab-icon { display: block; color: var(--cyan); font: 22px/1 Manrope, sans-serif; opacity: .92; }
.species-hero { position: relative; min-height: 370px; padding: 20px 27px 22px; border-bottom: 1px solid var(--line); overflow: hidden; }
.toggle-line { display: flex; justify-content: space-between; align-items: center; }
.switch { position: relative; width: 36px; height: 20px; padding: 0; border: 0; border-radius: 20px; background: #1a4c80; transition: .2s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #8fb4d6; transition: .2s; }
.switch.on { background: #1781a5; }
.switch.on span { left: 19px; background: var(--cyan); box-shadow: 0 0 12px rgba(99, 228, 232, .7); }
.collapse { border: 0; background: transparent; color: #afc2da; font-size: 24px; line-height: 1; }
.insect-art { position: absolute; top: 58px; right: 12px; width: 290px; height: 174px; opacity: .96; transform: none; filter: drop-shadow(0 0 16px rgba(90, 196, 216, .28)); }.insect-art img { width: 100%; height: 100%; object-fit: contain; }
.body { position: absolute; z-index: 3; top: 18px; left: 108px; width: 25px; height: 115px; border-radius: 50%; background: linear-gradient(90deg, #b8c6cf, #526d80 45%, #c7d3d6); transform: rotate(18deg); }
.body::after { content: ''; position: absolute; top: -15px; left: 7px; width: 10px; height: 26px; border-radius: 50%; background: #d5e0e3; }
.wing { position: absolute; top: 15px; width: 135px; height: 95px; border-radius: 80% 20% 75% 25%; background: linear-gradient(140deg, rgba(205, 219, 224, .82), rgba(73, 100, 118, .63)); border: 1px solid rgba(229, 240, 239, .28); }
.wing-left { left: 1px; transform: rotate(18deg) skew(-12deg); }.wing-right { right: 1px; transform: scaleX(-1) rotate(18deg) skew(-12deg); }
.leg { position: absolute; z-index: 2; left: 101px; width: 90px; height: 2px; background: #91a8b1; transform-origin: left; }.leg-one { top: 49px; transform: rotate(-25deg); }.leg-two { top: 78px; transform: rotate(18deg); }.leg-three { top: 106px; transform: rotate(-10deg); }
.species-title { position: absolute; bottom: 77px; left: 28px; }
.eyebrow { color: #82a5c8; font: 500 10px 'DM Mono', monospace; letter-spacing: .14em; text-transform: uppercase; }
.species-title h1 { margin: 8px 0 0; color: #eef7fb; font: 800 44px/.84 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.species-facts { position: absolute; right: 28px; bottom: 25px; left: 28px; display: grid; grid-template-columns: 1.1fr .75fr 1fr; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.species-facts div { display: flex; flex-direction: column; gap: 4px; }.species-facts small { color: #7797bb; font: 9px 'DM Mono', monospace; }.species-facts b { color: #b7c9de; font: 600 15px 'Barlow Condensed', sans-serif; letter-spacing: .03em; }
.sidebar-content { flex: 1; min-height: 0; padding: 23px 27px; overflow: auto; }.sidebar-content.hidden { display: none; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }.panel-heading h2 { margin: 5px 0 0; font: 600 26px 'Barlow Condensed', sans-serif; letter-spacing: .015em; }.info-dot { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #7693b5; border-radius: 50%; color: #a4bbd4; font: 11px Georgia, serif; }
.layer-row { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid rgba(143, 182, 226, .13); }.layer-row div { display: flex; flex: 1; flex-direction: column; gap: 2px; }.layer-row b { color: #d9e7f2; font: 600 15px 'Barlow Condensed', sans-serif; letter-spacing: .025em; }.layer-row small { color: #829abd; font: 10px 'DM Mono', monospace; }.layer-color, .swatch { display: block; width: 9px; height: 9px; border-radius: 50%; }.cyan { background: var(--cyan); box-shadow: 0 0 10px rgba(99, 228, 232, .65); }.coral { background: var(--coral); box-shadow: 0 0 10px rgba(255, 118, 106, .6); }.violet { background: var(--violet); box-shadow: 0 0 10px rgba(146, 103, 255, .6); }.orange { background: var(--orange); }.lime { background: var(--lime); }
.evidence-card, .action-card { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 12px 0; border-bottom: 1px solid rgba(143, 182, 226, .13); }.evidence-card { flex-wrap: wrap; }.evidence-card b { flex: 1; font: 600 15px 'Barlow Condensed', sans-serif; }.evidence-card span { color: var(--cyan); font: 500 20px 'DM Mono', monospace; }.evidence-card small { flex-basis: 100%; color: #829abd; font: 10px 'DM Mono', monospace; }.evidence-card.warn span, .orange-text { color: var(--orange) !important; }.small-note { color: #7f99b9; font: 11px/1.6 'DM Mono', monospace; }.action-number { color: var(--cyan); font: 15px 'DM Mono', monospace; }.action-card div { display: flex; flex: 1; flex-direction: column; gap: 3px; }.action-card b { font: 600 16px 'Barlow Condensed', sans-serif; }.action-card small { color: #829abd; font: 10px 'DM Mono', monospace; line-height: 1.35; }.arrow { color: #91b5d9; }.method-row { display: flex; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid rgba(143, 182, 226, .13); color: #829abd; font: 10px 'DM Mono', monospace; }.method-row b { color: #dce9f3; font-weight: 500; text-align: right; }
.sidebar-footer { display: flex; justify-content: space-between; padding: 15px 27px; border-top: 1px solid var(--line); color: #7996bb; font: 9px 'DM Mono', monospace; letter-spacing: .08em; }.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); }
.map-stage { position: relative; flex: 1; min-width: 0; height: 100%; overflow: hidden; background: #071326; }.map-stage #map { position: absolute; inset: 0; }.map-scrim { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 52% 48%, transparent 27%, rgba(1, 10, 25, .08) 61%, rgba(2, 8, 19, .46) 100%), linear-gradient(90deg, rgba(4, 15, 31, .38), transparent 17%); }.map-header { position: absolute; z-index: 3; top: 20px; right: 25px; left: 25px; display: flex; align-items: center; gap: 18px; pointer-events: none; }.location-label { display: flex; min-width: 235px; flex-direction: column; gap: 3px; text-shadow: 0 2px 12px #05101f; }.location-label strong { font: 500 15px 'Barlow Condensed', sans-serif; letter-spacing: .05em; }.search-wrap { position: relative; display: flex; align-items: center; width: 230px; height: 38px; padding: 0 12px; gap: 8px; border: 1px solid rgba(164, 199, 233, .35); border-radius: 3px; background: rgba(8, 28, 57, .84); pointer-events: auto; box-shadow: 0 5px 22px rgba(0, 0, 0, .22); }.search-wrap > span { color: #a9c4e1; font-size: 24px; transform: rotate(-20deg); }.search-wrap input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--white); font: 10px 'DM Mono', monospace; }.search-wrap input::placeholder { color: #849bb8; }.search-results { position: absolute; top: 42px; right: 0; left: 0; display: none; padding: 5px; border: 1px solid var(--line); background: #0b2449; }.search-results.visible { display: block; }.search-results button, .search-results span { display: flex; width: 100%; padding: 8px; border: 0; background: transparent; color: var(--white); text-align: left; font: 11px 'DM Mono', monospace; }.search-results button:hover { background: rgba(99, 228, 232, .13); }.search-results small { margin-left: auto; color: var(--muted); }.view-toggle { display: flex; margin-left: auto; overflow: hidden; border: 1px solid rgba(160, 201, 239, .48); border-radius: 4px; background: rgba(9, 32, 66, .85); pointer-events: auto; }.view-button { height: 34px; padding: 0 13px; border: 0; border-right: 1px solid rgba(160, 201, 239, .22); background: transparent; color: #b9cae0; font: 10px 'DM Mono', monospace; }.view-button:last-child { border-right: 0; }.view-button.active { background: #dbe8ee; color: #12345c; }.view-button em { opacity: .72; font-style: normal; font-size: 8px; }.map-actions { display: flex; gap: 8px; pointer-events: auto; }.map-action { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid rgba(160, 201, 239, .28); background: rgba(8, 28, 57, .78); color: #d5e3ef; font-size: 20px; }.map-legend { position: absolute; z-index: 3; top: 84px; right: 25px; display: flex; align-items: center; gap: 17px; padding: 8px 13px; border: 1px solid rgba(142, 185, 227, .19); background: rgba(6, 24, 52, .75); color: #b9cce0; font: 9px 'DM Mono', monospace; }.legend-title { color: #e1edf5; font-weight: 500; }.legend-title span { color: var(--coral); font-size: 8px; }.legend-line { display: inline-block; width: 19px; margin-right: 5px; border-top: 2px solid; vertical-align: middle; }.coral-line { border-color: var(--coral); }.cyan-line { border-color: var(--cyan); }.violet-line { border-color: var(--violet); }
.front-insight { position: absolute; z-index: 3; top: 180px; right: 40px; width: 310px; padding: 18px 20px; border-left: 2px solid var(--coral); background: linear-gradient(90deg, rgba(6, 25, 52, .92), rgba(6, 25, 52, .56)); box-shadow: 0 12px 30px rgba(0, 0, 0, .17); }.insight-kicker { display: flex; align-items: center; gap: 7px; color: var(--coral); font: 9px 'DM Mono', monospace; letter-spacing: .06em; }.insight-kicker span:last-child { overflow: hidden; color: #95b0ce; text-overflow: ellipsis; white-space: nowrap; }.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(255, 118, 106, .16), 0 0 13px var(--coral); }.front-insight h2 { margin: 10px 0 17px; font: 600 28px/1 'Barlow Condensed', sans-serif; }.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }.insight-grid div { display: flex; flex-direction: column; gap: 4px; }.insight-grid b { color: #dff3f5; font: 500 20px 'DM Mono', monospace; }.insight-grid small { color: #86a0be; font: 8px/1.2 'DM Mono', monospace; }.status-bar { display: flex; flex-direction: column; gap: 4px; margin-top: 17px; padding-top: 12px; border-top: 1px solid rgba(143, 182, 226, .18); color: #8da8c4; font: 8px 'DM Mono', monospace; }.status-bar b { color: var(--orange); font-size: 9px; font-weight: 500; }
.map-controls { position: absolute; z-index: 3; right: 24px; bottom: 265px; display: flex; flex-direction: column; gap: 4px; }.control-button { display: grid; width: 33px; height: 33px; place-items: center; border: 1px solid rgba(160, 201, 239, .28); background: rgba(7, 27, 58, .82); color: #d7e6f0; font-size: 20px; }.control-button:hover, .map-action:hover { background: #163862; }.layer-control { position: relative; margin-top: 12px; font-size: 18px; }.layer-control b { position: absolute; top: -6px; right: -6px; display: grid; width: 17px; height: 17px; place-items: center; border-radius: 50%; background: var(--coral); color: white; font: 10px 'DM Mono', monospace; }
.timeline-dock { position: absolute; z-index: 3; right: 40px; bottom: 37px; left: 40px; padding: 15px 19px 13px; border: 1px solid rgba(143, 182, 226, .27); background: rgba(7, 26, 55, .86); box-shadow: 0 12px 35px rgba(0, 0, 0, .24); backdrop-filter: blur(11px); }.timeline-top { display: flex; align-items: center; gap: 18px; }.timeline-top h3 { margin: 3px 0 0; font: 600 20px 'Barlow Condensed', sans-serif; }.timeline-buttons { display: flex; margin-left: auto; gap: 4px; }.timeline-buttons button { width: 28px; height: 26px; border: 1px solid rgba(143, 182, 226, .25); background: #0d2c56; color: #c4d9e8; }.timeline-date { display: flex; min-width: 84px; flex-direction: column; gap: 2px; text-align: right; }.timeline-date b { color: var(--cyan); font: 16px 'DM Mono', monospace; }.timeline-date span { color: #7894b5; font: 8px 'DM Mono', monospace; }.timeline-track { position: relative; padding-top: 17px; }.timeline-progress { position: absolute; top: 22px; left: 0; height: 2px; width: 100%; background: var(--coral); pointer-events: none; }.timeline-track::before { content: ''; position: absolute; top: 22px; right: 0; left: 0; height: 2px; background: #315578; }.timeline-track input { position: relative; z-index: 1; width: 100%; height: 13px; margin: 0; accent-color: var(--coral); cursor: pointer; opacity: .98; }.timeline-ticks { display: flex; justify-content: space-between; gap: 1px; margin-top: 1px; color: #557795; font: 9px 'DM Mono', monospace; }.timeline-ticks span { flex: 1; min-width: 0; text-align: center; }.timeline-ticks .year-tick { color: #b3c7dc; font-weight: 500; }.layers-popover { position: absolute; z-index: 8; right: 70px; bottom: 265px; width: 265px; padding: 17px 18px; border: 1px solid rgba(143, 182, 226, .28); background: rgba(7, 26, 55, .97); box-shadow: 0 15px 40px rgba(0, 0, 0, .35); }.layers-popover.hidden { display: none; }.popover-header { display: flex; justify-content: space-between; margin-bottom: 11px; }.popover-header h3 { margin: 4px 0 0; font: 600 20px 'Barlow Condensed', sans-serif; }.popover-header button { border: 0; background: transparent; color: #9db8d2; font-size: 25px; }.layers-popover label { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid rgba(143, 182, 226, .12); color: #c9dbea; font: 11px 'DM Mono', monospace; }.layers-popover input { accent-color: var(--cyan); }.reset-button { width: 100%; margin-top: 16px; padding: 9px; border: 1px solid rgba(99, 228, 232, .45); background: rgba(99, 228, 232, .08); color: var(--cyan); font: 10px 'DM Mono', monospace; letter-spacing: .1em; }.map-attribution { position: absolute; z-index: 2; right: 20px; bottom: 9px; color: rgba(186, 207, 227, .6); font: 8px 'DM Mono', monospace; pointer-events: none; }
.maplibregl-ctrl-group { border: 1px solid rgba(160, 201, 239, .28) !important; border-radius: 0 !important; background: rgba(7, 27, 58, .82) !important; }.maplibregl-ctrl button { filter: invert(1) hue-rotate(165deg) saturate(.4); }.maplibregl-popup-content { padding: 10px 13px; border: 1px solid rgba(99, 228, 232, .45); border-radius: 0; background: #0b2449; color: #eaf4f7; box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }.lt-popup b, .lt-popup span { display: block; }.lt-popup b { font: 600 14px 'Barlow Condensed', sans-serif; }.lt-popup span { margin-top: 4px; color: #83a5c6; font: 9px 'DM Mono', monospace; }.maplibregl-popup-tip { border-top-color: #0b2449; }
@media (max-width: 1250px) { .sidebar { flex-basis: 350px; }.section-tab { font-size: 14px; }.insect-art { right: 10px; transform: scale(.82) rotate(-18deg); }.species-title h1 { font-size: 39px; }.map-header { gap: 10px; }.location-label { min-width: 180px; }.search-wrap { width: 190px; }.view-button { padding: 0 8px; }.front-insight { right: 25px; width: 280px; } }
@media (max-width: 950px) { .sidebar { flex-basis: 300px; }.section-tab { min-height: 88px; padding: 8px; font-size: 12px; }.brand-row { padding: 0 16px; gap: 12px; }.sidebar-content, .species-hero { padding-right: 17px; padding-left: 17px; }.map-header { right: 14px; left: 14px; }.location-label { display: none; }.front-insight { top: 135px; }.timeline-dock { right: 18px; bottom: 25px; left: 18px; } }

/* Reference composition: a compact explorer sidebar over a globe-first map. */
.sidebar { flex-basis: 414px; background: linear-gradient(180deg, #0b2d62 0%, #09224b 100%); }
.brand-row { height: 82px; padding: 0 23px; }
.brand-mark { display: none; }
.brand-row { justify-content: flex-start; }
.brand-mark strong { font-size: 20px; }
.section-tab { min-height: 100px; padding: 11px 10px; font-size: 14px; }
.species-hero { min-height: 305px; padding: 14px 25px 16px; }
.insect-art { top: 39px; right: 8px; width: 300px; height: 168px; opacity: 1; transform: none; filter: drop-shadow(0 0 18px rgba(85, 192, 228, .24)); }
.species-title { bottom: 70px; left: 25px; }
.species-title h1 { font-size: 38px; }
.species-facts { right: 25px; bottom: 20px; left: 25px; }
.sidebar-content { padding: 18px 25px; }
.panel-heading { margin-bottom: 10px; }
.panel-heading h2 { font-size: 19px; text-transform: uppercase; }
.layer-row { min-height: 38px; gap: 8px; }
.layer-row b { font-size: 14px; letter-spacing: .04em; }
.layer-row small { font-size: 8px; }
.layer-row::after { content: '+'; margin-left: 3px; color: #d3e3f2; font: 20px 'Barlow Condensed', sans-serif; }
.layer-row .layer-color { order: 3; }
.heat { background: linear-gradient(135deg, #ffc35b, #f04db7 52%, #7044e8); box-shadow: 0 0 11px rgba(240, 77, 183, .7); }
.map-stage { background: #020813; }
.map-stage #map { z-index: 0; }
.starfield { position: absolute; z-index: 1; inset: 0; pointer-events: none; opacity: .9; mix-blend-mode: screen; mask-image: radial-gradient(ellipse at 52% 48%, transparent 0 39%, #000 61%); -webkit-mask-image: radial-gradient(ellipse at 52% 48%, transparent 0 39%, #000 61%); }
.starfield .star { position: absolute; display: block; transform: translate(-50%, -50%) rotate(45deg); background: #d9f3ff; clip-path: polygon(50% 0, 64% 36%, 100% 50%, 64% 64%, 50% 100%, 36% 64%, 0 50%, 36% 36%); filter: drop-shadow(0 0 4px rgba(126, 218, 255, .9)); animation: star-pulse 4.5s ease-in-out infinite; }
.starfield .star-1 { background: #f6e7ff; transform: translate(-50%, -50%) rotate(45deg) scale(.72); filter: drop-shadow(0 0 3px rgba(219, 167, 255, .9)); }
.starfield .star-2 { background: #fff4c4; transform: translate(-50%, -50%) rotate(45deg) scale(.55); filter: drop-shadow(0 0 3px rgba(255, 226, 126, .9)); }
@keyframes star-pulse { 0%, 100% { opacity: .62; } 50% { opacity: 1; } }
.map-scrim { z-index: 2; background: linear-gradient(rgba(15, 52, 110, .3), rgba(4, 22, 58, .3)), radial-gradient(ellipse at 52% 48%, transparent 22%, rgba(2, 10, 24, .02) 58%, rgba(1, 7, 18, .18) 100%); }
.map-header { z-index: 4; top: 17px; right: 17px; left: 17px; gap: 12px; }
.location-label { display: none; }
.search-wrap { width: 39px; height: 35px; padding: 0; justify-content: center; border-color: rgba(160, 201, 239, .32); }
.search-wrap input { display: none; }
.search-wrap > span { font-size: 24px; }
.search-results { top: 41px; left: 0; width: 230px; }
.view-toggle { margin: 0 auto; }
.map-brand { display: flex; align-items: center; gap: 6px; min-width: 112px; padding: 6px 8px; border: 1px solid rgba(160, 201, 239, .25); background: rgba(7, 27, 58, .72); color: #d8e8f2; }.map-brand span { color: #71dfe7; font-size: 16px; }.map-brand b { font: 700 9px/.92 'Barlow Condensed', sans-serif; letter-spacing: .04em; }
.map-legend { z-index: 4; top: 68px; right: 17px; gap: 12px; padding: 7px 10px; font-size: 8px; }
.front-insight { display: none; }
.map-controls { z-index: 4; right: 17px; bottom: 184px; }
.timeline-dock { z-index: 4; right: 17px; bottom: 17px; left: 17px; padding: 7px 12px 6px; }
.timeline-top { gap: 10px; min-height: 22px; }
.timeline-top h3 { font-size: 14px; }
.timeline-top .eyebrow { font-size: 8px; }
.timeline-buttons button { width: 24px; height: 23px; }
.timeline-date { min-width: 70px; }
.timeline-date b { font-size: 12px; }
.timeline-track { padding-top: 6px; }
.timeline-progress, .timeline-track::before { top: 11px; height: 2px; }
.timeline-track input { height: 10px; }
.timeline-ticks { margin-top: 0; font-size: 7px; }
.layers-popover { z-index: 7; right: 60px; bottom: 178px; }
.map-attribution { z-index: 4; }

/* Softer production finish. */
.species-hero, .sidebar-content, .timeline-dock, .layers-popover, .map-legend, .front-insight { border-radius: 16px; }
.species-hero { margin: 10px 10px 0; border: 1px solid rgba(143, 182, 226, .16); }
.sidebar-content { margin: 10px; padding: 18px 15px; border: 1px solid rgba(143, 182, 226, .13); background: rgba(7, 25, 54, .3); }
.species-facts { right: 20px; left: 20px; }
.insect-art { right: 10px; overflow: visible; border-radius: 0; }
.insect-art img { border-radius: 0; }
.section-tab:first-child { border-radius: 12px 0 0 12px; }
.section-tab:last-child { border-radius: 0 12px 12px 0; }
.section-tabs { margin: 0 8px; border-radius: 12px; overflow: hidden; }
.search-wrap, .view-toggle, .map-action, .map-brand, .control-button, .timeline-buttons button, .reset-button { border-radius: 9px; }
.view-toggle { border-radius: 10px; }
.view-button:first-child { border-radius: 9px 0 0 9px; }
.view-button:last-child { border-radius: 0 9px 9px 0; }
.map-legend { border-radius: 10px; }
.timeline-dock { border-radius: 14px; }
.layers-popover { border-radius: 14px; }
.layer-row { margin: 2px 0; padding: 0 9px; border-radius: 10px; border-bottom-color: transparent; }
.layer-row:hover { background: rgba(114, 181, 229, .1); }
.map-controls { gap: 6px; }
.map-controls .control-button { border-radius: 9px; }
.maplibregl-ctrl-group { border-radius: 9px !important; overflow: hidden; }
.maplibregl-popup-content { border-radius: 12px; }

/* Integrated timeline: the reference treats time as a map control, not a
   floating card. */
.timeline-dock {
  right: 0;
  bottom: 0;
  left: 0;
  padding: 18px 32px 16px;
  border: 0;
  border-top: 1px solid rgba(143, 182, 226, .22);
  border-radius: 0;
  background: linear-gradient(180deg, rgba(3, 15, 34, 0) 0%, rgba(3, 15, 34, .78) 32%, rgba(3, 15, 34, .96) 100%);
  box-shadow: none;
  backdrop-filter: blur(5px);
}
.timeline-top { min-height: 34px; }
.timeline-top h3 { margin-top: 4px; font-size: 18px; }
.timeline-top .eyebrow { font-size: 9px; letter-spacing: .16em; }
.timeline-buttons button { width: 31px; height: 29px; border-radius: 9px; background: rgba(13, 44, 86, .88); }
.timeline-date b { font-size: 15px; }
.timeline-track { padding-top: 13px; }
.timeline-progress, .timeline-track::before { top: 24px; height: 3px; border-radius: 3px; }
.timeline-progress { box-shadow: 0 0 10px rgba(255, 118, 106, .24); }
.timeline-track input { height: 15px; appearance: none; background: transparent; }
.timeline-track input::-webkit-slider-runnable-track { height: 3px; border-radius: 3px; background: transparent; }
.timeline-track input::-webkit-slider-thumb { width: 19px; height: 19px; margin-top: -8px; border: 2px solid #ffd7c9; border-radius: 50%; background: var(--coral); box-shadow: 0 0 14px rgba(255, 118, 106, .7); appearance: none; }
.timeline-ticks { margin-top: 3px; font-size: 8px; }
.map-attribution { bottom: 5px; }

/* Reference scale: the supplied explorer uses a compact chrome strip and a
   sidebar that occupies roughly one quarter of the window. */
.reference-topbar { flex-basis: 52px; height: 52px; padding: 0 28px 0 150px; align-items: stretch; }
.topbar-sidebar-icon { width: 62px; height: 32px; padding: 7px 13px; border-radius: 10px; }
.topbar-sidebar-icon span { width: 17px; }
.topbar-sidebar-icon svg { width: 19px; height: 19px; fill: none; stroke: #b8cce0; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topbar-history button { width: 34px; height: 32px; font-size: 23px; }
.topbar-actions { gap: 7px; }
.topbar-actions button { width: 40px; height: 36px; border-radius: 12px; background: linear-gradient(180deg, rgba(18, 54, 108, .88), rgba(7, 27, 62, .9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 5px 12px rgba(0,0,0,.14); color: #d9eaf3; font-size: 16px; transition: transform .16s ease, background .16s ease, border-color .16s ease, box-shadow .16s ease; }
.topbar-actions button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-actions button:hover { transform: translateY(-1px); border-color: rgba(113, 223, 231, .62); background: linear-gradient(180deg, rgba(28, 77, 143, .96), rgba(9, 38, 82, .96)); box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 7px 17px rgba(0,0,0,.22), 0 0 14px rgba(99, 228, 232, .12); }
.topbar-actions button:active { transform: translateY(0); }
.topbar-actions button,
.map-action,
.control-button,
.timeline-buttons button,
.maplibregl-ctrl-group,
.map-brand,
.map-legend {
  border-color: transparent !important;
  outline: none;
  box-shadow: none;
}
.topbar-actions button { background: rgba(12, 39, 82, .62); }
.map-action, .control-button, .timeline-buttons button { background: rgba(8, 30, 64, .64); }
.map-brand, .map-legend { background: rgba(7, 27, 58, .58); }
.maplibregl-ctrl-group { background: rgba(7, 27, 58, .64) !important; }
.topbar-actions button:hover, .map-action:hover, .control-button:hover, .timeline-buttons button:hover { border-color: transparent !important; box-shadow: none; }
.sidebar { flex-basis: 360px; }
.brand-row { display: none; }
.sidebar { overflow: hidden; transition: flex-basis .28s ease, opacity .2s ease, border-color .28s ease; }
.sidebar-collapsed .sidebar { flex-basis: 0; min-width: 0; border-right-color: transparent; opacity: 0; pointer-events: none; }
.sidebar-collapsed .map-stage { flex-basis: 100%; }
.brand-row { height: 75px; }
.section-tab { min-height: 63px; font-size: 12px; }
.species-hero { min-height: 349px; margin-top: 0; }
.insect-art { top: 38px; width: 260px; height: 150px; }
.species-title { bottom: 116px; }
.species-title h1 { font-size: 36px; }
.sidebar-content { padding-top: 16px; }
.layer-row { min-height: 40px; }
.map-header { top: 14px; }
.map-legend { top: 56px; }

/* Emerald interface, blue atmospheric globe, and a clearer evidence rail. */
:root {
  --navy: #061719;
  --navy-2: #0a2829;
  --panel: rgba(7, 35, 35, .93);
  --line: rgba(119, 220, 185, .22);
  --muted: #8bb9a9;
  --cyan: #79f0c4;
  --coral: #72e6a8;
  --violet: #58cda4;
  --orange: #b8e86c;
  --lime: #d3ff85;
}
html, body, .app-shell { background: #061719; }
.reference-topbar { background: linear-gradient(180deg, #123f42 0%, #0a2d30 100%); border-bottom-color: rgba(121, 240, 196, .28); }
.topbar-section { color: #9fcdbd; border-color: rgba(121, 240, 196, .18); }
.topbar-section:hover, .topbar-section.active { background: rgba(101, 224, 176, .16); color: #effff7; box-shadow: inset 0 -3px 0 var(--cyan); }
.sidebar { background: linear-gradient(180deg, #0b3837 0%, #072927 100%); border-right-color: rgba(121, 240, 196, .24); }
.species-hero, .sidebar-content { background: rgba(7, 43, 41, .62); border-color: rgba(121, 240, 196, .18); }
.layer-row:hover { background: rgba(101, 224, 176, .1); }
.layer-row b, .method-row b { color: #dcfff0; }
.layer-row small, .evidence-card small, .action-card small { color: #86b8a7; }
.map-stage { background: #02101b; }
.map-stage::before, .map-stage::after { content: ''; position: absolute; z-index: 1; inset: -12%; pointer-events: none; }
.map-stage::before { background: radial-gradient(ellipse at 52% 48%, transparent 0 34%, rgba(43, 155, 255, 0) 39%, rgba(52, 158, 255, .5) 46%, rgba(25, 103, 226, .26) 51%, transparent 59%); filter: blur(12px); mix-blend-mode: screen; }
.map-stage::after { background: radial-gradient(ellipse at 52% 48%, rgba(38, 137, 245, .16) 0 29%, rgba(9, 70, 170, .08) 40%, transparent 55%); mix-blend-mode: screen; }
.starfield { z-index: 2; opacity: 1; mask-image: radial-gradient(ellipse at 52% 48%, transparent 0 34%, rgba(0,0,0,.15) 40%, #000 54%); -webkit-mask-image: radial-gradient(ellipse at 52% 48%, transparent 0 34%, rgba(0,0,0,.15) 40%, #000 54%); }
.starfield .star { background: #e7fbff; filter: drop-shadow(0 0 5px rgba(117, 211, 255, 1)); }
.starfield .star-1 { background: #bdeaff; filter: drop-shadow(0 0 5px rgba(76, 167, 255, 1)); }
.starfield .star-2 { background: #d6f7ff; filter: drop-shadow(0 0 4px rgba(113, 226, 255, 1)); }
.map-scrim { z-index: 3; background: linear-gradient(rgba(7, 42, 76, .15), rgba(2, 18, 38, .08)), radial-gradient(ellipse at 52% 48%, transparent 24%, rgba(1, 8, 19, .02) 58%, rgba(1, 7, 18, .12) 100%); }
.view-toggle { border-color: rgba(121, 240, 196, .42); background: rgba(5, 39, 45, .88); }
.view-button { color: #b5dbc9; border-color: rgba(121, 240, 196, .2); }
.view-button.active { background: #d9ffeb; color: #0b443a; }
.map-brand { color: #b9f7dc; }

.timeline-dock {
  padding: 15px 34px 13px;
  border-top: 1px solid rgba(121, 240, 196, .28);
  background: linear-gradient(180deg, rgba(3, 22, 28, 0) 0%, rgba(3, 26, 29, .82) 28%, rgba(3, 20, 24, .98) 100%);
}
.timeline-top { gap: 24px; min-height: 42px; }
.timeline-top h3 { margin-top: 3px; color: #e9fff4; font-size: 21px; letter-spacing: .01em; }
.timeline-caption { display: block; margin-top: 3px; color: #76a996; font: 8px 'DM Mono', monospace; letter-spacing: .04em; }
.timeline-top .eyebrow { color: #88cdb3; }
.timeline-buttons { gap: 7px; }
.timeline-buttons button { width: 34px; height: 31px; border: 1px solid rgba(121, 240, 196, .24); border-radius: 10px; background: rgba(8, 56, 54, .88); color: #c7f9df; font-size: 18px; }
.timeline-buttons button:hover { background: rgba(73, 178, 139, .3); }
.timeline-buttons #timeline-play { width: 42px; background: linear-gradient(135deg, #b9f56f, #5de6b0); color: #063930; font-weight: 800; box-shadow: 0 0 16px rgba(111, 239, 179, .32); }
.timeline-date b { color: var(--cyan); }
.timeline-date span { color: #77a995; }
.timeline-track { padding-top: 14px; }
.timeline-progress { top: 24px; height: 4px; background: linear-gradient(90deg, #6ce8b3, #c9f46f); box-shadow: 0 0 12px rgba(108, 232, 179, .48); }
.timeline-track::before { top: 24px; height: 4px; background: rgba(88, 134, 137, .44); }
.timeline-track input::-webkit-slider-thumb { border-color: #e4ffed; background: #a9f178; box-shadow: 0 0 16px rgba(127, 239, 183, .78); }
.timeline-ticks { color: #608c84; }
.timeline-ticks .year-tick { color: #b8e7d0; }
.map-attribution { color: rgba(163, 223, 200, .62); }

/* Final visual restraint: green planet tint, localized atmosphere, quieter time rail. */
.map-stage #map { filter: hue-rotate(58deg) saturate(.82) brightness(.94); }
.map-stage::before { display: none; }
.map-stage::after { display: none; }
.map-stage.globe-mode::before { content: ''; display: block; position: absolute; z-index: 1; top: var(--globe-top, 0px); left: var(--globe-left, 0px); width: var(--globe-size, 0px); height: var(--globe-size, 0px); border: 6px solid rgba(91, 238, 165, .5); border-radius: 50%; pointer-events: none; box-shadow: 0 0 8px 2px rgba(89, 239, 166, .52), 0 0 22px 5px rgba(41, 173, 116, .28), inset 0 0 12px rgba(126, 245, 190, .16); mix-blend-mode: screen; }
.starfield { opacity: .82; }
.timeline-dock { padding: 8px 28px 6px; background: linear-gradient(180deg, rgba(3, 22, 28, 0) 0%, rgba(3, 23, 26, .56) 36%, rgba(3, 20, 24, .84) 100%); }
.timeline-top { min-height: 27px; gap: 16px; }
.timeline-top h3 { margin-top: 1px; font-size: 16px; }
.timeline-top .eyebrow { font-size: 8px; }
.timeline-caption { display: none; }
.timeline-buttons { gap: 4px; }
.timeline-buttons button { width: 27px; height: 23px; border-radius: 7px; background: rgba(8, 49, 47, .72); font-size: 15px; }
.timeline-buttons #timeline-play { width: 32px; box-shadow: none; }
.timeline-date b { font-size: 13px; }
.timeline-date span { font-size: 7px; }
.timeline-track { padding-top: 7px; }
.timeline-progress { top: 17px; height: 2px; box-shadow: 0 0 6px rgba(108, 232, 179, .25); }
.timeline-track::before { top: 17px; height: 2px; }
.timeline-track input { height: 10px; }
.timeline-track input::-webkit-slider-thumb { width: 15px; height: 15px; margin-top: -6px; box-shadow: 0 0 8px rgba(127, 239, 183, .52); }
.timeline-ticks { margin-top: 1px; font-size: 7px; }
.timeline-regions { display: grid; grid-template-columns: 7fr 1fr; margin-top: 3px; color: #6f9f90; font: 7px 'DM Mono', monospace; letter-spacing: .08em; }
.timeline-regions span { padding: 2px 0 1px; }
.timeline-regions span:first-child { border-right: 1px solid rgba(121, 240, 196, .28); }
.timeline-regions span:last-child { padding-left: 9px; color: #b0d87a; }
.timeline-regions b { margin-left: 4px; color: #9ac1ae; font-weight: 500; }
.timeline-regions span:last-child b { color: #c9ef87; }
.projection-tick { color: #b6df7c !important; }

/* Minimal bottom-edge playback rail. */
.timeline-dock { right: 0; bottom: 0; left: 0; height: 34px; padding: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
.timeline-top { position: absolute; z-index: 3; right: 20px; bottom: 8px; display: block; min-height: 0; }
.timeline-top > div:first-child, .timeline-date { display: none; }
.timeline-buttons { display: flex; gap: 4px; margin: 0; }
.timeline-buttons button { width: 24px; height: 22px; border: 0; border-radius: 6px; background: rgba(5, 43, 42, .82); font-size: 14px; }
.timeline-buttons #timeline-play { width: 29px; }
.timeline-track { position: absolute; right: 20px; bottom: 10px; left: 20px; padding: 0; }
.timeline-progress { top: 4px; height: 2px; box-shadow: none; }
.timeline-track::before { top: 4px; height: 2px; }
.timeline-track input { height: 10px; }
.timeline-track input::-webkit-slider-thumb { width: 13px; height: 13px; margin-top: -5px; box-shadow: 0 0 7px rgba(127, 239, 183, .45); }
.timeline-regions, .timeline-ticks { display: none; }

/* Species hero without the status summary strip. */
.species-hero { min-height: 292px; }
.species-title { bottom: 30px; }

/* Runtime globe treatment: dark-green space/land and a zoom-gated contour. */
.map-stage { background: #010906; }
.map-stage #map { filter: none; }
.map-scrim { background: linear-gradient(rgba(2, 32, 20, .12), rgba(1, 16, 10, .08)), radial-gradient(ellipse at 52% 48%, transparent 24%, rgba(1, 18, 11, .03) 58%, rgba(0, 8, 5, .16) 100%); }
.map-stage.globe-mode::before { border-width: 5px; border-color: rgba(102, 247, 177, .72); opacity: var(--globe-rim-opacity, 0); box-shadow: 0 0 8px 2px rgba(94, 244, 172, .68), 0 0 20px 6px rgba(42, 184, 120, .34), inset 0 0 10px rgba(133, 250, 194, .2); transition: opacity .16s ease; }
.starfield .star { background: #d8f7e8; filter: drop-shadow(0 0 4px rgba(105, 225, 166, .8)); }
.starfield .star-1 { background: #a9d7c0; filter: drop-shadow(0 0 4px rgba(71, 178, 126, .75)); }
.starfield .star-2 { background: #e2f4e8; filter: drop-shadow(0 0 3px rgba(139, 216, 168, .72)); }

/* No Earth halo; keep the bottom playback rail and metadata separated. */
.map-stage.globe-mode::before { display: none; }
.timeline-track { right: 126px; }
.timeline-top { right: 18px; }
.map-attribution { right: 18px; bottom: 38px; z-index: 4; padding: 3px 5px; border-radius: 4px; background: rgba(1, 14, 9, .54); }

/* Year-labelled evidence/prospective rail. */
.timeline-dock { height: 58px; background: linear-gradient(180deg, transparent, rgba(1, 16, 10, .72)); }
.timeline-top { right: 18px; bottom: 9px; }
.timeline-track { right: 126px; bottom: 7px; left: 20px; height: 43px; --evidence-share: 58.333%; }
.timeline-regions { position: absolute; top: 0; right: 0; left: 0; display: grid; grid-template-columns: var(--evidence-share) calc(100% - var(--evidence-share)); margin: 0; line-height: 10px; }
.timeline-regions span { overflow: hidden; padding: 0 5px 2px 0; white-space: nowrap; }
.timeline-regions span:last-child { padding-left: 8px; border-left: 1px solid rgba(189, 235, 112, .56); background: linear-gradient(90deg, rgba(169, 226, 93, .08), transparent); }
.timeline-progress, .timeline-track::before { top: 16px; }
.timeline-track::before { background: linear-gradient(90deg, rgba(83, 141, 121, .48) 0 var(--evidence-share), rgba(180, 224, 103, .58) var(--evidence-share) 100%); }
.timeline-track input { position: absolute; z-index: 2; top: 11px; left: 0; height: 12px; }
.timeline-ticks { position: absolute; top: 29px; right: 0; left: 0; display: block; height: 12px; margin: 0; color: #8eb5a5; font: 7px 'DM Mono', monospace; }
.timeline-ticks span { position: absolute; width: auto; min-width: 0; transform: translateX(-50%); color: #8eb5a5; text-align: center; }
.timeline-ticks span::before { content: ''; position: absolute; top: -11px; left: 50%; width: 1px; height: 7px; background: rgba(120, 176, 153, .42); }
.timeline-ticks span:first-child { transform: none; }
.timeline-ticks span:first-child::before { left: 0; }
.timeline-ticks .projection-tick { color: #c4eb82 !important; }

/* Nationwide spread explainer. */
.spread-active .species-hero,
.spread-active .timeline-dock,
.spread-active .front-insight,
.spread-active .map-settings-toggle,
.spread-active .map-export { display: none !important; }
.spread-active .sidebar { overflow-y: auto; }
.spread-active .sidebar-content { padding-bottom: 30px; }
.spread-active .map-attribution { bottom: 8px; }
.spread-intro { margin: 0 0 13px; color: #a2c9b9; font-size: 11px; line-height: 1.55; }
.spread-view-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.spread-view-tabs button { display: grid; grid-template-columns: 22px minmax(0, 1fr); grid-template-rows: auto auto; gap: 0 7px; min-height: 58px; padding: 8px 9px; border: 1px solid rgba(121, 240, 196, .18); border-radius: 10px; background: rgba(5, 31, 31, .7); color: #94bdad; text-align: left; cursor: pointer; }
.spread-view-tabs button:hover { background: rgba(82, 190, 150, .11); }
.spread-view-tabs button.active { border-color: rgba(135, 245, 190, .68); background: linear-gradient(135deg, rgba(77, 190, 145, .2), rgba(23, 82, 72, .28)); color: #edfff5; box-shadow: inset 0 0 0 1px rgba(135, 245, 190, .08); }
.spread-view-tabs button > span { grid-row: 1 / 3; color: #77d9ae; font: 700 9px 'DM Mono', monospace; }
.spread-view-tabs button b { font: 700 12px 'Barlow Condensed', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.spread-view-tabs button small { color: #79a493; font: 8px 'DM Mono', monospace; }
.spread-view-explanation { min-height: 76px; margin-top: 9px; padding: 10px 11px; border-left: 2px solid #72e6a8; background: rgba(5, 26, 27, .52); }
.spread-view-explanation span { display: block; color: #7fc9ab; font: 700 8px 'DM Mono', monospace; letter-spacing: .1em; }
.spread-view-explanation b { display: block; margin-top: 3px; color: #effff6; font: 700 14px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.spread-view-explanation p { margin: 3px 0 0; color: #91b8a8; font-size: 9px; line-height: 1.45; }
.spread-grid-size-control { margin-top: 9px; padding: 9px 10px; border: 1px solid rgba(121, 240, 196, .14); border-radius: 9px; background: rgba(5, 28, 28, .55); }
.spread-grid-size-control > div:first-child { display: flex; justify-content: space-between; align-items: center; color: #7ba797; font: 700 8px 'DM Mono', monospace; letter-spacing: .08em; }
.spread-grid-size-control > div:first-child b { color: #d5f986; font-size: 10px; }
.spread-grid-size-control > input { width: 100%; margin: 8px 0 2px; accent-color: #b8ee78; cursor: ew-resize; }
.spread-grid-size-ticks { display: grid; grid-template-columns: repeat(4, 1fr); color: #83aa9b; font: 700 7px 'DM Mono', monospace; }
.spread-grid-size-ticks span { display: flex; flex-direction: column; gap: 1px; text-align: center; }
.spread-grid-size-ticks span:first-child { text-align: left; }
.spread-grid-size-ticks span:last-child { text-align: right; }
.spread-grid-size-ticks small { color: #5f8878; font-size: 6px; font-weight: 500; }
.spread-grid-size-control > small { display: block; margin-top: 6px; color: #6d9988; font-size: 7px; line-height: 1.35; }
.spread-scenario-controls { margin-top: 10px; }
.spread-control-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; color: #7ba797; font: 700 8px 'DM Mono', monospace; letter-spacing: .08em; }
.spread-control-heading b { color: #d5f986; }
.spread-model-options { display: grid; gap: 5px; }
.spread-model-options button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 7px 9px; border: 1px solid rgba(121, 240, 196, .13); border-radius: 8px; background: rgba(5, 28, 28, .54); color: #a2c4b7; text-align: left; cursor: pointer; }
.spread-model-options button.active { border-color: rgba(211, 255, 133, .62); background: rgba(123, 184, 87, .15); color: #efffd8; }
.spread-model-options button b { font: 700 11px 'Barlow Condensed', sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.spread-model-options button em { color: #85af9f; font: 700 7px 'DM Mono', monospace; font-style: normal; letter-spacing: .08em; }
.spread-model-options button small { grid-column: 1 / -1; color: #6f9989; font-size: 8px; line-height: 1.35; }
.normalization-card { margin-top: 11px; padding: 10px; border: 1px solid rgba(121, 240, 196, .14); border-radius: 10px; background: rgba(5, 27, 27, .48); }
.normalization-card > span { color: #7ecbac; font: 700 8px 'DM Mono', monospace; letter-spacing: .1em; }
.normalization-card > div { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 7px; align-items: center; margin-top: 7px; }
.normalization-card i { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid rgba(135, 245, 190, .38); border-radius: 50%; color: #c9f58a; font: 700 8px 'DM Mono', monospace; font-style: normal; }
.normalization-card p { margin: 0; }
.normalization-card b { display: block; color: #dff8eb; font-size: 9px; }
.normalization-card small { display: block; color: #79a190; font-size: 7px; }
.normalization-card .normalization-warning { margin-top: 9px; padding-top: 8px; border-top: 1px solid rgba(121, 240, 196, .12); color: #d5c990; font-size: 8px; line-height: 1.45; }
.spread-benchmark { margin-top: 11px; padding-top: 10px; border-top: 1px solid rgba(121, 240, 196, .16); }
.spread-benchmark-head { display: flex; justify-content: space-between; gap: 8px; align-items: end; }
.spread-benchmark-head span { color: #7ecbac; font: 700 8px 'DM Mono', monospace; letter-spacing: .09em; }
.spread-benchmark-head b { color: #d9f68f; font: 700 8px 'DM Mono', monospace; }
.spread-benchmark h3 { margin: 3px 0 7px; color: #effff6; font-size: 14px; text-transform: uppercase; }
.spread-benchmark-row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 37px; gap: 6px; align-items: center; margin: 5px 0; color: #9ebfaf; font-size: 8px; }
.spread-benchmark-row b { color: inherit; white-space: nowrap; }
.spread-benchmark-row i { display: block; height: 5px; border-radius: 5px; background: rgba(114, 170, 145, .28); overflow: hidden; }
.spread-benchmark-row i::before { display: block; width: var(--score); height: 100%; border-radius: inherit; background: #739d8a; content: ''; }
.spread-benchmark-row.ours { color: #efffd8; }
.spread-benchmark-row.ours i::before { background: linear-gradient(90deg, #62dfae, #d2f37d); }
.spread-benchmark-row strong { color: inherit; font: 700 9px 'DM Mono', monospace; text-align: right; }
.spread-benchmark-result { margin: 7px 0 0; color: #9dc5b4; font-size: 8px; line-height: 1.5; }
.spread-benchmark-result b { color: #d8f88e; }
.spread-benchmark-caveat { margin: 5px 0 0; color: #d6bd85; font-size: 7px; line-height: 1.4; }

.spread-hud { position: absolute; z-index: 6; top: 68px; right: 18px; width: min(310px, calc(100% - 36px)); padding: 12px 13px; border: 1px solid rgba(121, 240, 196, .26); border-radius: 12px; background: rgba(3, 24, 24, .9); box-shadow: 0 14px 38px rgba(0, 0, 0, .28); backdrop-filter: blur(8px); }
.spread-hud-head { display: flex; justify-content: space-between; gap: 9px; align-items: start; }
.spread-hud-head span { display: block; color: #75bea2; font: 700 7px 'DM Mono', monospace; letter-spacing: .1em; }
.spread-hud-head b { display: block; margin-top: 2px; color: #effff6; font: 700 13px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.spread-hud-head > strong { color: #d7f58d; font: 700 11px 'DM Mono', monospace; }
.spread-scale { margin-top: 9px; }
.spread-scale > i { display: block; height: 7px; border-radius: 999px; background: linear-gradient(90deg, #0c473e, #38b58c 48%, #d9f27c); }
.spread-scale > div { display: flex; justify-content: space-between; margin-top: 3px; color: #769e8e; font: 7px 'DM Mono', monospace; }
.spread-hud > p { margin: 7px 0 0; color: #93b9aa; font-size: 8px; line-height: 1.45; }
.spread-cell-detail { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(121, 240, 196, .14); }
.spread-cell-detail b { color: #dff8eb; font-size: 9px; }
.spread-cell-detail span { color: #759c8d; font-size: 8px; line-height: 1.4; }
.spread-cell-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.spread-cell-stats span { display: block; }
.spread-cell-stats strong { display: block; color: #efffd8; font: 700 10px 'DM Mono', monospace; }
.spread-cell-stats small { display: block; color: #759c8d; font-size: 6px; text-transform: uppercase; }

@media (max-width: 820px) {
  .spread-active .sidebar { position: absolute; z-index: 10; top: 0; bottom: 0; left: 0; width: min(390px, 88vw) !important; box-shadow: 16px 0 40px rgba(0,0,0,.36); }
  .spread-hud { top: 58px; right: 10px; width: min(280px, calc(100% - 20px)); }
}
.timeline-ticks .projection-tick::before { background: rgba(190, 235, 112, .55); }
.map-attribution { bottom: 62px; }

/* Clickable occurrence report card. */
.maplibregl-popup-content { min-width: 360px; padding: 15px 16px 14px; border: 1px solid rgba(121, 240, 196, .52); border-radius: 13px; background: linear-gradient(155deg, rgba(6, 42, 34, .98), rgba(2, 24, 20, .98)); box-shadow: 0 18px 45px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(210, 255, 229, .06); }
.maplibregl-popup-close-button { top: 7px; right: 8px; width: 24px; height: 24px; border-radius: 50%; color: #a8d8c3; font-size: 18px; line-height: 22px; }
.maplibregl-popup-close-button:hover { background: rgba(121, 240, 196, .12); color: #e5fff0; }
.maplibregl-popup-tip { border-top-color: rgba(4, 34, 28, .98); }
.report-popup { color: #e8fff1; }
.report-popup .report-kicker { margin: 0 28px 5px 0; color: #75deb2; font: 600 8px 'DM Mono', monospace; letter-spacing: .13em; }
.report-popup > b { display: block; margin-right: 24px; font: 600 19px/1.05 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.report-media { display: grid; min-height: 220px; margin-top: 11px; overflow: hidden; place-items: center; border: 1px solid rgba(121, 240, 196, .13); border-radius: 9px; background: rgba(1, 16, 12, .62); color: #759f8e; font: 8px/1.4 'DM Mono', monospace; text-align: center; }
.report-media.has-image { display: block; }
.report-media a { display: block; }
.report-media img { display: block; width: 100%; height: 240px; object-fit: contain; background: #031a14; }
.report-media > span { display: block; padding: 6px 8px; color: #8eb9a7; font: 7px 'DM Mono', monospace; text-align: left; }
.report-media.loading::after { content: ''; width: 24px; height: 2px; margin-top: -25px; border-radius: 2px; background: linear-gradient(90deg, transparent, #79efb4, transparent); animation: report-loading 1s ease-in-out infinite; }
@keyframes report-loading { 0%, 100% { transform: translateX(-35px); opacity: .4; } 50% { transform: translateX(35px); opacity: 1; } }
.report-details { display: grid; gap: 0; margin-top: 12px; border-top: 1px solid rgba(121, 240, 196, .16); }
.report-details div { display: grid; grid-template-columns: 83px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(121, 240, 196, .11); }
.report-details span { margin: 0; color: #75a996; font: 8px 'DM Mono', monospace; text-transform: uppercase; }
.report-details strong { overflow-wrap: anywhere; color: #d8f5e6; font: 500 9px/1.35 'DM Mono', monospace; text-transform: capitalize; }
.report-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.report-actions a { padding: 7px 9px; border: 1px solid rgba(153, 235, 127, .35); border-radius: 7px; background: rgba(153, 235, 127, .08); color: #c9ed88; font: 600 7px 'DM Mono', monospace; letter-spacing: .05em; text-decoration: none; }
.report-actions a:hover { border-color: rgba(153, 235, 127, .65); background: rgba(153, 235, 127, .15); color: #e3ffaf; }
.voxel-map-popup .maplibregl-popup-content { min-width: 270px; }
.spread-voxel-popup { color: #e8fff1; }
.spread-voxel-kicker { display: block; margin: 0 28px 4px 0; color: #75deb2; font: 600 8px 'DM Mono', monospace; letter-spacing: .12em; }
.spread-voxel-popup > b { display: block; color: #dff8e9; font: 600 18px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.spread-voxel-popup > strong { display: block; margin-top: 9px; color: #f2ffd4; font: 700 27px/1 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.spread-voxel-popup > em { display: block; margin-top: 3px; color: #91b9a7; font: 7px 'DM Mono', monospace; font-style: normal; text-transform: uppercase; }
.spread-voxel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 11px; }
.spread-voxel-stats span { padding: 7px 8px; border: 1px solid rgba(121, 240, 196, .13); border-radius: 7px; background: rgba(1, 16, 12, .38); }
.spread-voxel-stats small { display: block; color: #729d8a; font: 6px 'DM Mono', monospace; }
.spread-voxel-stats b { display: block; margin-top: 2px; color: #cfee9d; font: 700 11px 'DM Mono', monospace; }
.spread-voxel-popup p { margin: 10px 0 0; color: #7fa997; font: 7px/1.45 'DM Mono', monospace; }

/* Large invisible scrub target with a restrained visible thumb. */
.timeline-track input { top: 5px; height: 27px; cursor: ew-resize; touch-action: none; }
.timeline-track input::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -7px; border-width: 1px; box-shadow: 0 0 4px rgba(127, 239, 183, .32); }

/* Transparent, unboxed species rail over the map. */
.app-body { position: relative; display: block; overflow: hidden; }
.map-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.sidebar {
  position: absolute;
  z-index: 10;
  inset: 0 auto 0 0;
  width: 360px;
  height: 100%;
  flex: none;
  overflow: hidden;
  border: 0;
  background: linear-gradient(90deg, rgba(3, 28, 24, .82) 0%, rgba(3, 28, 24, .62) 70%, rgba(3, 28, 24, .12) 94%, transparent 100%);
  box-shadow: none;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: transform .28s ease, opacity .2s ease;
}
.species-hero,
.sidebar-content {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.species-hero { padding-right: 28px; padding-left: 28px; }
.sidebar-content { padding-right: 28px; padding-left: 28px; }

/* Diffusion model lab: compact enough for the translucent species rail. */
.equation-card { margin: 4px 0 12px; padding: 12px; border: 1px solid rgba(121, 240, 196, .2); border-radius: 10px; background: rgba(2, 22, 17, .55); }
.equation-card > span, .model-summary > span, .model-detail > span, .learned-model-note > span { display: block; margin-bottom: 6px; color: #71d9ae; font: 600 7px 'DM Mono', monospace; letter-spacing: .12em; }
.equation-card code { display: block; color: #e1fff0; font: 500 10px/1.4 'DM Mono', monospace; white-space: normal; }
.equation-card small, .model-summary small, .model-detail small, .learned-model-note small { display: block; margin-top: 6px; color: #79a694; font: 7px/1.45 'DM Mono', monospace; }
.model-summary { display: grid; margin: 10px 0 7px; grid-template-columns: auto 1fr; gap: 0 9px; align-items: baseline; }
.model-summary > span { margin: 0; }
.model-summary b { color: #dff9e9; font: 600 9px 'DM Mono', monospace; text-align: right; }
.model-summary small { grid-column: 1 / -1; margin-top: 3px; }
.model-ranking { display: grid; gap: 5px; }
.model-choice { display: grid; width: 100%; grid-template-columns: 25px 1fr 37px; gap: 7px; align-items: center; padding: 8px 8px; border: 1px solid rgba(121, 240, 196, .11); border-radius: 8px; background: rgba(4, 38, 29, .42); text-align: left; }
.model-choice:hover { border-color: rgba(121, 240, 196, .34); background: rgba(18, 73, 54, .5); }
.model-choice.active { border-color: rgba(185, 245, 111, .6); background: linear-gradient(90deg, rgba(51, 127, 82, .45), rgba(10, 50, 38, .38)); box-shadow: inset 2px 0 #b9f56f; }
.model-rank { color: #7eb09d; font: 500 8px 'DM Mono', monospace; }
.model-name { min-width: 0; }
.model-name b { display: block; overflow: hidden; color: #e4f9eb; font: 600 10px/1.2 'Barlow Condensed', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.model-name small { display: block; margin-top: 2px; color: #77a492; font: 7px 'DM Mono', monospace; }
.model-choice strong { color: #c8f17f; font: 500 11px 'DM Mono', monospace; text-align: right; }
.model-detail, .learned-model-note { margin-top: 9px; padding: 9px 10px; border-left: 2px solid #b9f56f; background: rgba(8, 54, 39, .45); }
.model-detail > span, .learned-model-note > span { margin-bottom: 4px; }
.model-detail b, .learned-model-note b { display: block; color: #edfff4; font: 600 11px 'Barlow Condensed', sans-serif; }
.learned-model-note { border-left-color: #73d8d0; background: rgba(8, 47, 47, .42); }
.sidebar-collapsed .sidebar { width: 360px; transform: translateX(-100%); opacity: 0; }
.sidebar-collapsed .map-stage { width: 100%; }

/* Forecast controls and model-comparison overlays. */
.map-settings-toggle { z-index: 2; display: grid; width: 34px; height: 34px; margin-left: auto; place-items: center; border: 1px solid rgba(121, 240, 196, .18); border-radius: 9px; background: rgba(4, 35, 28, .76); color: #bcebd6; font-size: 16px; pointer-events: auto; }
.sidebar-restore { display: none; width: 34px; height: 34px; flex: 0 0 34px; place-items: center; border: 1px solid rgba(121, 240, 196, .24); border-radius: 9px; background: rgba(4, 35, 28, .84); color: #d6fae8; font: 22px/1 'DM Mono', monospace; pointer-events: auto; }
.sidebar-collapsed .sidebar-restore { display: grid; }
.map-settings-toggle:hover, .map-settings-toggle[aria-expanded="true"] { border-color: rgba(121, 240, 196, .5); background: rgba(20, 78, 57, .84); color: #effff5; }
.settings-panel { position: absolute; z-index: 14; top: 62px; right: 18px; width: 286px; padding: 14px 15px 12px; border: 1px solid rgba(121, 240, 196, .28); border-radius: 12px; background: linear-gradient(155deg, rgba(4, 41, 32, .98), rgba(2, 23, 18, .98)); box-shadow: 0 18px 45px rgba(0, 0, 0, .38); backdrop-filter: blur(12px); }
.settings-panel.hidden, .model-comparison-legend.hidden { display: none; }
.settings-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 7px; }
.settings-heading h3 { margin: 3px 0 0; color: #ecfff4; font: 600 19px 'Barlow Condensed', sans-serif; text-transform: uppercase; }
.settings-heading button { width: 25px; height: 25px; border: 0; border-radius: 7px; background: rgba(121, 240, 196, .06); color: #99c6b2; font-size: 19px; line-height: 1; }
.setting-row { position: relative; display: grid; min-height: 53px; grid-template-columns: 1fr 34px; gap: 10px; align-items: center; border-top: 1px solid rgba(121, 240, 196, .12); cursor: pointer; }
.setting-row span { display: flex; flex-direction: column; gap: 2px; }
.setting-row b { color: #dff6e8; font: 600 11px 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.setting-row small { color: #79a694; font: 7px/1.35 'DM Mono', monospace; }
.setting-row input { position: absolute; opacity: 0; pointer-events: none; }
.setting-row i { position: relative; display: block; width: 32px; height: 18px; border-radius: 20px; background: #234b3d; transition: .18s ease; }
.setting-row i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%; background: #769c8d; transition: .18s ease; }
.setting-row input:checked + i { background: #2e9e75; box-shadow: 0 0 10px rgba(87, 220, 158, .24); }
.setting-row input:checked + i::after { left: 17px; background: #d9ffeb; }
.settings-panel > p { margin: 9px 0 0; color: #719889; font: 7px/1.45 'DM Mono', monospace; }

.compare-models-inline { display: flex; width: 100%; align-items: center; gap: 9px; margin: 0 0 8px; padding: 8px 10px; border: 1px solid rgba(121, 240, 196, .16); border-radius: 8px; background: rgba(4, 38, 29, .42); text-align: left; }
.compare-models-inline:hover, .compare-models-inline.active { border-color: rgba(121, 240, 196, .48); background: rgba(23, 81, 60, .52); }
.compare-models-inline .compare-icon { color: #79efb4; font: 20px/1 'DM Mono', monospace; }
.compare-models-inline > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.compare-models-inline b { color: #e4f9eb; font: 600 10px 'Barlow Condensed', sans-serif; }
.compare-models-inline small { color: #77a492; font: 7px 'DM Mono', monospace; }
.model-rank { display: flex; align-items: center; gap: 5px; }
.model-rank i, .model-comparison-legend button > i { display: block; width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: var(--model-color); box-shadow: 0 0 7px color-mix(in srgb, var(--model-color) 55%, transparent); }

.model-comparison-legend { position: absolute; z-index: 8; top: 62px; right: 18px; display: grid; width: 218px; gap: 3px; padding: 10px; border: 1px solid rgba(121, 240, 196, .16); border-radius: 11px; background: rgba(2, 25, 19, .86); box-shadow: 0 12px 30px rgba(0, 0, 0, .24); backdrop-filter: blur(8px); }
.model-comparison-legend > div { display: flex; align-items: baseline; justify-content: space-between; padding: 1px 3px 6px; }
.model-comparison-legend > div span { color: #7eb29d; font: 600 7px 'DM Mono', monospace; letter-spacing: .1em; }
.model-comparison-legend > div b { color: #b9d8c9; font: 500 7px 'DM Mono', monospace; }
.model-comparison-legend button { display: grid; grid-template-columns: 8px 1fr; gap: 7px; align-items: center; padding: 5px 6px; border: 0; border-radius: 6px; background: transparent; text-align: left; }
.model-comparison-legend button:hover, .model-comparison-legend button.active { background: rgba(121, 240, 196, .09); }
.model-comparison-legend button > span { display: flex; align-items: baseline; justify-content: space-between; }
.model-comparison-legend button b { color: #e5f8ed; font: 600 9px 'DM Mono', monospace; }
.model-comparison-legend button small { color: #759c8b; font: 7px 'DM Mono', monospace; }

/* Keep the playback rail in the unobstructed map viewport. */
.timeline-dock { left: 360px; transition: left .28s ease; }
.sidebar-collapsed .timeline-dock { left: 0; }
.timeline-regions.observed-only { grid-template-columns: 1fr; }
.timeline-regions.observed-only span { border-right: 0; background: none; }
.app-shell:not(.projections-enabled) .timeline-track::before { background: rgba(83, 141, 121, .52); }
.layer-color.interpolation { background: #7bc6d8; box-shadow: 0 0 7px rgba(123, 198, 216, .5); }

@media (max-width: 820px) {
  .timeline-dock { left: 300px; }
  .sidebar { width: 300px; }
  .sidebar-collapsed .timeline-dock { left: 0; }
}

/* Model lab: flatter hierarchy, denser comparison rows, and clearer state. */
#methods-panel { padding-top: 18px; }
#methods-panel .panel-heading { margin-bottom: 10px; }
#methods-panel .panel-heading h2 { font-size: 22px; letter-spacing: .01em; }
.equation-card { margin: 0 0 11px; padding: 10px 0 10px 12px; border: 0; border-left: 2px solid rgba(121, 240, 196, .72); border-radius: 0; background: linear-gradient(90deg, rgba(10, 62, 45, .34), transparent 92%); }
.equation-card > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.equation-card > div span { color: #7de2b5; font: 600 7px 'DM Mono', monospace; letter-spacing: .11em; }
.equation-card > div b { color: #638e7a; font: 600 6px 'DM Mono', monospace; letter-spacing: .06em; }
.equation-card code { color: #e5fff0; font: 500 9px/1.35 'DM Mono', monospace; letter-spacing: -.03em; }
.equation-card small { display: flex; flex-wrap: wrap; gap: 3px 9px; margin-top: 7px; color: #719985; font: 6px/1.4 'DM Mono', monospace; }
.equation-card small i { margin-right: 2px; color: #a9eccd; font-style: normal; }
.model-summary { display: grid; margin: 0 0 8px; padding: 0 0 8px; grid-template-columns: auto 1fr; border-bottom: 1px solid rgba(121, 240, 196, .12); }
.model-summary > span { color: #78d9ae; font-size: 7px; }
.model-summary b { color: #d9f2e4; font-size: 7px; letter-spacing: .04em; }
.model-summary small { color: #648c79; font-size: 6px; }
.compare-models-inline { display: grid; margin: 0 0 4px; padding: 7px 8px; grid-template-columns: 22px 1fr 24px; gap: 7px; border: 0; border-radius: 6px; background: rgba(121, 240, 196, .055); }
.compare-models-inline:hover, .compare-models-inline.active { border: 0; background: rgba(121, 240, 196, .12); box-shadow: inset 2px 0 #78efb5; }
.compare-models-inline .compare-icon { font-size: 16px; }
.compare-models-inline b { font-size: 9px; }
.compare-models-inline small { font-size: 6px; }
.compare-models-inline > em { justify-self: end; padding: 3px 4px; border-radius: 4px; background: rgba(91, 129, 112, .18); color: #668e7b; font: 600 6px 'DM Mono', monospace; font-style: normal; }
.compare-models-inline.active > em { background: rgba(121, 239, 181, .17); color: #a8f4cf; }
.model-ranking { gap: 0; border-top: 1px solid rgba(121, 240, 196, .08); }
.model-choice { position: relative; grid-template-columns: 31px minmax(0, 1fr) 38px; min-height: 42px; gap: 6px; padding: 6px 5px; border: 0; border-bottom: 1px solid rgba(121, 240, 196, .09); border-radius: 0; background: transparent; }
.model-choice:hover { border-color: rgba(121, 240, 196, .13); background: rgba(121, 240, 196, .045); }
.model-choice.active { border-color: rgba(121, 240, 196, .14); background: linear-gradient(90deg, rgba(55, 143, 99, .20), rgba(55, 143, 99, .035)); box-shadow: inset 2px 0 var(--active-model, #b9f56f); }
.model-rank { font-size: 7px; }
.model-rank i { width: 6px; height: 6px; flex-basis: 6px; }
.model-name b { color: #dff4e8; font-size: 9px; font-weight: 500; }
.model-name small { color: #648e7a; font-size: 6px; }
.model-score { display: grid; gap: 3px; justify-items: end; }
.model-score strong { color: #c9ee83; font: 500 10px 'DM Mono', monospace; }
.model-score > i { position: relative; display: block; width: 34px; height: 2px; overflow: hidden; background: rgba(121, 240, 196, .10); }
.model-score > i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--score); background: #85dfa9; }
.model-detail { margin-top: 8px; padding: 10px 11px; border: 1px solid rgba(121, 240, 196, .14); border-left: 2px solid #9cedbb; border-radius: 7px; background: linear-gradient(135deg, rgba(18, 72, 52, .44), rgba(5, 34, 26, .22)); }
.model-detail-head { display: flex; align-items: center; justify-content: space-between; }
.model-detail-head > span { margin: 0; color: #78cfa8; font: 600 6px 'DM Mono', monospace; letter-spacing: .11em; }
.model-detail-head > b { color: #d9f98b; font: 600 8px 'DM Mono', monospace; }
.model-detail h3 { margin: 5px 0 2px; color: #effff6; font: 600 13px 'Barlow Condensed', sans-serif; }
.model-detail p { margin: 0 0 7px; color: #729d89; font: 6px/1.4 'DM Mono', monospace; }
.model-feature-list { display: flex; flex-wrap: wrap; gap: 3px; }
.model-feature-list em { padding: 3px 5px; border: 1px solid rgba(121, 240, 196, .12); border-radius: 10px; color: #96cbb2; font: 5.5px 'DM Mono', monospace; font-style: normal; }
.learned-model-note { margin-top: 6px; padding: 7px 9px; border: 0; border-left: 1px solid #65b9b0; background: rgba(8, 47, 47, .19); }
.learned-model-note > span { margin-bottom: 2px; font-size: 5.5px; }
.learned-model-note b { display: inline; margin-right: 5px; font-size: 8px; }
.learned-model-note small { display: inline; font-size: 5.5px; }
.setting-row.forecast-only:has(input:disabled) { opacity: .38; pointer-events: none; }

/* Usability release: visible temporal context, accessible controls, and frozen-evaluation hierarchy. */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid #d8ff8e; outline-offset: 3px; }
.switch:focus-visible { outline-offset: 4px; }

.lab-mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 2px 0 12px; padding: 3px; border: 1px solid rgba(121, 240, 196, .17); border-radius: 9px; background: rgba(2, 23, 18, .46); }
.lab-mode-tabs button { min-height: 34px; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #7da995; font: 600 10px/1.2 'Barlow Condensed', sans-serif; letter-spacing: .03em; }
.lab-mode-tabs button.active { background: rgba(121, 240, 196, .14); color: #edfff5; box-shadow: inset 0 -2px #9df1bb; }
.benchmark-summary { display: grid; margin-bottom: 9px; grid-template-columns: auto 1fr; gap: 2px 8px; align-items: baseline; }
.benchmark-summary span { color: #7edbb1; font: 600 9px 'DM Mono', monospace; letter-spacing: .08em; }
.benchmark-summary b { justify-self: end; color: #e6f8ec; font: 600 10px 'DM Mono', monospace; }
.benchmark-summary small { grid-column: 1 / -1; color: #8bad9e; font: 9px/1.45 'DM Mono', monospace; }
.benchmark-year { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 7px; }
.benchmark-year button { min-height: 30px; border: 1px solid rgba(121, 240, 196, .16); border-radius: 6px; background: rgba(3, 34, 26, .45); color: #82ad99; font: 600 10px 'DM Mono', monospace; }
.benchmark-year button.active { border-color: rgba(193, 245, 119, .62); background: rgba(137, 195, 90, .14); color: #e2ffae; }
.benchmark-ranking .model-choice { grid-template-columns: 18px minmax(0, 1fr) 62px; min-height: 58px; padding: 7px 6px; }
.benchmark-ranking .model-rank { font-size: 9px; }
.benchmark-ranking .model-name b { font-size: 12px; }
.benchmark-ranking .model-name small { font-size: 9px; line-height: 1.25; }
.benchmark-ranking .model-score strong { font-size: 12px; }
.benchmark-ranking .model-score small { color: #84a996; font: 8px 'DM Mono', monospace; }
.benchmark-ranking .model-owner { display: table; margin: 3px 0 2px; padding: 2px 4px; border: 1px solid rgba(142, 177, 162, .2); border-radius: 3px; color: #8fa99e; font: 700 8px 'DM Mono', monospace; font-style: normal; letter-spacing: .04em; }
.benchmark-ranking .model-owner.ours { border-color: rgba(89, 232, 177, .4); background: rgba(69, 189, 142, .1); color: #82f1c4; }
.benchmark-ranking .model-owner.ours.primary { border-color: rgba(190, 245, 111, .58); background: rgba(153, 211, 86, .12); color: #dcff9b; }
.benchmark-ranking .model-owner.literature { border-color: rgba(195, 137, 229, .4); background: rgba(156, 100, 190, .1); color: #d8a8ee; }
.benchmark-ranking .model-owner.baseline { color: #8ba398; }
#benchmark-detail p { color: #91b6a5; font-size: 9px; line-height: 1.45; }
#benchmark-detail .benchmark-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 8px; }
#benchmark-detail .benchmark-stat-grid span { display: flex; min-height: 45px; flex-direction: column; justify-content: center; padding: 5px; border: 1px solid rgba(121, 240, 196, .13); border-radius: 6px; color: #789f8e; font: 8px/1.2 'DM Mono', monospace; }
#benchmark-detail .benchmark-stat-grid b { color: #e4fff0; font-size: 11px; }
.explain-result-inline { border-color: rgba(100, 232, 188, .27); background: linear-gradient(90deg, rgba(93, 70, 130, .18), rgba(35, 125, 94, .16)); }
.explain-result-inline .compare-icon { color: #aef3d4; }
.physics-view-inline { border-color: rgba(223, 239, 112, .3); background: linear-gradient(90deg, rgba(105, 150, 61, .14), rgba(30, 105, 90, .18)); }
.physics-view-inline .compare-icon { color: #e6f58e; font-size: 18px; }
.physics-view-inline.active { border-color: rgba(222, 244, 118, .7); background: linear-gradient(90deg, rgba(169, 216, 83, .2), rgba(55, 174, 132, .22)); box-shadow: inset 2px 0 #e4f57f; }
.benchmark-explanation { margin: 8px 0 11px; overflow: hidden; border: 1px solid rgba(121, 240, 196, .2); border-radius: 9px; background: rgba(2, 25, 19, .48); }
.result-comparison-head { display: grid; grid-template-columns: 1fr 22px 1fr; gap: 6px; align-items: center; padding: 10px 11px; border-bottom: 1px solid rgba(121, 240, 196, .13); }
.result-comparison-head > span { display: grid; grid-template-columns: 8px 1fr; gap: 1px 6px; align-items: center; }
.result-comparison-head i { width: 7px; height: 7px; grid-row: 1 / 3; border-radius: 50%; }
.result-comparison-head i.past { background: #c18be2; box-shadow: 0 0 7px rgba(193, 139, 226, .5); }
.result-comparison-head i.ours { background: #65e7b4; box-shadow: 0 0 7px rgba(101, 231, 180, .5); }
.result-comparison-head small { color: #769d8c; font: 600 8px 'DM Mono', monospace; letter-spacing: .08em; }
.result-comparison-head b { color: #eafff3; font: 600 12px 'Barlow Condensed', sans-serif; }
.result-comparison-head > strong { color: #82ae9a; font: 500 14px 'DM Mono', monospace; text-align: center; }
.result-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid rgba(121, 240, 196, .13); }
.result-kpis > span { display: grid; min-height: 51px; padding: 8px 9px; align-content: center; border-right: 1px solid rgba(121, 240, 196, .1); }
.result-kpis > span:last-child { border-right: 0; }
.result-kpis small { color: #719a88; font: 600 8px 'DM Mono', monospace; letter-spacing: .05em; }
.result-kpis b { margin-top: 2px; color: #dfffa9; font: 600 13px 'DM Mono', monospace; }
.region-change-title { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 10px 5px; }
.region-change-title span { color: #9ed8bd; font: 600 9px 'DM Mono', monospace; letter-spacing: .08em; }
.region-change-title small { color: #628979; font: 8px 'DM Mono', monospace; }
.region-change-list { display: grid; padding: 0 6px 8px; }
.region-change-list button { display: grid; min-height: 43px; grid-template-columns: minmax(0, 1fr) 64px 34px; gap: 7px; align-items: center; padding: 6px 5px; border: 0; border-top: 1px solid rgba(121, 240, 196, .08); border-radius: 0; background: transparent; text-align: left; }
.region-change-list button:hover { background: rgba(121, 240, 196, .07); }
.region-change-list button > span { min-width: 0; }
.region-change-list button > span b { display: block; overflow: hidden; color: #d7f2e3; font: 500 11px 'Barlow Condensed', sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.region-change-list button > span small { display: block; margin-top: 2px; overflow: hidden; color: #769b8b; font: 7.5px 'DM Mono', monospace; text-overflow: ellipsis; white-space: nowrap; }
.region-change-list button > i { position: relative; display: block; height: 13px; border-left: 1px solid rgba(198, 232, 216, .22); }
.region-change-list button > i u { position: absolute; left: 0; width: var(--move); height: 4px; border-radius: 0 3px 3px 0; text-decoration: none; }
.region-change-list button > i .gain { top: 1px; background: #58dca8; }
.region-change-list button > i .loss { bottom: 1px; background: #b67bd7; }
.region-change-list button > em { display: flex; flex-direction: column; align-items: flex-end; font: 600 8px 'DM Mono', monospace; font-style: normal; }
.region-change-list button > em b { color: #71e5b4; }
.region-change-list button > em small { color: #be88dd; font-size: 8px; }
.physics-trace-card { padding: 10px; border-top: 1px solid rgba(121, 240, 196, .16); background: linear-gradient(145deg, rgba(28, 69, 55, .3), rgba(13, 33, 29, .2)); }
.physics-trace-head { display: flex; align-items: center; justify-content: space-between; }
.physics-trace-head span { color: #82cdaa; font: 600 8px 'DM Mono', monospace; letter-spacing: .08em; }
.physics-trace-head b { color: #d8f78d; font: 600 9px 'DM Mono', monospace; }
.cell-coordinate { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 8px; color: #dff5e8; font: 600 10px 'DM Mono', monospace; }
.cell-coordinate em { padding: 3px 4px; border: 1px solid rgba(255, 144, 125, .34); border-radius: 3px; color: #ffab9b; font: 600 7px 'DM Mono', monospace; font-style: normal; }
.physics-trace { display: grid; gap: 4px; }
.physics-step { display: grid; grid-template-columns: minmax(0, 1fr) 37px; gap: 2px 7px; padding: 5px 6px; border: 1px solid rgba(121, 240, 196, .1); border-radius: 5px; background: rgba(1, 18, 14, .36); }
.physics-step.ours { border-color: rgba(100, 232, 180, .35); background: rgba(38, 111, 82, .22); }
.physics-step > div { display: grid; grid-column: 1 / -1; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 4px; align-items: baseline; }
.physics-step > div span { color: #5f8d79; font: 600 8px 'DM Mono', monospace; }
.physics-step > div b { color: #d9f2e4; font: 600 10px 'Barlow Condensed', sans-serif; }
.physics-step > div em { color: #a9dabc; font: 600 8px 'DM Mono', monospace; font-style: normal; }
.physics-step > small { grid-column: 1 / -1; color: #6f9786; font: 7.5px 'DM Mono', monospace; }
.physics-step > i { position: relative; height: 4px; align-self: center; overflow: hidden; border-radius: 3px; background: rgba(121, 240, 196, .09); }
.physics-step > i u { display: block; width: var(--rank); height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6d739e, #68dcb0); text-decoration: none; }
.physics-step > strong { color: #d9f4e6; font: 600 9px 'DM Mono', monospace; text-align: right; }
.trace-reading { margin: 8px 0 3px; color: #8fb2a2; font: 8.5px/1.45 'DM Mono', monospace; }
.trace-reading b { color: #dfffa9; }
.trace-caveat { margin: 0; color: #668b7b; font: 7.5px/1.4 'DM Mono', monospace; }
.map-key { display: flex; flex-wrap: wrap; gap: 7px 10px; margin: 9px 0; color: #8fb2a2; font: 9px 'DM Mono', monospace; }
.map-key span { display: inline-flex; align-items: center; gap: 5px; }
.map-key i { display: inline-block; width: 13px; height: 8px; border-radius: 2px; }
.map-key .risk { background: linear-gradient(90deg, rgba(73, 142, 105, .2), #74e0a7); }
.map-key .allocation { border: 2px solid #e6d36f; background: transparent; }
.map-key .truth { width: 8px; height: 8px; border: 2px solid #ff776d; border-radius: 50%; background: transparent; }
.map-key .rank-up { background: linear-gradient(90deg, rgba(57, 127, 106, .2), #52edb6); }
.map-key .rank-down { background: linear-gradient(90deg, rgba(92, 88, 117, .25), #b57be8); }
.map-key .allocation.ours-only { border-color: #74f4c2; }
.map-key .allocation.past-only { border-color: #d89bf4; }
.map-key .physics-surface { background: linear-gradient(90deg, #286a62, #a8e875, #f0f58a); }
.map-key .physics-front { height: 3px; border-radius: 2px; background: #f2ef83; box-shadow: 0 0 5px rgba(242, 239, 131, .65); }
.map-key .physics-vector { width: auto; height: auto; color: #d8f58e; font: 700 13px 'DM Mono', monospace; font-style: normal; }
.paper-link { display: block; margin: 9px 0; padding: 9px 10px; border: 1px solid rgba(151, 229, 124, .25); border-radius: 7px; background: rgba(117, 184, 87, .08); color: #cef294; font: 600 9px 'DM Mono', monospace; text-decoration: none; }
.paper-link:hover { background: rgba(117, 184, 87, .16); color: #edffc2; }
#methods-panel .small-note { color: #8bad9f; font-size: 9px; line-height: 1.55; }
#scenario-lab-panel .equation-card > div span, #scenario-lab-panel .equation-card > div b { font-size: 8px; }
#scenario-lab-panel .equation-card code { font-size: 10px; }
#scenario-lab-panel .equation-card small { font-size: 8px; }
#scenario-lab-panel .model-summary > span, #scenario-lab-panel .model-summary b, #scenario-lab-panel .model-summary small { font-size: 9px; }
#scenario-lab-panel .compare-models-inline b { font-size: 11px; }
#scenario-lab-panel .compare-models-inline small, #scenario-lab-panel .compare-models-inline > em { font-size: 8px; }
#scenario-lab-panel .model-name b { font-size: 11px; }
#scenario-lab-panel .model-name small, #scenario-lab-panel .model-rank { font-size: 8px; }
#scenario-lab-panel .model-detail p, #scenario-lab-panel .model-feature-list em { font-size: 8px; }
#scenario-lab-panel .learned-model-note > span, #scenario-lab-panel .learned-model-note small { font-size: 8px; }
#scenario-lab-panel .learned-model-note b { font-size: 10px; }

.map-header .search-wrap { display: flex; width: 205px; height: 34px; padding: 0 10px; justify-content: flex-start; border-color: rgba(121, 240, 196, .23); background: rgba(3, 31, 24, .84); }
.map-header .search-wrap > span { color: #9bd2ba; font-size: 20px; }
.map-header .search-wrap input { display: block; min-width: 0; color: #e8fff2; font-size: 10px; }
.map-header .search-results { top: 38px; width: 240px; border-color: rgba(121, 240, 196, .24); background: rgba(3, 31, 24, .98); }
.map-export { min-width: 70px; height: 34px; padding: 0 10px; border: 1px solid rgba(121, 240, 196, .23); border-radius: 9px; background: rgba(3, 31, 24, .84); color: #bcebd6; font: 600 9px 'DM Mono', monospace; pointer-events: auto; }
.map-export:hover { border-color: rgba(121, 240, 196, .55); color: #effff6; }

.timeline-top { right: 16px; bottom: 7px; display: flex; align-items: center; gap: 8px; }
.timeline-top > div:first-child { display: none; }
.timeline-date { display: flex !important; min-width: 82px; min-height: 32px; flex-direction: column; justify-content: center; padding: 4px 7px; border: 1px solid rgba(121, 240, 196, .18); border-radius: 7px; background: rgba(3, 31, 24, .84); text-align: left; }
.timeline-date b { color: #d9ff91; font-size: 11px; line-height: 1.1; }
.timeline-date span { color: #8ab39f; font-size: 8px; }
.timeline-track { right: 250px; }

.benchmark-mode .front-insight { display: none; }
.benchmark-mode .timeline-dock { opacity: .36; pointer-events: none; }
.benchmark-mode .map-attribution { bottom: 66px; }
.benchmark-status { position: absolute; z-index: 5; top: 72px; right: 18px; max-width: 380px; padding: 10px 12px; border: 1px solid rgba(121, 240, 196, .24); border-radius: 9px; background: rgba(3, 31, 24, .9); color: #a9cebd; font: 9px/1.45 'DM Mono', monospace; pointer-events: none; }
.benchmark-status b { display: block; margin-bottom: 2px; color: #e9fff3; font-size: 11px; }
.benchmark-status em { color: #dfd66f; font-style: normal; }
.physics-hud { position: absolute; z-index: 7; bottom: 78px; left: 458px; width: min(510px, calc(100% - 488px)); padding: 12px 13px; border: 1px solid rgba(213, 239, 115, .35); border-radius: 10px; background: linear-gradient(145deg, rgba(4, 34, 27, .95), rgba(8, 45, 39, .9)); color: #b9d9ca; box-shadow: 0 14px 36px rgba(0, 0, 0, .28); backdrop-filter: blur(10px); }
.physics-hud-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.physics-hud-head > div { display: grid; gap: 2px; }
.physics-hud-head span { color: #91bda8; font: 600 9px 'DM Mono', monospace; letter-spacing: .08em; }
.physics-hud-head b { color: #efffb2; font: 600 15px 'Barlow Condensed', sans-serif; letter-spacing: .03em; }
.physics-hud-head button { width: 36px; height: 30px; border: 1px solid rgba(218, 242, 124, .35); border-radius: 7px; background: rgba(145, 190, 80, .12); color: #e9f995; font: 700 14px 'DM Mono', monospace; }
.physics-model-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin-top: 9px; }
.physics-model-options button, .physics-display-options button { min-height: 28px; padding: 4px 5px; border: 1px solid rgba(121, 240, 196, .14); border-radius: 6px; background: rgba(2, 26, 21, .58); color: #8db5a3; font: 600 8px/1.15 'DM Mono', monospace; }
.physics-model-options button.active, .physics-display-options button.active { border-color: rgba(220, 244, 116, .62); background: rgba(161, 204, 80, .17); color: #eeffb1; box-shadow: inset 0 -2px #d9ef79; }
.physics-display-options { display: flex; gap: 4px; margin-top: 6px; }
.physics-display-options button { min-width: 94px; }
.physics-key { display: flex; flex-wrap: wrap; gap: 6px 13px; margin-top: 9px; color: #89ab9c; font: 8px 'DM Mono', monospace; }
.physics-key span { display: inline-flex; align-items: center; gap: 5px; }
.physics-key i { display: inline-block; width: 15px; height: 6px; border-radius: 2px; font-style: normal; }
.physics-key .physics-low { background: #286a62; }
.physics-key .physics-high { background: #e6f284; box-shadow: 0 0 6px rgba(230, 242, 132, .42); }
.physics-key .physics-front { height: 2px; background: #f2ef83; }
.physics-key .physics-vector { width: auto; height: auto; color: #e4f58b; font-size: 12px; }
.physics-hud > small { display: block; margin-top: 8px; color: #d7ec8b; font: 9px/1.3 'DM Mono', monospace; }
.physics-hud > p { margin: 6px 0 0; color: #779d8c; font: 8px/1.4 'DM Mono', monospace; }
.physics-hud > p b { color: #a9d7bf; font-weight: 600; }

@media (max-width: 980px) {
  .map-header .search-wrap { width: 38px; padding: 0; justify-content: center; }
  .map-header .search-wrap input { display: none; }
  .map-export { min-width: 38px; width: 38px; padding: 0; overflow: hidden; font-size: 0; }
  .map-export::before { content: '⇩'; font-size: 16px; }
  .timeline-track { right: 232px; }
  .physics-hud { left: 438px; width: calc(100% - 456px); }
  .physics-model-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Professional usability pass: readable model workspace and persistent scientific status. */
.methods-active .sidebar { width: 440px; background: #05251d; backdrop-filter: none; -webkit-backdrop-filter: none; }
.methods-active .timeline-dock { left: 440px; }
.methods-active .species-hero { display: none; }
#methods-panel { padding: 14px 22px 26px; scrollbar-color: #436e5c #092e24; }
#methods-panel .panel-heading { position: sticky; z-index: 3; top: -14px; padding: 10px 0 8px; background: #05251d; }
.lab-mode-tabs { position: sticky; z-index: 3; top: 50px; padding: 4px; background: #062b21; }
.lab-mode-tabs button { min-height: 40px; font-size: 13px; }
.benchmark-summary span, .benchmark-summary b, .benchmark-summary small,
.benchmark-year button, .benchmark-ranking .model-rank,
.benchmark-ranking .model-name small, .benchmark-ranking .model-score small,
#benchmark-detail p, #benchmark-detail .benchmark-stat-grid span,
.map-key, .paper-link, #methods-panel .small-note { font-size: 11px; }
.benchmark-ranking .model-name b, .benchmark-ranking .model-score strong { font-size: 14px; }
.benchmark-ranking .model-choice { min-height: 58px; padding: 9px 8px; }
#benchmark-detail .benchmark-stat-grid b { font-size: 14px; }
.compare-models-inline { min-height: 48px; }
.compare-models-inline b, #scenario-lab-panel .compare-models-inline b { font-size: 13px; }
.compare-models-inline small, .compare-models-inline > em,
#scenario-lab-panel .compare-models-inline small,
#scenario-lab-panel .compare-models-inline > em { font-size: 10px; }
#scenario-lab-panel .equation-card > div span,
#scenario-lab-panel .equation-card > div b,
#scenario-lab-panel .equation-card small,
#scenario-lab-panel .model-summary > span,
#scenario-lab-panel .model-summary b,
#scenario-lab-panel .model-summary small,
#scenario-lab-panel .model-name small,
#scenario-lab-panel .model-rank,
#scenario-lab-panel .model-detail p,
#scenario-lab-panel .model-feature-list em,
#scenario-lab-panel .learned-model-note > span,
#scenario-lab-panel .learned-model-note small { font-size: 10px; }
#scenario-lab-panel .equation-card code,
#scenario-lab-panel .model-name b,
#scenario-lab-panel .learned-model-note b { font-size: 12px; }
.setting-row input:focus-visible + i { outline: 2px solid #d8ff8e; outline-offset: 3px; }
.setting-row:has(input:disabled) { opacity: .42; cursor: not-allowed; }
.timeline-buttons button { min-width: 36px; min-height: 34px; }
.timeline-buttons #timeline-play { min-width: 42px; }
.timeline-buttons button:disabled { opacity: .35; cursor: not-allowed; }
.asset-state { display: grid; gap: 7px; padding: 18px; border: 1px solid rgba(255, 144, 125, .42); border-radius: 8px; background: rgba(87, 32, 25, .28); color: #e9b1a6; font: 11px/1.5 'DM Mono', monospace; }
.asset-state b { color: #ffe8e3; font-size: 14px; }
.asset-state code { color: #e0ffad; }
.map-state { position: absolute; z-index: 12; top: 74px; left: 50%; display: grid; min-width: 280px; padding: 13px 15px; gap: 3px; transform: translateX(-50%); border: 1px solid rgba(121, 240, 196, .28); border-radius: 9px; background: rgba(3, 31, 24, .95); color: #9fc3b3; font: 11px/1.4 'DM Mono', monospace; }
.map-state b { color: #edfff5; font-size: 13px; }
.export-status { position: absolute; z-index: 20; right: 18px; bottom: 90px; max-width: 380px; padding: 11px 14px; border: 1px solid rgba(121, 240, 196, .38); border-radius: 8px; background: rgba(3, 31, 24, .97); color: #d8ffea; font: 11px 'DM Mono', monospace; }
.benchmark-status, .benchmark-status b { font-size: 12px; }
.map-header .search-wrap input, .map-export { font-size: 12px; }
.settings-panel > p, .setting-row small { font-size: 10px; }
.setting-row b { font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 1180px) {
  .methods-active .sidebar { width: 420px; }
  .methods-active .timeline-dock { left: 420px; }
  .physics-hud { left: 438px; width: min(510px, calc(100% - 456px)); }
}

/* Minimum legibility outside the model lab. */
.sidebar-content .eyebrow, .panel-heading .eyebrow { font-size: 10px; }
.layer-row { min-height: 48px; }
.layer-row b { font-size: 13px; }
.layer-row small { font-size: 10px; line-height: 1.35; }
.evidence-card b, .evidence-card small, .action-card small, .small-note { font-size: 10px; line-height: 1.45; }
.evidence-card span { font-size: 17px; }
.action-card b { font-size: 13px; }
.timeline-date span, .timeline-ticks { font-size: 9px; }
.map-attribution { font-size: 9px; }
.starfield .star { animation: none; }
.compare-models-inline { display: grid; grid-template-columns: 28px minmax(0, 1fr) 34px; }
.compare-models-inline > span:nth-child(2) { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.compare-models-inline > span:nth-child(2) b,
.compare-models-inline > span:nth-child(2) small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#scenario-lab-panel .model-choice { grid-template-columns: 12px minmax(0, 1fr); }

/* Focused web embed: retain the live physics map while removing desktop-app chrome. */
.physics-embed .reference-topbar,
.physics-embed .sidebar,
.physics-embed .map-header,
.physics-embed .settings-panel,
.physics-embed .model-comparison-legend,
.physics-embed .benchmark-status,
.physics-embed .front-insight,
.physics-embed .timeline-dock,
.physics-embed .sidebar-restore,
.physics-embed .export-status { display: none !important; }
.physics-embed body,
.physics-embed .app-shell,
.physics-embed .app-body { width: 100vw; height: 100vh; }
.physics-embed .app-body { position: relative; }
.physics-embed .map-stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.physics-embed .physics-hud { left: 16px; bottom: 18px; width: min(420px, calc(100% - 32px)); }
.physics-embed .map-attribution { right: 12px; bottom: 8px; }
.physics-embed .map-state { top: 18px; }
.hero-map-embed .physics-hud,
.hero-map-embed .farm-impact-figure,
.hero-map-embed .timeline-dock,
.hero-map-embed .spread-timeline-dock,
.hero-map-embed .spread-loader { display: none !important; }
#scenario-lab-panel .model-rank { justify-content: center; }
#scenario-lab-panel .model-score { display: none; }

/* Focused national spread lab: this is the entire product surface. */
.spread-only .map-header,
.spread-only #front-panel,
.spread-only #evidence-panel,
.spread-only #actions-panel,
.spread-only #methods-panel,
.spread-only .settings-panel,
.spread-only .physics-hud,
.spread-only .benchmark-status,
.spread-only .model-comparison-legend { display: none !important; }
.spread-only .sidebar { width: 440px; flex: 0 0 440px; }
.spread-only .brand-row { display: none; }
.spread-only .map-stage { left: 0; }
.spread-only .spread-hud { top: 18px; }
.spread-only .map-state { top: 18px; }

/* Keep the five-section navigation usable on narrow screens. */
.topbar-sections { min-width: 0; overflow-x: auto; scrollbar-width: none; }
.topbar-sections::-webkit-scrollbar { display: none; }
.topbar-section { flex: 0 0 132px; min-width: 132px; }

@media (max-width: 980px) {
  .reference-topbar { padding-inline: 10px; }
  .topbar-section { flex-basis: 112px; min-width: 112px; padding-inline: 8px; }
  .spread-hud { right: 12px; width: min(330px, calc(100% - 450px)); }
}

@media (max-width: 720px) {
  .topbar-section { flex-basis: 98px; min-width: 98px; font-size: 9px; }
  .spread-active .sidebar { width: min(360px, 88vw) !important; }
  .spread-hud { display: none; }
}

/* Bottom observed → predicted timeline for the national spread lab. */
.spread-timeline-dock { display: none; }
.spread-active .spread-timeline-dock {
  --spread-observed-share: 43.75%;
  --spread-progress: 43.75%;
  position: absolute;
  z-index: 7;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: grid;
  grid-template-columns: 215px minmax(320px, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 10px 18px 9px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(110deg, rgba(3, 27, 24, .95), rgba(3, 22, 24, .9));
  box-shadow: none;
  backdrop-filter: blur(10px);
}
.spread-timeline-heading { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.spread-timeline-heading > div { display: flex; align-items: baseline; gap: 10px; }
.spread-timeline-heading span { color: #74bea0; font: 700 8px 'DM Mono', monospace; letter-spacing: .11em; }
.spread-timeline-heading b { color: #edffd9; font: 700 24px 'Barlow Condensed', sans-serif; }
.spread-timeline-heading > strong { overflow: hidden; color: #9ee3c1; font: 700 8px 'DM Mono', monospace; letter-spacing: .07em; text-overflow: ellipsis; white-space: nowrap; }
.spread-timeline-dock[data-phase="predicted"] .spread-timeline-heading > strong { color: #edcd79; }
.spread-timeline-track { position: relative; height: 55px; padding-top: 16px; }
.spread-timeline-track::before,
.spread-timeline-track::after { position: absolute; top: 26px; right: 0; left: 0; height: 5px; border-radius: 999px; content: ''; pointer-events: none; }
.spread-timeline-track::before { background: linear-gradient(90deg, rgba(73, 202, 157, .48) 0 var(--spread-observed-share), rgba(225, 184, 91, .42) var(--spread-observed-share) 100%); }
.spread-timeline-track::after { right: auto; width: var(--spread-progress); background: linear-gradient(90deg, #60d7a8 0 var(--spread-observed-share), #e8bd5f var(--spread-observed-share) 100%); box-shadow: 0 0 9px rgba(100, 221, 170, .22); }
.spread-timeline-regions { position: absolute; top: 0; right: 0; left: 0; display: grid; grid-template-columns: var(--spread-observed-share) 1fr; color: #76ab95; font: 700 7px 'DM Mono', monospace; letter-spacing: .1em; }
.spread-timeline-regions span:last-child { padding-left: 8px; border-left: 1px solid rgba(232, 195, 104, .48); color: #c9ad70; }
.spread-timeline-track input { position: relative; z-index: 2; width: 100%; height: 25px; margin: 0; appearance: none; background: transparent; cursor: ew-resize; }
.spread-timeline-track input::-webkit-slider-runnable-track { height: 5px; background: transparent; }
.spread-timeline-track input::-webkit-slider-thumb { width: 17px; height: 17px; margin-top: -6px; appearance: none; border: 2px solid #efffd9; border-radius: 50%; background: #65d9a9; box-shadow: 0 0 0 4px rgba(101, 217, 169, .18), 0 2px 8px rgba(0, 0, 0, .45); }
.spread-timeline-dock[data-phase="predicted"] input::-webkit-slider-thumb { background: #e8bd5f; box-shadow: 0 0 0 4px rgba(232, 189, 95, .18), 0 2px 8px rgba(0, 0, 0, .45); }
.spread-timeline-track input::-moz-range-track { height: 5px; background: transparent; }
.spread-timeline-track input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #efffd9; border-radius: 50%; background: #65d9a9; }
.spread-timeline-ticks { position: absolute; right: 0; bottom: 0; left: 0; height: 17px; color: #82ad9b; font: 700 7px 'DM Mono', monospace; }
.spread-timeline-ticks span { position: absolute; transform: translateX(-50%); text-align: center; white-space: nowrap; }
.spread-timeline-ticks span::before { position: absolute; top: -9px; left: 50%; width: 1px; height: 6px; background: rgba(116, 171, 148, .42); content: ''; }
.spread-timeline-ticks span:nth-child(1) { left: 0; transform: none; }
.spread-timeline-ticks span:nth-child(1)::before { left: 0; }
.spread-timeline-ticks span:nth-child(2) { left: 18.75%; }
.spread-timeline-ticks span:nth-child(3) { left: 43.75%; color: #d8f68c; }
.spread-timeline-ticks span:nth-child(4) { left: 68.75%; color: #d1b777; }
.spread-timeline-ticks span:nth-child(5) { right: 0; left: auto; transform: none; color: #d1b777; }
.spread-timeline-ticks span:nth-child(5)::before { right: 0; left: auto; }
.spread-timeline-ticks small { display: block; color: #78a28f; font-size: 6px; font-weight: 500; }
.spread-active .map-attribution { bottom: 108px; }
.spread-only.spread-active .spread-timeline-dock { left: 458px; }

@media (max-width: 920px) {
  .spread-active .spread-timeline-dock { grid-template-columns: 150px minmax(240px, 1fr); gap: 10px; right: 10px; bottom: 10px; left: 10px; padding-inline: 12px; }
  .spread-only.spread-active .spread-timeline-dock { left: 450px; }
  .spread-timeline-heading > strong { font-size: 7px; }
  .spread-active .map-attribution { bottom: 102px; }
}

@media (max-width: 720px) {
  .spread-only.spread-active .spread-timeline-dock { left: calc(min(360px, 88vw) + 10px); grid-template-columns: minmax(110px, 145px) minmax(210px, 1fr); }
}

/* Focused controls: mode, cell size, and physics only. */
.spread-only .sidebar { width: 360px; flex: 0 0 360px; }
.spread-only #spread-panel { padding: 26px 24px; }
.spread-only .spread-view-tabs { grid-template-columns: 1fr 1fr; gap: 9px; }
.spread-only .spread-view-tabs button { position: relative; display: grid; min-height: 88px; padding: 13px; grid-template-columns: 32px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 8px; align-content: center; border-color: rgba(121, 240, 196, .2); border-radius: 13px; background: rgba(3, 25, 23, .78); overflow: hidden; }
.spread-only .spread-view-tabs button::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; background: #6adcad; opacity: 0; content: ''; }
.spread-only .spread-view-tabs button > span { grid-row: 1 / 3; align-self: center; color: #71d6ab; font: 500 23px 'DM Mono', monospace; }
.spread-only .spread-view-tabs button b { align-self: end; font-size: 14px; }
.spread-only .spread-view-tabs button small { align-self: start; font-size: 7px; line-height: 1.35; }
.spread-only .spread-view-tabs button.active { transform: translateY(-1px); border-color: rgba(137, 245, 192, .78); background: linear-gradient(145deg, rgba(52, 153, 116, .27), rgba(8, 43, 37, .82)); box-shadow: 0 10px 25px rgba(0, 0, 0, .2), inset 0 0 0 1px rgba(139, 245, 192, .1); }
.spread-only .spread-view-tabs button.active::after { opacity: 1; }
.spread-only .spread-view-tabs button:nth-child(2) > span { color: #e2c66e; }
.spread-only .spread-view-tabs button:nth-child(3) > span { color: #77c8d8; }
.spread-only .spread-view-tabs button:nth-child(4) > span { color: #d5ed75; }
.spread-only .spread-view-tabs button:nth-child(4).active::after { background: #d5ed75; }
.spread-only .spread-view-tabs button small,
.spread-only .spread-model-options button em,
.spread-only .spread-model-options button small { display: none; }
.spread-only .spread-view-tabs button { grid-template-rows: auto; }
.spread-only .spread-view-tabs button > span { grid-row: 1; }
.spread-only .spread-view-tabs button b { align-self: center; }
.spread-only .spread-grid-size-control { margin-top: 14px; padding: 13px; border-radius: 12px; }
.spread-only .spread-view-tabs .spread-wind-toggle > span { color: #78d7e6; }
.spread-only .spread-view-tabs .spread-wind-toggle > span svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.spread-only .spread-view-tabs .spread-wind-toggle.active { border-color: rgba(126, 224, 240, .82); background: linear-gradient(145deg, rgba(52, 151, 170, .3), rgba(8, 43, 42, .86)); }
.spread-only .spread-view-tabs .spread-wind-toggle.active::after { opacity: 1; background: #7bdcea; }
.spread-only .spread-scenario-controls { margin-top: 15px; }
.spread-only .spread-model-options button { min-height: 52px; padding: 9px 11px; }
.spread-only .spread-model-options button b { font-size: 12px; }
.spread-only .spread-model-options button small { font-size: 7px; }

.spread-only.spread-active .spread-timeline-dock {
  --spread-observed-share: 18.919%;
  left: 378px;
  grid-template-columns: 270px minmax(320px, 1fr);
}
.spread-timeline-heading { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; }
.spread-timeline-heading > div { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 3px; }
.spread-timeline-heading > div > div { display: flex; align-items: baseline; gap: 8px; }
.spread-timeline-heading > div > div span { color: #74bea0; font: 700 7px 'DM Mono', monospace; letter-spacing: .11em; }
.spread-timeline-heading > div > div b { color: #edffd9; font: 700 24px 'Barlow Condensed', sans-serif; }
.spread-timeline-heading > div > strong { max-width: 100%; overflow: hidden; color: #9ee3c1; font: 700 7px 'DM Mono', monospace; letter-spacing: .05em; text-overflow: ellipsis; white-space: nowrap; }
.spread-timeline-dock[data-phase="predicted"] .spread-timeline-heading > div > strong { color: #edcd79; }
#spread-timeline-play { display: grid; width: 48px; height: 48px; padding: 5px; place-items: center; border: 1px solid rgba(214, 237, 117, .5); border-radius: 10px; background: rgba(158, 190, 80, .1); color: #e0f48a; cursor: pointer; }
#spread-timeline-play:hover { background: rgba(185, 218, 91, .18); }
#spread-timeline-play i { font: 500 17px 'DM Mono', monospace; font-style: normal; line-height: 1; }
#spread-timeline-play span,
.spread-timeline-heading > div > div span,
.spread-timeline-heading > div > strong { display: none; }
.spread-timeline-dock.playing #spread-timeline-play { border-color: #e8bd5f; background: rgba(232, 189, 95, .2); color: #ffdc83; box-shadow: 0 0 18px rgba(232, 189, 95, .15); }
.spread-timeline-dock.scrubbing { background: linear-gradient(110deg, rgba(4, 35, 29, .97), rgba(4, 28, 29, .93)); }
.spread-timeline-dock.scrubbing .spread-timeline-track input { cursor: grabbing; }
.spread-timeline-dock.scrubbing .spread-timeline-track input::-webkit-slider-thumb { transform: scale(1.16); box-shadow: 0 0 0 6px rgba(232, 189, 95, .18), 0 2px 10px rgba(0, 0, 0, .5); }
.spread-timeline-ticks span:nth-child(2) { left: 18.919%; color: #d8f68c; }
.spread-timeline-ticks span:nth-child(3) { left: 45.946%; color: #d1b777; }
.spread-timeline-ticks span:nth-child(4) { left: 72.973%; color: #d1b777; }
.spread-timeline-ticks span:nth-child(5) { right: 0; left: auto; color: #d1b777; }

@media (max-width: 920px) {
  .spread-only .sidebar { width: 330px; flex-basis: 330px; }
  .spread-only.spread-active .spread-timeline-dock { left: 340px; grid-template-columns: 220px minmax(250px, 1fr); }
  .spread-timeline-heading { grid-template-columns: 48px minmax(0, 1fr); gap: 8px; }
}

@media (max-width: 720px) {
  .spread-only .sidebar { width: min(330px, 86vw); flex-basis: min(330px, 86vw); }
  .spread-only.spread-active .spread-timeline-dock { left: calc(min(330px, 86vw) + 10px); grid-template-columns: 190px minmax(220px, 1fr); }
}

/* Electron traffic-light safe area, without restoring an application header. */
.electron-shell .spread-only #spread-panel { padding-top: 54px; }

/* Apple Weather-style animated climatological wind overlay. */
.wind-canvas { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; transition: opacity .28s ease; mix-blend-mode: screen; }
.wind-canvas.active { opacity: 1; filter: drop-shadow(0 0 2px rgba(153, 246, 232, .32)); }
.wind-legend { position: absolute; z-index: 8; top: 70px; right: 18px; display: grid; width: 118px; gap: 3px; padding: 8px 9px; border-radius: 8px; background: rgba(2, 21, 21, .78); color: #8fb9aa; backdrop-filter: blur(8px); pointer-events: none; }
.wind-legend.hidden { display: none; }
.wind-legend b { color: #dffcf1; font: 700 7px 'DM Mono', monospace; letter-spacing: .1em; }
.wind-legend span { display: flex; align-items: center; gap: 6px; font: 600 7px 'DM Mono', monospace; }
.wind-legend span i { display: block; width: 48px; height: 3px; border-radius: 999px; background: linear-gradient(90deg, #54bfc1, #8ce6d0, #eff5b5); box-shadow: 0 0 7px rgba(121, 222, 207, .28); }
.wind-legend small { color: #668f80; font: 500 6px 'DM Mono', monospace; }

/* Published farm-loss scenarios, deliberately separate from model output. */
.farm-impact-figure { position: absolute; z-index: 12; bottom: 18px; left: 18px; width: 342px; margin: 0; padding: 0 6px 2px; border: 0; background: transparent; color: #a7cbbb; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .72)); }
.farm-impact-title { display: block; margin-bottom: 3px; color: #79bda1; font: 700 7px 'DM Mono', monospace; letter-spacing: .12em; }
.farm-impact-figure output { display: block; margin: 0 0 2px; color: #f3ffd8; font: 700 24px 'Barlow Condensed', sans-serif; letter-spacing: .02em; }
.farm-impact-figure svg { display: block; width: 100%; height: 132px; overflow: visible; }
.farm-impact-grid { fill: none; stroke: rgba(132, 185, 161, .14); stroke-width: .7; }
.farm-impact-area { fill: rgba(224, 182, 87, .11); stroke: none; }
.farm-impact-line { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.farm-impact-line.expected { stroke: #75dda9; }
.farm-impact-line.worst { stroke: #f0b25e; }
.farm-impact-marker { stroke: rgba(238, 255, 217, .64); stroke-width: .8; stroke-dasharray: 2 2; }
.farm-impact-dot { fill: #f7d77d; stroke: #efffd9; stroke-width: 1; }
.farm-impact-dot.lower { fill: #75dda9; }
.farm-impact-dot.upper { fill: #f0b25e; }
.farm-impact-axis { display: flex; justify-content: space-between; margin-top: -2px; color: #668f80; font: 600 7px 'DM Mono', monospace; }
.spread-only #spread-panel { height: calc(100% - 232px); max-height: calc(100% - 232px); margin-bottom: 232px; flex: 0 0 calc(100% - 232px); overflow-y: auto; }
.spread-only .sidebar,
.spread-only #spread-panel { scrollbar-width: none; }
.spread-only .sidebar::-webkit-scrollbar,
.spread-only #spread-panel::-webkit-scrollbar { display: none; }

@media (max-width: 920px) {
  .farm-impact-figure { left: 12px; width: 306px; }
}

@media (max-width: 720px) {
  .farm-impact-figure { display: none; }
}

/* True globe presentation with a masked deep-space galaxy behind Earth. */
.spread-only .map-stage { background: #01030a; }
.spread-only .map-stage.globe-mode::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  background:
    radial-gradient(ellipse at 79% 16%, rgba(73, 105, 177, .16), transparent 20%),
    radial-gradient(ellipse at 67% 81%, rgba(115, 66, 145, .13), transparent 23%),
    radial-gradient(ellipse at 27% 70%, rgba(35, 112, 122, .11), transparent 19%),
    linear-gradient(127deg, transparent 31%, rgba(75, 99, 154, .07) 39%, rgba(189, 197, 226, .18) 48%, rgba(104, 68, 137, .085) 56%, transparent 66%);
  filter: blur(25px) saturate(1.12);
  opacity: .72;
  pointer-events: none;
  mask-image: radial-gradient(circle var(--globe-radius) at var(--globe-center-x) var(--globe-center-y), transparent 0 91%, rgba(0, 0, 0, .28) 100%, #000 114%);
  -webkit-mask-image: radial-gradient(circle var(--globe-radius) at var(--globe-center-x) var(--globe-center-y), transparent 0 91%, rgba(0, 0, 0, .28) 100%, #000 114%);
}
.spread-only .starfield {
  z-index: 2;
  opacity: .92;
  mix-blend-mode: screen;
  mask-image: radial-gradient(circle var(--globe-radius) at var(--globe-center-x) var(--globe-center-y), transparent 0 93%, rgba(0, 0, 0, .25) 101%, #000 116%);
  -webkit-mask-image: radial-gradient(circle var(--globe-radius) at var(--globe-center-x) var(--globe-center-y), transparent 0 93%, rgba(0, 0, 0, .25) 101%, #000 116%);
}
.spread-only .starfield::before,
.spread-only .starfield::after { position: absolute; content: ''; pointer-events: none; }
.spread-only .starfield::before { inset: -28% -12%; background: linear-gradient(128deg, transparent 36%, rgba(107, 133, 194, .08) 42%, rgba(222, 228, 244, .19) 48%, rgba(130, 83, 167, .085) 54%, transparent 62%); filter: blur(11px); opacity: .88; transform: rotate(-3deg); }
.spread-only .starfield::after { inset: 0; background: radial-gradient(circle at 84% 23%, rgba(142, 177, 226, .14), transparent 7%), radial-gradient(circle at 25% 80%, rgba(140, 86, 175, .12), transparent 8%); filter: blur(10px); }
.spread-only .starfield .star { background: #e8f4ff; filter: drop-shadow(0 0 3px rgba(151, 197, 255, .78)); }
.spread-only .starfield .star-1 { background: #d8c8f1; filter: drop-shadow(0 0 3px rgba(168, 129, 219, .7)); }
.spread-only .starfield .star-2 { background: #fff2c4; filter: drop-shadow(0 0 3px rgba(255, 220, 135, .68)); }

/* Keep camera interaction on the compositor: expensive glass, blend and glow
   effects return immediately after the drag/zoom ends. */
.spread-only .map-stage #map { contain: strict; }
.spread-only .map-stage.camera-moving.globe-mode::after { filter: none; }
.spread-only .map-stage.camera-moving .starfield { mix-blend-mode: normal; }
.spread-only .map-stage.camera-moving .starfield::before,
.spread-only .map-stage.camera-moving .starfield::after,
.spread-only .map-stage.camera-moving .starfield .star { filter: none; }
.spread-only .map-stage.camera-moving .spread-timeline-dock,
.spread-only .map-stage.camera-moving .spread-hud,
.spread-only .map-stage.camera-moving .wind-legend { backdrop-filter: none; -webkit-backdrop-filter: none; }
.spread-only .map-stage.camera-moving .farm-impact-figure { filter: none; }

/* Far-zoom lunar easter egg, using NASA's LRO global color mosaic. */
.moon-easter-egg {
  position: absolute;
  z-index: 5;
  right: clamp(54px, 8vw, 128px);
  bottom: 140px;
  display: grid;
  width: 230px;
  justify-items: center;
  opacity: var(--moon-progress, 0);
  pointer-events: none;
  transform: translate3d(0, var(--moon-offset, 150px), 0) scale(var(--moon-scale, .68));
  transform-origin: 50% 100%;
  transition: opacity .12s linear;
  will-change: opacity, transform;
}
.moon-sphere {
  width: 204px;
  height: 204px;
  border: 1px solid rgba(239, 244, 237, .38);
  border-radius: 50%;
  background-color: #85857f;
  background-image:
    radial-gradient(circle at 35% 27%, rgba(255, 255, 246, .2), transparent 35%),
    radial-gradient(circle at 71% 73%, transparent 39%, rgba(0, 0, 0, .72) 83%),
    url('https://svs.gsfc.nasa.gov/vis/a000000/a004700/a004720/lroc_color_2k.jpg');
  background-position: center, center, 50% 50%;
  background-repeat: no-repeat;
  background-size: cover, cover, auto 100%;
  box-shadow: -12px 18px 36px rgba(0, 0, 0, .7), 0 0 18px rgba(205, 217, 232, .14);
  filter: grayscale(.88) contrast(1.16) brightness(.83);
  transform: rotate(-7deg);
}
.moon-easter-egg p {
  margin: -9px 0 0;
  padding: 8px 13px 7px;
  border: 1px solid rgba(221, 236, 225, .28);
  border-radius: 999px;
  background: rgba(4, 18, 18, .9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .42);
  color: #edf8ef;
  font: 700 11px 'DM Mono', monospace;
  letter-spacing: .02em;
  white-space: nowrap;
}
.moon-easter-egg p span { color: #d8f47d; }
.moon-easter-egg small { margin-top: 5px; color: rgba(190, 210, 203, .58); font: 7px 'DM Mono', monospace; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 720px) {
  .moon-easter-egg { right: 24px; bottom: 126px; width: 176px; }
  .moon-sphere { width: 158px; height: 158px; }
}
