/* Home-only tokens. No selectors outside the explicit school-home scope. */
body.bk-school-home-identity{--hn-gutter:20px;--hn-gap:12px;--hn-radius:14px;--hn-header-height:96px;--hn-avatar:60px;--hn-ink:#173b59;--hn-soft:#edf5fc;background:#edf5fc}
body.bk-school-home-identity .app>main{min-width:0;background:#edf5fc}
body.bk-school-home-identity .app>main>header.uh-header{box-sizing:border-box;margin:16px var(--hn-gutter) 12px!important;width:calc(100% - 2 * var(--hn-gutter));height:var(--hn-header-height)!important;min-height:var(--hn-header-height)!important;padding:14px 20px!important;border:0!important;border-radius:var(--hn-radius);background:linear-gradient(110deg,#082d59 0%,#00526a 57%,#00877f 100%)!important;color:#fff;overflow:visible;flex-shrink:0}
body.bk-school-home-identity .app>main>header .uh-content{display:grid!important;grid-template-columns:minmax(160px,1fr) auto 38px minmax(280px,max-content);align-items:center;gap:14px;padding:0!important;width:100%;height:100%;min-width:0}
body.bk-school-home-identity .app>main>header :is(.hv-school,.hv-badge,.uh-menu-organizer,.title,.hv-account){display:none!important}
body.bk-school-home-identity .hn-heading{grid-column:1;min-width:0}
body.bk-school-home-identity .hn-heading h1{font-size:24px!important;font-weight:700;color:#fff!important;line-height:1.2;margin:0 0 5px!important}
body.bk-school-home-identity .hn-heading p{font-size:13px;line-height:1.35;margin:0;color:#e1eff4}
body.bk-school-home-identity .app>main>header .hv-clock{grid-column:2;margin:0!important;display:flex!important;gap:8px;color:#e6f4f7;font-size:12px;white-space:nowrap}
body.bk-school-home-identity .app>main>header .hv-clock small{font-size:12px;color:#e6f4f7}
body.bk-school-home-identity .app>main>header .hv-notifications{grid-column:3;grid-row:1;color:#d3edf3!important;background:transparent!important;border:0;min-width:36px;min-height:40px;margin:0}
body.bk-school-home-identity .hn-user{grid-column:4;grid-row:1;position:relative;min-height:66px;min-width:0;width:100%}
body.bk-school-home-identity .hn-user .mp-user-menu{margin:0;min-width:0;width:100%}
body.bk-school-home-identity .hn-user .mp-user-menu summary{display:flex;gap:10px;align-items:flex-start;min-height:66px;list-style:none;color:#fff;padding:0;border:0;background:transparent;border-radius:8px}
body.bk-school-home-identity .hn-user .mp-user-menu summary::marker{content:''}
body.bk-school-home-identity .hn-user .mp-user-menu summary::-webkit-details-marker{display:none}
body.bk-school-home-identity .hn-user .mp-avatar{width:var(--hn-avatar)!important;height:var(--hn-avatar)!important;min-width:var(--hn-avatar)!important;flex:0 0 var(--hn-avatar);font-size:28px;background:#fff;color:#1765db;border:1px solid #c5e7e8;align-self:center;display:grid;place-items:center;border-radius:50%;overflow:hidden}
body.bk-school-home-identity .hn-user .mp-photo{width:100%;height:100%;object-fit:cover}
body.bk-school-home-identity .hn-user summary>span:last-child{font-size:13px;font-weight:400;line-height:22px;padding-top:6px;white-space:nowrap;overflow-wrap:anywhere;min-width:0}
body.bk-school-home-identity .hn-user :is(.uh-unit-context,.hn-single-unit){position:absolute;left:70px;right:0;bottom:4px;margin:0!important;width:auto!important;min-width:0;max-width:none;font-size:12px;color:#e5f6f7;z-index:1}
body.bk-school-home-identity .hn-user .uh-unit-context>span{display:none}
body.bk-school-home-identity .hn-user select{box-sizing:border-box;width:100%;height:28px;min-height:28px;padding:2px 24px 2px 0;border:0;border-radius:5px;background:transparent;color:#e5f6f7;font-size:12px;line-height:24px;cursor:pointer;text-overflow:ellipsis}
body.bk-school-home-identity .hn-user select option{color:#173b59;background:#fff}
body.bk-school-home-identity .hn-user .mp-popover{z-index:100;right:0;max-width:calc(100vw - 40px);color:var(--hn-ink)}
body.bk-school-home-identity :is(button,summary,select,a,input):focus-visible{outline:3px solid #59baff!important;outline-offset:3px}
body.bk-school-home-identity .app>aside{background:linear-gradient(165deg,#082b50 0%,#06445a 48%,#008880 100%)!important}
body.bk-school-home-identity .app>aside .side-top{padding:10px 12px 8px!important;border:0;flex-shrink:0}
body.bk-school-home-identity .app>aside .side-head{padding:0 0 10px!important}
body.bk-school-home-identity .app>aside .side-brand{font-size:25px}
body.bk-school-home-identity .app>aside .school-menu-tools{display:none!important}
body.bk-school-home-identity .hn-school-logo{box-sizing:border-box;display:flex;align-items:center;justify-content:center;margin:5px auto 12px;width:min(100%,180px);max-height:176px;min-height:28px;aspect-ratio:var(--hn-logo-ratio,auto);padding:5px;background:#fff;border-radius:10px;color:#27506b;font-size:12px;text-align:center;overflow:visible}
body.bk-school-home-identity .hn-school-logo img{display:block;width:100%;height:100%;max-height:166px;min-height:0;object-fit:contain;object-position:center}
body.bk-school-home-identity .hn-school-logo[data-surface=dark]{background:transparent;padding:2px}
body.bk-school-home-identity .hn-school-logo[data-shape=round]{border-radius:50%;width:160px;max-width:100%}
body.bk-school-home-identity .hn-school-logo[data-shape=oval]{border-radius:50%}
body.bk-school-home-identity .hn-school-logo[data-shape=vertical]{width:auto;max-width:140px;height:166px}
body.bk-school-home-identity .hn-school-logo[data-shape=horizontal]{width:100%;max-width:190px;max-height:90px}
body.bk-school-home-identity .hn-school-logo[data-shape=fallback]{aspect-ratio:auto;background:transparent;color:#d4eef2;padding:8px;max-height:44px}
body.bk-school-home-identity .hn-personalize{display:block;width:100%;min-height:32px;border:1px solid #38819a;border-radius:6px;background:#075776;color:#fff;text-align:left;padding:6px 9px;font-size:12px;font-weight:400;cursor:pointer}
body.bk-school-home-identity .app>aside nav{min-height:0;overflow:auto;padding-top:2px}
body.bk-school-home-identity .app>aside .nav-btn{color:#e4f3f6;font-size:13px;line-height:1.3;font-weight:500;padding-top:8px;padding-bottom:8px;min-height:34px}
body.bk-school-home-identity .app>aside .nav-btn:is(:hover,.active){background:#07648a;color:#fff}
body.bk-school-home-identity .app>aside .side-bottom{background:transparent;border-top:0;padding:10px 12px;flex-shrink:0}
body.bk-school-home-identity .app>aside .side-logout{background:#075776;color:white;border-color:#3b8e99;font-size:13px;min-height:38px}
body.bk-school-home-identity .app.sidebar-collapsed .hn-school-logo{width:44px;max-height:52px;margin:8px auto;padding:2px}
body.bk-school-home-identity .app.sidebar-collapsed .hn-school-logo img{max-height:48px}
body.bk-school-home-identity .app.sidebar-collapsed .hn-personalize{font-size:0;padding:6px;text-align:center}
body.bk-school-home-identity .app.sidebar-collapsed .hn-personalize::after{content:'☷';font-size:20px}
body.bk-school-home-identity #content{padding:0 var(--hn-gutter) 20px!important;min-width:0}
body.bk-school-home-identity #content #school-home{max-width:none!important;margin:0!important}
body.bk-school-home-identity #content #school-home>.bk-page-header{box-sizing:border-box;display:flex;min-height:42px!important;height:auto;padding:7px 12px!important;margin:0 0 var(--hn-gap)!important;gap:12px;background:#f9fcff!important;border:1px solid #dae7f4!important;border-radius:10px!important;box-shadow:none!important}
body.bk-school-home-identity #content #school-home>.bk-page-header>div:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:9px;flex:1 1 auto;min-width:0}
body.bk-school-home-identity #content #school-home>.bk-page-header h2{font-size:17px!important;line-height:1.3!important;margin:0!important;letter-spacing:normal;overflow-wrap:anywhere}
body.bk-school-home-identity #content #school-home>.bk-page-header p{display:none}
body.bk-school-home-identity .hn-school-status{display:inline-flex;white-space:nowrap;padding:3px 8px;border-radius:20px;background:#edf0f5;color:#44546b;font-size:11px;font-weight:600}
body.bk-school-home-identity .hn-school-status[data-status=active]{background:#def7e6;color:#18783a}
body.bk-school-home-identity #content #school-home .hv-home-query{margin:0!important;padding:0!important;flex:0 1 auto!important;background:none!important;border:0!important}
body.bk-school-home-identity #content #school-home .hv-home-query label{display:flex;align-items:center;gap:10px;font-size:12px;color:var(--hn-ink)}
body.bk-school-home-identity #content #school-home .hv-home-query input{min-height:30px;height:30px;width:146px;padding:4px 8px;font-size:12px}
body.bk-school-home-identity #sh-message:empty{display:none}
body.bk-school-home-identity #content #school-home .hv-metrics{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 var(--hn-gap)!important}
body.bk-school-home-identity .hv-metric{display:flex!important;align-items:center;justify-content:flex-start;min-height:60px!important;height:auto;padding:9px 10px!important;background:#fafdff!important;border:1px solid #dce8f5!important;border-radius:10px!important;box-shadow:none!important;min-width:0;gap:6px}
body.bk-school-home-identity .hv-metric-main{display:flex;align-items:center;gap:9px;min-width:0}
body.bk-school-home-identity .hv-metric-main>span:last-child{display:flex;align-items:center;gap:8px;min-width:0}
body.bk-school-home-identity .hv-metric-main strong{font-size:24px!important;line-height:1.1;font-weight:700;flex-shrink:0}
body.bk-school-home-identity .hv-metric-main>span:last-child>span{font-size:12px!important;line-height:1.3;font-weight:400;color:#254359;overflow-wrap:normal}
body.bk-school-home-identity .hv-metric :is(.hv-metric-extra,.hv-metric-arrow){display:none}
body.bk-school-home-identity .hv-icon{width:32px;height:32px;min-width:32px;border-radius:7px}
body.bk-school-home-identity #content #school-home .hv-main-grid{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:var(--hn-gap);margin-bottom:var(--hn-gap)}
body.bk-school-home-identity #content #school-home .hv-lower-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:var(--hn-gap);margin-bottom:var(--hn-gap)}
body.bk-school-home-identity #content #school-home .hv-lower-grid .hv-transport{grid-column:1/-1}
body.bk-school-home-identity #content #school-home .hv-card{padding:12px;border-radius:12px;background:#fafdff;border:1px solid #dbe8f5;box-shadow:none;min-width:0}
body.bk-school-home-identity #content #school-home .hv-card h3{font-size:17px;line-height:1.25;letter-spacing:normal;font-weight:600;color:#1b405c}
body.bk-school-home-identity #content #school-home .hv-card-heading{gap:8px;margin-bottom:10px;flex-wrap:wrap}
body.bk-school-home-identity #content #school-home .hv-card-heading>div:first-child{min-width:0}
body.bk-school-home-identity #content #school-home :is(.hv-card-heading small,.hv-card-footnote,.hv-pending-list small,.hv-routine-list small,.hv-attendance-copy span){font-size:12px!important;line-height:1.35;color:#506c80}
body.bk-school-home-identity #content #school-home :is(button,.hv-link){font-weight:500;min-height:32px;border-radius:7px}
body.bk-school-home-identity #content #school-home .hv-period button{padding:5px 9px;min-height:32px}
body.bk-school-home-identity #content #school-home .hv-movement-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.35fr);gap:10px}
body.bk-school-home-identity #content #school-home .hv-campus{padding:14px;background:#eaf3fb;border-radius:10px;min-height:224px;display:flex;flex-direction:column;justify-content:center}
body.bk-school-home-identity #content #school-home .hv-shortcuts>p{font-size:15px!important;margin:0 0 12px;font-weight:600}
body.bk-school-home-identity #content #school-home .hv-shortcut-grid{gap:8px}
body.bk-school-home-identity #content #school-home .hv-shortcut{padding:10px 8px;min-height:94px;background:#fff}
body.bk-school-home-identity #content #school-home .hv-shortcut strong{font-size:13px;font-weight:600}
body.bk-school-home-identity #content #school-home .hv-donut{width:110px;height:110px;min-width:110px}
body.bk-school-home-identity #content #school-home .hv-chart-row{gap:12px}
body.bk-school-home-identity #content #school-home .hv-chart-legend{font-size:12px}
body.bk-school-home-identity #content #school-home .hv-attendance-note{margin-top:10px;padding:8px}
body.bk-school-home-identity #content #school-home .hv-attendance-copy strong{font-size:13px}
body.bk-school-home-identity #content #school-home .hv-timeline{min-height:200px}
body.bk-school-home-identity #content #school-home .hv-routine-list button{padding:7px;gap:8px}
body.bk-school-home-identity #content #school-home .hv-routine-list b{font-size:13px;font-weight:600}
body.bk-school-home-identity #content #school-home .hv-pending-list article{padding:8px 0;gap:8px}
body.bk-school-home-identity #content #school-home .hv-pending-list b{font-size:13px;font-weight:600}
body.bk-school-home-identity #content #school-home .hv-footer{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px}
@media(min-width:1800px){body.bk-school-home-identity{--hn-gutter:24px}body.bk-school-home-identity .hn-heading h1{font-size:26px!important}body.bk-school-home-identity .hn-user summary>span:last-child{font-size:14px}body.bk-school-home-identity .hv-metric-main>span:last-child>span{font-size:14px!important}}
@media(max-width:1250px){body.bk-school-home-identity{--hn-header-height:130px}body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(120px,1fr) 36px minmax(260px,max-content);gap:8px}body.bk-school-home-identity .app>main>header .hv-clock{grid-row:2;grid-column:1/-1}body.bk-school-home-identity .app>main>header .hv-notifications{grid-column:2}body.bk-school-home-identity .hn-user{grid-column:3}body.bk-school-home-identity #content #school-home .hv-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}body.bk-school-home-identity #content #school-home .hv-main-grid{grid-template-columns:1fr}body.bk-school-home-identity #content #school-home .hv-timeline{min-height:140px}}
@media(max-width:750px){body.bk-school-home-identity{--hn-gutter:12px;--hn-header-height:auto}body.bk-school-home-identity .app>main>header.uh-header{height:auto!important;min-height:190px!important;padding:14px!important}body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(0,1fr) 40px}body.bk-school-home-identity .hn-heading{grid-column:1}body.bk-school-home-identity .app>main>header .hv-notifications{grid-column:2}body.bk-school-home-identity .hn-user{grid-column:1/-1;grid-row:2}body.bk-school-home-identity .hn-user summary>span:last-child{white-space:normal;padding-right:4px;line-height:18px;max-width:calc(100% - 70px)}body.bk-school-home-identity .hn-user .mp-user-menu summary{min-height:84px}body.bk-school-home-identity .app>main>header .hv-clock{grid-row:3}body.bk-school-home-identity #content #school-home .hv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body.bk-school-home-identity #content #school-home .hv-lower-grid,body.bk-school-home-identity #content #school-home .hv-movement-grid{grid-template-columns:1fr}body.bk-school-home-identity #content #school-home>.bk-page-header{flex-wrap:wrap}body.bk-school-home-identity #content #school-home .hv-home-query{width:100%}body.bk-school-home-identity #content #school-home .hv-home-query label{justify-content:space-between}body.bk-school-home-identity #content #school-home .hv-shortcut-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(prefers-reduced-motion:reduce){body.bk-school-home-identity *{scroll-behavior:auto!important;transition:none!important}}

/* Override legacy home-specific density without affecting other routes. */
body.bk-school-home-identity .hn-user summary>span:last-child{max-width:none;overflow:visible;text-overflow:clip}
body.bk-school-home-identity #content #school-home .hv-metrics{width:100%}
body.bk-school-home-identity #content #school-home .hv-card-heading{padding:0 0 10px;gap:8px;min-height:38px;flex-wrap:wrap}
body.bk-school-home-identity #content #school-home .hv-card-heading>div:first-child{flex:1 1 auto}
body.bk-school-home-identity #content #school-home .hv-attendance-note{display:flex}
body.bk-school-home-identity #content #school-home .hv-activity .hv-card-heading>.hv-link{display:block}
body.bk-school-home-identity #content #school-home .hv-movement-grid{min-height:224px}
body.bk-school-home-identity #content #school-home .hv-lower-grid>.hv-card{min-height:0}
body.bk-school-home-identity #content #school-home .hv-home-query{min-height:30px}
body.bk-school-home-identity #content #school-home .hv-home-query input{min-height:30px!important;height:30px!important}
@media(max-width:750px){body.bk-school-home-identity .hn-user summary>span:last-child{max-width:calc(100% - 70px);overflow-wrap:anywhere}body.bk-school-home-identity #content #school-home .hv-shortcut-grid{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))}}
body.bk-school-home-identity #content #school-home .hv-attendance{padding:4px;gap:8px}
body.bk-school-home-identity #content #school-home .hv-attendance-note{display:grid;grid-template-columns:32px minmax(0,1fr);gap:4px 8px;text-align:left}
body.bk-school-home-identity #content #school-home .hv-attendance-cta{grid-column:1/-1;font-size:12px;white-space:normal}
body.bk-school-home-identity #content #school-home .hv-chart-legend>div{font-size:12px;padding:7px 0}
body.bk-school-home-identity #content #school-home .hv-chart-row{min-height:112px;flex:0 0 auto}
body.bk-school-home-identity #content #school-home .hv-donut{flex-basis:110px}
body.bk-school-home-identity #content #school-home .hv-donut>div{width:84px;height:84px}
body.bk-school-home-identity #content #school-home .hv-pending-list article>div{flex:1 1 150px}
body.bk-school-home-identity #content #school-home .hv-card-heading .hv-link{font-size:12px!important;padding:5px 8px!important}
body.bk-school-home-identity #content #school-home .hv-activity .hv-card-heading h3{font-size:16px!important}
body.bk-school-home-identity #content #school-home .hv-card-heading h3{margin:0}
body.bk-school-home-identity #content #school-home{padding:0!important;width:100%!important}
body.bk-school-home-identity .hn-user summary>span:last-child{display:block!important}
body.bk-school-home-identity #content #school-home .hv-metric-main{display:flex!important;flex-direction:row!important;align-items:center;flex-wrap:nowrap!important}
body.bk-school-home-identity #content #school-home .hv-attendance-note>.hv-icon{display:inline-flex!important;grid-column:1;grid-row:1}
body.bk-school-home-identity #content #school-home .hv-attendance-copy{grid-column:2;grid-row:1;min-width:0}
body.bk-school-home-identity #content #school-home .hv-shortcut{display:grid!important;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:28px auto;gap:4px;text-align:left}
body.bk-school-home-identity #content #school-home .hv-shortcut-icon{grid-column:1;grid-row:1}
body.bk-school-home-identity #content #school-home .hv-shortcut strong{grid-column:1;grid-row:2;overflow-wrap:normal;word-break:normal}
body.bk-school-home-identity #content #school-home .hv-shortcut>span:last-child{grid-column:2;grid-row:2}
/* Respond to the available component width, including magnification. */
body.bk-school-home-identity .app>main>header.uh-header{container-type:inline-size;container-name:home-header;height:auto!important;min-height:96px!important}
body.bk-school-home-identity .app>main>header .uh-content{height:auto;min-height:66px}
body.bk-school-home-identity #content #school-home{container-type:inline-size;container-name:home-body}
@container home-header (max-width:900px){body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(100px,1fr) 36px minmax(260px,max-content)}body.bk-school-home-identity .app>main>header .hv-clock{grid-column:1/-1;grid-row:2}body.bk-school-home-identity .app>main>header .hv-notifications{grid-column:2}body.bk-school-home-identity .hn-user{grid-column:3}}
@container home-header (max-width:650px){body.bk-school-home-identity .app>main>header .uh-content{grid-template-columns:minmax(0,1fr) 36px}body.bk-school-home-identity .hn-user{grid-column:1/-1;grid-row:2}body.bk-school-home-identity .app>main>header .hv-clock{grid-row:3}body.bk-school-home-identity .hn-user summary>span:last-child{white-space:normal;overflow-wrap:anywhere;max-width:calc(100% - 70px)}body.bk-school-home-identity .hn-user .mp-user-menu summary{min-height:96px}}
@container home-body (max-width:900px){body.bk-school-home-identity #content #school-home .hv-main-grid{grid-template-columns:1fr}body.bk-school-home-identity #content #school-home .hv-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container home-body (max-width:600px){body.bk-school-home-identity #content #school-home :is(.hv-lower-grid,.hv-movement-grid){grid-template-columns:1fr}body.bk-school-home-identity #content #school-home .hv-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Reference refinement: one shared gutter, compact unframed school identity row. */
body.bk-school-home-identity .app>main #content{box-sizing:border-box;width:100%!important;max-width:none!important;margin:0!important;padding:0 var(--hn-gutter) 20px!important;gap:0!important}
body.bk-school-home-identity #content #school-home>.bk-page-header{min-height:38px!important;padding:4px 6px!important;border:0!important;border-radius:0!important;background:transparent!important;align-items:center}
body.bk-school-home-identity #content #school-home .hv-home-query label{margin:0!important}
body.bk-school-home-identity #content #school-home .hv-home-query{height:auto!important;min-height:30px!important}
body.bk-school-home-identity #content #school-home #sh-body>.hv-card-footnote{margin:0 0 8px!important;text-align:left}
body.bk-school-home-identity .hn-user .uh-unit-context::after{content:'';position:absolute;right:4px;top:9px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);pointer-events:none}
body.bk-school-home-identity .hn-user select{appearance:none!important;background-image:none!important;padding-right:24px!important}
body.bk-school-home-identity #content #school-home .hv-routine-list{padding:0;margin:0}

/* Keep the number and its caption together in the centre of the ring. */
body.bk-school-home-identity #content #school-home .hv-donut>div{box-sizing:border-box;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:8px;margin:0;text-align:center}
body.bk-school-home-identity #content #school-home .hv-donut b{display:block;flex:0 0 auto;font-size:25px;line-height:1;margin:0;padding:0}
body.bk-school-home-identity #content #school-home .hv-donut small{display:block;flex:0 0 auto;font-size:11px!important;line-height:1.2!important;max-width:68px;margin:0;padding:0;text-align:center;overflow-wrap:normal}
body.bk-school-home-identity #content #school-home .hn-registry-notice{margin:10px 0 0;padding-top:8px;border-top:1px solid #dbe8f5;text-align:left}

/* Local typography review: retain panel composition and existing responsive rules. */
body.bk-school-home-identity #content #school-home{color:#20394d}
body.bk-school-home-identity #content #school-home .hv-card h3,
body.bk-school-home-identity #content #school-home .hv-activity .hv-card-heading h3{font-size:18px!important;font-weight:600;color:#15384f}
body.bk-school-home-identity #content #school-home .hv-metric{padding-inline:8px!important;gap:5px}
body.bk-school-home-identity #content #school-home .hv-metric-main{gap:7px}
body.bk-school-home-identity #content #school-home .hv-metric-main>span:last-child{gap:6px}
body.bk-school-home-identity #content #school-home .hv-metric-main>span:last-child>span{font-size:13px!important;font-weight:500;color:#253e50;line-height:1.3}
body.bk-school-home-identity #content #school-home :is(.hv-card-heading small,.hv-card-footnote,.hv-pending-list small,.hv-routine-list small,.hv-attendance-copy span){font-size:13px!important;line-height:1.4;color:#43596b}
body.bk-school-home-identity #content #school-home :is(.hv-routine-list b,.hv-pending-list b,.hv-attendance-copy strong,.hv-shortcut strong){font-size:14px!important;line-height:1.35;font-weight:500}
body.bk-school-home-identity #content #school-home :is(.hv-chart-legend>div,.hv-timeline){font-size:14px;color:#253e50}
body.bk-school-home-identity #content #school-home :is(button,.hv-link){font-size:14px;font-weight:500}
body.bk-school-home-identity #content #school-home .hv-card-heading .hv-link{font-size:13px!important}
body.bk-school-home-identity #content #school-home .hv-attendance-cta{font-size:13px}
body.bk-school-home-identity #content #school-home .hv-shortcuts>p{font-size:16px!important;color:#20394d}
body.bk-school-home-identity #content #school-home .hv-donut small{font-size:12px!important;color:#43596b}

body.bk-school-home-identity #content #school-home .hv-metric-main{padding:0!important;flex:1 1 auto;width:100%}
body.bk-school-home-identity #content #school-home .hv-metric-main .hv-icon{flex:0 0 30px;width:30px;min-width:30px;height:32px}
@container home-body (min-width:901px){body.bk-school-home-identity #content #school-home .hv-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}}

/* Readability r6: explicit child rules also cover legacy small empty-state copy. */
body.bk-school-home-identity #content #school-home{font-size:15px;color:#203447}
body.bk-school-home-identity #content #school-home .hv-card h3,
body.bk-school-home-identity #content #school-home .hv-activity .hv-card-heading h3{font-size:20px!important;font-weight:600;color:#142f45}
body.bk-school-home-identity #content #school-home :is(.hv-card-heading small,.hv-card-footnote,.hv-pending-list small,.hv-routine-list small,.hv-attendance-copy span){font-size:14px!important;line-height:1.45;color:#344b5f!important;font-weight:400}
body.bk-school-home-identity #content #school-home :is(.hv-empty strong,.hv-timeline b){font-size:15px!important;line-height:1.4;color:#203447!important;font-weight:600}
body.bk-school-home-identity #content #school-home :is(.hv-empty span,.hv-timeline p,.hv-timeline time){font-size:14px!important;line-height:1.45;color:#344b5f!important}
body.bk-school-home-identity #content #school-home :is(.hv-routine-list b,.hv-pending-list b,.hv-attendance-copy strong,.hv-shortcut strong){font-size:15px!important;line-height:1.35;font-weight:600;color:#203447}
body.bk-school-home-identity #content #school-home .hv-metric-main>span:last-child>span{font-size:14px!important;font-weight:500;color:#203447}
body.bk-school-home-identity #content #school-home .hv-metric-main strong{font-size:26px!important}
body.bk-school-home-identity #content #school-home :is(button,.hv-link),
body.bk-school-home-identity #content #school-home .hv-card-heading .hv-link{font-size:14px!important;font-weight:600}
body.bk-school-home-identity #content #school-home .hv-chart-legend>div{font-size:14px!important;color:#203447}
body.bk-school-home-identity #content #school-home .hv-shortcuts>p{font-size:17px!important;font-weight:600;color:#142f45}
body.bk-school-home-identity #content #school-home .hv-donut small{font-size:13px!important;color:#344b5f;line-height:1.2!important}
body.bk-school-home-identity #content #school-home .hv-attendance-cta{font-size:14px!important}
body.bk-school-home-identity #content #school-home .hv-metric-main{gap:5px}
body.bk-school-home-identity #content #school-home .hv-metric-main>span:last-child{gap:5px}

/* Header popup must stack above page controls, below modal dialogs. */
body.bk-school-home-identity .app>main>header.uh-header{position:relative;z-index:30}
body.bk-school-home-identity .app>main #content{position:relative;z-index:0}
body.bk-school-home-identity .hn-user .mp-popover{top:calc(100% + 20px);background:#fff;opacity:1;max-height:60vh;overflow-y:auto}

/* The compact rail retains the original toggle inside its visible bounds. */
body.bk-school-home-identity .app.sidebar-collapsed>aside .side-head{flex-direction:column;justify-content:center;align-items:center;gap:6px;min-width:0}
body.bk-school-home-identity .app.sidebar-collapsed>aside .side-brand{font-size:0!important;min-width:0;width:auto;line-height:1}
body.bk-school-home-identity .app.sidebar-collapsed>aside .side-brand>*{display:none!important}
body.bk-school-home-identity .app.sidebar-collapsed>aside .sidebar-toggle{display:flex!important;align-items:center;justify-content:center;flex:0 0 36px;width:36px;min-width:36px;height:36px;min-height:36px;position:relative;z-index:1;margin:0}

body.bk-school-home-identity .app.sidebar-collapsed .hn-school-logo{display:none!important}

/* Início: keep the shared footer at the Students baseline and scroll only the dashboard body. */
html:has(body.school-home-v2-active){height:100%;overflow:hidden}
body.school-home-v2-active{height:100dvh;min-height:0!important;overflow:hidden!important}
body.school-home-v2-active .app{height:100dvh;min-height:0!important;overflow:hidden!important}
body.school-home-v2-active .app>main{box-sizing:border-box;display:flex!important;flex:1 1 0;flex-direction:column!important;height:100dvh;max-height:100dvh;min-height:0!important;overflow:hidden!important}
body.school-home-v2-active .app>main>header.uh-header{flex:0 0 auto}
body.school-home-v2-active .app>main #content{box-sizing:border-box;display:flex!important;flex:1 1 0!important;flex-direction:column!important;min-height:0!important;max-height:100%;overflow:hidden!important;padding:0 var(--hn-gutter)!important}
body.school-home-v2-active #content #school-home{box-sizing:border-box;display:flex;flex:1 1 0;flex-direction:column;min-height:0;overflow:hidden}
body.school-home-v2-active #content #school-home #sh-body{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none}
body.school-home-v2-active #content #school-home #sh-body::-webkit-scrollbar{display:none}

/* Compact school row: existing exit navigation and export stay functional beside the date. */
body.bk-school-home-identity #content #school-home>.bk-page-header{display:grid!important;grid-template-columns:minmax(150px,1fr) auto auto;grid-template-areas:"identity actions date";align-items:center;gap:0 12px;box-sizing:border-box;height:auto!important;min-height:42px!important;padding:0 6px!important;margin:0 0 var(--hn-gap)!important}
body.bk-school-home-identity #content #school-home>.bk-page-header>div:first-child{grid-area:identity;display:flex;align-items:center;flex-wrap:wrap;gap:8px;min-width:0}
body.bk-school-home-identity #content #school-home>.bk-page-header h2{min-width:0;overflow-wrap:anywhere}
body.bk-school-home-identity #content #school-home .hn-home-toolbar{grid-area:actions;display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0}
body.bk-school-home-identity #content #school-home .hn-home-exits{box-sizing:border-box;display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:3px 9px;border:1px solid #9aafc5;border-top:3px solid #00526a;border-radius:8px;background:#f9fcff;color:#173b59;white-space:nowrap;cursor:pointer}
body.bk-school-home-identity #content #school-home .hn-home-exits strong{font-size:19px;line-height:1;font-weight:700;color:#173b59}
body.bk-school-home-identity #content #school-home .hn-home-exits span:first-of-type{font-size:12px;line-height:1.2;font-weight:600}
body.bk-school-home-identity #content #school-home .hn-home-exits span:last-child{font-size:14px;color:#1765db}
body.bk-school-home-identity #content #school-home .hn-home-exits:hover{background:#edf5fc;border-color:#6d94bd}
body.bk-school-home-identity #content #school-home .hn-home-export{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:5px 10px;border:1px solid #4b83c6;border-bottom-width:3px;border-radius:8px;background:#fff;color:#173b59;font-size:13px!important;font-weight:600!important;white-space:nowrap;cursor:pointer}
body.bk-school-home-identity #content #school-home .hn-home-export:hover{background:#f2f7fd}
body.bk-school-home-identity #content #school-home>.bk-page-header :is(.hn-home-exits,.hn-home-export):focus-visible{outline:3px solid #2864ef;outline-offset:2px}
body.bk-school-home-identity #content #school-home .hn-home-date-stack{grid-area:date;display:flex;flex-direction:column;align-items:flex-end;justify-self:end;gap:0;min-width:0}
body.bk-school-home-identity #content #school-home .hv-home-query{display:block;width:auto!important;height:auto!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important}
body.bk-school-home-identity #content #school-home .hv-home-query label{display:flex;align-items:center;justify-content:flex-end;gap:7px;margin:0!important;font-size:12px;line-height:1.15;white-space:nowrap}
body.bk-school-home-identity #content #school-home .hv-home-query input{box-sizing:border-box;width:142px;height:24px;min-height:24px!important;padding:2px 6px;font-size:12px;line-height:1.1}
body.bk-school-home-identity #content #school-home .hn-home-updated{display:block;min-height:10px;font-size:10px;line-height:10px;color:#5a77a0;text-align:right;white-space:nowrap}
@media(max-width:1050px){body.bk-school-home-identity #content #school-home>.bk-page-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity date" "actions actions";row-gap:4px;padding-top:3px!important;padding-bottom:3px!important}body.bk-school-home-identity #content #school-home .hn-home-toolbar{justify-content:flex-start}body.bk-school-home-identity #content #school-home .hn-home-date-stack{grid-column:2;grid-row:1}}
@media(max-width:600px){body.bk-school-home-identity #content #school-home>.bk-page-header{grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "actions" "date";gap:6px;padding-top:4px!important;padding-bottom:4px!important}body.bk-school-home-identity #content #school-home .hn-home-toolbar{flex-wrap:wrap;width:100%}body.bk-school-home-identity #content #school-home .hn-home-exits,body.bk-school-home-identity #content #school-home .hn-home-export{min-height:40px}body.bk-school-home-identity #content #school-home .hn-home-date-stack{grid-column:1;grid-row:3;justify-self:stretch;align-items:stretch}body.bk-school-home-identity #content #school-home .hv-home-query{width:100%!important}body.bk-school-home-identity #content #school-home .hv-home-query label{justify-content:space-between}body.bk-school-home-identity #content #school-home .hv-home-query input{width:min(142px,48vw)}body.bk-school-home-identity #content #school-home .hn-home-updated{text-align:right}}
@container home-body (max-width:1050px){body.bk-school-home-identity #content #school-home>.bk-page-header{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"identity date" "actions actions";row-gap:4px;padding-top:3px!important;padding-bottom:3px!important}body.bk-school-home-identity #content #school-home .hn-home-toolbar{justify-content:flex-start}body.bk-school-home-identity #content #school-home .hn-home-date-stack{grid-column:2;grid-row:1}}
@container home-body (max-width:600px){body.bk-school-home-identity #content #school-home>.bk-page-header{grid-template-columns:minmax(0,1fr);grid-template-areas:"identity" "actions" "date";gap:6px;padding-top:4px!important;padding-bottom:4px!important}body.bk-school-home-identity #content #school-home .hn-home-toolbar{flex-wrap:wrap;width:100%}body.bk-school-home-identity #content #school-home .hn-home-exits,body.bk-school-home-identity #content #school-home .hn-home-export{min-height:40px}body.bk-school-home-identity #content #school-home .hn-home-date-stack{grid-column:1;grid-row:3;justify-self:stretch;align-items:stretch}body.bk-school-home-identity #content #school-home .hv-home-query{width:100%!important}body.bk-school-home-identity #content #school-home .hv-home-query label{justify-content:space-between}body.bk-school-home-identity #content #school-home .hv-home-query input{width:min(142px,48vw)}body.bk-school-home-identity #content #school-home .hn-home-updated{text-align:right}}
