/* ===== Analytics refinement: quieter type, one hairline per card, no cell dividers ===== */
#anWrap{padding:14px 20px 28px !important;gap:14px !important}
#anWrap .ext-section,#anWrap .chart-panel,#anWrap .kpi-grid--bordered{border-radius:12px !important;overflow:hidden}
#anWrap .section-head,#anWrap .kpi-section-head,#anWrap .chart-head{padding:14px 20px !important;font-size:13px !important;font-weight:600 !important;letter-spacing:-.01em}
#anWrap .section-head .title,#anWrap .kpi-section-head{font-size:13px !important;font-weight:600 !important;letter-spacing:-.01em}
#anWrap .section-head .meta,#anWrap .kpi-section-head .meta{font-size:11.5px !important;font-weight:450 !important}
/* KPI cells: whitespace instead of rules */
#anWrap .kpi-grid{border:0 !important;border-radius:0 !important;background:transparent !important}
#anWrap .kpi{padding:16px 20px 18px !important;gap:7px !important;border-right:0 !important;border-bottom:0 !important;border-left:0 !important;border-top:0 !important}
#anWrap .k-label{font-size:12px !important;font-weight:450 !important;letter-spacing:0 !important}
#anWrap .k-row{align-items:baseline !important;gap:8px !important}
#anWrap .k-val{font-size:23px !important;font-weight:600 !important;line-height:1.05 !important;letter-spacing:-.035em !important;font-variant-numeric:tabular-nums}
#anWrap .k-link{font-size:12px !important;font-weight:500 !important}
/* Delta: plain coloured text, no pill */
#anWrap .kpi-badge{background:transparent !important;border:0 !important;padding:0 !important;font-size:12px !important;font-weight:500 !important;letter-spacing:-.01em}
/* Secondary metric strip */
#anWrap .kpi-grid--sub{border-top:1px solid #F1F2F5 !important}
#anWrap .kpi--sm{padding:13px 20px !important;gap:5px !important}
#anWrap .kpi--sm .k-label{font-size:11.5px !important;font-weight:450 !important}
#anWrap .kpi--sm .k-val{font-size:15px !important;font-weight:600 !important;letter-spacing:-.02em !important}
#anWrap .kpi--sm .kpi-badge{font-size:11px !important}
/* Charts */
#anWrap .chart-body{padding:16px 18px 14px !important;height:auto !important;min-height:260px}
#anWrap .chart-body .an-area{opacity:0;transition:opacity .5s ease .5s}
#anWrap .chart-panel.in-view .chart-body .an-area{opacity:1}
#anWrap .chart-body svg{width:100% !important;height:auto !important;aspect-ratio:796/224;max-height:300px !important;margin:0 auto;display:block}
#anWrap .chart-head svg{opacity:.75}
/* Insight banners */
#anWrap .info-banner{border-radius:10px !important;padding:12px 16px !important;font-size:12.5px !important;font-weight:450 !important}
#anWrap .info-banner b{font-weight:600 !important}
/* Light-theme colours */
body:not(.theme-dark) #anWrap .ext-section,body:not(.theme-dark) #anWrap .chart-panel,body:not(.theme-dark) #anWrap .kpi-grid--bordered{border:1px solid #ECEEF2 !important;background:#fff !important;box-shadow:none !important}
/* The header keeps only its bottom rule — its base border-left/right/top sat
   just inside the .ext-section card border and read as a doubled stroke. */
#anWrap .section-head,#anWrap .kpi-section-head,#anWrap .chart-head{border-left:0 !important;border-right:0 !important;border-top:0 !important;border-radius:0 !important}
body:not(.theme-dark) #anWrap .section-head,body:not(.theme-dark) #anWrap .kpi-section-head,body:not(.theme-dark) #anWrap .chart-head{background:#fff !important;border-bottom:1px solid #F1F2F5 !important;color:#101828 !important}
body:not(.theme-dark) #anWrap .section-head .meta,body:not(.theme-dark) #anWrap .kpi-section-head .meta{color:#98A2B3 !important}
body:not(.theme-dark) #anWrap .k-label{color:#667085 !important}
body:not(.theme-dark) #anWrap .k-val{color:#101828 !important}
body:not(.theme-dark) #anWrap .kpi--sm .k-label{color:#98A2B3 !important}
body:not(.theme-dark) #anWrap .kpi--sm .k-val{color:#344054 !important}
body:not(.theme-dark) #anWrap .kpi-badge.up{color:#067647 !important}
body:not(.theme-dark) #anWrap .kpi-badge.down{color:#B42318 !important}
body:not(.theme-dark) #anWrap .kpi-grid--sub{background:#FCFCFD !important}
body:not(.theme-dark) #anWrap .info-banner{background:#FAFAFB !important;border:1px solid #ECEEF2 !important;color:#475467 !important}
/* Dark-theme parity */
body.theme-dark #anWrap .ext-section,body.theme-dark #anWrap .chart-panel,body.theme-dark #anWrap .kpi-grid--bordered{border:1px solid #2A2D33 !important;background:#1F2023 !important}
body.theme-dark #anWrap .section-head,body.theme-dark #anWrap .kpi-section-head,body.theme-dark #anWrap .chart-head{background:#1F2023 !important;border-bottom:1px solid #2A2D33 !important}
body.theme-dark #anWrap .kpi-grid--sub{background:#1B1D20 !important;border-top-color:#2A2D33 !important}
body.theme-dark #anWrap .kpi-badge{background:transparent !important}
