/* v7 charts + Home glass strip + morning brief placement */
:root{--ch-1:#2f55c4;--ch-sky:#4f7de0;--ch-mint:#1fa57b;--ch-butter:#d99a1a;--ch-rose:#d9486f;--ch-bar:#7f93c9;--ch-grid:rgba(100,116,139,.22);--ch-axis:#64748b;--ch-dot-ring:#fff}
:root[data-theme="dark"]{--ch-1:#7d9bea;--ch-sky:#7fa2ff;--ch-mint:#4fd1a3;--ch-butter:#f0bd4f;--ch-rose:#ff7a9c;--ch-bar:#8aa0d6;--ch-grid:rgba(148,163,184,.18);--ch-axis:#94a3b8;--ch-dot-ring:#14171c}
.v7-charts{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px;margin:16px 0}
.v7-cc{grid-column:span 6;background:var(--surface);border-radius:20px;padding:18px 20px 14px;box-shadow:var(--elev-1);min-width:0;display:flex;flex-direction:column;gap:6px}
.v7-cc.wide{grid-column:span 7}.v7-cc.hours{grid-column:span 5}
.v7-cc header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.v7-cc h3{margin:0;font-size:15px;font-weight:800}
.v7-cc header span{font-size:12.5px;color:var(--muted)}
.v7-leg{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;font-size:12px;color:var(--muted)}
.v7-leg span{display:inline-flex;align-items:center;gap:6px}
.v7-leg i{width:9px;height:9px;border-radius:50%;background:var(--ch-1)}
.v7-leg i.sky{background:var(--ch-sky)}.v7-leg i.mint{background:var(--ch-mint)}.v7-leg i.butter{background:var(--ch-butter)}.v7-leg i.rose{background:var(--ch-rose)}
.v7c{min-width:0}.v7c-wrap{position:relative;width:100%}
.v7c svg{display:block;overflow:visible;touch-action:pan-y}
.v7c-grid{stroke:var(--ch-grid);stroke-dasharray:3 5}
.v7c-ytick,.v7c-xtick{fill:var(--ch-axis);font:500 11.5px var(--font-body,system-ui)}
.v7c-line{stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.v7c-vgrid{stroke:var(--ch-grid);stroke-opacity:.55;stroke-dasharray:1 5;stroke-linecap:round}
.v7c-axis{stroke:var(--ch-axis);stroke-opacity:.5;stroke-width:1}
.v7c-axis.base{stroke-opacity:.7;stroke-width:1.2}
.v7c-unit{fill:var(--ch-axis);font:600 11px var(--font-body,system-ui);letter-spacing:.05em;text-transform:uppercase}
.v7c-pt{opacity:.9}
.v7c-guide{stroke:var(--ch-axis);stroke-opacity:.55;stroke-dasharray:3 4}
.v7c-bar{transition:fill .16s ease}
.v7c-fill{animation:v7Fade .9s ease .2s both}
@keyframes v7Fade{from{opacity:0}}
.v7c-end{animation:v7Fade .4s ease 1s both}.v7c-peak{animation:v7Fade .4s ease 1s both}
.v7c-avg{stroke:var(--ch-axis);stroke-opacity:.6;stroke-dasharray:2 5;stroke-linecap:round}
.v7c-avgbg{fill:#3a3f48}.v7c-avgtext{fill:#fff;font:600 11px var(--font-body,system-ui)}
.v7c-pillbg{fill:#14171c}.v7c-pilltext{fill:#fff;font:700 11.5px var(--font-body,system-ui)}
:root[data-theme="dark"] .v7c-pillbg{fill:#f2f3f6}:root[data-theme="dark"] .v7c-pilltext{fill:#14171c}
.v7c-tip{position:absolute;z-index:3;pointer-events:none;min-width:96px;padding:8px 11px;border-radius:12px;background:#14171c;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.28);font-size:12px;transition:left .08s ease,top .08s ease}
.v7c-tip .d{color:#aab2bd;margin-bottom:3px}
.v7c-tip .r{display:flex;align-items:center;gap:7px;line-height:1.5}
.v7c-tip .r i{width:8px;height:8px;border-radius:50%}
.v7c-tip .r span{color:#aab2bd}.v7c-tip .r b{font-size:14px;margin-left:auto;font-variant-numeric:tabular-nums}
.v7c-tip em{font-style:normal;font-weight:700;font-size:11px}.v7c-tip em.up{color:#6ee7b0}.v7c-tip em.dn{color:#fbbf6b}
:root[data-theme="dark"] .v7c-tip{background:#f2f3f6;color:#14171c}:root[data-theme="dark"] .v7c-tip .d,:root[data-theme="dark"] .v7c-tip .r span{color:#5b6472}
:root[data-theme="dark"] .v7c-tip em.up{color:#0f8a5b}:root[data-theme="dark"] .v7c-tip em.dn{color:#a8630a}
.v7c-empty{margin:40px 0;text-align:center;color:var(--muted);font-size:13px}
@media (prefers-reduced-motion:no-preference){
 .v7c-line{stroke-dasharray:1200;stroke-dashoffset:1200;animation:v7Draw 1.1s cubic-bezier(.2,.7,.2,1) .1s forwards}
 @keyframes v7Draw{to{stroke-dashoffset:0}}
 .v7c-bar{transform-origin:bottom;transform-box:fill-box;animation:v7Grow .6s cubic-bezier(.2,.7,.2,1) both}
 @keyframes v7Grow{from{transform:scaleY(.05);opacity:0}}
}
@media(max-width:1100px){.v7-cc,.v7-cc.wide,.v7-cc.hours{grid-column:span 12}}
@media(max-width:767px){.v7-cc{padding:14px 14px 10px;border-radius:18px}.v7-charts{gap:12px}.v7-cc header{flex-direction:column}.v7-leg{justify-content:flex-start}}

/* sparklines in KPI tiles */
.v7spark{display:block;margin-top:8px;opacity:.9;color:var(--ch-1)}
.v7spark svg{height:28px}

/* glass strip over the hero photo */
.hero .kpis{background:rgba(8,12,24,.64)!important;backdrop-filter:blur(18px) saturate(1.4);-webkit-backdrop-filter:blur(18px) saturate(1.4);border:1px solid rgba(255,255,255,.16);box-shadow:0 18px 50px rgba(0,0,0,.35)}
.hero .kpi{color:#fff;background:transparent}
.hero .kpi .k-l,.hero .kpi .k-s,.hero .kpi .k-u{color:rgba(255,255,255,.78)!important}
.hero .kpi .k-v{color:#fff!important}
.hero .v7spark{color:#a9c1ff}
.hero .ai-explain.v7-info{background:rgba(255,255,255,.12);color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.28)}

/* Home: the morning brief replaces the Insights card and the text-only advance/hour panel */
.home-brief-details{display:none!important}
#view:has(.ai-brief) #v6PageInsights{display:none!important}
.ai-brief{margin-bottom:16px}
/* export buttons never show on Home, and [hidden] must win over display:flex */
.v6-export-actions[hidden]{display:none!important}

.ai-brief .ai-basis{display:none}

/* Admissions page: the older chart styles must not touch the shared chart */
.v6-line-chart{padding:4px 0 0;overflow:visible}
.v6-line-chart .v7c svg{width:100%;max-width:none;min-width:0;max-height:none;height:auto}
.v6-line-chart .v7c text{fill:var(--ch-axis);font:500 11.5px var(--font-body,system-ui)}
.v6-line-chart .v7c text.v7c-unit{font:600 11px var(--font-body,system-ui)}
.v6-line-chart .v7c text.v7c-pilltext{fill:#fff;font:700 11.5px var(--font-body,system-ui)}
:root[data-theme="dark"] .v6-line-chart .v7c text.v7c-pilltext{fill:#14171c}
.v6-chart-legend.v7-leg{justify-content:flex-start;padding:6px 4px 0}
.v6-phone-metrics{display:none!important} /* the page tabs already switch Admissions, Ticket gross and ATP */
