.course-nav{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.course-nav a{display:inline-block;padding:7px 13px;border:1px solid var(--line);border-radius:7px;color:var(--teal);background:var(--paper);text-decoration:none;font-weight:600}
.course-nav a[aria-current=page]{color:#fff;background:var(--teal);border-color:var(--teal)}
.live-layout{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:14px;align-items:start}
.live-layout:not(.has-student){grid-template-columns:1fr}.live-layout:not(.has-student) .live-reader{display:none}
.tile-help{display:inline-block;margin:0 0 10px 12px;color:var(--muted)}.portal-wrap.room-open{max-width:1560px}
.live-list input{width:min(255px,100%);margin-bottom:12px}.avatar-tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:8px}
.avatar-tile{display:flex;align-items:center;flex-direction:column;position:relative;min-width:0;padding:7px 6px 10px;color:var(--ink);background:#fafbf7;border:1px solid #cbdace;border-radius:11px}
.avatar-tile.picked-tile{border:2px solid var(--teal);padding:6px 5px 9px;background:#e7f1e7}
.avatar-tile strong{max-width:100%;font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portrait{width:42px;height:42px;display:grid;place-items:center;background:#e2eee3;border-radius:50%;font-size:29px;line-height:1;margin:4px 0}
.live-status{display:flex;align-items:center;gap:3px;align-self:flex-end;font-size:11px;color:var(--muted)}
.live-status:before{width:7px;height:7px;background:#8f9995;border-radius:50%;content:""}.live-status.online:before{background:#158366}
.work-state{font-size:12px;color:#416257}.live-reader{scroll-margin-top:15px}.live-reader>h3{margin-top:16px}
.work-retry{color:#8a4b0d;font-weight:600}
.live-caption{display:inline-block;margin-bottom:12px}.mirror-task,.mirror-draft,.mirror-experiment{padding:13px 14px;margin:5px 0 12px;border:1px solid var(--line);border-radius:9px;overflow-wrap:anywhere}
.mirror-task{border-left:4px solid #51856b}.mirror-draft{background:#fff4d9;border-style:dashed;border-color:#cbae70}.mirror-experiment{background:#edf5ef}
.mirror-task p,.mirror-draft p,.mirror-experiment p{margin:5px 0 0;white-space:pre-wrap}.mirror-task h3,.mirror-draft h3,.mirror-experiment h3{margin:0}
@media(min-width:1200px){.live-layout:not(.has-student) .avatar-tiles{grid-template-columns:repeat(10,minmax(0,1fr))}}
@media(min-width:1200px){
  .room-open{padding-top:20px}.room-open .back-link{margin-bottom:6px}.room-open .portal-heading{margin-bottom:10px}
  .room-open .portal-heading h1{font-size:clamp(28px,2.7vw,39px)}.room-open .course-nav{margin-bottom:10px}
  .live-layout:not(.has-student) .live-list .sectionhead{margin-bottom:8px}
  .live-layout:not(.has-student) .avatar-tile{padding:4px 5px;gap:1px}
  .live-layout:not(.has-student) .portrait{width:34px;height:34px;margin:0;font-size:25px}
  .live-layout:not(.has-student) .live-status{line-height:1.15}
  .live-layout:not(.has-student) .avatar-tile strong,.live-layout:not(.has-student) .work-state{line-height:1.25}
}
@media(min-width:1200px) and (max-height:810px){
  .portal-wrap.room-open{padding-top:12px}
  .room-open .portal-heading{margin-bottom:6px}
  .live-layout:not(.has-student) .live-list{padding:12px 20px}
  .live-layout:not(.has-student) .avatar-tiles{gap:4px 6px}
  .live-layout:not(.has-student) .avatar-tile{padding-block:2px;row-gap:0}
  .live-layout:not(.has-student) .portrait{height:24px;width:24px;font-size:21px}
}
@media(min-width:831px){.has-student .live-reader{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow-y:auto}}
@media(max-width:830px){.live-layout{grid-template-columns:1fr}.avatar-tiles{grid-template-columns:repeat(auto-fill,minmax(90px,1fr))}.has-student .live-reader{grid-row:1;scroll-margin-top:10px}}
.live-fullscreen{box-sizing:border-box;inset:0;width:100%;max-width:none;height:100%;max-height:none;margin:0;border:0;padding:clamp(10px,1.6vw,24px);background:#f4f6f1;color:var(--ink);overflow:auto;overscroll-behavior:contain}
.live-fullscreen::backdrop{background:#f4f6f1}
.live-layout{min-width:0}.live-layout .live-list,.live-layout .live-reader{min-width:0}
.live-layout .sectionhead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.live-layout .sectionhead h2{margin:0}.live-layout .sectionhead small{color:var(--muted)}
.live-layout .live-expand{white-space:nowrap;background:#245842;color:#fff;border:1px solid #245842;border-radius:7px;padding:7px 13px}
.live-filter{margin:8px 0}.live-filter input{margin-bottom:0}.live-filter .tile-help{margin-bottom:0}
.live-expanded>.live-list,.live-expanded>.live-reader{margin:0;background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:clamp(10px,1.2vw,20px)}
.live-expanded .live-reader{max-height:calc(100dvh - 44px);overflow:auto}
.live-mark,.live-score{font-size:12px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.live-mark{color:#53645d}.live-mark[data-state=marked]{color:#175a40}.live-mark[data-state=pending]{color:#315778}
.live-mark[data-state=review],.live-mark[data-state=retry]{color:#8a4b19}.live-score{color:#203c36;font-variant-numeric:tabular-nums}
.round-feedback,.final-summary{margin-top:15px;padding-top:12px;border-top:1px solid var(--line)}
.final-summary{margin:7px 0 12px;padding:12px 14px;background:#edf4ec;border-radius:7px}
.round-feedback h3,.final-summary h3{margin:0;font-size:18px}.round-evidence h4{font-size:17px;margin:10px 0 6px}
.round-counts,.round-question,.final-summary p{margin:5px 0}.round-counts{color:#365346;font-variant-numeric:tabular-nums}
.conclusion-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));gap:6px}
.live-layout .evidence-student{width:100%;margin:0;min-width:0;text-align:left;border:1px solid #cbdace;background:#fafbf7;color:var(--ink);padding:8px 10px;border-radius:6px}
.evidence-student strong,.evidence-student>span{display:block;overflow-wrap:anywhere;white-space:pre-wrap}.evidence-student strong{font-size:13px;color:#32634c;margin-bottom:3px}
.error-group,.summary-item{border-top:1px solid #cbdace;padding:7px 0}.error-group summary,.summary-item summary{cursor:pointer;color:#315942}
.error-group summary b{margin-left:8px;white-space:nowrap;font-size:13px}.error-group .evidence-student{margin-top:6px}
.live-expanded .live-list>.sectionhead{position:sticky;top:0;z-index:1;padding:5px 0;background:var(--paper)}
@media(min-width:1200px){
  .room-open .live-layout:not(.has-student):not(.live-expanded) .live-list{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:20px}
  .room-open .live-list>*{grid-column:1/-1}
  .room-open .live-list>.sectionhead{grid-area:1/1;margin-bottom:6px}
  .room-open .live-list>.sectionhead>div{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}
  .room-open .live-list>.live-filter{grid-area:1/2;margin:0 0 6px}
}
.live-reader #screenWatch{margin:8px 0;border-block:1px solid #c8d6cf;padding:7px 0}
.live-reader #screenWatch .bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.live-reader #watchStatus{font-size:13px;color:#315c4d}
.live-reader #watchImage{display:block;max-height:58vh;width:100%;object-fit:contain;background:#e9eeeb;margin-top:6px}
.live-reader #screenWatch.screen-large{position:fixed;inset:0;z-index:30;margin:0;padding:12px;display:flex;flex-direction:column;background:#f4f6f3}
.live-reader #screenWatch.screen-large #watchImage{flex:1;min-height:0;max-height:none}
@media(max-width:830px){.live-expanded .live-reader{max-height:none}.live-expanded.has-student{display:flex;flex-direction:column}.live-expanded.has-student>*{width:100%}.live-expanded .live-reader{order:-1}}
.gallery-entries,.gallery-tools,.gallery-tabs,.gallery-foot,.gallery-head{display:flex;align-items:center;gap:10px}
.gallery-entries{margin:16px 0 10px}
.gallery-entry{background:#155c48;color:white;border:1px solid #155c48;padding:9px 16px;border-radius:7px;font-weight:650}
.gallery-entry+.gallery-entry{background:#fff;color:#155c48}
.work-gallery,.gallery-projection{box-sizing:border-box;color:#162f28;background:#f6f7f1}
.work-gallery{--gallery-pad:clamp(14px,2.1vw,30px);border:1px solid #c1cfc5;border-radius:13px;padding:var(--gallery-pad);width:min(92vw,980px);max-width:none;max-height:94dvh;overflow:auto}
.work-gallery::backdrop{background:rgb(13 33 28 / .67)}
.work-gallery[open],.gallery-projection:not([hidden]){display:flex;flex-direction:column;gap:12px}
.work-gallery.gallery-full,.gallery-projection{inset:0;margin:0;width:100%;height:100dvh;max-height:none;border:0;border-radius:0}
.gallery-head{justify-content:space-between;flex-wrap:wrap}
.gallery-head h2{font-size:clamp(21px,2vw,32px);margin:0;line-height:1.2}
.gallery-tools,.gallery-tabs{flex-wrap:wrap}
.work-gallery button,.gallery-projection button{min-height:38px;white-space:nowrap;border-radius:7px}
.gallery-tabs{padding:0 0 10px;border-bottom:1px solid #cfdbcf}
.gallery-tabs button[aria-pressed=true],.gallery-tools button[aria-pressed=true]{background:#155c48;color:white;border-color:#155c48}
.gallery-model{color:#50685d;margin-inline-start:auto}
.gallery-question{line-height:1.5;font-size:clamp(15px,1.55vw,23px);margin:0;overflow-wrap:anywhere;max-height:18vh;overflow:auto}
.gallery-paper{box-sizing:border-box;display:grid;align-items:center;justify-items:center;background:white;border:1px solid #c7d4c9;border-radius:8px;min-height:min(32dvh,235px);overflow:auto;cursor:zoom-in;overscroll-behavior:contain}
.gallery-image{display:block;max-width:100%;max-height:43dvh;object-fit:contain;justify-self:center;height:auto;width:auto}
.gallery-writing{box-sizing:border-box;display:block;width:min(100%,40em);padding:clamp(20px,4vw,66px);font-size:clamp(21px,2.3vw,36px);line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.gallery-note{border-left:3px solid #7fa990;padding-left:12px;line-height:1.5}
.gallery-note strong{color:#345a4a;font-size:14px}.gallery-note p{margin:3px 0;overflow-wrap:anywhere}.gallery-quote,.gallery-empty{color:#50685d}
.gallery-supplement{justify-self:stretch;margin:0;padding:8px 15px;background:#f1f5ef;white-space:pre-wrap}
.gallery-paper:has(.gallery-supplement){display:flex;flex-direction:column;align-items:stretch}
.gallery-paper:has(.gallery-supplement) .gallery-image{align-self:center}
.gallery-full .gallery-paper:not(.zoomed):has(.gallery-supplement) .gallery-image,.gallery-projection .gallery-paper:has(.gallery-supplement) .gallery-image{position:static;flex:1;min-height:0;width:100%;height:0}
.gallery-foot{justify-content:center}.gallery-count{min-width:64px;text-align:center;font-variant-numeric:tabular-nums}
.gallery-full .gallery-paper,.gallery-projection .gallery-paper{flex:1 1 16rem;min-height:0;position:relative}
.gallery-full .gallery-paper:not(.zoomed) .gallery-image,.gallery-projection .gallery-image{position:absolute;inset:0;width:100%;height:100%;max-height:none}
.gallery-full .gallery-paper.zoomed{display:block;cursor:zoom-out}
.gallery-full .gallery-paper.zoomed .gallery-image{max-width:none;max-height:none;width:max(145%,900px);height:auto}
.gallery-full .gallery-paper.zoomed .gallery-writing{width:100%;max-width:none;font-size:clamp(30px,4vw,60px)}
.gallery-full .gallery-note{max-height:18dvh;overflow:auto}
.gallery-projection{position:fixed;z-index:40;padding:clamp(16px,2.4vw,42px)}.gallery-projection .gallery-paper{cursor:default}
@media(max-width:700px){.work-gallery{width:96vw}.work-gallery.gallery-full{width:100%}.gallery-tools,.gallery-tabs{gap:6px}.gallery-model{width:100%;margin:0}.gallery-tools button,.gallery-tabs button{padding:5px 9px}.gallery-note{font-size:14px}}
