/* Summary-only overrides: the shared marketplace styles still contain light cards. */
body.sio-dark #content .ml-workspace[data-view=analysis] {
 display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;
}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-toolbar {
 grid-row:1;grid-column:2;min-height:0;padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;
}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-context-line {
 grid-row:1;grid-column:1;align-self:center;display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-start;min-height:0;padding:0;margin:0;gap:4px 12px;background:transparent;border:0;font-size:11px;line-height:1.4;
}
body.sio-dark #content .ml-workspace[data-view=analysis] #ml-section-content {grid-column:1/-1;min-width:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-range-form {margin:0;gap:6px}
body.sio-dark #content .ml-workspace[data-view=analysis] :is(.ml-currency-note,.ml-query-status) {color:#b9cadb}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis {gap:10px;margin:0;grid-template-columns:repeat(4,minmax(0,1fr))}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card {
 min-width:0;min-height:100px;padding:13px 16px;border:1px solid #3d5064;border-radius:16px;background:#1b2632;color:#edf5ff;box-shadow:none;container-type:inline-size;
}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card:first-child {background:#192e43;border-color:#486b8e;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card strong {font-size:clamp(14px,11cqw,30px);line-height:1.15;letter-spacing:-.6px;color:#f1f7ff;margin:8px 0 5px;white-space:nowrap;overflow-wrap:normal}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card :is(label,small) {color:#c2d0df;font-size:12px;line-height:1.35}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card.ml-profit-kpi.positive {background:#15382e;border-color:#3b8167}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card.ml-profit-kpi.positive strong {color:#69ffc1}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card.ml-profit-kpi.negative {background:#3b202b;border-color:#9c5368}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card.ml-profit-kpi.negative strong {color:#ff94ad}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card.ml-profit-kpi.pending {background:#342e1c;border-color:#8a7738}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card.ml-profit-kpi.pending strong {color:#ffdf68}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-meta {display:flex;flex-wrap:wrap;gap:6px 18px;padding:7px 2px;margin:0;background:transparent;font-size:12px;color:#b9cadb}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-meta b {color:#f1f7ff;margin-left:4px}
body.sio-dark #content .ml-workspace[data-view=analysis] :is(.ml-inline-status,.ml-summary-query-note) {padding:8px 12px;margin:0 0 9px;min-height:0;border:1px solid #56624a;border-radius:10px;background:#222d28;color:#e2edc5;font-size:12px;line-height:1.45}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-inline-status summary {padding:0;min-height:0;color:#ffdf68}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-query-note {display:flex;align-items:flex-start;gap:12px;text-align:left;background:#232b35;border-color:#46576b;color:#d1ddea}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-query-note details {flex:1;min-width:0;background:none;border:0;padding:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-query-note summary {display:list-item;padding:0;color:#ffdf68;font-size:12px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-query-note p {margin:7px 0 0;color:#c3d3e2}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-summary-query-note button {padding:0;min-height:20px;flex:none;color:#a5d6ff;background:none}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-revenue-panel {margin:0;padding:16px 18px;border-radius:16px;background:#17212b;border-color:#3b4b5d}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-panel-heading {margin:0;padding:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-panel-heading h2 {margin:0;font-size:19px;color:#f1f7ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-revenue-grid {grid-template-columns:minmax(180px,.6fr) minmax(0,1.4fr);gap:16px;margin:10px 0 8px;align-items:center}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-column {display:block;min-width:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-stage {width:100%;max-width:300px;margin:0 auto;aspect-ratio:1;container-type:inline-size}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-stage svg {display:block;width:100%;height:auto}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-center {inset:auto;left:50%;top:50%;transform:translate(-50%,-50%);width:46%;height:auto;min-height:0;gap:5px;overflow:hidden}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-center strong {display:block;white-space:nowrap;overflow-wrap:normal;line-height:1.15;color:#f1f7ff;font-size:clamp(14px,8cqw,28px)}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-center .ml-center-amount {font-size:clamp(11px,calc(65cqw / var(--amount-length,10)),24px);letter-spacing:-.3px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-center :is(small,span) {color:#c3d3e2;font-size:11px;line-height:1.3;margin:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-center span {display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-readout[hidden] {display:none}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-list-heading {font-size:10px;padding:0 0 5px;color:#b9cadb}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-rows {max-height:320px;overflow:auto;scrollbar-width:thin;scrollbar-color:#566f87 transparent}
body.sio-dark #content .ml-workspace[data-view=analysis] button.ml-mix-row {grid-template-columns:38px minmax(0,1fr) auto;min-height:58px;padding:8px;gap:10px;border:1px solid transparent;border-radius:10px;background:transparent;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] button.ml-mix-row:is(:hover,.is-active,:focus-visible) {background:#293c4e;border-color:#6384a4}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-row .ml-photo {width:38px;height:42px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-name b {font-size:13px;line-height:1.35;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] :is(.ml-mix-name small,.ml-mix-value small) {font-size:11px;color:#b9cadb}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-value b {font-size:14px;color:#f1f7ff;white-space:nowrap}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-meter {height:3px;background:#3d4d5e;margin-top:5px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-concentration {margin:6px 0 0;color:#b9cadb;font-size:11px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-product-detail {margin:0;padding:12px 0 0;border:0;border-top:1px solid #3b4b5d;border-radius:0;background:transparent;min-height:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-detail-heading {margin:0 0 9px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-detail-heading h3 {font-size:16px;margin:3px 0;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-stats {gap:8px;margin:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-stats>div {padding:9px 12px;border-radius:10px;background:#213040;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-stats strong {font-size:21px;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-stats strong.danger {color:#ff94ad}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-stats small {color:#bdcddd;font-size:11px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-cost-detail {margin-top:8px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends {margin:12px 0;gap:12px;background:none;border:0;padding:0}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends>div {padding:14px 16px;border-radius:16px;border:1px solid #3b4b5d;background:#17212b}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends .chart-heading h4 {font-size:17px;color:#edf5ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends .sales-chart-wrap {margin-top:6px;padding-bottom:38px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends .sales-chart-wrap:after {display:none}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends .chart-tooltip {color:#c3d3e2;background:#293c4e;border:1px solid #58748e;min-height:0;padding:7px 10px}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends .chart-tooltip strong {color:#f1f7ff}
body.sio-dark #content .ml-workspace[data-view=analysis] .ml-trends .chart-hint {margin:4px 0 0;color:#b9cadb}
.ml-insights-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:12px 0}
.ml-insight-column {min-width:0;border:1px solid #3b4b5d;border-radius:16px;padding:13px;background:#17212b;color:#edf5ff}
.ml-insight-column>header {display:flex;align-items:center;justify-content:space-between;margin:0 0 10px;padding:0;gap:8px}
.ml-insight-column>header h2 {margin:0;font-size:16px;color:#edf5ff;letter-spacing:-.2px}
.ml-insight-column>header>span {font-size:12px;color:#d8e8f7;background:#304356;border-radius:7px;padding:3px 7px}
.ml-insight-list {display:grid;gap:7px;max-height:370px;overflow:auto;scrollbar-width:thin}
body.sio-dark .ml-workspace .ml-insight-card {display:grid;grid-template-columns:38px minmax(0,1fr) 14px;align-items:center;gap:10px;width:100%;padding:11px 8px;text-align:left;background:#22313f;border:1px solid #40576c;border-left:3px solid #ffd84a;border-radius:11px;color:#f1f7ff;cursor:pointer}
body.sio-dark .ml-workspace .ml-insight-card.danger {border-left-color:#ff708f}
body.sio-dark .ml-workspace .ml-insight-card.good {border-left-color:#35efa8}
body.sio-dark .ml-workspace .ml-insight-card.growth {border-left-color:#66c8ff}
body.sio-dark .ml-workspace .ml-insight-card:is(:hover,:focus-visible) {background:#30465a;outline:2px solid #91caff;outline-offset:-2px}
.ml-insight-card .ml-photo {width:38px;height:46px}
.ml-insight-name {min-width:0;display:grid;gap:4px}
.ml-insight-name b {color:#f1f7ff;font-size:13px;line-height:1.35}
.ml-insight-name small {font-size:11px;line-height:1.4;color:#d4e0ed}
.ml-insight-name>span {font-size:11px;color:#b6cddd}
.ml-insight-arrow {color:#c2e6ff;font-size:18px}
.ml-insight-empty {margin:6px 0;padding:10px 2px;color:#b9cadb;font-size:12px;line-height:1.5}
.ml-insight-dialog-heading {display:flex;gap:14px;align-items:center;padding:0 30px 14px 0}
.ml-insight-dialog-heading>.ml-photo {width:64px;height:76px;flex:none}
.ml-insight-dialog-heading h2 {color:#f1f7ff;margin:7px 0 5px;font-size:23px;line-height:1.25}
.ml-insight-dialog-heading p {color:#b9cadb;font-size:12px;margin:0}
.ml-insight-badge {display:inline-flex;padding:4px 9px;border-radius:7px;background:#4c411d;color:#ffe36d;font-size:12px}
.ml-insight-badge.danger {background:#512c39;color:#ffa5b9}
.ml-insight-badge.good {background:#1e4d3c;color:#7affcb}
.ml-insight-badge.growth {background:#204260;color:#9edbff}
.ml-insight-metrics {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:18px}
.ml-insight-metrics>div {background:#213040;border:1px solid #3d5267;border-radius:10px;padding:11px}
.ml-insight-metrics small {display:block;color:#bdcddd;font-size:11px;margin-bottom:6px}
.ml-insight-metrics strong {display:block;font-size:19px;color:#f1f7ff;overflow-wrap:anywhere}
.ml-insight-detail :is(h3,summary) {color:#f1f7ff;font-size:15px}
.ml-insight-detail h3 {margin:0 0 8px}
.ml-insight-detail :is(p,li) {font-size:13px;line-height:1.6;color:#ccdae7}
.ml-insight-detail p {margin:7px 0}
.ml-insight-detail ul {padding-left:19px;margin:7px 0}
.ml-insight-diagnosis {padding:14px;background:#202e3b;border-left:3px solid #66c8ff;border-radius:8px}
.ml-insight-next {padding:15px 0}
.ml-insight-detail details {background:transparent;border:0;border-top:1px solid #415369;border-radius:0;padding:12px 0}
.ml-insight-detail details>summary {cursor:pointer;padding:0;margin:0 0 10px}
.ml-insight-detail table {width:100%;font-size:12px}
.ml-insight-detail :is(th,td) {padding:10px 8px;color:#d9e7f4;border-color:#415369;background:transparent}
.ml-insight-detail th {color:#aac3d8}
.ml-insight-detail :is(th,td):not(:first-child) {text-align:right;white-space:nowrap}
@media(max-width:1000px){.ml-insights-grid{grid-template-columns:1fr}.ml-insight-list{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none}.ml-insight-empty{grid-column:1/-1}}
@media(max-width:700px){
 body.sio-dark #content .ml-workspace[data-view=analysis]{grid-template-columns:1fr;gap:8px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-toolbar{grid-row:1;grid-column:1;justify-content:flex-end}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-context-line{grid-row:2;grid-column:1;font-size:10px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card{padding:12px;min-height:94px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-analysis-kpis .card :is(label,small){font-size:11px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-revenue-grid{grid-template-columns:1fr;gap:8px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-donut-stage{max-width:250px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-revenue-panel{padding:13px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-name b{font-size:12px}
 body.sio-dark #content .ml-workspace[data-view=analysis] .ml-mix-value b{font-size:12px}
 .ml-insight-list{grid-template-columns:1fr}.ml-insight-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.ml-insight-dialog-heading h2{font-size:19px}
}
