/* Approved 1536px reference geometry; overrides legacy Teacher View spacing. */
/* Account for transparent margins in the approved mascot asset. */
.milne-icon{width:28px;height:28px;flex:0 0 auto;vertical-align:middle;display:inline-block}
.milne-lennie-shadow{position:absolute;z-index:3;pointer-events:none;left:calc(1025 * var(--mu));top:calc(325 * var(--mu));width:calc(230 * var(--mu));height:calc(22 * var(--mu));border-radius:50%;background:radial-gradient(ellipse,rgba(35,35,35,.22),rgba(35,35,35,.09) 45%,transparent 72%);filter:blur(3px)}
@media(max-width:900px){.milne-lennie-shadow{left:auto;right:30px;top:239px;width:125px;height:14px}}
@media(max-width:520px){.milne-lennie-shadow{right:17px;top:198px;width:100px;height:12px}}
.milne-teacher .tv-stat i .milne-icon{fill:none!important;stroke:currentColor!important}
.milne-story-title,.milne-evidence-button,.milne-story-layout>.v95-next h2,.milne-story-layout>.v95-next button{display:flex;align-items:center;gap:18px}
.milne-story-layout>.v95-next button{justify-content:center}
.milne-topic-icon .milne-icon{width:36px;height:36px}
.milne-teacher .tv-tabs-top button .milne-icon{width:32px;height:32px}
.milne-teacher .tv-head button .milne-icon{width:28px;height:28px;margin-right:12px}
body:has(.milne-teacher){--mu:calc(100vw / 1536)}
.milne-teacher{padding:0 calc(48 * var(--mu)) 30px!important}.milne-teacher *{box-sizing:border-box}
.milne-teacher .tv-head{display:block!important;height:calc(280 * var(--mu));min-height:0!important;padding:calc(37 * var(--mu)) 0 0 calc(168 * var(--mu))!important;margin:0 calc(-48 * var(--mu)) calc(10 * var(--mu))!important;border:0!important;border-radius:0!important;background:transparent!important;overflow:visible!important}
.milne-teacher .tv-head:before,.milne-teacher .tv-head:after{content:'';position:absolute;inset:0;z-index:-2;background:#f2bd25;clip-path:ellipse(105% 100% at 50% 0)}
.milne-teacher .tv-head:after{background:#080808;bottom:4px;clip-path:ellipse(100% 100% at 65% 0)}
.milne-teacher .milne-hero-copy{width:calc(740 * var(--mu))}
.milne-teacher .tv-head h1{font-size:calc(90 * var(--mu))!important;font-weight:800!important;line-height:1.05!important;letter-spacing:-2px;margin:0 0 calc(4 * var(--mu))!important}
.milne-teacher .tv-head p{font-size:calc(24 * var(--mu))!important;line-height:1.4!important;margin:0!important;white-space:nowrap;max-width:none}
.milne-hero-actions{gap:calc(18 * var(--mu));margin-top:calc(20 * var(--mu));flex-wrap:nowrap}
.milne-teacher .tv-head button{height:calc(54 * var(--mu))!important;min-height:44px!important;padding:0 calc(26 * var(--mu))!important;font-size:calc(22 * var(--mu))!important;font-weight:800;white-space:nowrap!important;box-shadow:none!important}
.milne-teacher .tv-head .v97-enter-next-spot{min-width:calc(346 * var(--mu))}.milne-teacher .tv-head .tv-report-btn{min-width:calc(316 * var(--mu))}
.milne-teacher .milne-lennie{position:absolute;z-index:4;left:63%;top:calc(-12 * var(--mu));width:calc(350 * var(--mu));height:calc(390 * var(--mu));object-fit:contain;pointer-events:none}
.milne-paws{overflow:hidden}.milne-paws svg{width:calc(145 * var(--mu));opacity:.22}.milne-paws svg:nth-child(1){left:0;top:8%}.milne-paws svg:nth-child(2){left:54%;top:3%;width:calc(125 * var(--mu))}.milne-paws svg:nth-child(3){left:61%;bottom:11%;width:calc(75 * var(--mu))}.milne-paws svg:nth-child(4){right:13%;top:3%;width:calc(95 * var(--mu))}.milne-paws svg:nth-child(5){right:15%;bottom:0;width:calc(85 * var(--mu))}
.milne-teacher .tv-filterbar{display:grid!important;grid-template-columns:1.4fr 1fr .62fr;gap:calc(22 * var(--mu))!important;border:0!important;padding:calc(9 * var(--mu)) calc(22 * var(--mu))!important;padding-right:34%!important;margin:0 0 calc(12 * var(--mu))!important;min-height:calc(72 * var(--mu))}
.milne-teacher .tv-filterbar .field{min-width:0!important;margin:0!important;gap:3px!important}.milne-teacher .tv-filterbar label{font-size:14px!important;text-transform:none!important;font-weight:400!important;margin:0!important}
.milne-teacher .tv-filterbar select{width:100%;min-height:34px!important;height:34px!important;padding:4px 10px!important;font-size:14px!important;border-radius:6px!important}
.milne-teacher .tv-profile-card{grid-template-columns:1.05fr 1fr 1fr 1fr!important;gap:calc(16 * var(--mu))!important;margin:0 0 calc(16 * var(--mu))!important}
.milne-teacher .tv-profile-main{padding:calc(15 * var(--mu)) calc(24 * var(--mu))!important;border:0!important;gap:calc(18 * var(--mu))!important}
.milne-teacher .tv-profile-main> :first-child{width:calc(72 * var(--mu))!important;height:calc(72 * var(--mu))!important;min-width:calc(72 * var(--mu))!important;font-size:calc(38 * var(--mu))!important}
.milne-teacher .tv-profile-main>.tv-avatar{flex:0 0 calc(72 * var(--mu))!important;max-width:calc(72 * var(--mu))!important;aspect-ratio:1;border-radius:50%!important;padding:0!important}
.milne-teacher .tv-profile-copy h2{font-size:calc(28 * var(--mu))!important;margin:0 0 4px!important;line-height:1.1!important}.milne-teacher .tv-profile-copy small,.milne-teacher .tv-role-pill{display:none!important}.milne-teacher .tv-profile-copy>div{font-weight:700;font-size:calc(16 * var(--mu))}
.milne-teacher .tv-profile-card .tv-stat{display:grid!important;grid-template-columns:calc(55 * var(--mu)) 1fr;grid-template-rows:auto auto;align-content:center;column-gap:calc(18 * var(--mu));padding:calc(14 * var(--mu)) calc(32 * var(--mu))!important;min-height:calc(98 * var(--mu))!important}
.milne-teacher .tv-profile-card .tv-stat i{grid-row:1/3;align-self:center;width:calc(48 * var(--mu))!important;height:calc(48 * var(--mu))!important;margin:0!important}.milne-teacher .tv-stat i svg{width:100%!important;height:100%!important}
.milne-teacher .tv-profile-card .tv-stat b{font-size:calc(36 * var(--mu))!important;margin:0!important;line-height:1.1!important}.milne-teacher .tv-profile-card .tv-stat span{font-size:calc(19 * var(--mu))!important;font-weight:700;margin:0!important;line-height:1.2}
.milne-teacher .tv-tabs-top{margin:0 0 calc(16 * var(--mu))!important;flex-wrap:nowrap}.milne-teacher .tv-tabs-top button{flex:1;min-width:0!important;height:calc(55 * var(--mu));min-height:48px;padding:6px!important;font-size:calc(17 * var(--mu))!important;gap:10px!important}
.milne-story-layout{grid-template-columns:minmax(0,1.93fr) minmax(0,1fr);gap:calc(16 * var(--mu));align-items:stretch;margin:0 0 calc(14 * var(--mu))}
.milne-teacher .v95-story{padding:0 0 calc(30 * var(--mu))!important;overflow:hidden}
.milne-story-title{background:#bd0014;color:white;padding:calc(13 * var(--mu)) calc(30 * var(--mu));font-size:calc(25 * var(--mu));font-weight:800;line-height:1.15}
.milne-story-columns{display:grid;grid-template-columns:1fr 1fr;padding:calc(28 * var(--mu)) calc(30 * var(--mu)) calc(18 * var(--mu));gap:calc(26 * var(--mu))}
.milne-story-columns section{display:flex;gap:calc(18 * var(--mu));min-width:0}.milne-story-columns section+section{border-left:1px solid #ddd;padding-left:calc(30 * var(--mu))}
.milne-topic-icon{flex:0 0 calc(65 * var(--mu));height:calc(65 * var(--mu));border-radius:50%;display:grid;place-items:center;background:#fce6e8;color:#b30012;font-size:calc(38 * var(--mu))}
.milne-story-columns h3{font-size:calc(20 * var(--mu));margin:5px 0 8px;line-height:1.2}.milne-story-columns p{font-size:calc(16 * var(--mu));line-height:1.4;margin:0;color:#303d4d}
.milne-evidence-button{margin-left:calc(30 * var(--mu));background:white;border:2px solid #17171b;border-radius:5px;padding:8px 22px;font-size:calc(17 * var(--mu));font-weight:800;min-height:40px}
.milne-story-layout>.v95-next{padding:0 calc(26 * var(--mu)) calc(12 * var(--mu));gap:0}
.milne-story-layout>.v95-next h2{font-size:calc(24 * var(--mu));line-height:1.2;padding:calc(13 * var(--mu)) calc(22 * var(--mu));margin:0 calc(-26 * var(--mu)) 10px}
.milne-coach-focus{font-size:calc(16 * var(--mu))}.v95-next ol{list-style:none;counter-reset:step;padding:0;margin:12px 0}.v95-next li{counter-increment:step;position:relative;padding-left:calc(68 * var(--mu));margin:0 0 12px;min-height:34px}.v95-next li:before{content:counter(step);position:absolute;left:15px;top:0;background:#efb823;color:#111;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;font-weight:800;font-size:21px}.v95-next li b{font-size:calc(15 * var(--mu));margin:0!important}.v95-next li span{font-size:calc(14 * var(--mu));color:#303d4d;font-weight:400;letter-spacing:0;margin-top:2px}
.milne-story-layout>.v95-next button{margin-top:auto!important;min-height:42px;border-radius:5px;font-size:calc(17 * var(--mu));padding:8px!important}
.milne-history{background:white;border-radius:12px}.milne-history>summary{list-style:none;display:flex;align-items:center;gap:20px;padding:10px 22px;cursor:pointer;min-height:66px}.milne-history>summary::-webkit-details-marker{display:none}.milne-history summary b{font-size:21px;display:block}.milne-history summary small{display:block;color:#405063;font-size:15px;margin-top:3px}.milne-history-icon{background:#bd0014;color:#fff;border-radius:50%;width:48px;height:48px;display:grid;place-items:center;font-size:28px}.milne-history-link{margin-left:auto;color:#a9020c;font-size:14px}.milne-history-content{padding:20px}.milne-history-content [hidden]{display:none!important}.milne-source-details{margin:16px 0}
@media(min-width:1100px){body:has(.milne-teacher) .topbar{height:calc(60 * var(--mu));min-height:52px;border:0;padding:0 calc(44 * var(--mu));gap:12px}body:has(.milne-teacher) .school-title{color:#f2bd25;font-size:calc(25 * var(--mu));letter-spacing:3px;white-space:nowrap}body:has(.milne-teacher) .school-mark>div:last-child{display:flex;align-items:center;gap:24px}body:has(.milne-teacher) .school-motto{border-left:1px solid #777;padding-left:24px;font-size:calc(17 * var(--mu));font-style:italic;white-space:nowrap}body:has(.milne-teacher) .topbar .home-btn,body:has(.milne-teacher) .topbar .bell-btn,body:has(.milne-teacher) .topbar .search-btn{display:none}body:has(.milne-teacher) .topbar .hamb{font-size:20px;width:20px;padding:0}body:has(.milne-teacher) .topbar .profile{border:0;margin-left:auto;padding:0;gap:8px}}
@media(max-width:900px){body:has(.milne-teacher){--mu:.8px}.milne-teacher{padding:0 18px 24px!important}.milne-teacher .tv-head{margin:0 -18px 12px!important;padding:25px 20px!important;height:260px}.milne-teacher .tv-head h1{font-size:48px!important}.milne-teacher .tv-head p{font-size:15px!important;white-space:normal;max-width:65%}.milne-teacher .milne-hero-copy{width:100%}.milne-teacher .milne-lennie{left:auto;right:5px;top:10px;width:180px;height:245px}.milne-hero-actions{flex-direction:column;align-items:flex-start;gap:8px}.milne-teacher .tv-head button{font-size:15px!important;min-width:0!important;width:auto}.milne-teacher .tv-filterbar{padding:12px!important;grid-template-columns:1fr 1fr 1fr}.milne-teacher .tv-profile-card{grid-template-columns:1fr 1fr!important}.milne-teacher .tv-profile-main{grid-column:auto}.milne-story-layout{grid-template-columns:1fr}.milne-story-columns p{font-size:15px}.milne-teacher .tv-tabs-top{flex-wrap:wrap}.milne-teacher .tv-tabs-top button{flex:1 1 30%;font-size:14px!important}}
@media(max-width:520px){.milne-teacher .tv-head h1{font-size:40px!important}.milne-teacher .milne-lennie{width:135px;height:185px;top:25px;right:0}.milne-teacher .tv-head p{max-width:62%;font-size:14px!important}.milne-teacher .tv-head button{font-size:13px!important;padding:0 10px!important}.milne-teacher .tv-filterbar{grid-template-columns:1fr 1fr}.milne-period{grid-column:1/-1}.milne-teacher .tv-profile-card .tv-stat{padding:12px!important;grid-template-columns:30px 1fr;gap:8px}.milne-teacher .tv-profile-card .tv-stat i{width:28px!important;height:28px!important}.milne-teacher .tv-profile-card .tv-stat b{font-size:25px!important}.milne-teacher .tv-profile-main{padding:12px!important}.milne-teacher .tv-profile-copy h2{font-size:19px!important}.milne-story-columns{grid-template-columns:1fr;padding:20px}.milne-story-columns section+section{border:0;padding:0}}
/* Final reference pass: align to the supplied 1536 by 1024 composition. */
.milne-teacher summary:focus-visible,.milne-teacher select:focus-visible{outline:3px solid #a97400;outline-offset:3px}
.milne-history,.milne-source-details{scroll-margin-top:80px}
@media(max-width:520px){
 .milne-teacher .tv-head{height:auto;min-height:290px!important;padding-bottom:45px!important}
 .milne-teacher .milne-hero-actions{margin-top:16px;max-width:100%;padding-top:50px}
 .milne-teacher .milne-lennie{width:105px;height:145px;top:15px}
 .milne-teacher .milne-lennie-shadow{top:150px;right:12px;width:82px}
 .milne-teacher .tv-head button{min-height:44px!important;max-width:100%;white-space:normal!important}
 .milne-teacher .tv-head button .milne-icon{width:20px;height:20px;margin-right:6px}
 .milne-teacher .tv-tabs-top button{min-height:48px;height:auto;padding:10px!important}
 .milne-history>summary{gap:10px;padding:12px}
 .milne-history-link{font-size:12px;white-space:nowrap}
 .milne-history-content{padding:12px;overflow-x:auto}
 .milne-teacher .tv-profile-copy h2{overflow-wrap:anywhere}
}
@media(min-width:901px){
 .milne-teacher .milne-hero-actions{transform:translateY(calc(-24 * var(--mu)))}
 .milne-teacher .tv-tabs-top button{flex:1 1 0;white-space:nowrap;font-size:calc(17 * var(--mu))!important;gap:calc(18 * var(--mu))!important}
 .milne-teacher .tv-tabs-top button:nth-child(3){flex:1.25 1 0}
 .milne-teacher .tv-tabs-top button:nth-child(4){flex:1.15 1 0}
 .milne-teacher .tv-head{z-index:31}
 .milne-teacher .tv-head h1{font-size:calc(94 * var(--mu))!important;letter-spacing:-2.5px}
 .milne-teacher .milne-lennie{left:calc(950 * var(--mu));top:calc(-29 * var(--mu));width:calc(375 * var(--mu));height:calc(370 * var(--mu))}
 .milne-teacher .tv-profile-copy h2{font-size:calc(31 * var(--mu))!important}
 .milne-teacher .tv-profile-card .tv-stat{border-radius:calc(10 * var(--mu))!important}
 .milne-teacher .tv-stat.blue,.milne-story-title,.milne-teacher .tv-tabs-top [data-teacher-action=spot]{background:linear-gradient(105deg,#c90017,#ba0010)!important}
 .milne-teacher .tv-stat.purple,.milne-story-layout>.v95-next h2,.milne-teacher .tv-head .v97-enter-next-spot{background:linear-gradient(105deg,#f8c431,#efb323)!important}
 .milne-teacher .tv-stat.pink{background:#050505!important}
 .milne-story-layout{margin:0 0 calc(14 * var(--mu));min-height:calc(298 * var(--mu))}
 .milne-teacher .v95-story{padding-bottom:calc(30 * var(--mu))!important}
 .milne-story-title{height:calc(52 * var(--mu));font-size:calc(25 * var(--mu))}
 .milne-story-columns{padding-top:calc(29 * var(--mu));padding-bottom:calc(20 * var(--mu));min-height:calc(166 * var(--mu))}
 .milne-story-columns h3{font-size:calc(21 * var(--mu))}
 .milne-story-columns p{font-size:calc(17 * var(--mu));line-height:1.25}
 .milne-evidence-button{width:calc(248 * var(--mu));height:calc(45 * var(--mu));justify-content:center;padding:4px 12px}
 .milne-story-layout>.v95-next{min-height:0!important;padding:0 calc(26 * var(--mu)) calc(12 * var(--mu))!important}
 .milne-story-layout>.v95-next h2{height:calc(51 * var(--mu));margin-bottom:calc(8 * var(--mu))}
 .milne-coach-focus{font-size:calc(18 * var(--mu));line-height:1.25;background:#fffaf0;padding:4px 0}
 .milne-story-layout>.v95-next ol{margin:calc(10 * var(--mu)) 0 calc(6 * var(--mu))}
 .milne-story-layout>.v95-next li{margin-bottom:calc(10 * var(--mu));min-height:calc(38 * var(--mu))}
 .milne-story-layout>.v95-next li b{font-size:calc(16 * var(--mu))}
 .milne-story-layout>.v95-next li span{font-size:calc(15 * var(--mu))}
 .milne-story-layout>.v95-next button{height:calc(43 * var(--mu));min-height:0!important}
 .milne-history>summary{min-height:calc(68 * var(--mu))}
 .milne-teacher .tv-tabs-top [data-teacher-action=spot]{box-shadow:inset 0 -3px #fff,inset 0 -5px #bd0014}
}
/* Teacher View uses readable controls and natural hero height on phones. */
@media (max-width:700px){
  .milne-teacher{padding:0 12px 24px!important}
  .milne-teacher .tv-head{height:auto!important;min-height:0!important;margin:0 -12px 16px!important;padding:22px 16px 36px!important}
  .milne-teacher .milne-hero-copy{width:100%;min-width:0}
  .milne-teacher .tv-head h1{font-size:32px!important;letter-spacing:-1px;max-width:calc(100% - 92px)}
  .milne-teacher .tv-head p{font-size:14px!important;white-space:normal!important;max-width:calc(100% - 92px);line-height:1.4!important}
  .milne-teacher .milne-lennie{left:auto!important;right:8px!important;top:12px!important;width:90px!important;height:125px!important}
  .milne-teacher .milne-lennie-shadow{display:none}
  .milne-teacher .milne-hero-actions{display:flex;flex-direction:column;align-items:stretch;transform:none!important;gap:8px;margin-top:20px;padding-top:0;max-width:100%}
  .milne-teacher .tv-head button{width:100%!important;min-height:44px!important;height:auto!important;padding:10px 12px!important;font-size:15px!important;white-space:normal!important}
  .milne-teacher .tv-filterbar{padding:12px!important;gap:12px!important;grid-template-columns:minmax(0,1fr)!important}
  .milne-teacher .tv-filterbar .field{grid-column:auto!important;min-width:0!important}
  .milne-teacher .tv-filterbar select{font-size:16px!important;min-height:44px!important;height:auto!important}
  .milne-teacher .tv-profile-card{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .milne-teacher .tv-profile-main{grid-column:1/-1!important;display:flex!important;flex-wrap:nowrap!important;align-items:center;padding:14px!important}
  .milne-teacher .tv-profile-main>.tv-avatar{width:56px!important;height:56px!important;min-width:56px!important;max-width:56px!important;flex:0 0 56px!important;font-size:26px!important}
  .milne-teacher .tv-profile-copy{min-width:0}
  .milne-teacher .tv-profile-copy h2{font-size:22px!important;overflow-wrap:anywhere}
  .milne-teacher .tv-profile-copy>div{font-size:14px!important}
  .milne-teacher .tv-profile-card .tv-stat{padding:12px!important;min-height:88px!important;grid-template-columns:28px minmax(0,1fr);gap:8px}
  .milne-teacher .tv-profile-card .tv-stat b{font-size:24px!important}
  .milne-teacher .tv-profile-card .tv-stat span{font-size:14px!important}
  .milne-teacher .tv-tabs-top{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px!important;overflow:visible}
  .milne-teacher .tv-tabs-top button{min-width:0!important;min-height:48px;height:auto!important;padding:10px!important;font-size:14px!important;white-space:normal!important;gap:8px!important}
  .milne-teacher .tv-tabs-top button .milne-icon{width:22px;height:22px}
  .milne-teacher .section-head{flex-wrap:wrap;gap:10px}
}


/* Let all seven evidence tabs fit naturally without clipping labels or icons. */
.milne-teacher .tv-tabs-top{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px!important;overflow:visible!important}
.milne-teacher .tv-tabs-top button{display:flex!important;align-items:center;justify-content:center;min-width:0!important;min-height:66px!important;height:auto!important;padding:12px!important;white-space:normal!important;font-size:15px!important;line-height:1.35!important;gap:9px!important;overflow-wrap:anywhere}
.milne-teacher .tv-tabs-top button .milne-icon{width:24px!important;height:24px!important;flex:0 0 24px!important}
.milne-story-layout{grid-template-columns:minmax(0,1.25fr) minmax(320px,1fr);align-items:start;min-height:0!important}
.milne-story-layout>.v95-next h2,.milne-story-title{height:auto!important;min-height:52px;line-height:1.3;padding-top:14px;padding-bottom:14px}
.milne-story-layout>.v95-next .milne-coach-basis{font-size:14px;margin:0;line-height:1.5}
.milne-story-layout>.v95-next li{height:auto;min-height:0;margin:0 0 20px;padding-bottom:16px;border-bottom:1px solid #e1cc9d}
.milne-story-layout>.v95-next li p{font-size:15px;line-height:1.5;margin:8px 0}.milne-story-layout>.v95-next li small{display:block;font-size:14px;line-height:1.5}.milne-story-layout>.v95-next li small b{font-size:14px}
.milne-gap-score{display:block;font-weight:700;color:#a9020c;margin-top:5px}.milne-history-content>.grid2{grid-template-columns:1fr}.milne-history-content{min-width:0}.milne-history-content table{width:100%}
@media(max-width:1000px){.milne-story-layout{grid-template-columns:1fr}.milne-teacher .tv-tabs-top{grid-template-columns:repeat(2,minmax(0,1fr))}}
