/* Shared preferences and calm, task-focused public workspace. */
[hidden]{display:none!important}
:root{color-scheme:dark}
.preferences{display:flex;gap:8px;align-items:center;flex-shrink:0}
.preferences select,.preferences button{font:inherit;font-size:12px;min-height:40px;border:1px solid var(--line-strong,#35465b);border-radius:9px;color:var(--text,#eaf2fb);background:var(--surface-strong,#142235);padding:8px 11px;cursor:pointer}
.preferences select{max-width:72px}.preferences button{min-width:94px}
#themeToggle{display:inline-flex;align-items:center;justify-content:center;gap:7px}#themeToggle svg{width:18px;height:18px;flex-shrink:0}#themeToggle[aria-pressed="true"] svg{color:#996011}.hunt-purpose{line-height:1.8}.hunt-details{width:100%;margin-top:10px;font-size:11px}.hunt-details summary{cursor:pointer;color:var(--teal,#00d1b7);padding:8px 0}.hunt-details code{display:block;white-space:normal;overflow-wrap:anywhere;padding:10px;border:1px solid var(--stroke,#26364a);border-radius:7px;font-size:10px}.hunt-details p{font-size:11px;margin-top:8px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
body{background:var(--bg);line-height:1.65}
.noise,.bg-canvas{display:none}
.site-header{background:var(--bg);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.nav{gap:20px;min-height:78px}.nav-links{gap:22px;margin-left:auto}.nav-link{font-size:13px}
.hero{padding-top:72px;padding-bottom:48px;min-height:0;display:block}.hero-content{max-width:790px}.hero h1{font-size:clamp(2.25rem,5vw,4.4rem);letter-spacing:-.055em;max-width:20ch}.hero-sub{max-width:690px;font-size:16px;margin-top:22px}.hero-cta{margin-top:26px}.hero-stats{margin-top:28px;max-width:700px}
.gradient-text{background:none;color:var(--brand);-webkit-text-fill-color:currentColor}
main>section{padding-top:36px;padding-bottom:40px}.section-head{margin-bottom:22px}.section-head h2{letter-spacing:-.035em}.section-desc,.privacy-note{max-width:780px}.privacy-note{font-size:12px;color:var(--muted);margin:12px 0 22px}.dataset-actions{margin:16px 0 0;flex-wrap:wrap}.btn-dataset{font-size:12px}
.panel,.card{box-shadow:none;background:var(--surface);border-color:var(--line)}.tool-grid{gap:20px}.drop-zone{min-height:180px}.api-section{margin-top:22px}.unified-workspace{padding-top:44px}.guide{padding-bottom:65px}
.guide-item{border-top:1px solid var(--line);background:transparent}.guide-item:last-child{border-bottom:1px solid var(--line)}.guide-item>summary{padding:22px 4px;font-size:15px;font-weight:600;cursor:pointer;color:var(--text);list-style:none;display:flex;justify-content:space-between;gap:20px}.guide-item>summary::-webkit-details-marker{display:none}.guide-item>summary:after{content:'+';font-size:20px;color:var(--brand)}.guide-item[open]>summary:after{content:'−'}.guide-content{padding:0 4px 26px}.guide-section{padding:8px 0 0;scroll-margin-top:100px}.guide-section .section-head .eyebrow{display:none}.guide-section h2{font-size:20px}.guide-section .section-desc{font-size:13px}.guide-section .cards{gap:14px}.guide-section .card{padding:22px}.guide-section .blog-card{cursor:default}.guide-section .blog-read{display:none}.guide-section .flow-pipeline{margin:20px 0}.guide-section .flow-step{min-width:0}.guide-item:focus-within{border-color:var(--brand)}
.results-section{border-top:1px solid var(--line)}.site-footer{padding-bottom:40px}.mobile-dock{background:var(--bg);border-color:var(--line)}.mobile-dock .dock-item{flex:1}
.tool-grid>*,.viz-grid>*,.dual-grid>*,.kpi-grid>*,.chart-wrap{min-width:0;max-width:100%}.chart-wrap{position:relative}.chart-wrap canvas{max-width:100%!important}.panel-header{flex-wrap:wrap;gap:10px}.toast-container{max-width:calc(100vw - 24px);right:12px}.toast{max-width:100%;overflow-wrap:anywhere}
.globe-caption h3,.globe-caption p{color:#eaf2fb!important}.workspace-loading{background:var(--surface,#101b2a);color:var(--text)}
.atlas-purpose{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(210px,1fr);gap:20px;margin:18px 0 16px;padding:18px;border:1px solid var(--stroke,#26364a);border-radius:12px;background:var(--panel2,#142235)}.atlas-purpose h3{margin:6px 0}.atlas-purpose p{font-size:12px;line-height:1.8}.atlas-purpose summary{cursor:pointer;font-weight:650;font-size:12px;padding:8px 0}.atlas-data-bar{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin:12px 0 20px}.atlas-data-bar label{font-size:10px;display:flex;align-items:center;gap:10px}.atlas-data-bar select{min-width:170px}.atlas-data-bar #geoCoverage{flex:1;min-width:160px}.atlas-data-bar strong,.atlas-data-bar small{display:block}.atlas-data-bar small{font-size:10px;color:var(--muted)}
.globe-stage{background:radial-gradient(ellipse at 50% 48%,#153349,#040b16 73%);border:1px solid #244658;overflow:hidden}.globe-stage::before{content:'';position:absolute;inset:0;pointer-events:none;background-image:radial-gradient(1px 1px at 8% 15%,#99b6d0 80%,transparent),radial-gradient(1px 1px at 80% 17%,#aac8db 80%,transparent),radial-gradient(1px 1px at 91% 61%,#aac8db 80%,transparent),radial-gradient(1px 1px at 12% 82%,#aac8db 80%,transparent);opacity:.65}.globe-caption{max-width:260px;pointer-events:none}.globe-caption h3{font-size:18px}.globe-caption button{pointer-events:auto}.geo-legend{display:flex;flex-wrap:wrap;gap:12px;font-size:10px;color:var(--muted);margin:16px 0}.geo-legend span::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#f5bf75;margin-right:5px}.geo-legend .geo-source::before{background:#60e6d2}
.event-pin{width:30px;height:30px;border-radius:50%;border:2px solid #d6fff6;background:#0c766a;color:#fff;font:700 11px system-ui;box-shadow:0 0 0 7px #42d7bc25,0 0 24px #36c4c363;cursor:pointer;padding:0;transition:box-shadow .15s}.event-pin-destination{background:#966224;border-color:#ffe5b9;box-shadow:0 0 0 7px #ffc96b22,0 0 24px #f5bd5c44}.event-pin:hover,.event-pin-selected{box-shadow:0 0 0 11px #a2e9e936,0 0 28px #60f3cf77}.event-pin.maplibregl-marker-covered{visibility:hidden;pointer-events:none}
.geo-location,.geo-evidence{display:block;width:100%;text-align:left;padding:10px 11px;margin-top:9px;border:1px solid var(--stroke,#315465);border-radius:8px;background:var(--panel2,#142235);color:var(--text,#eaf2fb);font:inherit;font-size:11px;cursor:pointer;overflow-wrap:anywhere}.geo-evidence code{display:block;margin-top:4px;opacity:.7;font-size:10px}.evidence-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin:18px 0 8px}.evidence-actions code{font-size:10px;overflow-wrap:anywhere}.evidence-actions strong{font-size:12px}.project-faq{display:grid;gap:10px}.project-faq dt{font-weight:650;color:var(--text);margin-top:12px}.project-faq dd{color:var(--text-sub,var(--muted));font-size:13px;line-height:1.85;margin:0}
.event-pin-mixed{background:#65569f;border-color:#dfd8ff;box-shadow:0 0 0 7px #b9a8ff22,0 0 24px #b9a8ff44}.geo-legend .geo-mixed::before{background:#b9a8ff}
@media(max-width:700px){.atlas-purpose{grid-template-columns:1fr;padding:14px;gap:8px}.atlas-data-bar{gap:12px}.atlas-data-bar label{width:100%}.atlas-data-bar select{flex:1}.geo-legend{font-size:9px}.globe-caption{max-width:230px}.atlas-side .country-detail{min-height:0}.globe-caption p{font-size:9px}.project-faq dd{font-size:12px}}
html[data-theme="light"] .app :is(.quality-card,.rule,.rule-card,.activity-item,.source-row,.rep-item){background:#edf3f7;border-color:#d2dfe8}
:host([data-theme="light"]) .app :is(.quality-card,.rule,.rule-card,.activity-item,.source-row,.rep-item){background:#edf3f7;border-color:#d2dfe8}
html[data-theme="light"] .app :is(th,.connection,.tag,.region-tab),:host([data-theme="light"]) .app :is(th,.connection,.tag,.region-tab){background:#edf3f7;color:#294b60;border-color:#c6d7e2}
html[data-theme="light"] .app .region-tab[aria-pressed="true"],:host([data-theme="light"]) .app .region-tab[aria-pressed="true"]{background:#d0eee5;color:#006453;border-color:#399e8c}
html[data-theme="light"] .app .message.error,:host([data-theme="light"]) .app .message.error{background:#fff0f1;color:#942638;border-color:#e5a4b0}
:root[data-theme="light"]{color-scheme:light;--bg:#f5f7fa;--surface:#fff;--surface-strong:#eef2f6;--surface-hover:#e9eff4;--text:#14263a;--text-sub:#40576c;--muted:#526b80;--brand:#007e70;--brand-2:#006f65;--line:#d8e1e9;--line-strong:#b9c9d6;--danger:#b52a39;--ok:#007957;--info:#215f99;--warn:#996011;--shadow:0 8px 24px #1830490a;--shadow-lg:0 12px 40px #18304912}
html[data-theme="light"] .btn-primary{background:#007e70;color:white;border-color:#007e70}html[data-theme="light"] .site-header,html[data-theme="light"] .mobile-dock{background:#f5f7faf5}html[data-theme="light"] .nav-links.open{background:#fff}html[data-theme="light"] .toast{background:#fff;color:#14263a}html[data-theme="light"] input,html[data-theme="light"] textarea{background:#f7f9fc;color:#14263a}html[data-theme="light"] .drop-zone{background:#f4f8fa}html[data-theme="light"] .brand,html[data-theme="light"] .input-label{color:#14263a}html[data-theme="light"] .stat-card,html[data-theme="light"] .kpi{background:#fff}html[data-theme="light"] .hero{background:none}html[data-theme="light"] .history-table th{background:#edf2f7}
/* Standalone SOC shares the same light palette; map attribution retains its dark map skin. */
html[data-theme="light"] .app{--bg:#f5f7fa;--panel:#fff;--panel2:#edf3f7;--stroke:#d2dfe8;--text:#14263a;--muted:#526b80;--teal:#007e70;--blue:#21649d;background:var(--bg);color:var(--text)}
html[data-theme="light"] .app :is(.panel,.metric,.hunt-card,.health-card,.insight-panel,.credential,.country-detail,.case,.side-foot,.map-detailbar){background:#fff;border-color:#d2dfe8}
html[data-theme="light"] .app :is(h1,h2,h3,strong,label,th){color:#14263a}html[data-theme="light"] .app :is(p,small,.muted){color:#526b80}html[data-theme="light"] .app :is(input,select,textarea,.output){background:#f5f8fb;color:#14263a;border-color:#b9c9d6}
html[data-theme="light"] .app .sidebar{background:#edf3f7}html[data-theme="light"] .app .navitem{color:#40576c}html[data-theme="light"] .app .navitem.active{background:#d7eee9;color:#006b60}html[data-theme="light"] .app .button,html[data-theme="light"] .app .smallbutton{background:#edf3f7;color:#14263a}html[data-theme="light"] .app .button.primary{background:#007e70;color:#fff}html[data-theme="light"] .app .message{background:#e6f4ef;color:#17594c;border-color:#add6c8}
@media(max-width:1100px){.nav{gap:12px}.nav-links{gap:14px}.brand{font-size:14px}.preferences button{min-width:84px}.preferences{gap:6px}}
@media(max-width:900px){.nav{flex-wrap:wrap;padding-top:12px;padding-bottom:12px;min-height:76px}.nav>.brand{flex:1}.nav>.menu-toggle{order:3}.nav>.preferences{order:2}.nav>.nav-links{order:4;width:100%}.hero{padding-top:40px}.hero h1{font-size:clamp(2rem,7vw,3.5rem)}.hero-sub{font-size:14px}.preferences button{font-size:11px;min-width:78px}.guide-section .cards.four{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.nav{gap:8px}.nav .brand{font-size:11px;gap:6px}.nav .brand svg{width:18px}.preferences select,.preferences button{padding:6px 8px;min-height:36px}.preferences select{max-width:56px}.preferences button{min-width:74px}.menu-toggle{width:34px;min-width:34px}.hero{padding-top:30px;padding-bottom:20px}.hero h1{font-size:2.25rem}.hero-cta{gap:10px}.hero-cta .btn{width:100%;justify-content:center}main>section{padding-top:26px;padding-bottom:26px}.tool-grid{grid-template-columns:1fr}.section-head h2{font-size:25px}.guide-section .cards.four{grid-template-columns:1fr}.guide-item>summary{padding:18px 0;font-size:14px}.dataset-actions{gap:8px}.dataset-actions .btn{font-size:11px;padding:9px 11px}.guide-content{padding-left:0;padding-right:0}.footer-inner{gap:20px}.topbar{flex-wrap:wrap}.mobile-dock{padding-bottom:max(8px,env(safe-area-inset-bottom))}.site-footer{padding-bottom:105px}.tool-actions{flex-wrap:wrap}.preferences{max-width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}

/* Embedded SOC palette follows the host preference. */
:host([data-theme="light"]) .app{--bg:#f5f7fa;--panel:#fff;--panel2:#edf3f7;--stroke:#d2dfe8;--text:#14263a;--muted:#526b80;--teal:#007e70;--blue:#21649d;background:var(--bg);color:var(--text)}
:host([data-theme="light"]) .app :is(.panel,.metric,.hunt-card,.health-card,.insight-panel,.credential,.country-detail,.case,.side-foot,.map-detailbar){background:#fff;border-color:#d2dfe8}
:host([data-theme="light"]) .app :is(h1,h2,h3,strong,label,th){color:#14263a}:host([data-theme="light"]) .app :is(p,small,.muted){color:#526b80}:host([data-theme="light"]) .app :is(input,select,textarea,.output){background:#f5f8fb;color:#14263a;border-color:#b9c9d6}
:host([data-theme="light"]) .app .sidebar{background:#edf3f7}:host([data-theme="light"]) .app .navitem{color:#40576c}:host([data-theme="light"]) .app .navitem.active{background:#d7eee9;color:#006b60}:host([data-theme="light"]) .app .button,:host([data-theme="light"]) .app .smallbutton{background:#edf3f7;color:#14263a}:host([data-theme="light"]) .app .button.primary{background:#007e70;color:#fff}:host([data-theme="light"]) .app .message{background:#e6f4ef;color:#17594c;border-color:#add6c8}

:host([data-theme="light"]){color-scheme:light!important;--bg:#f5f7fa!important;--panel:#fff!important;--panel2:#edf3f7!important;--stroke:#d2dfe8!important;--text:#14263a!important;--muted:#526b80!important;--teal:#007e70!important;--blue:#21649d!important;color:#14263a!important}:host([data-theme="light"]) .app{background:#f5f7fa!important}:host([data-theme="light"]) .sidebar{background:#edf3f7!important}:host([data-theme="light"]) .navitem{color:#40576c}:host([data-theme="light"]) .workspace-title{color:#14263a!important}
