:root{color-scheme:light;--ink:#142a25;--dim:#4b645c;--green:#235846;--paper:#f4f7f2;--line:#dbe5dc;--mint:#d9f0c8;--white:#fff;--radius:1.25rem;font-family:"Segoe UI",system-ui,sans-serif;color:var(--ink);background:var(--paper);line-height:1.5}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0}
a{color:var(--green)}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #488867;outline-offset:3px}
button,input,select,textarea{font:inherit}
h1,h2,h3,p{margin:0}
h1{font-size:clamp(2.25rem,6vw,4.2rem);line-height:1.05;letter-spacing:-.055em}
h2{font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.2;letter-spacing:-.025em}
h3{font-size:1.1rem}
.shell{width:min(71rem,calc(100% - 3rem));margin-inline:auto}
.top{background:#fff;border-bottom:1px solid var(--line)}
.bar{min-height:4.5rem;display:flex;align-items:center;justify-content:space-between;gap:.6rem}
.brand{display:flex;align-items:center;gap:.65rem;font-weight:800;text-decoration:none;color:var(--ink);white-space:nowrap}
.mark{display:grid;place-items:center;width:2.15rem;aspect-ratio:1;color:var(--mint);background:#18352c;border-radius:.55rem}
nav{display:flex;gap:.3rem}
nav a{padding:.5rem .8rem;border-radius:.6rem;text-decoration:none;color:var(--dim);font-weight:650;white-space:nowrap}
nav a[aria-current]{background:#e8f0e5;color:var(--ink)}
main{padding:2rem 0 3rem}
.hero,.teacher-hero{color:#fff;background:#16372d;border-radius:1.6rem;padding:clamp(1.4rem,5vw,3.6rem)}
.hero{display:grid;grid-template-columns:1fr minmax(13rem,26%);align-items:center;gap:2rem}
.intro>p:not(.eyebrow),.teacher-hero>p:not(.eyebrow){color:#e0ece3;max-width:32rem;margin:1rem 0}
.eyebrow{font-size:.875rem;letter-spacing:.07em;font-weight:750;color:#d3efbe;margin-bottom:.65rem}
.eyebrow span{padding-inline:.3rem}
.button{display:inline-flex;align-items:center;justify-content:center;min-height:2.65rem;border-radius:.65rem;font-weight:750;text-decoration:none;padding:.52rem .85rem}
.primary{background:var(--mint);color:#173127;margin-top:.35rem}
.path{display:grid;gap:.45rem}
.path div{display:grid;grid-template-columns:2.2rem 1fr;column-gap:.6rem;background:#214638;border:1px solid #416052;padding:.65rem .7rem;border-radius:.75rem}
.path span{grid-row:span 2;align-self:center;color:var(--mint);font-weight:750}
.path small{font-size:.875rem;color:#e0ece3}
.block{margin-top:2.1rem;scroll-margin-top:1rem}
.section-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:.35rem .8rem;margin-bottom:1rem}
.section-head p,.hint,.subhead p,.target p,.resources>p{color:var(--dim)}
.exam-list,.weeks{display:grid;gap:.85rem}
.exam-list{grid-template-columns:repeat(3,minmax(0,1fr))}
.weeks{grid-template-columns:repeat(2,minmax(0,1fr))}
.panel,.exam,.week{background:var(--white);border:1px solid var(--line);border-radius:var(--radius)}
.exam,.week,.panel{padding:1.1rem}
.exam .meta{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem .55rem;margin:.55rem 0 .9rem;color:var(--dim);font-size:.9rem}
.outline{border:1px solid #bacfc2;background:#edf6ee}
.outline:hover,.outline:focus-visible{background:#dbeee0}
.hint{margin-top:.7rem;font-size:.925rem}
.week ul{list-style:none;margin:.65rem 0 0;padding:0}
.week li{display:grid;grid-template-columns:3.35rem 1fr;gap:.55rem;border-top:1px solid var(--line);padding:.65rem 0}
.week li:last-child{padding-bottom:0}
.week time{color:var(--green);font-weight:750}
.week li p{color:var(--dim);font-size:.9rem}
.teacher-hero h1{font-size:clamp(2rem,5vw,3.4rem)}
.teacher-hero>p:not(.eyebrow){margin-bottom:0}
.notice{margin:1rem 0;padding:.7rem .9rem;background:#e7f1e6;border-radius:.65rem}
.warning{background:#fae6db;color:#7c2c14}
.teacher-grid{display:grid;grid-template-columns:minmax(11.5rem,24%) minmax(0,1fr);gap:.85rem;align-items:start}
.roster button{display:flex;justify-content:space-between;align-items:center;min-height:2.65rem;width:100%;text-align:left;background:#fff;color:var(--ink);border:1px solid var(--line);border-radius:.55rem;margin-top:.45rem;padding:.45rem .6rem;cursor:pointer;font-weight:700}
.roster button[aria-pressed="true"]{background:#dbefda;border-color:#a6c9ae}
.roster button small{font-size:.875rem}
.target,.subhead{border-top:1px solid var(--line);margin-top:1rem;padding-top:.85rem}
.target p,.subhead p{margin-top:.25rem}
.fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.65rem}
label{display:grid;gap:.3rem;font-size:.9rem;font-weight:650;min-width:0}
input,select,textarea{width:100%;min-height:2.65rem;border:1px solid #aec2b5;border-radius:.5rem;background:#fff;color:var(--ink);padding:.4rem .5rem}
textarea{resize:vertical}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#365c4e 50%),linear-gradient(135deg,#365c4e 50%,transparent 50%);background-position:calc(100% - 15px) 50%,calc(100% - 10px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:1.35rem}
.total{margin-top:.7rem;font-size:1rem;font-weight:750}
.error{border:1px solid var(--line);border-radius:.85rem;padding:.8rem;margin-top:.8rem}
.error-top{display:flex;justify-content:space-between;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.7rem}
.pill{border-radius:2rem;background:#edf2ed;color:var(--dim);padding:.22rem .58rem;font-size:.875rem;font-weight:700}
.pill.done{background:#dcf1d7;color:#215133}
.pill.warn{background:#fae6db;color:#7c2c14}
.span-two{grid-column:span 2}
.resources p{margin-top:.4rem}
.resources ul{padding-left:1.25rem}
.resources li+li{margin-top:.25rem}
details{margin-top:.8rem;border-top:1px solid var(--line);padding-top:.7rem}
summary{cursor:pointer;font-weight:750}
footer{border-top:1px solid var(--line);padding:1.25rem 0 2rem;color:var(--dim);display:flex;justify-content:space-between;gap:.6rem;font-size:.9rem}
@media(max-width:46rem){.hero{grid-template-columns:1fr;gap:1.15rem}.path{grid-template-columns:repeat(3,minmax(0,1fr))}.path div{display:block}.path span,.path b,.path small{display:block}.teacher-grid{grid-template-columns:1fr}#student-list{display:grid;grid-template-columns:repeat(3,1fr);gap:.25rem}}
@media(max-width:35rem){.shell{width:calc(100% - 1.5rem)}.exam-list,.weeks{grid-template-columns:1fr}.fields{grid-template-columns:repeat(2,minmax(0,1fr))}.path{gap:.25rem}.path div{padding:.32rem .4rem}.path small{display:none}.path b{font-size:.875rem}.top .bar{min-height:4rem}nav a{padding:.45rem .5rem}.brand{gap:.35rem}.span-two{grid-column:1/-1}}

.filter-row{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center}
#subject-filter{margin-bottom:1rem}
.filter-row button,.exam-toolbar button,.start-button,.submit-dialog button{cursor:pointer}
.filter-row button[aria-pressed=true]{background:#235846;color:#fff;border-color:#235846}
.paper-subject{color:var(--green);font-size:.875rem;font-weight:750;margin-bottom:.32rem}
.history-list,.review-list{list-style:none;padding:0;margin:0}
.history-list li{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem .8rem;padding:.65rem 0;border-top:1px solid var(--line)}
.history-list li span{color:var(--dim)}
.practice-head{padding-block:clamp(1.2rem,4vw,2.4rem)}
.back-link{display:inline-block;color:#d3efbe;margin-bottom:.65rem;font-weight:650}
.exam-toolbar{position:sticky;z-index:1;top:.25rem;display:flex;flex-wrap:wrap;align-items:center;gap:.5rem 1rem;background:#f8fbf8;border:1px solid var(--line);border-radius:.75rem;margin-top:.75rem;padding:.55rem .75rem;box-shadow:0 4px 14px #142a2515}
.exam-toolbar button{color:var(--ink)}
.exam-toolbar .submit-exam{margin-left:auto}
.clock{font-variant-numeric:tabular-nums;background:#18352c;color:#fff;border-radius:.45rem;padding:.38rem .65rem}
.answer-sheet .block{margin-top:.9rem}
.question-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,9rem),1fr));gap:.65rem;margin-top:.75rem}
.answer-cell{display:grid;gap:.3rem;border:1px solid var(--line);border-radius:.6rem;margin:0;padding:.45rem .55rem .6rem;min-width:0}
.answer-cell legend{padding:0 .25rem;font-weight:750}
.flag{display:flex;flex-wrap:wrap;align-items:center;gap:.32rem;color:var(--dim)}
.flag input{width:1rem;min-height:1.75rem;margin:0;accent-color:var(--green)}
.start-button{margin-top:.85rem}
.submit-dialog{width:min(29rem,calc(100% - 2rem));color:var(--ink)}
.submit-dialog::backdrop{background:#142a2570}
.submit-dialog p{margin:.6rem 0}
.submit-dialog button{margin-right:.4rem}
.submit-dialog .primary{border:1px solid #b4caaa}
.result-summary h2{font-size:clamp(2rem,6vw,3rem);color:var(--green)}
.review-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr));gap:.55rem;margin:.7rem 0}
.review-item{border:1px solid var(--line);padding:.6rem;border-radius:.65rem}
.review-item .pill{margin-left:.45rem}
.review-item ul{padding-left:1.15rem;margin:.4rem 0 0}
.incorrect{color:#802f1e}
.review-item:has(.worked-solution[open]){grid-column:1/-1}
.worked-solution{margin-top:.7rem}
.worked-solution summary{color:var(--green)}
.worked-solution h4{margin:.8rem 0 .3rem;font-size:1rem}
.worked-solution ol{padding-left:1.6rem;margin:.55rem 0}
.worked-solution ol li+li{margin-top:.4rem}
.worked-solution .solution-steps,.worked-solution .solution-items,.worked-solution p,.option-review ul{max-width:72ch;overflow-wrap:anywhere}
.solution-items small{display:block;color:#802f1e;font-size:.875rem;font-weight:650}
.solution-items .needs-rethink{background:#fdf0e8;border-radius:.4rem;padding:.15rem .35rem}
.solution-tip{color:var(--dim)}
.review-source{margin-bottom:.85rem}
.secondary-button{background:#fff;color:var(--green);border:1px solid var(--line);cursor:pointer}
.paper-preview{width:min(56rem,calc(100% - 1rem));max-height:calc(100dvh - 1rem);color:var(--ink)}
.paper-preview::backdrop{background:#142a2570}
.paper-preview-head{display:flex;justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.65rem}
.paper-preview-head button,.paper-controls button{cursor:pointer}
.paper-viewer{min-width:0}
.paper-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;margin-bottom:.55rem}
.paper-controls button:disabled{opacity:.5;cursor:default}
.paper-page-status{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:center}
.paper-zoom{display:flex;align-items:center;gap:.35rem;margin-left:auto}
.paper-zoom select{width:auto;max-width:8rem}
.paper-viewport{max-height:65dvh;overflow:auto;background:#e7ece7;border:1px solid var(--line);border-radius:.6rem;padding:.45rem;overscroll-behavior:contain}
.paper-page{position:relative;width:var(--paper-width,100%);aspect-ratio:210/297;margin-inline:auto;background:#fff;box-shadow:0 2px 8px #142a2530}
.paper-page .paper-facsimile{display:block;width:100%;height:100%;object-fit:contain;object-position:top center}
.paper-text-layout{container-type:inline-size}
.paper-typed{padding:6% 7%;color:#171a18;font-family:"Times New Roman",serif;font-size:clamp(.86rem,2.45cqw,1.25rem);line-height:1.42;white-space:pre-wrap;overflow-wrap:anywhere}
.paper-typed p+p{margin-top:.8em}
.paper-typed-heading{text-align:center;font-weight:700}
.paper-typed .paper-diagram{display:block;max-width:min(100%,24rem);max-height:17rem;object-fit:contain;margin:.65rem auto}
.paper-reader-note{margin-top:.5rem;color:var(--dim);font-size:.875rem}
.class-banner{display:flex;justify-content:space-between;align-items:center;gap:.6rem;flex-wrap:wrap;margin-bottom:.8rem;background:#e6f3e5}
.class-banner button,.sync-result button{cursor:pointer;color:var(--ink)}
.sync-result{margin-top:.85rem;padding:.7rem;background:#eaf3e7;border-radius:.55rem}
.sync-result button{margin-top:.45rem}
.paper-load-status{padding:1rem;color:var(--dim)}
.inline-paper{margin-top:.9rem;scroll-margin-top:6.25rem;min-width:0}
.review-source .paper-viewer{margin-top:.55rem;max-width:52rem}
@media(min-width:64rem){
  .answer-layout:has(.inline-paper:not([hidden])){display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:.85rem;align-items:start}
  .answer-layout:has(.inline-paper:not([hidden])) .question-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,7.7rem),1fr))}
  .inline-paper{position:sticky;top:4.8rem;padding:.75rem}
  .inline-paper .paper-viewport{max-height:calc(100dvh - 14rem)}
}
@media(max-width:35rem){
  .bar{flex-wrap:wrap;padding-block:.35rem}
  .bar nav{flex-wrap:wrap}
  .bar nav a{padding:.42rem .53rem;font-size:.87rem}
  .question-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .exam-toolbar{gap:.4rem}
  .exam-toolbar span,.paper-controls{font-size:.875rem}
  .paper-preview,.inline-paper{padding:.65rem}
  .paper-preview-head h2{font-size:1.15rem}
  .paper-controls .button{padding:.38rem .55rem}
  .paper-zoom{margin-left:0}
}

main:has(.exam-lobby-layout) .class-banner {display:none}
.exam-lobby-header {
  display:grid;
  grid-template-columns:minmax(0,.93fr) minmax(0,1.07fr);
  overflow:hidden;
  border:1px solid #d2d9cc;
  border-radius:1.05rem;
  background:#fffdf4;
}
.exam-lobby-copy {
  align-self:center;
  padding:clamp(1.05rem,3.2vw,2.45rem);
}
.exam-lobby-motion {
  position:relative;
  isolation:isolate;
  min-height:13rem;
  background:#243d32 url('./exam-room-illustration.jpg') center 55% / cover no-repeat;
}
.exam-lobby-art {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:50% 55%;
}
.exam-motion-controls {
  position:absolute;
  inset:auto 0 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.35rem;
  padding:1.6rem .72rem .62rem;
  background:linear-gradient(transparent,#10261ee8);
}
.exam-motion-scenes {display:flex;gap:.28rem;flex-wrap:wrap}
.exam-motion-controls button {
  min-height:2rem;
  padding:.25rem .64rem;
  border:1px solid #fefff375;
  border-radius:1rem;
  background:#182e25df;
  color:#fffdf3;
  font-size:.8rem;
  font-weight:700;
  cursor:pointer;
}
.exam-motion-choice[aria-pressed="true"] {background:#fbf4df;color:#1b382d;border-color:#fbf4df}
.exam-motion-controls button:focus-visible {outline-color:#fff5cb}
.exam-motion-message {
  position:absolute;
  inset:.6rem .6rem auto auto;
  padding:.35rem .6rem;
  border-radius:.4rem;
  background:#182e25ef;
  color:white;
  font-size:.82rem;
}
.exam-lobby-back {
  display:inline-block;
  margin-bottom:.65rem;
  color:#415d50;
  font-size:.82rem;
  font-weight:700;
  text-underline-offset:.22em;
}
.exam-lobby-header h1 {
  color:#16362b;
  font-family:Georgia,serif;
  font-weight:500;
  font-size:clamp(2.05rem,4.1vw,3.55rem);
  letter-spacing:-.048em;
}
.exam-lobby-header p {margin-top:.45rem;color:#4b6257;font-weight:550}
.exam-lobby-duration {
  display:inline-block;
  margin-top:.72rem;
  padding:.38rem .78rem;
  border:1px solid #bacdc0;
  border-radius:2rem;
  background:#ebf3eb;
  color:#264f3b;
  font-size:.88rem;
  font-weight:700;
}
.exam-lobby-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(15rem,19rem);
  align-items:start;
  gap:clamp(.85rem,2.2vw,1.5rem);
  margin-top:1.35rem;
}
.exam-floor,.exam-ticket {min-width:0;border-radius:1rem}
.exam-floor {
  padding:clamp(.75rem,2.5vw,1.45rem);
  border:1px solid #d6ded3;
  background:#fcfdf9;
  box-shadow:0 .3rem 1.5rem #273d2e0a;
}
.exam-floor-head {
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  flex-wrap:wrap;
  gap:.25rem .7rem;
  margin-bottom:.95rem;
}
.exam-floor-head h2 {color:#193c30;font-size:clamp(1.12rem,2vw,1.32rem)}
.exam-floor-head p {color:#4b6458;font-size:.84rem;font-weight:650}
.exam-floor-tools {display:flex;align-items:center;gap:.35rem .7rem;flex-wrap:wrap}
.exam-map-toggle {
  padding:.25rem .55rem;
  border:1px solid #b9cbbd;
  border-radius:1rem;
  background:#f1f6ed;
  color:#264f3b;
  font-size:.74rem;
  font-weight:700;
  cursor:pointer;
}
.exam-map-views {
  display:flex;
  width:max-content;
  max-width:100%;
  gap:.17rem;
  margin:0 0 .55rem;
  padding:.15rem;
  border:1px solid #d7e1d4;
  border-radius:.47rem;
  background:#edf3e9;
}
.exam-map-view {
  padding:.25rem .62rem;
  border:1px solid transparent;
  border-radius:.32rem;
  background:transparent;
  color:#365346;
  font-size:.76rem;
  font-weight:700;
  cursor:pointer;
}
.exam-map-view[aria-pressed="true"] {border-color:#b9cbbb;background:#fffef6;color:#193e2f;box-shadow:0 1px 2px #243e3030}
.exam-floor-camera {perspective:39rem}
.exam-floor-plan {
  position:relative;
  padding:clamp(.65rem,2.35vw,1.45rem) clamp(1.02rem,3.1vw,2.05rem);
  border:1px solid #cdbfa9;
  border-top:.45rem solid #b4a58d;
  border-radius:.55rem;
  background:repeating-linear-gradient(90deg,#ede2d0 0 2.1rem,#e7dac5 2.1rem calc(2.1rem + 1px));
  box-shadow:inset 0 2px 7px #5f4c3410;
}
.exam-floor-camera[data-angle="perspective"] .exam-floor-plan {
  transform:rotateX(16deg);
  transform-origin:50% 54%;
  box-shadow:inset 0 2px 7px #5f4c341a,0 .5rem 1.15rem #5f4c3425;
}
@media(prefers-reduced-motion:no-preference) {
  .exam-floor-plan {transition:transform .24s ease-out,box-shadow .24s ease-out}
}
.exam-front {
  margin:0 auto 1.5rem;
  display:grid;
  max-width:19rem;
  justify-items:center;
  gap:.4rem;
}
.exam-classroom-board {
  width:100%;
  padding:.34rem .6rem;
  border:.2rem solid #77593d;
  border-bottom-width:.34rem;
  border-radius:.19rem;
  background:linear-gradient(175deg,#356153,#204839);
  box-shadow:0 2px 3px #4935233b;
  color:#fffbed;
  text-align:center;
  font-size:.78rem;
  font-weight:750;
}
.exam-windows {
  position:absolute;
  inset:20% auto 21% .22rem;
  display:grid;
  grid-template-rows:repeat(3,minmax(0,1fr));
  width:clamp(.5rem,1.15vw,.88rem);
  gap:.6rem;
  pointer-events:none;
}
.exam-windows-right {inset-inline:auto .22rem}
.exam-window {
  border:1px solid #78654d;
  border-radius:2px;
  background:linear-gradient(150deg,#c9e6e5 0 44%,#f6fffa 46% 55%,#a8ccce 57%);
  box-shadow:inset 0 0 0 1px #fbf3db,1px 0 3px #594a3750;
}
.exam-invigilator {
  padding:.44rem 1.4rem;
  border:1px solid #143227;
  border-bottom:.24rem solid #10291f;
  border-radius:.3rem;
  background:#204739;
  color:#fbfaf2;
  font-size:.8rem;
  font-weight:750;
  text-align:center;
}
.exam-desks {
  position:relative;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) clamp(.55rem,3vw,2rem) repeat(3,minmax(0,1fr));
  column-gap:clamp(.3rem,1.5vw,.85rem);
  row-gap:clamp(1.38rem,2.7vw,1.85rem);
  padding:0 0 .7rem;
  margin:0;
  list-style:none;
}
.exam-desks::before {
  position:absolute;
  content:"";
  inset:.12rem auto .15rem 50%;
  border-left:1px dashed #937d5d95;
}
.exam-desk {
  --student-phase:-.5s;
  --student-side:9deg;
  --sleeve:#699387;
  position:relative;
  display:flex;
  align-items:start;
  min-height:clamp(2.05rem,4.85vw,3.25rem);
  padding:.22rem clamp(.2rem,.9vw,.56rem);
  border:1px solid #b89f7c;
  border-bottom:3px solid #ae8f67;
  border-radius:.22rem .22rem .3rem .3rem;
  background:linear-gradient(175deg,#fff7e6,#e8d4b5);
  color:#58432f;
  font-size:clamp(.66rem,1.6vw,.91rem);
  font-weight:800;
  font-variant-numeric:tabular-nums;
  box-shadow:0 2px 3px #77583a21;
}
.exam-desk:nth-child(6n+4) {grid-column:5}
.exam-desk::after {
  position:absolute;
  content:"";
  width:42%;
  height:.33rem;
  inset:auto 0 -.57rem;
  margin:auto;
  border:1px solid #856543;
  border-radius:.12rem .12rem .32rem .32rem;
  background:#9b7754;
}
.exam-desk.is-occupied {
  background:linear-gradient(175deg,#e2eee0,#bfd3bf);
  border-color:#779683;
  color:#254d39;
}
.exam-desk.is-occupied::after {background:#658471;border-color:#51715d}
.exam-desk.is-own {
  background:linear-gradient(175deg,#3b795d,#275640);
  border-color:#1d4e37;
  color:#fff;
  box-shadow:0 0 0 2px #fbf2dc,0 0 0 3px #547a65;
}
.exam-desk.is-own::after {background:#315e49;border-color:#244b39}
.exam-desk:nth-child(4n+2) {--student-phase:-2.15s;--student-side:-12deg;--sleeve:#c49d53}
.exam-desk:nth-child(4n+3) {--student-phase:-4.25s;--student-side:10deg;--sleeve:#a7644d}
.exam-desk:nth-child(4n+4) {--student-phase:-6.35s;--student-side:-10deg;--sleeve:#63748b}
.exam-desk-number {position:relative;z-index:2}
.exam-desk-name {
  position:absolute;
  z-index:4;
  left:50%;
  bottom:calc(100% - .21rem);
  max-width:calc(100% + .22rem);
  width:max-content;
  transform:translateX(-50%);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  overflow-wrap:anywhere;
  text-align:center;
  padding:.06rem .36rem;
  border:1px solid #a4baa9;
  border-radius:.34rem;
  background:#f5f8ef;
  color:#1b4935;
  box-shadow:0 1px 2px #27372b23;
  font-size:clamp(.62rem,1.05vw,.77rem);
  font-weight:750;
  line-height:1.28;
}
.exam-desk.is-own .exam-desk-name {background:#214e39;border-color:#d2e6d7;color:white}
.exam-desk-paper {
  position:absolute;
  z-index:1;
  top:25%;
  left:56%;
  width:24%;
  height:30%;
  border-radius:1px;
  transform:rotate(-8deg);
  background:repeating-linear-gradient(#fdf8e7 0 2px,#ccc3a8 2px 3px,#fdf8e7 3px 5px);
  box-shadow:0 1px 2px #4237244d;
}
.exam-desk-avatar {
  position:absolute;
  z-index:2;
  bottom:-.48rem;
  left:57%;
  width:clamp(1.45rem,4.25vw,3.15rem);
  aspect-ratio:1;
  transform:translateX(-50%);
  transform-origin:50% 82%;
  background:url('./exam-room-students.png') no-repeat 0 0 / 200% 200%;
  filter:drop-shadow(0 2px 1px #27201d45);
  animation:exam-student-pose 9s ease-in-out var(--student-phase) infinite;
}
.exam-desk-avatar.avatar-1 {background-position:100% 0}
.exam-desk-avatar.avatar-2 {background-position:0 100%}
.exam-desk-avatar.avatar-3 {background-position:100% 100%}
.exam-desk.is-own .exam-desk-avatar {filter:drop-shadow(0 1px 2px #102b20a3)}
.exam-writing-hand,.exam-resting-arm {
  position:absolute;
  z-index:1;
  top:37%;
  left:65%;
  width:clamp(.31rem,.8vw,.59rem);
  height:53%;
  border-radius:56% 55% 42% 43%;
  transform:rotate(20deg);
  transform-origin:50% 92%;
  background:linear-gradient(92deg,#49352140,transparent 76%),var(--sleeve);
  box-shadow:0 1px 1px #503a2b60;
}
.exam-writing-hand {
  animation:exam-writing 2.15s ease-in-out var(--student-phase) infinite;
}
.exam-resting-arm {left:41%;top:44%;height:46%;transform:rotate(-23deg)}
.exam-writing-hand::before,.exam-resting-arm::before {
  content:"";
  position:absolute;
  top:-13%;
  left:0;
  width:100%;
  height:29%;
  border-radius:50% 50% 28% 26%;
  background:#ddb08a;
}
.exam-writing-hand::after {
  content:"";
  position:absolute;
  top:-34%;
  left:40%;
  width:20%;
  height:50%;
  border-radius:1px;
  background:#394a43;
  transform:rotate(-27deg);
}
.exam-aisle-stage {position:relative}
.exam-proctor {
  position:absolute;
  z-index:5;
  top:2%;
  left:50%;
  width:clamp(1rem,2.4vw,1.55rem);
  height:clamp(1.52rem,3vw,2.2rem);
  transform:translateX(-50%);
  filter:drop-shadow(1px 2px 1px #48382255);
  pointer-events:none;
  animation:exam-patrol 12s linear infinite;
}
.exam-proctor-2 {top:59%;animation-name:exam-patrol-rear;animation-duration:14s;animation-delay:-3.2s}
.exam-proctor-2 .exam-proctor-coat {border-color:#536553;background:linear-gradient(100deg,#537263,#a2b69a 43%,#778d71)}
.exam-proctor-2 .exam-proctor-hair {background:#392d2a;border-radius:45% 52% 38% 45%}
.exam-proctor-2 .exam-proctor-name {background:#2a513f}
.exam-proctor-name {
  position:absolute;
  z-index:2;
  bottom:calc(100% + .14rem);
  left:50%;
  transform:translateX(-50%);
  width:max-content;
  padding:.1rem .27rem;
  border-radius:.28rem;
  background:#573c2d;
  color:#fff8eb;
  font-size:clamp(.5rem,.85vw,.67rem);
  font-weight:800;
}
.exam-proctor-hair {
  position:absolute;
  z-index:1;
  top:0;
  left:27%;
  width:46%;
  height:36%;
  border-radius:55% 55% 44% 44%;
  border-bottom:2px solid #e0b598;
  background:#302522;
  animation:exam-proctor-look 16s ease-in-out infinite;
}
.exam-proctor-coat {
  position:absolute;
  top:28%;
  left:10%;
  width:80%;
  height:51%;
  border:1px solid #aa7e5f;
  border-radius:43% 43% 24% 24%;
  background:linear-gradient(100deg,#b99169,#fff0d2 43%,#dfbb91);
}
.exam-proctor-step {
  position:absolute;
  top:73%;
  left:29%;
  width:18%;
  height:25%;
  border-radius:1px 1px 3px 3px;
  background:#4c3b33;
  animation:exam-proctor-walk .7s ease-in-out infinite alternate;
}
.exam-proctor-step.opposite {left:55%;animation-delay:-.7s}
.motion-paused :is(.exam-desk-avatar,.exam-writing-hand,.exam-proctor,.exam-proctor-hair,.exam-proctor-step) {animation-play-state:paused}
@keyframes exam-student-pose {
  0%,14%,28%,100% {transform:translateX(-50%) rotate(0)}
  7%,22% {transform:translate(-50%,4%) rotate(-3deg) scaleY(.96)}
  37%,44% {transform:translate(-47%,-9%) rotate(-3deg) scaleY(1.05)}
  58%,65% {transform:translate(-43%,-4%) rotate(var(--student-side)) scaleX(.9)}
  76% {transform:translate(-50%,3%) rotate(-2deg)}
}
@keyframes exam-writing {
  0%,73%,100% {transform:rotate(20deg)}
  11%,38%,62% {transform:rotate(29deg)}
  23%,49% {transform:rotate(16deg)}
  86% {transform:rotate(12deg)}
}
@keyframes exam-patrol {
  0%,7%,100% {top:2%}
  23%,31% {top:19%}
  48%,58% {top:42%}
  72%,78% {top:26%}
}
@keyframes exam-patrol-rear {0%,9%,100% {top:58%} 30%,37% {top:72%} 53%,66% {top:89%} 82%,90% {top:71%}}
@keyframes exam-proctor-look {0%,16%,55%,100% {transform:rotate(0)} 26%,32% {transform:rotate(25deg)} 74%,82% {transform:rotate(-24deg)}}
@keyframes exam-proctor-walk {from {transform:translateY(-20%)} to {transform:translateY(20%)}}
.exam-entrance {
  display:flex;
  align-items:center;
  gap:.37rem;
  margin:1.15rem auto 0;
  width:max-content;
  color:#554533;
  font-size:.75rem;
  font-weight:750;
}
.exam-door {
  position:relative;
  width:1.16rem;
  height:1.36rem;
  border:2px solid #715137;
  border-bottom-width:3px;
  border-radius:.18rem .18rem 0 0;
  background:linear-gradient(90deg,#946845 0 24%,#c69d72 26% 94%,#ae8058 96%);
  box-shadow:0 2px 2px #5d442753;
}
.exam-door::after {content:"";position:absolute;inset:55% .14rem auto auto;width:.15rem;height:.15rem;border-radius:50%;background:#f1d59d}
.exam-seat-legend {display:flex;flex-wrap:wrap;gap:.36rem 1rem;margin:.85rem 0 0;padding:0;list-style:none;font-size:.81rem;color:#485b50}
.exam-seat-legend li {display:flex;align-items:center;gap:.35rem}
.exam-seat-legend li::before {width:.68rem;height:.68rem;border:1px solid #b69770;border-radius:.15rem;background:#f3e3c9;content:""}
.exam-seat-legend .legend-own::before {background:#2b654d;border-color:#2b654d}
.exam-seat-legend .legend-occupied::before {background:#c7dac7;border-color:#779683}
.exam-ticket {
  padding:clamp(1.05rem,2.8vw,1.5rem);
  border:1px solid #1e4638;
  background:#183c30;
  color:#f9f5e8;
  box-shadow:0 .3rem 1.5rem #273d2e14;
}
.exam-ticket h2 {color:#e6dfc5;font-size:1rem;font-weight:650;letter-spacing:.01em}
.exam-ticket-number {
  display:block;
  margin:.48rem 0 .1rem;
  font-family:Georgia,serif;
  font-size:clamp(2rem,5vw,3.2rem);
  font-weight:500;
  line-height:1.1;
  font-variant-numeric:tabular-nums;
}
.exam-candidate {color:#dbe7dc;font-size:.89rem}
.exam-ticket-status {margin-top:1.1rem;padding-top:.85rem;border-top:1px dashed #729182}
.exam-lobby-status {
  display:flex;
  align-items:center;
  gap:.5rem;
  color:#f2f5ed;
  font-weight:650;
  font-size:.87rem;
}
.exam-lobby-status::before {content:"";width:.42rem;height:.42rem;border-radius:50%;background:#d5c083}
.exam-lobby-start {display:block;margin:.45rem 0 0 .9rem;color:#e5dcc0;font-size:.85rem;font-weight:700;font-variant-numeric:tabular-nums}
.exam-seat {padding:.24rem .48rem;border-radius:.4rem;background:#e4eee6;color:#224936;font-weight:720}
@media(max-width:64rem) {
  .exam-desks {grid-template-columns:repeat(2,minmax(0,1fr)) clamp(1rem,3.7vw,2.15rem) repeat(2,minmax(0,1fr))}
  .exam-desk:nth-child(6n+4) {grid-column:auto}
  .exam-desk:nth-child(4n+3) {grid-column:4}
}
@media(max-width:45rem) {
  main:has(.exam-lobby-layout) {padding-top:1.15rem}
  .exam-lobby-layout {grid-template-columns:1fr}
  .exam-ticket {grid-row:1}
  .exam-ticket-number {font-size:2.15rem}
}
@media(max-width:36rem) {
  .exam-lobby-header {grid-template-columns:1fr}
  .exam-lobby-motion {min-height:9.5rem;aspect-ratio:2.25}
  .exam-lobby-art {object-position:50% 54%}
  .exam-motion-controls {padding-inline:.45rem}
  .exam-desk-avatar {left:57%;width:1.92rem}
  .exam-floor-camera[data-angle="perspective"] .exam-floor-plan {transform:rotateX(11deg)}
}

.national-entry {display:grid;gap:.55rem;margin-top:1rem}
.national-entry label {font-size:.83rem;font-weight:740;color:#f2eedb}
.national-entry input {width:100%;padding:.65rem .7rem;border:1px solid #cbd6c3;border-radius:.48rem;background:#fffdf3;color:#17392d}
.national-entry .button {width:100%;justify-content:center;border-color:#faecd1;background:#faecd1;color:#17392d;font-weight:800;cursor:pointer}
.national-entry .button:disabled {opacity:.65;cursor:wait}
.national-window {margin-top:.66rem;color:#e2e8dc;font-size:.85rem;line-height:1.55}
.national-entry-status {min-height:1.2em;color:#fff0c8;font-size:.83rem}
.national-score {margin-top:1rem}
.national-score-card {padding:clamp(1.2rem,4vw,2.2rem);border:1px solid #d6caa6;border-radius:.85rem;background:#1a4032;color:#fcf7e9}
.national-score-card h2 {margin:.75rem 0 .15rem;overflow-wrap:anywhere;color:inherit}
.national-score-value {color:#fffaf0;font:600 clamp(3.2rem,10vw,6rem)/1.15 Georgia,serif}
.national-score-actions {margin-top:1rem}

.exam-reading-heading {
  padding:1.15rem clamp(1rem,3vw,1.85rem);
  border-radius:.9rem;
}
.exam-reading-heading h1 {margin-top:.25rem;font-family:Georgia,serif;font-size:clamp(2rem,5.3vw,3rem)}
.exam-reading-heading p {margin:.28rem 0 0!important}
.exam-reading-layout {width:min(100%,52rem);margin:1rem auto calc(4.5rem + env(safe-area-inset-bottom))}
.exam-reading-section {
  margin:0 0 1.8rem;
  padding:clamp(.8rem,2vw,1.5rem);
  border:1px solid #dcd7c7;
  border-radius:.6rem;
  background:#fffef9;
  box-shadow:0 .3rem 1.25rem #4d46381a;
}
.exam-reading-section h2 {
  margin:0 0 1.1rem;
  padding-bottom:.68rem;
  border-bottom:1px solid #dbe5dc;
  color:#17372d;
  font:700 clamp(1.3rem,3vw,1.75rem)/1.25 Georgia,serif;
}
.exam-reading-questions {display:grid;gap:1.4rem}
.exam-reading-questions .answer-cell {
  min-width:0;
  padding:0 0 1rem;
  margin:0;
  border:0;
  border-bottom:1px solid #dfe5d9;
  border-radius:0;
  background:transparent;
  scroll-margin-top:7rem;
}
.exam-reading-questions .answer-cell:last-child {border-bottom:0;padding-bottom:0}
.exam-reading-questions .answer-cell:focus-visible {outline:2px solid #51916a;outline-offset:4px}
.exam-reading-questions .answer-cell legend {
  padding:.16rem .54rem;
  border:1px solid #bfd4c5;
  border-radius:.28rem;
  background:#eaf4e9;
  color:#244c36;
  font-size:.83rem;
  font-weight:780;
}
.exam-question-copy {margin:.52rem 0 .7rem;overflow-x:auto;overscroll-behavior-x:contain;background:#fff}
.exam-question-crop {position:relative;overflow:hidden;width:100%;background:#fff}
.exam-question-crop img {position:absolute;inset:0 auto auto 0;width:120.48193%;max-width:none;height:auto;display:block}
.exam-question-error {aspect-ratio:auto!important;padding:.45rem .65rem;color:#674a2b;background:#fff5df}
.exam-reading-zoom .exam-question-crop {min-width:42rem}
.exam-answer-row {display:flex;align-items:center;flex-wrap:wrap;gap:.35rem .6rem;margin:.4rem 0}
.exam-answer-label {min-width:4.4rem;color:#3f5b4f;font-size:.85rem;font-weight:760}
.exam-answer-choices {display:flex;gap:.3rem;flex-wrap:wrap}
.exam-answer-bubble {position:relative;display:inline-flex;cursor:pointer}
.exam-answer-bubble input {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  cursor:pointer;
}
.exam-answer-bubble span {
  display:grid;
  place-items:center;
  min-width:2.25rem;
  min-height:2.18rem;
  padding:.21rem .52rem;
  border:1px solid #a8bfb0;
  border-radius:1.15rem;
  background:#fcfdf9;
  color:#234638;
  font-weight:750;
}
.exam-answer-bubble input:checked + span {border-color:#215845;background:#215845;color:#fff}
.exam-answer-bubble input:focus-visible + span {outline:2px solid #51916a;outline-offset:2px}
.exam-answer-bubble input:disabled + span {opacity:.56}
.exam-answer-clear {padding:.34rem;border:0;background:none;color:#47665a;text-decoration:underline;font-size:.76rem;cursor:pointer}
.exam-question-nav {
  position:fixed;
  z-index:3;
  inset-inline:max(.75rem, calc((100% - 30rem) / 2));
  bottom:calc(.55rem + env(safe-area-inset-bottom));
  display:flex;
  flex-direction:column-reverse;
  border:1px solid #b8cebf;
  border-radius:.7rem;
  background:#f8fbf8;
  box-shadow:0 6px 22px #13372b26;
}
.exam-question-nav-toggle {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.7rem;
  min-height:2.75rem;
  padding:.45rem .85rem;
  border:0;
  border-radius:inherit;
  background:#215845;
  color:#fff;
  font:inherit;
  font-weight:750;
  text-align:left;
  cursor:pointer;
}
.exam-question-nav-toggle::after {content:'⌃';font-size:1.1rem;line-height:1}
.exam-question-nav-toggle[aria-expanded="true"]::after {transform:rotate(180deg)}
.exam-question-nav-body {
  display:none;
  max-height:55vh;
  max-height:55dvh;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:.72rem;
}
.exam-question-nav-toggle[aria-expanded="true"] + .exam-question-nav-body {display:block}
.exam-question-nav h2 {margin:0 0 .45rem;font-size:1.02rem;color:#17372d}
.exam-question-nav h3 {margin:.65rem 0 .28rem;font-size:.79rem;color:#3f5b4f}
.exam-question-nav-legend {display:flex;flex-wrap:wrap;gap:.25rem .55rem;margin:0;padding:0;list-style:none}
.exam-question-nav-legend li {display:flex;align-items:center;gap:.2rem;font-size:.75rem;white-space:nowrap}
.exam-question-nav-grid {display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.26rem}
.exam-question-nav-number {
  display:grid;
  place-content:center;
  justify-items:center;
  gap:.1rem;
  min-block-size:2.75rem;
  min-inline-size:0;
  padding:.15rem;
  border:1px solid #a8bfb0;
  border-radius:.36rem;
  background:#fff;
  color:#234638;
  font-family:inherit;
  font-size:.84rem;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.exam-question-nav-mark {font-size:.72rem;line-height:1}
.exam-question-nav [data-status="partial"] {color:#704400}
.exam-question-nav-number[data-status="partial"] {border-color:#aa7620;background:#fff0c9}
.exam-question-nav-legend [data-status="done"] {color:#215845}
.exam-question-nav-number[data-status="done"] {border-color:#215845;background:#215845;color:#fff}
.exam-question-nav button:focus-visible {outline:2px solid #bd7924;outline-offset:1px}
@media(min-width:64rem) {
  .exam-reading-layout {display:grid;grid-template-columns:minmax(0,52rem) 16rem;gap:1rem;width:min(100%,69rem);margin-bottom:4rem}
  .exam-reading-layout .answer-sheet {grid-column:1;grid-row:1;min-width:0}
  .exam-question-nav {position:sticky;z-index:auto;inset:auto;top:4.75rem;grid-column:2;grid-row:1;align-self:start;box-shadow:0 3px 12px #13372b12}
  .exam-question-nav-toggle {display:none}
  .exam-question-nav-body {display:block;max-height:calc(100dvh - 5.5rem)}
}
.exam-original-dialog {padding:0;max-height:calc(100dvh - 1rem)}
.exam-original-dialog .paper-preview-head {position:sticky;top:0;z-index:2;margin:0;padding:.65rem .8rem;background:#f8fbf8;border-bottom:1px solid var(--line)}
.exam-original-pages {display:grid;gap:.65rem;padding:.65rem;background:#ecf0ea}
.exam-original-pages img {display:block;width:100%;height:auto;background:white;box-shadow:0 2px 7px #0b201829}
@media(max-width:36rem) {
  .exam-reading-section {padding:.6rem}
  .exam-reading-questions .answer-cell {scroll-margin-top:9rem}
  .exam-answer-label {min-width:3.45rem}
}
