/* Classroom layer: larger targets, explicit guidance and responsive study panel. */
.app-shell{grid-template-columns:minmax(0,540px) minmax(300px,350px);justify-content:center;gap:20px}
.atelier{width:100%}
.masthead{align-items:flex-start}
.brand h1{font-size:32px}
.brand p{font-size:12px;letter-spacing:1.5px}
.top-actions{gap:7px;align-items:center}
.stage-number{font-size:12px;padding-top:0}
.top-text-button{border:1px solid #c7c1b5;background:#faf8f1d9;color:#6e6258;border-radius:20px;padding:7px 9px;font-size:11px;white-space:nowrap;min-height:36px}
.top-text-button:hover,.top-text-button:focus-visible{border-color:#a66051;color:#8e5144}
.icon-button{width:36px;height:36px;flex:none}
.step-heading h2{font-size:16px}
.shape-choice,.tool-choice,.pill-button{font-size:13px;min-height:42px}
.help-text{font-size:11px;letter-spacing:1px;line-height:1.5}
.shape-options,.paint-tools{flex-wrap:wrap}
.controls-group{min-height:115px}
.navigation{margin-top:8px}
.nav-back:disabled{opacity:.35;cursor:not-allowed}
.nav-back{font-size:16px}
.precision-controls{margin-top:7px;font-size:11px;color:#746b61;text-align:center}
.wheel-toggle{margin-top:6px;border:1px solid #bba997;border-radius:18px;background:#f4eee4;color:#785d4e;padding:5px 11px;min-height:30px;font-size:11px}
.wheel-toggle[aria-pressed="false"]{background:#f8f7f0;color:#837b72}
.wheel-toggle:hover,.wheel-toggle:focus-visible{border-color:#a66051}
.shape-sim-status{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap}
.height-readout{margin-top:6px;min-width:70px;color:#8f5949;font-size:11px;font-variant-numeric:tabular-nums;letter-spacing:1px}
#shapeControls .help-text{font-size:11px;line-height:1.5;letter-spacing:.5px;color:#70695f}
.shape-touch-guide{position:absolute;z-index:3;width:70px;height:70px;pointer-events:none;transform:translate(-50%,-50%);filter:drop-shadow(0 2px 5px #4c37243d)}
.shape-contact-ring{position:absolute;inset:13px;border:2px solid #bc7057a8;border-radius:50%;background:#e4ab8230;box-shadow:0 0 0 6px #f5e4d94d}
.shape-finger{position:absolute;top:12px;width:13px;height:47px;border:1px solid #b98469;border-radius:10px;background:linear-gradient(90deg,#b9856d,#e2b99d 45%,#cf9c7b);box-shadow:inset -2px 0 3px #95634f40}
.shape-finger-left{left:4px;transform:rotate(-16deg)}
.shape-finger-right{right:4px;transform:rotate(16deg)}
.shape-gesture-label{position:absolute;top:-23px;left:50%;transform:translateX(-50%);white-space:nowrap;border-radius:12px;background:#725e50e8;color:#fffaf2;padding:3px 7px;font:10px/1.2 system-ui,sans-serif}
.precision-controls summary{cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.precision-controls>div{display:flex;align-items:center;gap:5px;margin-top:6px;justify-content:center;flex-wrap:wrap}
.precision-controls select,.precision-controls button,.quick-patterns button{border:1px solid #c9bcad;border-radius:18px;padding:5px 8px;color:#735e54;background:#fcfaf5;font-size:11px}
.quick-patterns{display:flex;align-items:center;gap:6px;margin-top:7px;color:#81786e;font-size:11px}
.quick-patterns button:hover,.precision-controls button:hover{border-color:#a66051}
.result-actions{flex-wrap:wrap;justify-content:center}
.result-actions .pill-button{padding:7px 10px}
.compare-controls{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;font-size:11px;color:#746b61}
.compare-controls button{border:1px solid #c9bcad;border-radius:18px;padding:5px 11px;background:#fcfaf5;color:#735e54;min-height:32px}
.compare-controls button.active{background:#a36453;border-color:#a36453;color:white}
.compare-controls button:focus-visible{outline:2px solid #9c5948;outline-offset:2px}
.lesson-panel{width:100%;height:min(960px,calc(100vh - 44px));min-height:680px;overflow-y:auto;background:#f8f5ec;border:1px solid #c9c2b7;box-shadow:0 24px 90px #29282122;padding:22px 24px;scrollbar-color:#c7b8a5 transparent}
.lesson-header{display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #d9cfc0;padding-bottom:12px}
.lesson-header h2{font-size:22px;margin:5px 0 0;color:#403e39;letter-spacing:2px}
.eyebrow{font:11px system-ui,sans-serif;letter-spacing:2px;color:#a06354}
.lesson-header button,.gallery-dialog .dialog-top button{border:0;background:transparent;color:#7b6c5c;font-size:24px;line-height:1;cursor:pointer}
@media(min-width:901px){.lesson-header button{display:none}}
.lesson-intro{font-size:13px;line-height:1.8;color:#625b53}
.lesson-progress{display:grid;grid-template-columns:repeat(4,1fr);list-style:none;padding:0;gap:4px;margin:13px 0 18px}
.lesson-progress li{font-size:10px;text-align:center;border-top:3px solid #d4ccc1;padding-top:7px;color:#998d81}
.lesson-progress li.active{border-color:#a65f4e;color:#7f483d;font-weight:700}
.lesson-progress li.done{border-color:#969e8a;color:#657361}
.lesson-content{min-height:390px}
.lesson-content h3{font-size:19px;letter-spacing:2px;margin:6px 0 9px;color:#614f44}
.lesson-content .task{padding:12px 14px;background:#f1eae0;border-left:3px solid #ac745f;font-size:14px;line-height:1.75;color:#554a41}
.lesson-content p,.lesson-content li{font-size:13px;line-height:1.8;color:#554f48}
.lesson-content ul{padding-left:20px}
.lesson-content .fact{padding:12px 14px;border:1px solid #d5cdc1;background:#fbfaf5;margin-top:14px}
.lesson-content .fact strong{display:block;font-size:13px;color:#735343;margin-bottom:3px}
.lesson-content a{color:#905647;text-decoration:underline;text-underline-offset:3px}
.lesson-content label{display:block;font-size:13px;color:#554a41;margin-top:16px;font-weight:600}
.lesson-content textarea{display:block;width:100%;min-height:82px;border:1px solid #c7b9aa;background:#fffdf8;margin-top:7px;padding:10px;font:13px/1.5 system-ui,sans-serif;resize:vertical;color:#3e3833}
.lesson-content textarea:focus{outline:2px solid #ab7764;outline-offset:1px}
.lesson-content .field-error{color:#a0443c;font-weight:700;margin:6px 0 0}
.lesson-content .mini-note{font-size:11px;color:#84796e}
.lesson-content .rubric{border-top:1px solid #d5c9bb;margin-top:17px;padding-top:10px}
.rubric-row{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:9px 0;font-size:12px}
.rubric-row select{border:1px solid #bcab99;background:#fffdf8;padding:6px 4px;color:#584a42;font-size:12px;min-width:108px}
.score-total{font-size:13px;color:#8e5345;font-weight:bold;text-align:right;margin-top:11px}
.lesson-footer{border-top:1px solid #d9cfc0;padding-top:14px;margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.lesson-footer p{margin:0;font-size:11px;line-height:1.5;color:#887b70}
.lesson-footer button{border:1px solid #9f6d5a;border-radius:18px;background:#a36453;color:white;padding:8px 10px;font-size:11px;white-space:nowrap}
.lesson-footer button:hover{background:#884f43}
.panel-backdrop{display:none}
.gallery-dialog{border:0;background:#f8f5ec;box-shadow:0 25px 80px #0006;padding:20px;width:min(92vw,680px);max-height:90vh;color:#4e473f}
.gallery-dialog::backdrop{background:#211c18bb}
.gallery-dialog>p{font-size:12px;line-height:1.6;color:#786f65}
.gallery-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;max-height:65vh;overflow:auto}
.gallery-card{border:1px solid #d1c5b7;background:#fffdf8;padding:7px}
.gallery-card img{width:100%;height:156px;object-fit:contain;background:#eee9de}
.gallery-card strong{display:block;font-size:12px;margin-top:5px}
.gallery-card small{display:block;font-size:10px;color:#776e65;margin-top:3px}
.gallery-card button{border:1px solid #bdad9c;background:#f7f3ec;font-size:10px;color:#805e51;margin-top:7px;padding:4px 7px}
.gallery-empty{font-size:13px;color:#85776b;padding:24px 0}
@media(max-width:900px){
  .app-shell{display:block;padding:0}
  .atelier{width:100%;height:100dvh;min-height:600px}
  .lesson-panel{position:fixed;z-index:22;top:0;right:0;bottom:0;width:min(92vw,400px);height:100dvh;min-height:0;transform:translateX(105%);transition:transform .25s ease;box-shadow:-12px 0 40px #0004}
  .lesson-panel.open{transform:translateX(0)}
  .panel-backdrop:not([hidden]){display:block;position:fixed;inset:0;background:#1f1a15a8;z-index:21}
  .top-actions{gap:5px}
  .stage-number{display:none}
}
@media(max-width:550px){
  .top-text-button{font-size:10px;padding:6px 7px}
  .top-actions{gap:4px}
  .brand h1{font-size:30px}
  .brand p{font-size:10px}
  .shape-choice,.tool-choice,.pill-button{font-size:12px;min-height:40px;padding:7px 9px}
  .control-panel{padding:0 10px}
  .precision-controls{font-size:10px}
  .lesson-panel{padding:19px}
  .fire-options{gap:6px}
  .fire-choice{width:min(31%,99px);min-width:0;height:86px}
  .fire-choice strong{font-size:11px}
  .fire-choice small{font-size:8px}
}
@media(max-height:760px){
  .scene-wrap{bottom:38%}
  .control-panel{bottom:17px;min-height:0;max-height:40%;overflow-y:auto;justify-content:flex-end}
  .controls-group{min-height:0}
  .navigation{height:46px;flex:none}
  .step-heading{margin-bottom:8px}
  .help-text{margin-top:7px}
  .footer-line{display:none}
}
@media(prefers-reduced-motion:reduce){.lesson-panel,.shape-choice,.tool-choice,.pill-button,.kiln-overlay{transition:none!important}.fire-glow,.ember{animation:none!important}}
