/* Analytics dashboard. Colors come from the kit tokens. */
.an-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0 0 8px}
.an-head h2{margin:0}
.an-seg{margin:0 0 8px}
#slot-analytics .an-seg .ui-tabs{flex-wrap:wrap;overflow:visible;background:var(--white);border:1px solid var(--grey);border-radius:12px;padding:4px;gap:4px}
#slot-analytics .an-seg .ui-tabs button{flex:0 0 auto;border:0;border-radius:8px;background:transparent;min-height:44px;padding:0 12px;color:var(--navy)}
#slot-analytics .an-seg .ui-tabs button.on{background:var(--navy);color:var(--white)}
.an-tools{display:flex;flex-direction:column;align-items:flex-start;gap:8px;margin:0 0 8px}
.an-picks{display:flex;flex-wrap:nowrap;gap:8px;align-items:center}
.an-picks .btn{min-height:44px;white-space:nowrap}
.an-badge{display:inline-flex;align-items:center;justify-content:center;min-width:22px;height:22px;margin-left:8px;padding:0 6px;border-radius:999px;background:var(--navy);color:var(--white);font-size:12px}
.an-active{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.an-active .ui-pill,.an-presets .ui-pill{min-height:44px}
.an-presets{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.an-frow{display:block;width:100%;margin:0 0 8px;text-align:left}
.ui-sheet{position:fixed;z-index:43;display:flex;flex-direction:column;max-height:min(80vh,640px)}
@media(min-width:760px){
 .ui-sheet{top:10vh;left:50%;right:auto;bottom:auto;transform:translateX(-50%);width:min(440px,calc(100vw - 24px));height:auto;border-radius:12px}
}
.kpis{display:flex;flex-direction:column;align-items:stretch;gap:8px;margin:0 0 12px}
.kpi{background:var(--white);border:1px solid var(--grey);border-top:4px solid var(--cyan);border-radius:12px;padding:12px;box-shadow:0 1px 2px rgba(27,20,100,.06);text-align:left;cursor:pointer;min-height:44px;color:var(--navy)}
.kpi.on{border-color:var(--navy)}
.kpi b{display:block;font-size:28px;color:var(--navy);line-height:1.1}
.kpi span{color:var(--navy);font-weight:700;font-size:14px}
.an-chart{background:var(--white);border:1px solid var(--grey);border-radius:12px;padding:12px;margin:0 0 12px}
.an-chart h3{margin:0 0 8px;color:var(--navy);font-size:16px}
.an-chart svg{width:100%;height:auto;display:block}
.an-charts{display:flex;flex-direction:column;gap:12px}
.vbar{fill:var(--blue)}
.hbar{fill:var(--cyan)}
.vnum,.vlbl,.hlbl,.hnum{fill:var(--navy);font-size:12px;font-weight:700}
.funnel{display:flex;flex-direction:column;gap:8px;width:100%;border:0;background:transparent;padding:0;cursor:pointer;text-align:left}
.frow{display:grid;grid-template-columns:minmax(0,7rem) 1fr auto;gap:8px;align-items:center;min-height:44px;color:var(--navy);font-weight:700}
.frow svg{width:100%;height:14px}
.frow:nth-child(1) .fbar{fill:var(--navy)}
.frow:nth-child(2) .fbar{fill:var(--blue)}
.frow:nth-child(3) .fbar{fill:var(--cyan)}
#slot-analytics h2,#slot-analytics h3{color:var(--navy)}
