:root{
  --hv-brand-900:#102b55;--hv-brand-800:#173b72;--hv-brand-700:#2456a6;--hv-brand-600:#2f6bc2;
  --hv-teal-600:#168c8c;--hv-gold-500:#c8953d;--hv-bg:#f5f8fc;--hv-surface:#fff;
  --hv-text:#172033;--hv-text-2:#667085;--hv-text-3:#98a2b3;--hv-line:#e2e8f0;
  --hv-success:#169b62;--hv-warning:#d58a18;--hv-danger:#c33f3f;--hv-sidebar:228px;--hv-topbar:66px;
  --hv-shadow:0 12px 36px rgba(23,59,114,.08);--hv-radius:18px
}
#hv-app-sidebar,#hv-app-topbar,#hv-app-scrim{font-family:"Noto Sans CJK SC","PingFang SC","Microsoft YaHei",sans-serif}
body.hv-shell-ready{min-height:100vh!important;padding:var(--hv-topbar) 0 0 var(--hv-sidebar)!important;background:var(--hv-bg)!important;color:var(--hv-text)!important}
body.hv-shell-ready.hv-has-global-nav{padding-top:var(--hv-topbar)!important}
body.hv-shell-ready #hv-global-nav{display:none!important}
#hv-app-sidebar{position:fixed;inset:0 auto 0 0;z-index:10020;width:var(--hv-sidebar);display:flex;flex-direction:column;padding:12px 10px 10px;background:radial-gradient(circle at 16% 4%,rgba(62,132,220,.30),transparent 27%),linear-gradient(180deg,#173f76 0%,#123562 58%,#102d54 100%);color:#fff;box-shadow:8px 0 32px rgba(16,43,85,.11)}
.hv-shell-brand{display:flex;align-items:center;gap:9px;padding:2px 8px 10px;border-bottom:1px solid rgba(255,255,255,.10);text-decoration:none;color:#fff}
.hv-shell-brand img{width:34px;height:34px;flex:none;filter:drop-shadow(0 6px 12px rgba(0,0,0,.14))}
.hv-shell-brand strong,.hv-shell-brand small{display:block}.hv-shell-brand strong{font-size:13px;line-height:1.35}.hv-shell-brand small{margin-top:4px;color:rgba(255,255,255,.53);font-size:10px;letter-spacing:.04em}
.hv-shell-nav{flex:1;min-height:0;overflow-y:auto;padding:4px 1px 9px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.18) transparent}
.hv-shell-nav-group{padding:7px 9px 3px;color:rgba(255,255,255,.34);font-size:10px;letter-spacing:.13em}
.hv-shell-nav a{position:relative;display:flex;align-items:center;gap:9px;min-height:34px;margin:1px 0;padding:6px 9px;border-radius:9px;color:rgba(255,255,255,.70);text-decoration:none;font-size:11px;line-height:1.28;transition:background .16s,color .16s}
.hv-shell-nav a:hover{background:rgba(255,255,255,.08);color:#fff}.hv-shell-nav a.active{background:linear-gradient(90deg,rgba(255,255,255,.17),rgba(255,255,255,.10));color:#fff;box-shadow:inset 3px 0 0 #ffd166,0 5px 14px rgba(0,0,0,.08)}
.hv-shell-nav a img{width:16px;height:16px;flex:none;filter:brightness(0) invert(1);opacity:.72}.hv-shell-nav a:hover img,.hv-shell-nav a.active img{opacity:1}
.hv-shell-nav a[data-admin-only="1"]{display:none}.hv-shell-admin .hv-shell-nav a[data-admin-only="1"]{display:flex}
.hv-shell-foot{padding:8px 7px 1px;border-top:1px solid rgba(255,255,255,.10)}
.hv-shell-foot-status{display:flex;align-items:flex-start;gap:10px}.hv-shell-foot-status i{width:8px;height:8px;margin-top:4px;border-radius:50%;background:#68d6a9;box-shadow:0 0 0 4px rgba(104,214,169,.13)}
.hv-shell-foot-status b,.hv-shell-foot-status small{display:block}.hv-shell-foot-status b{font-size:11px}.hv-shell-foot-status small{margin-top:4px;color:rgba(255,255,255,.48);font-size:9px;line-height:1.5}
#hv-app-topbar{position:fixed;inset:0 0 auto var(--hv-sidebar);z-index:10010;height:var(--hv-topbar);display:flex;align-items:center;gap:14px;padding:0 22px;background:rgba(255,255,255,.94);backdrop-filter:blur(18px);border-bottom:1px solid var(--hv-line);box-shadow:0 3px 16px rgba(23,59,114,.035)}
.hv-shell-menu{display:none;width:34px;height:34px;border:1px solid var(--hv-line);border-radius:11px;background:#fff;color:var(--hv-brand-800);font-size:20px;cursor:pointer}
.hv-shell-heading{min-width:0}.hv-shell-breadcrumb{display:flex;align-items:center;gap:6px;color:var(--hv-text-3);font-size:10px;white-space:nowrap}.hv-shell-breadcrumb a{color:var(--hv-text-2);text-decoration:none}.hv-shell-breadcrumb i{font-style:normal}.hv-shell-heading strong{display:block;max-width:440px;margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--hv-text);font-size:17px;letter-spacing:-.2px}
.hv-shell-top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}.hv-shell-chip{height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--hv-line);border-radius:999px;background:#fff;color:var(--hv-text-2);font-size:11px;white-space:nowrap}.hv-shell-chip i{width:7px;height:7px;border-radius:50%;background:var(--hv-success);box-shadow:0 0 0 4px rgba(22,155,98,.09)}
.hv-shell-home{height:36px;display:inline-flex;align-items:center;justify-content:center;padding:0 13px;border-radius:10px;background:linear-gradient(135deg,var(--hv-brand-600),var(--hv-brand-700));color:#fff;text-decoration:none;font-size:12px;font-weight:650;box-shadow:0 7px 16px rgba(36,86,166,.15)}
.hv-shell-user{display:flex;align-items:center;gap:8px;padding:5px 9px 5px 6px;border:1px solid var(--hv-line);border-radius:999px;background:#fff}.hv-shell-avatar{display:grid;place-items:center;width:31px;height:31px;border-radius:50%;background:linear-gradient(135deg,#e3bd72,var(--hv-gold-500));color:#fff;font-size:12px;font-weight:800}.hv-shell-user b,.hv-shell-user small{display:block;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hv-shell-user b{font-size:11px}.hv-shell-user small{margin-top:2px;color:var(--hv-text-3);font-size:9px}
#hv-app-scrim{display:none;position:fixed;inset:0;z-index:10015;background:rgba(8,22,39,.45);backdrop-filter:blur(2px)}
/* Convert legacy standalone headers into contextual page headers inside the unified product shell. */
body.hv-shell-ready>.top,body.hv-shell-ready>header.top{position:relative!important;top:auto!important;z-index:2!important;width:auto!important;max-width:1540px!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:24px 28px 4px!important;overflow:visible!important;background:transparent!important;color:var(--hv-text)!important;box-shadow:none!important;gap:12px!important}
body.hv-shell-ready>.top .mark,body.hv-shell-ready>header.top .mark{width:42px!important;height:42px!important;border:1px solid #d9e5f4!important;border-radius:13px!important;background:#edf4fd!important;color:var(--hv-brand-700)!important;box-shadow:none!important}
body.hv-shell-ready>.top h1,body.hv-shell-ready>header.top h1{color:var(--hv-text)!important;font-size:20px!important;letter-spacing:-.25px!important}
body.hv-shell-ready>.top p,body.hv-shell-ready>header.top p{margin-top:4px!important;color:var(--hv-text-2)!important;font-size:12px!important}
body.hv-shell-ready>.top nav,body.hv-shell-ready>header.top nav{display:none!important}
body.hv-shell-ready>.main,body.hv-shell-ready>main.main{width:auto!important;max-width:1540px!important;margin:0 auto!important;padding:18px 28px 64px!important}
body.hv-shell-ready .hero{border-color:var(--hv-line)!important;border-radius:var(--hv-radius)!important;box-shadow:var(--hv-shadow)!important}
body.hv-shell-ready .panel,body.hv-shell-ready .kpi,body.hv-shell-ready .card,body.hv-shell-ready .filter{border-color:var(--hv-line)!important;box-shadow:0 7px 24px rgba(23,59,114,.055)!important}
body.hv-shell-ready .filter{top:86px!important}
body.hv-shell-ready #hv-public-footer{max-width:1484px!important;margin:22px auto!important;border-color:var(--hv-line)!important;border-radius:13px!important;box-shadow:0 6px 20px rgba(23,59,114,.04)!important}
body.hv-page-schools .hero{grid-template-columns:minmax(0,1fr) 300px!important;background:linear-gradient(135deg,#fff 0%,#fbfdff 72%,#f1f7fd 100%)!important}
body.hv-page-schools .source-box,body.hv-page-data-trust .status{background:linear-gradient(145deg,var(--hv-brand-800),#287f91)!important}
body.hv-page-schools .filter{border-radius:16px!important}
body.hv-page-schools .card{transition:transform .17s,box-shadow .17s,border-color .17s}body.hv-page-schools .card:hover{transform:translateY(-2px);border-color:#bfd1e9!important;box-shadow:0 14px 34px rgba(23,59,114,.10)!important}
body.hv-page-data-trust .notice{border:1px solid #f0d7a7!important;background:#fff8e9!important;color:#76531e!important}
body.hv-page-data-trust .hero{background:linear-gradient(135deg,#fff,#f8fcff)!important}
body.hv-page-data-trust .table th{background:#f6f9fd!important;color:#506078!important}
@media(max-width:1180px){.hv-shell-chip.hv-shell-data-chip{display:none}.hv-shell-heading strong{max-width:300px}}
@media(max-width:980px){
  body.hv-shell-ready{padding-left:0!important}.hv-shell-open{overflow:hidden!important}
  #hv-app-sidebar{transform:translateX(-102%);transition:transform .2s ease}.hv-shell-open #hv-app-sidebar{transform:none}
  #hv-app-topbar{left:0;padding:0 16px}.hv-shell-menu{display:grid;place-items:center}.hv-shell-open #hv-app-scrim{display:block}
  body.hv-shell-ready>.top,body.hv-shell-ready>header.top{padding:18px 18px 3px!important}body.hv-shell-ready>.main,body.hv-shell-ready>main.main{padding:15px 18px 58px!important}
}
@media(max-width:700px){
  :root{--hv-topbar:64px}#hv-app-topbar{height:64px;gap:10px}.hv-shell-breadcrumb{display:none}.hv-shell-heading strong{max-width:210px;margin:0;font-size:15px}.hv-shell-chip{display:none}.hv-shell-home{width:37px;padding:0;font-size:0}.hv-shell-home:before{content:"⌂";font-size:18px}.hv-shell-user>div:last-child{display:none}.hv-shell-user{padding:4px}
  body.hv-shell-ready>.top,body.hv-shell-ready>header.top{padding:15px 13px 2px!important}body.hv-shell-ready>.top p,body.hv-shell-ready>header.top p{display:block!important;font-size:11px!important;line-height:1.5!important}body.hv-shell-ready>.top h1,body.hv-shell-ready>header.top h1{font-size:17px!important}
  body.hv-shell-ready>.main,body.hv-shell-ready>main.main{padding:12px 13px 54px!important}.hv-shell-nav a{min-height:45px}
}
@media(prefers-reduced-motion:reduce){#hv-app-sidebar,.hv-shell-nav a,body.hv-page-schools .card{transition:none!important}}
#hv-app-sidebar a:focus-visible,#hv-app-topbar a:focus-visible,#hv-app-topbar button:focus-visible{outline:3px solid rgba(47,107,194,.28);outline-offset:3px}

/* R2.11: prevent standalone-page flash before the unified shell and session
   context are ready. */
html.hv-shell-boot{background:var(--hv-bg)}
html.hv-shell-boot body{visibility:hidden;opacity:0}
html:not(.hv-shell-boot) body.hv-shell-ready{animation:hv-shell-reveal .14s ease-out}
@keyframes hv-shell-reveal{from{opacity:.35}to{opacity:1}}

/* P6-R2 HF4 — compact luminous Horizon navigation */
html[data-hbv-release-ui="p6"] #hv-app-sidebar:after{content:"";position:absolute;inset:0 0 auto;height:2px;background:linear-gradient(90deg,#ffd166,#4bd6c6,#6ca8ff)}
html[data-hbv-release-ui="p6"] .hv-shell-nav-group{font-weight:750;text-transform:uppercase}
html[data-hbv-release-ui="p6"] .hv-shell-foot-status small{max-width:180px}

/* P6-R2 HF6 — unified high-contrast member navigation.
   The previous 70% white text was still too dim on photographed/low-brightness
   displays and could be overridden by page-level link colors. */
html[data-hbv-release-ui="p6"] #hv-app-sidebar{
  background:linear-gradient(180deg,#18457f 0%,#153b6d 56%,#12335f 100%)!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-brand,
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-brand strong{
  color:#f8fbff!important;opacity:1!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-brand small{
  color:#d9e7f8!important;opacity:1!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-nav-group{
  color:#b9cce6!important;opacity:1!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-nav a{
  color:#e7f0fc!important;opacity:1!important;text-shadow:0 1px 1px rgba(5,24,50,.22);
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-nav a:hover{
  color:#ffffff!important;background:rgba(255,255,255,.12)!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-nav a.active{
  color:#ffffff!important;background:linear-gradient(90deg,rgba(109,164,231,.42),rgba(255,255,255,.14))!important;
  box-shadow:inset 4px 0 0 #ffd166,0 7px 18px rgba(3,20,45,.18)!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-nav a img{
  opacity:.96!important;filter:brightness(0) invert(1) drop-shadow(0 1px 1px rgba(0,0,0,.16))!important;
}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-foot-status b{color:#f8fbff!important}
html[data-hbv-release-ui="p6"] #hv-app-sidebar .hv-shell-foot-status small{color:#c8d8ed!important;opacity:1!important}
