/* Analytics migration only. All presentation inherits the approved public tokens. */
html[data-syn-ui="2"] .s2-analytics { display: grid; grid-template-columns: minmax(0,1fr); gap: 24px; min-width: 0; }
html[data-syn-ui="2"] .s2-analytics h2 { font-size: 1rem; font-weight: 600; letter-spacing: -.015em; }
html[data-syn-ui="2"] .s2-analytics .s2-panel { padding: 24px; gap: 16px; align-content: start; }
html[data-syn-ui="2"] .an-text-link { min-height: 36px; display: inline-flex; gap: 8px; align-items: center; color: var(--s2-muted); text-decoration: none; font-size: .875rem; }
html[data-syn-ui="2"] .an-kpis { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
html[data-syn-ui="2"] .an-kpis .s2-metric { padding: 20px; gap: 10px; }
html[data-syn-ui="2"] .an-kpis .s2-metric h2 { font-size: .8125rem; color: var(--s2-muted); font-weight: 400; }
html[data-syn-ui="2"] .an-kpis .s2-metric-value { font-size: 1.75rem; font-weight: 600; }
html[data-syn-ui="2"] .an-kpis .s2-muted { font-size: .8125rem; }
html[data-syn-ui="2"] .an-overview { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(0,1fr); gap: 20px; align-items: start; }
html[data-syn-ui="2"] .an-section-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
html[data-syn-ui="2"] .an-section-heading > div { display: grid; gap: 6px; }
html[data-syn-ui="2"] .an-section-heading > .s2-icon { color: var(--s2-muted); width: 19px; height: 19px; }
html[data-syn-ui="2"] .an-note { font-size: .875rem; color: var(--s2-muted); line-height: 1.6; }
html[data-syn-ui="2"] .an-canvas { position: relative; height: 300px; min-width: 0; }
html[data-syn-ui="2"] .an-trend-canvas { height: 205px; }
html[data-syn-ui="2"] .an-chest-canvas { height: 240px; }
html[data-syn-ui="2"] .an-chart-state { position: absolute; top: 30%; left: 12px; right: 12px; text-align: center; color: var(--s2-muted); font-size: .875rem; }
html[data-syn-ui="2"] .an-chart-key { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8125rem; color: var(--s2-muted); }
html[data-syn-ui="2"] .an-chart-key span::before { content: ''; display: inline-block; width: 12px; height: 4px; margin: 0 6px 3px 0; background: var(--s2-success); }
html[data-syn-ui="2"] .an-chart-key [data-key="quota"]::before { background: var(--s2-gold); height: 2px; }
html[data-syn-ui="2"] .an-status-list { display: grid; gap: 18px; margin-top: 12px; }
html[data-syn-ui="2"] .an-status-list > div { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
html[data-syn-ui="2"] .an-status-list strong { font-size: 1.5rem; font-weight: 600; }
html[data-syn-ui="2"] .an-status-segments { display: flex; gap: 3px; height: 6px; background: var(--s2-raised); border-radius: 6px; overflow: hidden; }
html[data-syn-ui="2"] .an-status-segments > span { flex-basis: 0; }
html[data-syn-ui="2"] .an-status-segments [data-state="green"] { background: var(--s2-success); }
html[data-syn-ui="2"] .an-status-segments [data-state="yellow"] { background: var(--s2-warning); }
html[data-syn-ui="2"] .an-status-segments [data-state="red"] { background: var(--s2-critical); }
html[data-syn-ui="2"] .an-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html[data-syn-ui="2"] .an-controls > label { min-width: 0; flex: 1; }
html[data-syn-ui="2"] .an-controls .s2-input { width: 100%; font-size: .875rem; }
html[data-syn-ui="2"] .an-controls > .an-search { flex: 1.5; position: relative; min-width: 150px; }
html[data-syn-ui="2"] .an-search > .s2-icon { width: 16px; position: absolute; top: 13px; left: 12px; color: var(--s2-muted); }
html[data-syn-ui="2"] .an-search input { padding-left: 38px; }
html[data-syn-ui="2"] .an-result { font-size: .8125rem; color: var(--s2-muted); line-height: 1.5; }
html[data-syn-ui="2"] .an-table-scroll { overflow: auto; max-height: 380px; min-width: 0; margin-top: 8px; scrollbar-color: var(--s2-control-border) var(--s2-surface); }
html[data-syn-ui="2"] .an-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
html[data-syn-ui="2"] .an-table caption { text-align: left; color: var(--s2-muted); padding: 12px 0; font-size: .8125rem; }
html[data-syn-ui="2"] .an-table th, html[data-syn-ui="2"] .an-table td { text-align: right; padding: 12px 14px; white-space: nowrap; border-bottom: 1px solid var(--s2-border); background: var(--s2-surface); }
html[data-syn-ui="2"] .an-table thead th { color: var(--s2-muted); font-size: .8125rem; font-weight: 500; position: sticky; top: 0; z-index: 3; background: var(--s2-raised); }
html[data-syn-ui="2"] .an-table tr > :first-child { text-align: left; min-width: 140px; max-width: 240px; white-space: normal; overflow-wrap: anywhere; }
html[data-syn-ui="2"] .an-table tbody th { font-weight: 500; }
html[data-syn-ui="2"] .an-table a { color: var(--s2-text); text-decoration: none; }
html[data-syn-ui="2"] .an-table a:hover { color: var(--s2-brand); }
html[data-syn-ui="2"] .an-table tbody tr:hover > *, html[data-syn-ui="2"] .an-table tbody tr:focus-within > * { background: var(--s2-raised); }
html[data-syn-ui="2"] .an-table .an-positive { color: var(--s2-success); }
html[data-syn-ui="2"] .an-table .an-negative { color: var(--s2-critical); }
html[data-syn-ui="2"] .an-risk-count { color: var(--s2-text); font-size: 1.5rem; font-weight: 600; }
html[data-syn-ui="2"] .an-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html[data-syn-ui="2"]:has(.s2-analytics) .s2-topbar { padding-block: 8px; }
html[data-syn-ui="2"]:has(.s2-analytics) .s2-topbar > time { font-size: .8125rem; }
@media (max-width: 75rem) {
  html[data-syn-ui="2"] .an-overview { grid-template-columns: 1fr; }
}
@media (max-width: 40rem) {
  html[data-syn-ui="2"] .s2-analytics { gap: 20px; }
  html[data-syn-ui="2"] .s2-analytics .s2-panel { padding: 18px; }
  html[data-syn-ui="2"] .an-kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  html[data-syn-ui="2"] .an-kpis .s2-metric { padding: 16px; }
  html[data-syn-ui="2"] .an-kpis .s2-metric-value { font-size: 1.5rem; }
  html[data-syn-ui="2"] .an-controls > .an-search { flex-basis: 100%; }
  html[data-syn-ui="2"] .an-controls > label { flex-basis: calc(50% - 5px); }
  html[data-syn-ui="2"] .an-table tr > :first-child { position: sticky; left: 0; z-index: 2; min-width: 120px; max-width: 140px; }
  html[data-syn-ui="2"] .an-table thead tr > :first-child { z-index: 4; }
  html[data-syn-ui="2"]:has(.s2-analytics) .s2-mobile-brand { flex: 1; }
  html[data-syn-ui="2"]:has(.s2-analytics) .s2-topbar > time { order: 4; width: 100%; }
}
