/* Progressive ECharts panels keep the existing analysis layout and fallback SVG. */
.analysis-chart-host{width:100%;min-width:0;box-sizing:border-box;position:relative}.analysis-trend{height:374px;margin-top:4px}.analysis-types{margin:4px 0 8px}.analysis-chart-ready .an-trend-svg,.analysis-chart-ready>.an-type-list{display:none}.analysis-chart-ready .an-trend-tools{display:none}.analysis-chart-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:12px;padding-top:13px;border-top:1px solid #edf1f6}.analysis-chart-tools>span{font-size:10px;line-height:1.8;color:#9aabc1}.an-page button.analysis-table-button{display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;max-width:100%;margin:0;padding:7px 12px;min-height:30px;border:1px solid #dce5f1;background:#f8fafe;border-radius:8px;color:#627fa6;font-size:10px;font-weight:500;line-height:1.5;white-space:normal}.analysis-chart-note,.analysis-table-caption{font-size:11px;line-height:1.9;color:#92a4bb;margin:13px 0}.analysis-table-caption{margin:0 0 18px}.analysis-chart-host:focus-visible{outline:2px solid #9eb6df;outline-offset:3px}
@media(min-width:1700px){.analysis-trend{height:402px}}
@media(max-width:1250px){.analysis-trend{height:358px}}
@media(max-width:800px){.analysis-trend{height:326px}.analysis-chart-tools{gap:8px}.an-page button.analysis-table-button{font-size:11px}}
.analysis-chart-mode{display:inline-flex;align-items:center;flex:0 0 auto;gap:2px;padding:2px;border:1px solid var(--sy-border,#e7ebf4);border-radius:5px;background:var(--sy-surface-alt,#f8f9fc)}.analysis-chart-mode button{display:flex;align-items:center;justify-content:center;min-height:25px;min-width:43px;padding:3px 8px;border:0;border-radius:3px;background:transparent;color:var(--sy-muted,#9298a6);font-family:inherit;font-size:11px;line-height:19px;cursor:pointer;box-shadow:none}.analysis-chart-mode button[aria-pressed=true]{background:var(--sy-surface,#fff);color:var(--sy-primary,#5f7cf4);box-shadow:0 1px 3px #293c5310}.analysis-chart-tools .analysis-chart-mode{margin-right:auto}.analysis-chart-tools .analysis-chart-mode+span{display:none}
.sy-admin[data-route=home] .visual-card.home-chart-card .card-h{padding:14px 18px 8px}.sy-admin[data-route=home] .visual-card.home-chart-card .card-b{padding:7px 18px 14px}.home-chart-ready>.trend-svg,.home-chart-ready>.chart-tools,.home-chart-ready>.chart-note,.home-chart-ready>.status-wrap{display:none!important}.home-chart-enhancement{width:100%;min-width:0}.home-chart-controls{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 6px}.home-trend-legend{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.home-trend-legend button{display:flex;align-items:center;gap:6px;padding:3px 0;min-height:24px;margin:0;border:0;background:none;color:var(--sy-muted,#9298a6);font-family:inherit;font-size:11px;line-height:18px;cursor:pointer}.home-trend-legend i{width:9px;height:9px;display:block;border-radius:3px}.home-trend-legend button[aria-pressed=false]{opacity:.35}.analysis-home-trend{height:270px}.analysis-home-status{height:224px}.home-status-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 15px;margin-top:0}.home-status-legend button{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:31px;padding:4px 6px;margin:0;border:0;border-radius:4px;background:transparent;font-family:inherit;font-size:11px;line-height:20px;cursor:pointer;color:var(--sy-muted,#9298a6);text-align:left}.home-status-legend button:hover,.home-status-legend button:focus-visible{background:var(--sy-primary-soft,#eef1ff);outline:0}.home-status-legend button>span{display:flex;align-items:center;gap:7px;white-space:nowrap}.home-status-legend i{display:block;width:8px;height:8px;flex:none;border-radius:3px}.home-status-legend b{font-size:13px;line-height:20px;color:var(--sy-text,#30343f);font-weight:600;font-variant-numeric:tabular-nums}.home-status-legend small{font-size:10px;font-weight:400;color:var(--sy-muted,#9298a6)}.sy-admin .home-chart-fallback-tools{padding-top:9px;margin-top:10px;border-color:var(--sy-border,#e7ebf4);gap:8px}.sy-admin .home-chart-fallback-tools>span{font-size:10px;color:var(--sy-muted,#9298a6)}.sy-admin button.analysis-table-button{display:inline-flex;align-items:center;justify-content:center;min-height:26px;width:auto;min-width:0;margin:0;padding:3px 8px;border:1px solid var(--sy-border,#e7ebf4);border-radius:4px;background:var(--sy-surface,#fff);color:var(--sy-primary,#5f7cf4);font-family:inherit;font-size:11px;font-weight:400;line-height:18px;cursor:pointer}.home-chart-controls button:focus-visible,.analysis-chart-mode button:focus-visible,.sy-admin .analysis-table-button:focus-visible{outline:2px solid var(--sy-primary,#5f7cf4);outline-offset:2px}
@media(min-width:1700px){.analysis-home-trend{height:284px}.analysis-home-status{height:238px}}
@media(min-width:800px) and (max-width:1199px){.home-status-content{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);align-items:center;gap:26px}.home-status-legend{grid-template-columns:1fr;gap:7px}.analysis-home-status{height:250px}.analysis-home-trend{height:275px}}
@media(max-width:799px){.analysis-home-trend{height:245px}.home-chart-controls{align-items:flex-start;gap:8px}.home-trend-legend{gap:6px}.home-trend-legend button{font-size:10px}.analysis-home-status{height:220px}}
@media(prefers-reduced-motion:reduce){.home-chart-enhancement *, .analysis-chart-host *{transition:none!important;animation:none!important}}

.home-status-metric{display:flex;align-items:center;justify-content:flex-end;gap:10px!important}.home-status-metric em{min-width:40px;text-align:right;font-style:normal;font-size:11px;font-weight:400;color:var(--sy-muted,#9298a6);font-variant-numeric:tabular-nums}

/* Continuous flat pie with a nearby single-column legend. */
.sy-admin[data-route=home] .visual-card.home-chart-card{display:flex;flex-direction:column}.sy-admin[data-route=home] .visual-card.home-chart-card .card-b{flex:1;display:flex;flex-direction:column}.home-chart-card .home-chart-enhancement{flex:1}.home-chart-card .home-chart-fallback-tools{margin-top:auto;padding-top:10px}.home-status-total{flex:0 0 auto;margin-left:auto;color:var(--sy-muted,#9298a6);font-size:12px;line-height:20px;white-space:nowrap}#statusVisual{container-name:status-chart;container-type:inline-size}.home-status-content{display:flex;align-items:center;justify-content:center;gap:14px;min-height:250px}.home-status-content .analysis-home-status{flex:0 1 220px;width:220px;min-width:180px;height:224px}.home-status-content .home-status-legend{display:grid;grid-template-columns:minmax(0,1fr);flex:0 1 190px;width:190px;max-width:190px;gap:7px;margin:0}.home-status-content .home-status-legend button{gap:7px;padding:4px 2px}.home-status-metric{gap:7px!important}.home-status-metric em{min-width:40px}
@container status-chart (max-width:400px){.home-status-content{flex-direction:column;gap:0}.home-status-content .analysis-home-status{flex:none;width:220px;height:224px}.home-status-content .home-status-legend{flex:none;width:100%;max-width:none;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding-bottom:7px}}

.home-data-dialog {
 width:min(520px,calc(100% - 32px));
 max-height:calc(100dvh - 32px);
 box-sizing:border-box;
 margin:auto;
 padding:0;
 border:1px solid var(--sy-border,#e5e9f3);
 border-radius:12px;
 background:var(--sy-surface,#fff);
 color:var(--sy-text,#303849);
 box-shadow:0 16px 48px #273b5626;
}
.home-data-dialog::backdrop{background:#15213766}
.home-data-dialog>header{
 display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
 padding:12px 16px;border-bottom:1px solid var(--sy-border,#e5e9f3);
}
.home-data-dialog h2{margin:0;font-size:16px;line-height:24px}
.home-data-dialog :is(header p,.home-data-note){color:var(--sy-muted,#768397);font-size:12px;line-height:20px}
.home-data-dialog header p{margin:2px 0 0}
.home-data-dialog [data-home-data-close]{
 flex:none;display:grid;place-items:center;width:32px;height:32px;padding:0;
 border:0;border-radius:6px;background:var(--sy-muted-surface,#f5f7fb);color:inherit;font-size:20px;
 cursor:pointer;
}
.home-data-dialog :is([data-home-data-close],.home-data-table button):hover{background:var(--sy-primary-soft,#eef1ff)}
.home-data-dialog :is([data-home-data-close],.home-data-table button):focus-visible{
 outline:2px solid var(--sy-primary,#5f7cf4);outline-offset:1px;
}
.home-data-note{margin:8px 16px 6px}
.home-data-table-wrap{
 margin:0 16px 14px;overflow:auto;
 border:1px solid var(--sy-border,#e5e9f3);border-radius:8px;
}
.home-data-table{width:100%;border-collapse:collapse;font-size:13px;line-height:20px}
.home-data-table :is(th,td){padding:5px 12px;text-align:left;border-bottom:1px solid var(--sy-border,#e5e9f3)}
.home-data-table :is(th,td):not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.home-data-table tbody th{font-weight:400}
.home-data-table :is(thead,tfoot){background:var(--sy-muted-surface,#f5f7fb)}
.home-data-table thead th{font-size:12px;font-weight:600}
.home-data-table tfoot{font-weight:600}
.home-data-table tbody tr{height:34px}
.home-data-table tbody tr:hover > *{background:var(--sy-muted-surface,#f5f7fb)}
.home-data-table :is(tbody,tfoot):last-child tr:last-child > *{border-bottom:0}
.home-data-share{
 display:inline-grid;grid-template-columns:56px 6ch;align-items:center;gap:8px;white-space:nowrap;
}
.home-data-share-track{
 height:4px;overflow:hidden;border-radius:999px;background:var(--sy-border,#e5e9f3);
}
.home-data-share-track i{display:block;height:100%;border-radius:inherit;background:var(--sy-primary,#5f7cf4)}
@media(max-width:380px){
 .home-data-share{grid-template-columns:auto}
 .home-data-share-track{display:none}
}
.home-data-table button{
 padding:2px 4px;margin:-2px -4px;border:0;border-radius:4px;background:transparent;
 color:var(--sy-primary,#5f7cf4);font:inherit;text-decoration:underline;text-underline-offset:2px;cursor:pointer;
}
.home-data-empty{margin:0;padding:26px 18px;text-align:center;color:var(--sy-muted,#768397);font-size:13px}

.an-trend-controls{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:6px 9px;min-width:0}
.an-trend-panel .an-panel-head:has(.an-trend-controls){flex-wrap:wrap;gap:10px}
.an-page .an-trend-controls .analysis-table-button{padding:4px 9px;min-height:30px;white-space:nowrap}

.an-trend-context{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;margin:0 0 6px}
.an-trend-context .an-trend-scope{margin:0;font-size:12px;line-height:1.6;color:var(--sy-muted,#65758f)}
.an-trend-context [data-an-usage-focus][aria-pressed=true]{background:var(--sy-primary-soft,#eef2ff);border-color:var(--sy-primary,#637bfa)}

#commerceModal .commerce-modal:has(.analysis-types-table){width:min(1000px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important}
#commerceModal .modal-b:has(.analysis-types-table){padding:14px 20px 18px}
#commerceModal .modal-b:has(.analysis-types-table) .analysis-table-caption{margin:0 0 12px;color:var(--sy-text-secondary,#5e6b80);font-size:12px}
#commerceModal .analysis-types-table{table-layout:fixed;min-width:740px;background:var(--sy-surface,#fff)}
#commerceModal .analysis-types-compared{min-width:530px}
#commerceModal .analysis-types-table :is(th,td){padding:10px 14px;border:0;border-bottom:1px solid var(--sy-border,#e4e9f2);line-height:1.5;vertical-align:middle}
#commerceModal .analysis-types-table thead th{font-size:12px;font-weight:600;color:var(--sy-text-secondary,#58667b);background:var(--sy-surface-alt,#f4f6fa);box-shadow:none}
#commerceModal .analysis-types-table th:first-child{width:24%}
#commerceModal .analysis-types-table:not(.analysis-types-compared) thead th:nth-child(2){width:11%}
#commerceModal .analysis-types-table:not(.analysis-types-compared) thead th:nth-child(3){width:17%}
#commerceModal .analysis-types-table tbody tr{--types-row-bg:var(--sy-surface,#fff);background:var(--types-row-bg)}
#commerceModal .analysis-types-table tbody tr:nth-child(even){--types-row-bg:color-mix(in srgb,var(--sy-surface,#fff) 65%,var(--sy-surface-alt,#f2f5fa))}
#commerceModal .analysis-types-table tbody th{background:var(--types-row-bg);color:var(--sy-text,#354051);font-weight:600;white-space:normal;overflow-wrap:anywhere}
#commerceModal .analysis-types-table tbody tr:last-child > *{border-bottom:0}
#commerceModal .analysis-types-table :is(td,th):not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
#commerceModal .analysis-types-table .analysis-type-value{color:var(--sy-text,#354051);font-weight:500}
#commerceModal .analysis-types-table [data-tone=issue]{color:var(--sy-primary,#4b57cf)!important;font-weight:600!important}
#commerceModal .analysis-types-table [data-tone=usage]{color:var(--sy-success,#117e6b)!important;font-weight:600!important}
#commerceModal .analysis-types-table [data-tone=cost]{color:var(--sy-warning,#986015)!important}
#commerceModal .analysis-types-table [data-tone=decline]{color:var(--sy-danger,#ae4259)!important}
#commerceModal .analysis-types-table [data-tone=zero]{color:var(--sy-muted,#798599)!important;font-weight:400!important}
#commerceModal .analysis-types-table .analysis-types-empty{text-align:center;color:var(--sy-text-secondary,#5e6b80)}
@media(max-width:760px){
 #commerceModal .modal-b:has(.analysis-types-table){padding-inline:12px}
 #commerceModal .analysis-types-table :is(th,td){padding-inline:11px}
 #commerceModal .analysis-types-table th:first-child{width:140px;position:sticky;left:0;z-index:1}
 #commerceModal .analysis-types-table thead th:first-child{z-index:3}
}

.analysis-conversion{height:100px;margin:0;overflow:hidden}
