*{box-sizing:border-box}body{margin:0;background:#07111f;color:#e7eef7;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{min-height:100vh;background:radial-gradient(circle at 85% -10%,rgba(34,211,238,.09),transparent 30%),#07111f}.topbar{height:76px;padding:14px 28px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #20344d;position:sticky;top:0;z-index:20;background:rgba(7,17,31,.94);backdrop-filter:blur(12px)}.brand{display:flex;gap:12px;align-items:center}.brand-mark{width:42px;height:42px;border:1px solid #22d3ee;border-radius:12px;display:grid;place-items:center;color:#22d3ee;font-weight:800}.brand-name{font-size:22px;font-weight:800}.brand-sub{font-size:11px;color:#8ea4bb;letter-spacing:.08em;text-transform:uppercase}.env-badge,.badge{display:inline-block;padding:5px 9px;border-radius:999px;border:1px solid #20344d;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.env-badge{margin-left:6px}.env-badge.muted{color:#8ea4bb}.dash-tabs{padding:0 20px;background:#0a1626;border-bottom:1px solid #20344d}.tab{background:transparent!important;color:#8ea4bb!important;border:0!important;padding:14px 12px!important;font-size:12px!important}.tab--selected{color:#e7eef7!important;border-bottom:2px solid #22d3ee!important}.filter-bar{display:flex;gap:10px;flex-wrap:wrap;padding:16px 28px;border-bottom:1px solid #20344d;background:#091522}.filter-block{min-width:145px}.filter-block.wide{min-width:230px}.filter-label{display:block;color:#8ea4bb;font-size:10px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 5px}.Select-control,.Select-menu-outer,.Select-value-label,.Select-placeholder{background:#0d1b2a!important;color:#e7eef7!important;border-color:#20344d!important}.Select-menu-outer{z-index:100}.btn-primary,.btn-secondary{height:38px;border-radius:8px;padding:0 14px;border:1px solid #20344d;cursor:pointer}.btn-primary{background:#22d3ee;color:#07111f;font-weight:800}.btn-secondary{background:#102238;color:#e7eef7}.hero,.story-hero{margin:24px 28px;padding:28px;border:1px solid #20344d;border-radius:16px;background:linear-gradient(135deg,#0d1b2a,#102238);display:flex;justify-content:space-between;gap:30px}.hero h1,.story-hero h1{font-size:34px;line-height:1.08;margin:7px 0 12px;max-width:760px}.hero p,.story-hero p{color:#aabbd0;max-width:820px;font-size:15px;line-height:1.55}.hero-score,.story-score{min-width:190px;text-align:right}.hero-number{font-size:58px;font-weight:900;line-height:1}.hero-suffix{font-size:13px;color:#8ea4bb}.eyebrow{font-size:10px;letter-spacing:.14em;color:#22d3ee;font-weight:800;text-transform:uppercase}.caption,.panel-subtitle{color:#8ea4bb;font-size:11px;line-height:1.45}.badge-row{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.badge-cyan{color:#22d3ee;border-color:#22d3ee}.badge-violet{color:#a78bfa;border-color:#a78bfa}.badge-amber{color:#fbbf24;border-color:#fbbf24}.badge-neutral{color:#8ea4bb}.kpi-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 28px 24px}.kpi-card{background:#0d1b2a;border:1px solid #20344d;border-radius:12px;padding:16px}.kpi-label{font-size:10px;color:#8ea4bb;text-transform:uppercase;letter-spacing:.09em;display:flex;align-items:center;gap:5px}.kpi-info{cursor:help;color:#5c728a;font-size:11px;line-height:1}.kpi-info:hover{color:#22d3ee}.signal-legend{cursor:help;color:#8ea4bb;font-size:10px;letter-spacing:.04em;margin-left:10px}.signal-icon,.sd-signal-icon{cursor:help}.kpi-value{font-size:27px;font-weight:850;margin:7px 0}.kpi-delta{font-size:11px;color:#8ea4bb}.tone-cyan{border-top:2px solid #22d3ee}.tone-violet{border-top:2px solid #a78bfa}.tone-amber{border-top:2px solid #fbbf24}.tone-green{border-top:2px solid #4ade80}.section-title-wrap{margin:28px 28px 12px}.section-title{font-size:21px;font-weight:800}.row{display:flex;gap:14px;margin:0 28px 14px;flex-wrap:wrap}.panel{background:#0d1b2a;border:1px solid #20344d;border-radius:14px;padding:16px;min-width:0}.col-5{flex:5}.col-6{flex:6}.col-7{flex:7}.col-8{flex:8}.col-12{flex:12}.panel-title{font-size:15px;font-weight:750}.panel-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:5px}.story-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 28px 20px}.story-card{border:1px solid #20344d;border-radius:14px;padding:18px;background:#0d1b2a;min-height:190px}.story-cyan{border-left:3px solid #22d3ee}.story-violet{border-left:3px solid #a78bfa}.story-amber{border-left:3px solid #fbbf24}.story-card h3{margin:10px 0 8px;font-size:17px}.story-card p{color:#b5c4d5;font-size:13px;line-height:1.5}.story-impact{color:#d7e3f0;font-size:12.5px;line-height:1.5;margin:2px 0 10px;font-style:italic}.story-evidence{font-size:11px;color:#8ea4bb;margin:10px 0}.story-action{color:#e7eef7;font-size:12px;font-weight:650}.story-reference{min-height:300px;padding:16px}.next-actions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:0 28px 28px}.next-actions>div{display:flex;gap:14px;background:#0d1b2a;border:1px solid #20344d;border-radius:12px;padding:16px}.action-num{color:#22d3ee;font-weight:900}.next-actions h3{margin:0 0 5px}.next-actions p{margin:0;color:#8ea4bb;font-size:12px;line-height:1.5}.insight-callout{padding:18px;border:1px solid #20344d;border-radius:12px;background:#0d1b2a}.big-inline{font-size:46px;margin:0 0 5px}.export-bar{margin:0 28px 12px;display:flex;align-items:center;justify-content:space-between}.chat-panel{margin:28px;border:1px solid #20344d;border-radius:16px;padding:20px;background:linear-gradient(135deg,#0d1b2a,#0a1626)}.chat-panel h2{margin:4px 0}.chat-input{width:100%;min-height:70px;margin:12px 0;background:#07111f;color:#e7eef7;border:1px solid #20344d;border-radius:8px;padding:12px;font-family:inherit}.chat-answer{margin-top:14px;padding:14px;border-radius:10px;background:#07111f;border:1px solid #20344d}.footer{text-align:center;color:#61768c;padding:20px;font-size:10px;border-top:1px solid #20344d;margin-top:30px}@media(max-width:900px){.kpi-row,.story-grid,.next-actions{grid-template-columns:1fr 1fr}.hero,.story-hero{flex-direction:column}.hero-score,.story-score{text-align:left}.col-5,.col-6,.col-7,.col-8,.col-12{flex:1 1 100%}}@media(max-width:600px){.kpi-row,.story-grid,.next-actions{grid-template-columns:1fr}.topbar{padding:12px 16px}.filter-bar,.hero,.story-hero,.row,.section-title-wrap,.kpi-row,.story-grid,.next-actions,.chat-panel{margin-left:16px;margin-right:16px}}

/* v4 GEO + ASK BOTINSIGHTS stability layer */
#tab-content{position:relative;z-index:1;min-width:0;overflow:visible}
.grid-shell{position:relative;z-index:0;width:100%;max-width:100%;overflow:hidden;border:1px solid #20344d;border-radius:10px;background:#0d1b2a}
.grid-shell .ag-root-wrapper{border:0!important;border-radius:10px;overflow:hidden}
.grid-shell .ag-header,.grid-shell .ag-header-row,.grid-shell .ag-paging-panel{background:#102238!important;color:#e7eef7!important}
.grid-shell .ag-header-cell-text,.grid-shell .ag-cell,.grid-shell .ag-paging-panel{color:#d9e5f2!important}
.grid-shell .ag-row{background:#0d1b2a!important;border-color:#20344d!important}
.grid-shell .ag-row-odd{background:#0a1626!important}
.grid-shell .ag-row-hover{background:#152941!important}
.grid-shell .ag-floating-filter{background:#0d1b2a!important}
.grid-shell .ag-floating-filter-input{background:#07111f!important;color:#e7eef7!important;border:1px solid #20344d!important}
.grid-shell .ag-paging-button,.grid-shell .ag-page-size .ag-wrapper{color:#e7eef7!important}
.chat-fab{position:fixed;right:24px;bottom:22px;z-index:1100;height:46px;padding:0 18px;border:1px solid #22d3ee;border-radius:999px;background:#0d1b2a;color:#e7eef7;font-weight:800;box-shadow:0 12px 35px rgba(0,0,0,.38);cursor:pointer}
.chat-fab:hover{background:#102238;box-shadow:0 14px 42px rgba(34,211,238,.16)}
.chat-overlay{position:fixed;inset:0;z-index:1050;display:flex;align-items:flex-end;justify-content:flex-end;padding:24px;pointer-events:none;background:rgba(0,0,0,0);transition:background .16s ease}
.chat-overlay--open{pointer-events:auto;background:rgba(0,0,0,.28)}
.chat-overlay--closed{display:none}
.chat-card{width:min(520px,calc(100vw - 32px));max-height:min(720px,calc(100vh - 110px));overflow:auto;border:1px solid #2b4562;border-radius:16px;background:#0b1828;box-shadow:0 24px 80px rgba(0,0,0,.55);padding:20px}
.chat-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.chat-head-copy{min-width:0}
.chat-head h2{margin:4px 0 5px}
.chat-close{width:34px;height:34px;flex:0 0 34px;border:1px solid #38506a;border-radius:8px;background:#102238;color:#e7eef7;font-size:22px;line-height:1;cursor:pointer}
.chat-close:hover{background:#182d46}
.chat-input{resize:vertical;min-height:92px;max-height:220px}
.chat-actions{display:flex;align-items:center;gap:12px}
.chat-answer{max-height:330px;overflow:auto}
.footer{position:relative;z-index:1}
@media(max-width:700px){.chat-overlay{padding:12px}.chat-card{width:100%;max-height:calc(100vh - 80px)}.chat-fab{right:16px;bottom:16px}}

/* filter bar: keep the date-range popup and dropdown menus above #tab-content (z-index:1) */
.filter-bar{position:relative;z-index:30;align-items:flex-end}
.filter-block{display:flex;flex-direction:column;justify-content:flex-end}
.Select-control{min-height:38px!important;height:38px!important;display:flex!important;align-items:center!important}
.DateRangePickerInput,.DateRangePickerInput__withBorder{height:38px;display:flex!important;align-items:center}
.DateInput{width:auto}.DateInput_input{width:96px!important;padding:6px 8px!important;font-size:13px!important;text-align:center}.DateRangePickerInput_arrow{padding:0 2px!important}.DateRangePickerInput_arrow_svg{width:16px!important;height:16px!important}
.DateRangePicker_picker{z-index:40!important;background:#0d1b2a!important;border:1px solid #20344d;border-radius:10px;box-shadow:0 20px 45px rgba(0,0,0,.55)}
.CalendarMonth,.CalendarMonthGrid,.DayPicker,.DayPicker_transitionContainer,.DayPickerNavigation,.CalendarMonth_caption{background:#0d1b2a!important;color:#e7eef7!important}
.CalendarDay,.CalendarDay__default{background:#0d1b2a!important;color:#e7eef7!important;border:1px solid #16283c!important}
.CalendarDay__selected,.CalendarDay__selected_span,.CalendarDay__selected_start,.CalendarDay__selected_end,.CalendarDay__hovered_span{background:#22d3ee!important;color:#07111f!important;border-color:#22d3ee!important}
.CalendarDay__blocked_out_of_range{color:#3c4c60!important}
.DayPicker_weekHeader,.DayPicker_weekHeader_ul{color:#8ea4bb!important}
.DateInput,.DateInput_input{background:#0d1b2a!important;color:#e7eef7!important;border-bottom:1px solid #20344d!important}
.DateRangePickerInput,.DateRangePickerInput__withBorder{background:#0d1b2a!important;border:1px solid #20344d!important;border-radius:8px}
.DateRangePickerInput_arrow_svg{fill:#8ea4bb!important}
.DayPickerNavigation_button__default{border-color:#20344d!important;background:#0d1b2a!important}
.DayPickerNavigation_svg__horizontal{fill:#e7eef7!important}

/* dropdown options: the menu is VIRTUALIZED with a FIXED row height (optionHeight), so a label
   that wraps to a 2nd/3rd line overflows into the next row and the text visually stacks (the long
   production "Unknown Bots (High Rate Threshold …)" / Subvertical labels did exactly this). Force
   each option onto ONE line with an ellipsis so it always fits its row exactly -> never overlaps.
   line-height matches dd()'s optionHeight to vertically center the text; the option's title
   attribute still exposes the full label on hover. */
.VirtualizedSelectOption{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;padding:0 10px;line-height:38px}
.VirtualizedSelectFocusedOption{background:#152941!important}
.Select-menu-outer{max-height:340px!important}
.Select-menu{max-height:340px!important}
/* the selected value in the closed control: single-line + ellipsis too, so a long chosen label
   never wraps and blows out the fixed-height control. */
.Select--single .Select-value{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* branded indeterminate progress bar shown by dcc.Loading (custom_spinner) while a tab's
   warehouse queries run. Indeterminate (not a fake % ) because the render is a fan-out of
   several server-side aggregates -- an honest "working" sweep, not a misleading fixed rate. */
.bi-loader{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:90px 0;min-height:380px}
.bi-loader-bar{width:min(420px,60vw);height:6px;border-radius:999px;background:#102238;overflow:hidden;position:relative;box-shadow:inset 0 0 0 1px #20344d}
.bi-loader-fill{position:absolute;top:0;height:100%;width:38%;border-radius:999px;background:linear-gradient(90deg,#22d3ee,#a78bfa);animation:bi-indeterminate 1.15s ease-in-out infinite}
@keyframes bi-indeterminate{0%{left:-40%}50%{left:32%}100%{left:100%}}
.bi-loader-text{color:#8ea4bb;font-size:11px;letter-spacing:.14em;text-transform:uppercase}

/* v5 STORYTELLING LAYER — narrative banner, self-narrating insight lines, inline metric
   highlights, confidence tags, live dot. Adopts the patterns that make the sibling
   ai-bot-radar app read as a story rather than a static grid, using only CSS + existing markup. */
.story-banner{margin:22px 28px 10px;padding:20px 24px;border:1px solid #20344d;border-radius:16px;background:linear-gradient(135deg,#0f2033,#0a1626);position:relative;overflow:hidden}
.story-banner::after{content:"";position:absolute;right:-40px;top:-60px;width:220px;height:220px;background:radial-gradient(circle,rgba(34,211,238,.14),transparent 65%);pointer-events:none}
.banner-headline{font-size:26px;line-height:1.2;margin:6px 0 6px;font-weight:850;max-width:900px}
.banner-sub{color:#aabbd0;font-size:13px;max-width:820px;margin:0}
.hi-cyan{color:#22d3ee}.hi-violet{color:#a78bfa}.hi-amber{color:#fbbf24}.hi-green{color:#4ade80}
.insight-line{display:flex;align-items:flex-start;gap:10px;justify-content:space-between;font-size:13px;line-height:1.5;color:#cdd9e8;padding:9px 0;border-bottom:1px dashed #1c2f47}
.insight-line:last-child{border-bottom:0}
.insight-line.tone-cyan{border-left:3px solid #22d3ee}.insight-line.tone-violet{border-left:3px solid #a78bfa}.insight-line.tone-amber{border-left:3px solid #fbbf24}.insight-line.tone-green{border-left:3px solid #4ade80}
.insight-line{padding-left:10px}
.conf-tag{flex:0 0 auto;font-size:9px;letter-spacing:.08em;text-transform:uppercase;padding:2px 7px;border-radius:999px;border:1px solid #20344d;color:#8ea4bb;white-space:nowrap}
.conf-high{color:#4ade80;border-color:#4ade80}.conf-medium{color:#fbbf24;border-color:#fbbf24}.conf-low{color:#fb7185;border-color:#fb7185}
.chat-cite{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
/* live/updated pulse dot in the topbar */
.live-dot{display:inline-block;width:8px;height:8px;border-radius:999px;background:#4ade80;margin-right:6px;box-shadow:0 0 0 0 rgba(74,222,128,.6);animation:bi-pulse 2s infinite}
@keyframes bi-pulse{0%{box-shadow:0 0 0 0 rgba(74,222,128,.55)}70%{box-shadow:0 0 0 7px rgba(74,222,128,0)}100%{box-shadow:0 0 0 0 rgba(74,222,128,0)}}

/* ============ v6 EXECUTIVE PULSE (cockpit) ============ */
.pulse-shell{display:grid;grid-template-columns:1fr 320px;gap:16px;margin:0 22px}
.pulse-main{min-width:0}
.pulse-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:0 6px 16px}
.pulse-card{background:#0d1b2a;border:1px solid #20344d;border-radius:14px;padding:16px;display:flex;flex-direction:column;gap:6px;position:relative;transition:transform .12s ease,box-shadow .12s ease}
.pulse-card:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(0,0,0,.35)}
.pulse-cyan{border-top:2px solid #22d3ee}.pulse-violet{border-top:2px solid #a78bfa}.pulse-amber{border-top:2px solid #fbbf24}.pulse-green{border-top:2px solid #4ade80}
.pulse-head{display:flex;gap:10px;align-items:flex-start}
.pulse-icon{font-size:18px;line-height:1}
.pulse-title{font-size:14px;font-weight:750}
.pulse-sub{font-size:11px;color:#8ea4bb;line-height:1.3}
.pulse-metric{font-size:40px;font-weight:900;line-height:1.05;margin-top:4px}
.pulse-cyan .pulse-metric{color:#22d3ee}.pulse-violet .pulse-metric{color:#a78bfa}.pulse-amber .pulse-metric{color:#fbbf24}.pulse-green .pulse-metric{color:#4ade80}
.pulse-delta{font-size:11px;color:#8ea4bb}
.pulse-spark{margin:2px 0}
.pulse-impl{font-size:11.5px;color:#b5c4d5;line-height:1.4;display:flex;flex-direction:column;gap:2px;border-top:1px solid #16283c;padding-top:8px}
.pulse-impl-label{font-size:9px;letter-spacing:.1em;text-transform:uppercase;color:#8ea4bb;font-weight:700}
.pulse-action{margin-top:auto;font-size:12px;font-weight:700;color:#22d3ee;cursor:pointer;padding-top:6px}
.evidence-strip{background:#0a1626;border:1px solid #20344d;border-radius:14px;padding:14px;height:fit-content;position:sticky;top:96px}
.ev-head{display:flex;flex-direction:column;gap:2px;margin-bottom:10px}
.ev-head .ev-sub{font-size:12px;color:#c7d4e3;font-weight:650}
.ev-item{padding:10px 0;border-bottom:1px solid #16283c}
.ev-item:last-child{border-bottom:0}
.ev-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.ev-name{font-size:12.5px;font-weight:650}
.ev-meta{font-size:10px;color:#8ea4bb}
.ev-value{font-size:13px;font-weight:800;color:#e7eef7}
.ev-bottom{display:flex;align-items:center;gap:8px;margin-top:4px}
.ev-delta{font-size:11px;color:#4ade80;flex:0 0 auto;min-width:44px}
.ev-spark{flex:1}
@media(max-width:1100px){.pulse-shell{grid-template-columns:1fr}.evidence-strip{position:static}.pulse-grid{grid-template-columns:1fr 1fr}}

/* ============ v6 STORY LAB ============ */
.lab-header{display:flex;justify-content:space-between;align-items:flex-end;margin:18px 28px 12px;gap:16px}
.lab-header h1{font-size:26px;margin:4px 0 0}
.lab-actions{display:flex;gap:10px}
.lab-shell{display:grid;grid-template-columns:320px 1fr;gap:16px;margin:0 28px 18px}
.signals-list{display:flex;flex-direction:column;gap:10px}
.signals-head{display:flex;flex-direction:column;gap:2px;margin-bottom:2px}
.signals-head .ev-sub{font-size:12px;color:#c7d4e3;font-weight:650}
.signal-card{text-align:left;background:#0d1b2a;border:1px solid #20344d;border-radius:12px;padding:12px 14px;cursor:pointer;color:#e7eef7;display:flex;flex-direction:column;gap:5px;transition:border-color .12s,background .12s}
.signal-card:hover{border-color:#2b4562;background:#102238}
.signal-active{border-color:#22d3ee;background:#102238}
.signal-top{display:flex;justify-content:space-between;align-items:center}
.signal-icon{font-size:13px}.signal-icon.tone-cyan{color:#22d3ee}.signal-icon.tone-violet{color:#a78bfa}.signal-icon.tone-amber{color:#fbbf24}.signal-icon.tone-green{color:#4ade80}
.signal-title{font-size:13.5px;font-weight:750;line-height:1.25}
.signal-desc{font-size:11.5px;color:#9fb0c4;line-height:1.4}
.signal-tag{font-size:10px;color:#8ea4bb;text-transform:uppercase;letter-spacing:.06em}
.sev{font-size:9px;letter-spacing:.06em;text-transform:uppercase;padding:2px 8px;border-radius:999px;font-weight:800}
.sev-high{color:#fb7185;border:1px solid #fb7185}.sev-med{color:#fbbf24;border:1px solid #fbbf24}.sev-low{color:#8ea4bb;border:1px solid #20344d}
.story-detail{background:#0d1b2a;border:1px solid #20344d;border-radius:16px;padding:22px;min-width:0}
.sd-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.sd-head h2{font-size:22px;margin:0}
.sd-lead{color:#aabbd0;font-size:14px;line-height:1.5;margin:8px 0 16px}
.sd-block{margin:14px 0}
.sd-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:#22d3ee;font-weight:800;margin-bottom:6px}
.sd-block p{color:#cdd9e8;font-size:13.5px;line-height:1.55;margin:0}
.sd-cols{display:grid;grid-template-columns:2fr 1fr;gap:14px}
.sd-conf{background:#0a1626;border:1px solid #20344d;border-radius:12px;padding:12px}
.sd-conf-val{font-size:20px;font-weight:850;margin:2px 0 6px}
.sd-action{background:linear-gradient(135deg,#101f16,#0a1626);border:1px solid #1f3a2a;border-radius:12px;padding:14px}
.ev-table{width:100%;border-collapse:collapse;font-size:12.5px}
.ev-table th{text-align:left;color:#8ea4bb;font-weight:650;font-size:10px;text-transform:uppercase;letter-spacing:.06em;padding:6px 8px;border-bottom:1px solid #20344d}
.ev-table td{padding:7px 8px;border-bottom:1px solid #16283c;color:#cdd9e8}
.ev-table .ev-val{color:#e7eef7;font-weight:750}
.ev-table .ev-src{color:#8ea4bb;font-size:11px}
.blog-out{margin:0 28px 28px}
.blog-card{background:#0d1b2a;border:1px solid #20344d;border-left:3px solid #a78bfa;border-radius:14px;padding:22px}
.blog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.blog-md h1{font-size:26px;margin:6px 0}.blog-md h2{font-size:17px;margin:16px 0 6px;color:#e7eef7}
.blog-md p,.blog-md li{color:#c7d4e3;font-size:14px;line-height:1.65}
.blog-md strong{color:#22d3ee}
@media(max-width:1000px){.lab-shell{grid-template-columns:1fr}.sd-cols{grid-template-columns:1fr}}

/* ============ v6 ASK BOTINSIGHTS (chips + answer) ============ */
.starter-chips,.followups{margin:12px 0}
.fu-label{font-size:10px;letter-spacing:.1em;text-transform:uppercase;color:#8ea4bb;font-weight:700;margin-bottom:6px}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.ask-chip{background:#102238;border:1px solid #2b4562;color:#dbe7f4;border-radius:999px;padding:7px 12px;font-size:12px;cursor:pointer;transition:background .12s,border-color .12s;text-align:left}
.ask-chip:hover{background:#16304c;border-color:#22d3ee;color:#fff}
.answer-text{font-size:15px;line-height:1.6;color:#eaf2fb;margin:6px 0 10px}
.ev-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.ev-chip{font-size:11px;color:#9fb0c4;background:#0a1626;border:1px solid #20344d;border-radius:6px;padding:3px 8px}
.followups{border-top:1px solid #1c2f47;padding-top:12px}

/* ── v7: Akamai branded loader + pulse-action button + Types-of-Bots drill ───────── */
:root{--ak-blue:#009cde;--ak-orange:#ff9933;--ak-navy:#002856}
.ak-loader{position:fixed;inset:0;z-index:9999;display:flex;align-items:center;justify-content:center;
  background:radial-gradient(ellipse 80% 60% at 50% 40%,rgba(0,156,222,.18) 0%,transparent 60%),
    radial-gradient(ellipse 50% 40% at 70% 70%,rgba(255,153,51,.12) 0%,transparent 55%),
    linear-gradient(160deg,#001428 0%,#002856 45%,#0a0f1a 100%);
  transition:opacity .4s ease,visibility .4s ease}
.ak-loader.hide{opacity:0;visibility:hidden;pointer-events:none}
.ak-loader-card{width:min(420px,90vw);text-align:center;padding:40px 36px 32px;border-radius:20px;
  background:linear-gradient(145deg,rgba(0,40,86,.85) 0%,rgba(10,15,26,.95) 100%);
  border:1px solid rgba(0,156,222,.35);
  box-shadow:0 0 0 1px rgba(255,153,51,.08),0 25px 60px rgba(0,0,0,.55),0 0 80px rgba(0,156,222,.15),inset 0 1px 0 rgba(255,255,255,.06);
  transform:perspective(800px) rotateX(2deg)}
.ak-wave{width:72px;height:48px;margin:0 auto 18px}
.ak-wave img{width:72px;height:48px;filter:drop-shadow(0 0 12px rgba(0,156,222,.6));animation:ak-float 2.4s ease-in-out infinite}
@keyframes ak-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.ak-brand{font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;color:var(--ak-blue);font-weight:600;margin-bottom:8px}
.ak-title{font-size:1.25rem;font-weight:700;color:#fff;margin:0 0 6px;line-height:1.3}
.ak-sub{font-size:.85rem;color:rgba(255,255,255,.55);margin-bottom:28px}
.ak-progress-wrap{position:relative;height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden;margin-bottom:14px}
.ak-progress-bar{position:absolute;top:0;height:100%;width:35%;border-radius:999px;
  background:linear-gradient(90deg,var(--ak-blue),#00b4f0,var(--ak-orange));
  box-shadow:0 0 16px rgba(0,156,222,.7);animation:ak-slide 1.15s ease-in-out infinite}
@keyframes ak-slide{0%{left:-40%}100%{left:100%}}
.ak-orbit{display:flex;justify-content:center;gap:8px;margin-top:22px}
.ak-orbit span{width:7px;height:7px;border-radius:50%;background:var(--ak-blue);animation:ak-pulse 1.2s ease-in-out infinite}
.ak-orbit span:nth-child(2){animation-delay:.2s;background:#00b4f0}
.ak-orbit span:nth-child(3){animation-delay:.4s;background:var(--ak-orange)}
@keyframes ak-pulse{0%,100%{opacity:.3;transform:scale(.8)}50%{opacity:1;transform:scale(1.25)}}

/* pulse-action is now a real button (navigates to a tab) but keeps the same look */
.pulse-action-btn{background:none;border:none;padding:0;font:inherit;cursor:pointer}
.pulse-action{color:#22d3ee;font-weight:600;font-size:13px;margin-top:auto;text-align:left}
.pulse-action-btn:hover{color:#7fe7ff;text-decoration:underline}

/* Types-of-Bots drill-down: clickable tier chips + Top-5 bots panel */
.cat-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.cat-chip{background:#102238;border:1px solid #2b4562;color:#dbe7f4;border-radius:999px;padding:6px 11px;font-size:12px;cursor:pointer;transition:background .12s,border-color .12s}
.cat-chip:hover{background:#16304c;border-color:#22d3ee;color:#fff}
.cat-drill{min-height:120px}
.drill-head{font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:#8ea4bb;margin-bottom:8px}
.drill-row{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px solid #14243a}
.drill-name{flex:1;color:#eaf2fb;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.drill-val{color:#22d3ee;font-weight:600;font-size:13px;font-variant-numeric:tabular-nums}
.drill-pct{color:#9fb0c4;font-size:11px;width:44px;text-align:right}

/* ---- v8: Akamai inline spinner · Ask chart · Story signal band · shareable blog ---- */
/* Akamai-branded inline loader (Ask answer + Blog draft) */
.ak-inline{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:34px 16px;text-align:center}
.ak-inline-wave{width:74px;height:48px;animation:ak-bob 1.6s ease-in-out infinite}
@keyframes ak-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
.ak-inline-brand{font-size:10px;letter-spacing:.22em;color:#009cde;font-weight:700}
.ak-inline-msg{font-size:13px;color:#9fb0c4}
.ak-inline-bar{width:180px;height:4px;border-radius:4px;background:#12233a;overflow:hidden}
.ak-inline-fill{height:100%;width:40%;border-radius:4px;background:linear-gradient(90deg,#009cde,#22d3ee,#ff9933);animation:ak-inline-slide 1.15s ease-in-out infinite}
@keyframes ak-inline-slide{0%{margin-left:-42%}100%{margin-left:102%}}

/* Ask answer: inline evidence chart + sources block */
.ev-chart{margin:10px 0 6px;background:#0b1929;border:1px solid #14243a;border-radius:10px;padding:6px 8px}
.chat-cite{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:10px}
.cite-label{font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:#8ea4bb}
.cite-note{font-size:11px;color:#6b7f96;flex-basis:100%}

/* Story Lab: SIGNAL band + numbered sources + confidence meter */
.sd-signal{display:flex;align-items:center;gap:16px;background:linear-gradient(90deg,#0c1c30,#0a1626);border:1px solid #16294140;border-radius:12px;padding:14px 16px}
.sd-signal-icon{font-size:26px;flex:0 0 auto}
.sd-signal-copy{flex:1;min-width:0}
.sd-metric-label{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#8ea4bb;margin-bottom:2px}
.sd-signal-desc{color:#c7d5e6;font-size:13px;margin:2px 0 0}
.sd-signal-nums{display:flex;gap:22px;flex:0 0 auto;text-align:right}
.sd-metric-big{font-size:26px;font-weight:700;color:#22d3ee;font-variant-numeric:tabular-nums;line-height:1.1}
.sd-metric-big.sd-metric-alt{color:#c084fc;font-size:22px}
.sd-metric-cap{font-size:11px;color:#9fb0c4;max-width:150px;margin-left:auto}
.sd-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.src-chip{display:inline-flex;align-items:center;gap:6px;font-size:11px;color:#c7d5e6;background:#0e1f34;border:1px solid #17304c;border-radius:20px;padding:3px 10px}
.src-num{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:50%;background:#009cde;color:#04121f;font-size:10px;font-weight:700}
.ev-num{color:#6b7f96;width:28px;text-align:center;font-variant-numeric:tabular-nums}
.sd-conf-pct{margin-left:8px;color:#9fb0c4;font-weight:700}
.sd-conf-bar{height:5px;border-radius:4px;background:#12233a;overflow:hidden;margin:8px 0}
.sd-conf-fill{height:100%;border-radius:4px}
.sd-conf-fill.sev-high{background:#34d399}.sd-conf-fill.sev-med{background:#fbbf24}.sd-conf-fill.sev-low{background:#f87171}

/* Shareable blog: hero KPIs, embedded figures, Copy/Download */
.blog-actions{margin-left:auto;display:flex;gap:8px}
.blog-figs{margin:10px 0 4px}
.blog-figs .panel{background:#0b1929;border:1px solid #14243a}

/* Active Types-of-Bots tier chip */
.cat-chip-active{background:#009cde33;border-color:#22d3ee;color:#eaf9ff}

/* ---- v9: loader visibility (empty output boxes gave the spinner nothing to overlay) ---- */
/* Give the Loading wrappers real height so the Akamai spinner is always visible while working. */
.blog-loading-wrap,.chat-loading-wrap{position:relative;min-height:180px;display:block}
.blog-out{min-height:180px}
.chat-answer{min-height:120px}
/* Empty-state placeholders (also guarantee height before the first generation/answer) */
.blog-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:6px;min-height:180px;text-align:center;border:1px dashed #1c3350;border-radius:14px;
  background:linear-gradient(180deg,#0b1929,#0a1524);padding:24px}
.blog-ph-icon{font-size:30px;filter:drop-shadow(0 0 8px #009cde66)}
.blog-ph-title{color:#c7d5e6;font-size:14px;font-weight:600}
.chat-answer-ph{display:flex;align-items:center;justify-content:center;min-height:120px;
  color:#6b7f96;font-size:12.5px;text-align:center;border:1px dashed #1c3350;border-radius:12px;
  background:#0b1929}

/* Geo drill: Country -> Verified category -> Top bots (3-level, mirrors Types-of-Bots) */
.geo-drill{display:flex;flex-direction:column;gap:10px}
.drill-step{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#8ea4bb;margin:2px 0}
.geo-drill-cols{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:6px}
.geo-drill-col{background:#0b1929;border:1px solid #14243a;border-radius:12px;padding:12px}
@media (max-width:900px){.geo-drill-cols{grid-template-columns:1fr}}

/* Story Lab priority ranking (impact score = magnitude × confidence) */
.prio-badge{font-size:10px;font-weight:700;letter-spacing:.04em;color:#9fb0c4;background:#0e1f34;
  border:1px solid #17304c;border-radius:6px;padding:1px 6px;margin-right:auto}
.prio-badge.prio-top{color:#04121f;background:linear-gradient(90deg,#22d3ee,#009cde);border-color:#22d3ee}
.sd-head-tags{display:flex;align-items:center;gap:8px}
/* Story Lab: Related Signals cross-links */
.sd-related{display:flex;flex-wrap:wrap;gap:8px}
.rel-chip{display:inline-flex;align-items:center;gap:8px;background:#0e1f34;border:1px solid #17304c;
  border-radius:10px;padding:7px 11px;cursor:pointer;color:#c7d5e6;font-size:12.5px;text-align:left;
  transition:border-color .15s,background .15s}
.rel-chip:hover{border-color:#22d3ee;background:#0f2740}
.rel-chip-title{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* v10 — Story Lab: per-story KPI proof strip, hero chart, shareable line + Share menu */
.sd-chart .panel{background:#0b1929;border:1px solid #14243a}
.sd-share{background:linear-gradient(135deg,rgba(255,153,51,.10),rgba(0,156,222,.08));
  border:1px solid rgba(255,153,51,.34);border-radius:14px}
.sd-share-quote{margin:6px 0 12px;padding:0;border:0;color:#fff;font-size:1.12rem;font-weight:600;line-height:1.4}
.share-menu{margin-top:6px}
/* Branded export header + methodology/date footer (appear in the downloaded PNG) */
.sd-export-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:0 0 10px;margin-bottom:10px;border-bottom:1px solid rgba(0,156,222,.28)}
.sd-brand{display:inline-flex;align-items:center;gap:8px;font-weight:800;font-size:12.5px;
  letter-spacing:.04em;color:#e7eef7}
.sd-wave{width:20px;height:12px;display:inline-block;background:
  linear-gradient(135deg,#009cde,#ff9933);border-radius:3px}
.sd-window{font-size:11.5px;color:#8ea4bb;font-weight:600}
.sd-export-foot{margin-top:14px;padding-top:10px;border-top:1px solid rgba(255,255,255,.08);
  font-size:10.5px;line-height:1.5;color:#7e93a8}
/* Blog discoverability pill */
.blog-ready{background:linear-gradient(90deg,#22d3ee,#009cde);color:#04121f;border:0;border-radius:10px;
  font-weight:700;font-size:12.5px;padding:9px 14px;cursor:pointer;animation:blogpulse 1.6s ease-in-out 3}
.blog-ready.hide{display:none}
@keyframes blogpulse{0%,100%{box-shadow:0 0 0 0 rgba(34,211,238,.5)}50%{box-shadow:0 0 0 8px rgba(34,211,238,0)}}
/* Print → PDF: show ONLY the active story card, branded, when the user saves a story as PDF */
@media print{
  body{background:#fff !important}
  .topbar,.dash-tabs,#filter-wrap,.chat-fab,.chat-overlay,#ak-loader,.signals-list,
  .lab-header,.blog-out,.blog-loading-wrap,.footer,.share-menu,.sd-related,.sd-block.sd-share{display:none !important}
  .story-detail,.story-detail-inner{color:#111 !important}
  .story-detail-inner h2,.sd-metric-big,.sd-metric-label,.sd-label,.ev-val{color:#002856 !important}
  .story-detail-inner p,.ev-table td{color:#222 !important}
}

/* ---- Panel expand / full-screen (Streamlit-style) ---- */
.panel-expand{background:transparent;border:1px solid #20344d;color:#8ea4bb;width:26px;height:26px;border-radius:7px;cursor:pointer;font-size:14px;line-height:1;flex:0 0 auto;padding:0;transition:all .15s}
.panel-expand:hover{color:#22d3ee;border-color:#22d3ee;background:rgba(34,211,238,.08)}
body.has-fullscreen-panel{overflow:hidden}
.fullscreen-backdrop{position:fixed;inset:0;background:rgba(3,9,18,.82);z-index:900}
.panel--fullscreen{position:fixed!important;inset:2.5vh 2.5vw!important;z-index:1000!important;margin:0!important;width:auto!important;max-width:none!important;overflow:auto;box-shadow:0 24px 80px rgba(0,0,0,.6);background:#0b1929;border:1px solid #20344d}
.panel--fullscreen .dash-graph,.panel--fullscreen .js-plotly-plot{height:calc(95vh - 90px)!important}
.panel--fullscreen .panel-expand::after{content:" Esc";font-size:10px;color:#8ea4bb}

/* ---- Ask: "In plain terms" callout ---- */
.plain-callout{display:flex;gap:10px;align-items:flex-start;margin:12px 0;padding:11px 13px;border-radius:11px;background:rgba(34,211,238,.07);border:1px solid rgba(34,211,238,.28)}
.plain-label{flex:0 0 auto;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#22d3ee;padding-top:2px}
.plain-text{color:#dbe8f5;font-size:14px;line-height:1.5}

/* ---- Ask overlay: expand / zoom ---- */
.chat-head-btns{display:flex;gap:8px;align-items:center}
.chat-expand{width:34px;height:34px;flex:0 0 34px;border:1px solid #38506a;border-radius:8px;background:#102238;color:#e7eef7;font-size:15px;line-height:1;cursor:pointer;transition:all .15s}
.chat-expand:hover{background:#182d46;color:#22d3ee;border-color:#22d3ee}
.chat-overlay--expanded{align-items:center;justify-content:center}
.chat-overlay--expanded .chat-card{width:min(1180px,calc(100vw - 48px));max-width:none;height:calc(100vh - 48px);max-height:calc(100vh - 48px)}
