:root{--bg:#fbfcfb;--surface:#fbfcfb;--map:#297faf;--raised:#fff;--ink:#25343a;--muted:#596c73;--accent:#176b6a;--accent-soft:#eaf1ef;--radius:0}
:root[data-theme=dark]{--bg:#111d28;--surface:#142330;--raised:#1b3040;--ink:#edf2f3;--muted:#b1c4cc;--accent:#98d8c3;--accent-soft:#263d45}
*,*::before,*::after{outline:none!important}button,input,select,dialog,.workspace,.inspector,.site-header,.map-topline,.time-axis,.map-footer,.zoom-controls,.map-tooltip,.search-wrap kbd,#search-results,.source-links a{border:0!important;box-shadow:none!important}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{background-color:var(--accent-soft);text-decoration:underline;text-underline-offset:4px}button,input,select{border-radius:0}.quiet{border-radius:0}.site-header{height:58px}.site-header nav{font-size:14px}main{height:calc(100dvh - 58px);max-width:none;padding:0}.atlas-heading{padding:18px 30px 15px}.atlas-heading h1{font-size:32px}.toolbar{padding:0 30px;margin-bottom:12px}.search-wrap input,select{background:color-mix(in srgb,var(--ink),transparent 96%);padding-top:10px;padding-bottom:10px}.search-wrap{width:min(400px,40vw)}.search-wrap kbd{background:var(--accent-soft);padding:2px 4px}#search-results{right:0;padding:5px;background:var(--raised)}#search-results button{border-radius:0;padding:11px}.workspace{border-radius:0;grid-template-columns:minmax(0,1fr);gap:0}.inspector{display:none}.inspector.open{display:block}.workspace:has(.inspector.open){grid-template-columns:minmax(0,1fr) 380px}.map-topline{height:39px;padding:0 22px}.map-topline button{background:transparent}.time-axis,#time-axis{height:38px}.time-axis{background:var(--surface)}#time-axis text{font-size:11px}#time-axis path{stroke:var(--muted);stroke-width:.6}.map-footer{height:34px;padding:0 22px;gap:14px}#loaded-detail{color:var(--muted);margin-left:auto;white-space:nowrap}#branch-status{font-size:10px;color:var(--muted)}.atlas-footer{height:35px;padding:0 25px}#group-key{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;gap:19px}#group-key button{white-space:nowrap;flex-shrink:0;font-size:11px;display:block!important}
#map{isolation:isolate;min-height:240px;touch-action:none;cursor:grab;background:#297faf}#map.dragging{cursor:grabbing}#tree{display:none}.map-scroll{position:absolute;inset:0;overflow:auto;z-index:2;scrollbar-width:auto;scrollbar-color:#467d97a8 #dbedf06e;touch-action:none;overscroll-behavior:contain}#scroll-space{pointer-events:auto;min-width:100%;min-height:100%}.map-scroll::-webkit-scrollbar{width:13px;height:13px}.map-scroll::-webkit-scrollbar-track{background:#d5e9edb3}.map-scroll::-webkit-scrollbar-thumb{background:#467d97ab;border:3px solid transparent;background-clip:padding-box;border-radius:9px}.map-scroll::-webkit-scrollbar-corner{background:#d5e9edb3}#map-canvas{position:absolute;left:0;top:0;pointer-events:none;z-index:1}#map-hitlayer{position:absolute;inset:0;pointer-events:none;z-index:3;overflow:hidden}.map-node{position:absolute;left:0;top:0;background:transparent;padding:0;margin:0;pointer-events:auto;cursor:pointer;color:transparent;transform-origin:0 0}.map-node:focus-visible{background:#ffed9a44;text-decoration:none}.map-node:focus-visible::after{content:'';position:absolute;left:0;right:0;bottom:0;height:2px;background:#fff4b3}.zoom-controls{z-index:5;top:15px;left:15px;background:#f9fcf7ed;border-radius:0;color:#20343d}.zoom-controls button{width:38px;height:37px}.zoom-controls span{border:0!important;height:5px}.zoom-controls button:hover{background:#deeded}.map-shortcuts{position:absolute;z-index:5;right:25px;top:17px;display:flex;gap:7px}.map-shortcuts button{padding:8px 11px;background:#f9fcf7e6;font-size:11px;color:#25373c}.map-legend{z-index:4;pointer-events:none;background:transparent;left:16px;bottom:16px;color:#f3fbff;text-shadow:0 1px 2px #23475f75;font-size:10px}.map-legend i{border-color:currentColor}.map-tooltip{display:none!important}.loading-map{z-index:6;background:#237eb4;color:#fff}.gesture-hint{font-size:10px}.mobile-routes{display:none!important}
#taxon-panel{padding:17px 22px 25px}.taxon-identity h2{font-size:27px}.taxon-summary{font-size:14px}.taxon-tools .quiet{font-family:Atlas,Arial,sans-serif}.source-links a{font-size:12px;text-decoration:underline;text-underline-offset:3px}.age-info{background:transparent;padding:3px 0 5px;border-radius:0}.age-info strong{font-size:13px}.science-note{font-size:12px}.taxon-actions{margin-bottom:12px;flex-wrap:wrap}.secondary{background:var(--accent-soft);padding:9px 12px;border-radius:0}.expand-row{margin-bottom:22px;display:flex;align-items:center;gap:10px}.expand-row button{font-size:12px;color:var(--accent);padding:8px 0;text-decoration:underline;text-underline-offset:4px}.video-heading{margin-top:16px}.video-options{grid-template-columns:1fr 1fr;gap:7px}.video-options label:last-child{grid-column:1/-1}.video-options select{font-size:12px;padding:9px 24px 9px 8px}.video-card{display:grid;grid-template-columns:125px minmax(0,1fr);column-gap:12px;row-gap:0;margin-bottom:21px;cursor:default}.video-play{cursor:pointer;padding:0;text-align:left}.video-thumb{border-radius:0;width:100%;overflow:hidden}.video-title{font-size:14px;line-height:1.35;color:var(--ink);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;background:transparent!important}.video-title:hover{text-decoration:underline;text-underline-offset:3px}.video-channel{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:11px;line-height:1.3;margin:7px 0 4px}.video-channel>span:last-child{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}.channel-avatar,.avatar-initial{display:block;width:19px;height:19px;flex-shrink:0;border-radius:50%;object-fit:cover}.avatar-initial{background:var(--accent-soft);text-align:center;line-height:19px;font-size:11px}.video-meta{font-family:Atlas,Arial,sans-serif;font-size:11px;display:flex;align-items:center;gap:4px;flex-wrap:wrap;margin:0;color:var(--muted)}.views-eye{font-family:'Segoe UI Symbol',Arial,sans-serif;font-size:14px;line-height:1}.video-rate{font-variant-numeric:tabular-nums}.match-evidence{display:none!important}.duration{font:10px Arial,sans-serif;border-radius:0}.more-videos{margin-top:4px}.inspector{scrollbar-width:thin;scrollbar-color:#91aaa5 transparent}.info-dialog,.player-dialog{border-radius:0}.info-dialog{max-height:88dvh}.dialog-close{font-family:Arial,sans-serif!important}.toast{border-radius:0;box-shadow:none}
@media(min-width:1700px){.workspace:has(.inspector.open){grid-template-columns:minmax(0,1fr) 420px}.video-card{grid-template-columns:143px minmax(0,1fr)}.video-title{font-size:15px}.video-meta,.video-channel{font-size:12px}.taxon-summary{font-size:15px}}
@media(max-width:1150px){.workspace:has(.inspector.open){grid-template-columns:minmax(0,1fr) 330px}.video-card{grid-template-columns:105px minmax(0,1fr)}.video-title{font-size:13px}.toolbar{padding:0 19px}.atlas-heading{padding:16px 20px 14px}.site-header{gap:24px}.totals{gap:16px}#taxon-panel{padding:15px 17px}}
@media(max-width:800px){.site-header{height:51px;padding:0 13px}main{height:calc(100dvh - 51px)}.atlas-heading{padding:13px 14px 11px}.atlas-heading h1{font-size:27px}.atlas-heading p{font-size:11px}.totals{gap:12px}.totals strong{font-size:18px}.totals>span:last-child{display:none}.toolbar{padding:0 14px;margin-bottom:8px;grid-template-columns:minmax(0,1fr) 140px}.search-wrap{width:auto}.workspace,.workspace:has(.inspector.open){display:block}.map-topline{padding:0 13px;height:32px;font-size:10px}.scale-button{font-size:9px}.time-axis,#time-axis{height:33px}.map-shell{height:100%}.map-shortcuts{right:14px;top:12px;gap:5px}.map-shortcuts button{padding:8px;font-size:10px}.map-footer{height:32px;padding:0 12px;font-size:9px}.map-footer #map-range{max-width:33%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}#branch-status{display:none}#loaded-detail{font-size:9px}.atlas-footer{height:31px;padding:0 14px}#group-key{gap:16px}#group-key button{font-size:10px}.inspector{position:fixed;z-index:8;left:0;right:0;bottom:0;max-height:72dvh;background:var(--surface);border-radius:0;box-shadow:none!important}.inspector::before{width:36px;height:3px;background:var(--muted);opacity:.3}.inspector.open{display:block}#mobile-shade{background:#122b3e1c;z-index:7}.video-card{grid-template-columns:125px minmax(0,1fr)}.video-title{font-size:14px}.video-channel,.video-meta{font-size:11px}#taxon-panel{padding:12px 18px 24px}.map-legend{font-size:9px;gap:10px;bottom:19px;left:13px}.zoom-controls{left:12px;top:12px}.zoom-controls button{width:35px;height:35px}.taxon-identity h2{font-size:25px}.source-links{gap:13px}.source-links a{font-size:13px}.video-options select{font-size:12px}.video-emphasis{min-height:18px;font-size:10px}.search-wrap input{font-size:12px}.section-filter select{font-size:10px}.header-actions{font-size:11px}.taxon-tools .quiet{font-size:12px}}

#map-hitlayer{right:13px;bottom:13px}

#map{min-height:0}.scale-button:disabled{cursor:default;opacity:1}
.map-legend{color:var(--ink);background:var(--surface);text-shadow:none;padding:4px 7px}
@media(max-width:800px){.inspector{max-height:54dvh}}
@media(max-width:800px) and (max-height:700px){.inspector{max-height:42dvh}}
