/* Teacher TV dashboard and class results. Both views use the common studio header. */
body:has(.room-v2) main.shell{width:100%;max-width:none;margin:0;padding:0}
body:has(.room-v2) #note:empty{display:none}
body:has(.room-v2) header .top{min-height:52px;height:52px}
.room-v2{--room-rule:#d6dfd2;--room-muted:#5a6f63;background:#fff;color:#173d32;font-variant-numeric:tabular-nums}
.room-live{height:calc(100dvh - 52px);display:flex;flex-direction:column;min-height:0}
.room-v2 .heading{display:flex;align-items:center;justify-content:space-between;flex:none;gap:16px;min-height:70px;padding:10px 28px;margin:0;border-bottom:1px solid var(--room-rule);background:#fff}
.room-caption,.room-caption h1,.room-v2 .heading .actions{display:flex;align-items:center;gap:12px;margin:0}
.room-caption h1{font-size:28px;line-height:1.25}
.room-caption .muted{font-size:18px;font-weight:650}
.room-status{font-size:15px;font-weight:650;white-space:nowrap}
.room-status:before{content:"●";color:#389778;margin-right:7px}
.room-status[data-state="paused"]:before{color:#be8c18}
.room-status[data-state="ended"]:before{color:#778980}
.room-v2 button{font-family:inherit;background:white;border:1px solid var(--room-rule);border-radius:6px;padding:9px 16px;font-weight:700}
.room-panes{display:grid;grid-template-columns:minmax(280px,26%) minmax(0,1fr);min-height:0;flex:1}
.room-now,.room-students{background:#f4f5ee;border-right:1px solid var(--room-rule);min-width:0}
.room-now{display:flex;flex-direction:column;overflow:auto}
.room-v2 h2,.room-now h3{margin:0;font-size:19px}
.room-now section{padding:20px 28px;border-bottom:1px solid var(--room-rule)}
.room-now h2{color:var(--room-muted);font-size:15px}
.room-now .room-clock{background:#104b3a;position:relative;overflow:hidden;color:#fffef3;flex:none}
.room-clock h2{color:#c0d4ca}
.room-clock strong,.room-people strong{display:block;line-height:1.1;letter-spacing:-.04em;margin-top:4px;font-weight:800}
.room-clock strong{font-size:clamp(56px,5.2vw,88px)}
.room-clock .walker{width:64px;height:64px;right:8%;bottom:14px;background-size:256px auto}
.room-people strong{font-size:clamp(48px,4.4vw,72px)}
.room-people small{font-size:.45em;font-weight:700;color:var(--room-muted)}
.room-dots{display:grid;grid-template-columns:repeat(10,10px);gap:6px;margin-top:14px}
.room-dots b{width:10px;height:10px;background:#3c9a77}
.room-dots .off{background:transparent;outline:1px solid #9fb0a5;outline-offset:-1px}
.room-absent ul{list-style:none;padding:0;margin:6px 0 0}
.room-absent li{display:flex;align-items:center;gap:8px;min-height:40px;border-bottom:1px solid var(--room-rule);font-size:18px;font-weight:700}
.room-absent ul.compact{display:grid;grid-template-columns:repeat(auto-fit,minmax(78px,1fr));gap:0 8px}
.room-absent .compact li{font-size:14px;min-height:29px}
.room-absent .compact i{display:none}
.room-sprite{width:30px;height:30px;display:block;image-rendering:pixelated;background-size:120px auto;background-repeat:no-repeat;flex:none}
.room-station{padding:0 32px 20px;display:flex;flex-direction:column;min-height:0}
.room-board-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:56px;border-bottom:1px solid var(--room-rule)}
.room-board-head small{color:var(--room-muted)}
.room-live .room-board{flex:1;min-height:0;overflow:auto;display:grid;grid-auto-flow:column;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(var(--room-rows),minmax(44px,104px));column-gap:clamp(12px,2.2vw,36px)}
.room-v2 .room-row{display:grid;align-items:center;gap:8px;min-width:0;background:transparent;border:0;border-bottom:1px solid var(--room-rule);border-radius:0}
.room-live .room-row{grid-template-columns:36px 30px minmax(0,1fr) auto;padding:0 6px 0 4px}
.room-rank{font-size:16px;font-weight:700;text-align:center;color:var(--room-muted)}
.room-nick{font-size:clamp(19px,1.7vw,32px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.room-nick svg{vertical-align:middle;margin-left:6px}
.room-score{font-size:clamp(24px,2.2vw,42px);line-height:1;font-weight:800}
.room-score small{font-size:14px;color:var(--room-muted);margin-left:3px}
.room-v2 .offline{color:#88998e}
.room-live .offline .room-score{font-size:15px}
.room-live .offline .room-sprite{opacity:.45}
.room-v2 :is(.medal1,.medal2,.medal3) .room-rank{position:relative;isolation:isolate;color:#342919}
.room-v2 :is(.medal1,.medal2,.medal3) .room-rank:before{content:"";position:absolute;inset:-5px 2px -3px;background:var(--metal);z-index:-1;clip-path:polygon(0 15%,25% 40%,50% 0,75% 40%,100% 15%,88% 94%,12% 94%)}
.room-row.medal1{--metal:#e8b83b}.room-row.medal2{--metal:#bdcbd7}.room-row.medal3{--metal:#d99b70}
.room-results .room-panes{min-height:calc(100vh - 122px)}
.room-students{padding:20px 24px}
.room-students h2{margin-bottom:12px}
.room-results .room-row{grid-template-columns:minmax(0,1fr) auto auto;min-height:46px;padding:0 8px}
.room-results .room-row[aria-current=true]{background:#eaf4ec;border-left:3px solid #006657;padding-left:5px}
.room-results .room-row button{border:0;background:transparent;text-align:left;padding:8px 0}
.room-report{min-width:0;padding:20px 28px}
.room-report .block,.room-report #report{border:0;border-radius:0;margin:0;padding:0;background:none}
.room-report .chip{border-radius:0;padding:0;background:none}
.room-report .actions{gap:20px;margin:16px 0 20px}
.room-report #studentDetail:not(:empty){margin-top:28px;border-top:1px solid var(--room-rule);padding-top:20px}
.room-report #studentDetail .block{padding:12px 0;border-bottom:1px solid var(--room-rule)}
@media(prefers-reduced-motion:reduce){.room-clock .walker{animation:none}}
@media(max-width:900px){.room-live{height:auto}.room-panes{grid-template-columns:1fr}.room-now{border:0}.room-live .room-board{display:block}.room-live .room-row{min-height:54px}.room-v2 .heading{flex-wrap:wrap}.room-caption{flex-wrap:wrap}}
@media(min-width:901px){
  body:has(.room-live){height:100dvh;display:grid;grid-template-rows:auto minmax(0,1fr)}
  body:has(.room-live) main.shell{height:100%;min-height:0;display:flex;flex-direction:column}
  #view:has(.room-live){display:flex;flex-direction:column;flex:1;min-height:0}
  .room-live{height:auto;flex:1;min-height:0}
}
