.es-room {
  --study-dark:#263c35;
  --study-green:#2f5947;
  --study-gold:#e8bc7e;
  --study-red:#903e32;
  --study-edge:#d6ccb7;
  --study-paper:#fffaf0;
  color:var(--study-dark);
}
.es-room *, .es-room *::before, .es-room *::after {box-sizing:border-box}
.es-room .btn {min-height:44px}
.es-room :is(input,summary):focus-visible {outline:3px solid #337778;outline-offset:3px}
.es-intro {
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);
  background:var(--study-dark);color:#fff8e6;border:1px solid #475146;border-radius:15px;overflow:hidden;
}
.es-intro-copy {padding:clamp(26px,3.7vw,56px);align-self:center}
.es-intro h1,.es-heading h1 {font:400 clamp(3rem,5.4vw,5.3rem)/.99 var(--serif);letter-spacing:-.06em}
.es-intro h1 em,.es-heading h1 em {font-weight:400;font-style:italic}
.es-intro h1 em {color:#f0c68d}
.es-intro-copy>p,.es-intro-copy>form,.es-wait-tools {max-width:43ch}
.es-intro-copy>p {margin-top:17px;color:#eee6d4;line-height:1.55}
.es-intro-art {position:relative;min-height:355px;overflow:hidden;border-left:1px solid #786446}
.es-intro-art img {display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.es-entry-form {display:grid;gap:15px;margin-top:22px}
.es-grade-picker {border:0;padding:0;margin:0;min-width:0}
.es-grade-picker legend,.es-field span {font:650 .89rem/1.45 var(--sans);margin-bottom:6px;color:#f3ead6}
.es-grades {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,6.25rem),1fr));gap:6px}
.es-grade {position:relative;cursor:pointer}
.es-grade input {position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.es-grade span {display:grid;place-items:center;min-height:44px;padding:7px;border:1px solid #91a091;border-radius:6px;color:#eee8d8;font:600 .9rem var(--sans)}
.es-grade input:checked+span {background:#f7e8c8;color:#273a2f;border-color:#f7e8c8}
.es-grade input:focus-visible+span {outline:3px solid #e2b96e;outline-offset:3px}
.es-grade input:disabled+span {opacity:.68}
.es-grade-picker:disabled,.es-field input:disabled {opacity:.8}
.es-field {display:grid;min-width:0}
.es-field input {width:100%;min-width:0;padding:9px 11px;min-height:42px;font:inherit;color:#263c35;background:#fffbef;border:1px solid #bbae95;border-radius:6px}
.es-actions {display:flex;align-items:center;gap:9px 15px;flex-wrap:wrap}
.es-main-button {background:var(--study-green);border-color:var(--study-green);color:white}
.es-main-button:hover:enabled {background:#234b39}
.es-main-button:disabled {opacity:.5}
.es-intro .es-main-button {background:var(--study-gold);border-color:var(--study-gold);color:#2e3127}
.es-intro .es-main-button:hover:enabled {background:#f5cd94}
.es-text {background:none;border:0;padding:6px 0;color:var(--study-green);font:600 .88rem var(--sans);text-decoration:underline;text-underline-offset:3px}
.es-intro .es-text {color:#fae6c1}
.es-entry-note,.es-notice {line-height:1.45;font-size:.9rem}
.es-notice:not(:empty) {margin-top:13px}
.es-room>.es-notice {color:var(--study-red)}
.es-intro .es-notice {color:#ffdfad}
.es-notice:empty {display:none}
.es-wait-tools {display:grid;gap:10px;margin-top:19px}
.es-wait-tools .es-actions {margin-top:2px}
.es-heading {display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin-bottom:18px}
.es-heading h1 {font-size:clamp(2.4rem,4vw,3.8rem)}
.es-heading h1 em {color:var(--study-red)}
.es-set-meta {font:650 .9rem/1.35 var(--sans);color:#5c6556;text-align:right}
.es-board {display:grid;grid-template-columns:minmax(0,1fr) clamp(220px,22.5vw,292px);gap:clamp(14px,2vw,26px);align-items:start}
.es-sheet {background:var(--study-paper);border:1px solid var(--study-edge);border-radius:13px;overflow:hidden;box-shadow:0 3px 12px #4834210c}
.es-sheet-head {background:var(--study-dark);color:#fff8e7;display:flex;gap:10px;justify-content:space-between;align-items:center;padding:14px clamp(17px,2.5vw,31px);font-size:.92rem}
.es-sheet-head span:last-child {color:#f1c98a;font-weight:600}
.es-sheet-body {padding:clamp(17px,2.5vw,32px)}
.es-question {font:400 clamp(1.6rem,2.7vw,2.75rem)/1.32 var(--serif);letter-spacing:-.021em;overflow-wrap:anywhere}
.es-question-line {display:block}
.es-question-line+.es-question-line {margin-top:.42em}
.es-gap {display:inline-block;min-width:2.8em;vertical-align:baseline;border-bottom:2px solid #96663f;line-height:1em}
.es-filled {white-space:normal;color:var(--study-green);border-bottom:2px solid #b79256;font-weight:400}
.es-choices {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:clamp(18px,2.2vw,27px) 0 0;align-items:start}
.es-choice {border:1px solid #c9c5b3;background:#fffdf6;color:var(--study-dark);border-radius:8px;min-width:0;font:600 1.05rem/1.32 var(--sans);overflow-wrap:anywhere}
button.es-choice, .es-choice summary {display:flex;align-items:center;gap:10px;text-align:left;padding:12px;min-height:60px;width:100%}
button.es-choice:hover:enabled {border-color:#85947a;background:#f3f4e8}
.es-choice[aria-pressed=true] {border-color:#426c55;background:#e8eee0;box-shadow:inset 0 0 0 1px #426c55}
.es-letter {flex:none;display:grid;place-items:center;width:28px;height:28px;border:1px solid #baba9f;border-radius:5px;background:#f6f2e6;color:#53614f;font:650 .85rem/1 var(--sans)}
.es-choice[aria-pressed=true] .es-letter,.es-correct .es-letter {background:var(--study-green);border-color:var(--study-green);color:white}
.es-choice:disabled {opacity:1}
.es-answer-action {display:flex;align-items:center;gap:12px 17px;flex-wrap:wrap;margin-top:17px}
.es-answer-action p {font-size:.9rem;color:#596554}
.es-review {margin-top:19px;padding:15px 17px;background:#eaf0e2;border:1px solid #c6d1b9;border-left:4px solid #65825c;border-radius:6px;line-height:1.5}
.es-review h3 {font:650 1.04rem/1.3 var(--sans);letter-spacing:0;margin-bottom:5px}
.es-review p {font-size:.97rem}
.es-gloss-note {font-size:.85rem;color:#5d6557;margin-top:18px}
.es-gloss-note+.es-choices {margin-top:7px}
.es-choice summary {cursor:pointer;list-style:none}
.es-choice summary::-webkit-details-marker {display:none}
.es-choice summary::after {content:"+";flex:none;display:grid;place-items:center;margin-left:auto;color:#636e60;font:400 1.2rem/1 var(--sans)}
.es-choice[open] summary::after {content:"−"}
.es-choice[open] summary {border-bottom:1px solid #dad4c3}
.es-choice p {padding:10px 13px 12px;font:400 .91rem/1.45 var(--sans);color:#485640}
.es-correct {background:#edf3e6;border-color:#79906f}
.es-desk {border:1px solid var(--study-edge);border-radius:10px;overflow:hidden;background:#f6f1e3;color:var(--study-dark)}
.es-desk-art {display:block;width:100%;aspect-ratio:1.83;object-fit:cover}
.es-desk-body {padding:14px 16px 16px}
.es-desk h2,.es-finish-scores h2 {font:400 1.45rem/1.2 var(--serif);letter-spacing:-.035em}
.es-seat-list {display:grid;gap:12px;padding:0;margin:13px 0 0;list-style:none}
.es-seat {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 7px;align-items:baseline}
.es-seat strong {overflow-wrap:anywhere;font-size:.95rem}
.es-seat small {grid-column:1 / -1;overflow-wrap:anywhere;color:#54614f;font-size:.8rem}
.es-seat .es-score {font:600 .84rem/1.35 var(--sans);color:#3b5647;white-space:nowrap}
.es-manage {border-top:1px solid #cfc8b4;padding-top:10px;margin-top:17px;font-size:.9rem}
.es-manage summary {cursor:pointer;width:fit-content;font-weight:600}
.es-manage .es-actions {margin-top:8px}
.es-manage .es-text {text-align:left}
.es-level-editor {display:grid;gap:6px;margin-block:10px;max-width:28rem;font-size:.9rem}
.es-level-editor label {display:grid;gap:4px;font-weight:600}
.es-level-editor select {width:100%;min-height:44px;border:1px solid #a9ab96;border-radius:6px;padding:6px 10px;background:#fffaf0;color:var(--study-dark);font:inherit}
.es-level-editor p {line-height:1.4}
.es-desk-body>[data-es="level"] {margin-top:9px}
.es-wait-tools>[data-es="level"] {justify-self:start}
.es-intro .es-manage {border-color:#617468}
.es-confirm p {margin-bottom:5px;line-height:1.35}
.es-desk .es-exit {display:block;margin-top:10px}
.es-finish-scores {color:#fff8e6;margin-block:20px 15px}
.es-finish-scores .es-seat-list {max-width:340px;gap:8px}
.es-finish-scores .es-score,.es-finish-scores .es-seat small {color:#f1d9aa}
.es-feedback {font-size:.88rem;color:#59715b;margin-top:9px}
@media (max-width:835px){
  .es-board {grid-template-columns:minmax(0,1fr) 200px;gap:12px}
  .es-desk-body {padding:13px}
  .es-intro-copy {padding:24px}
  .es-grades {gap:4px}
  .es-grade span {padding-inline:9px}
}
@media (max-width:700px){
  .es-board,.es-intro {grid-template-columns:1fr}
  .es-intro-art {grid-row:1;min-height:0;aspect-ratio:2.7;border-left:0;border-bottom:1px solid #786446}
  .es-heading {align-items:center;margin-bottom:13px}
  .es-desk {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,2fr)}
  .es-desk-art {height:100%;aspect-ratio:auto;min-height:110px}
  .es-desk-body {align-self:center;min-width:0}
  .es-choices {gap:7px}
}
@media (max-width:480px){
  main.wrap:has(>.es-room) {padding-inline:12px;padding-top:17px}
  .es-intro-copy {padding:20px}.es-set-meta {max-width:90px;font-size:.82rem}
  .es-heading h1 {font-size:2.25rem}
  .es-sheet-body {padding:16px}
  .es-choices {grid-template-columns:1fr}
  button.es-choice,.es-choice summary {min-height:46px;padding:8px 10px}
  .es-question {font-size:1.67rem}
  .es-desk {grid-template-columns:minmax(0,1fr) minmax(0,2fr)}
}
