/* V1.6: one grid for all six classroom tools. */
header .header-actions{display:grid;grid-template-columns:repeat(2,62px);grid-template-rows:repeat(3,62px);gap:10px;align-items:center;justify-items:center}
header .header-actions .tool-button{position:static;transform:none;width:62px;height:62px;min-width:62px;min-height:62px;display:flex;flex-direction:column;gap:1px;padding:5px 3px;font:25px/1 Arial,sans-serif}
header .header-actions .tool-button small{font:12px/1.1 Arial,sans-serif;letter-spacing:0}
header .header-actions .tool-button :is(img,svg){width:28px;height:28px;object-fit:contain;pointer-events:none}
header .header-actions .tool-button span{height:28px;line-height:28px;font-size:25px}
header .header-actions #imageButton img{width:40px;height:28px;object-fit:cover;object-position:center;}
header .header-tools{gap:12px}.creator-mark{width:54px;height:54px}
.header-actions .tool-button:hover{background:#fffdf5}.header-actions .tool-button:focus-visible{outline:3px solid #b37730;outline-offset:3px}
#imageLayer{position:absolute;inset:0;z-index:2;overflow:hidden;pointer-events:none}
.image-overlay{position:absolute;pointer-events:auto;user-select:none;-webkit-user-select:none}
.image-content{display:block;width:100%;height:100%;padding:0;background:none;border-radius:3px;touch-action:manipulation}
.image-content img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none}
.image-overlay:hover,.image-overlay:focus-within,.image-overlay.selected{outline:2px dashed #46694b;outline-offset:3px}
.image-move{position:absolute;top:-30px;left:0;width:44px;height:36px;border-radius:10px 10px 0 0;border:1px solid #a6b2a0;background:#f8f5e9;font:24px Arial,sans-serif;touch-action:none;cursor:grab;opacity:0;z-index:1}
.image-overlay:hover .image-move,.image-overlay:focus-within .image-move,.image-overlay.dragging .image-move{opacity:1}.image-overlay.dragging{z-index:2}.image-overlay.dragging .image-move{cursor:grabbing}
.classroom-panel{font:16px/1.5 Arial,sans-serif;padding:26px;width:min(440px,100%)}.classroom-panel h2{font-family:Georgia,serif;line-height:1.1}.classroom-panel .eyebrow{font-size:11px}.classroom-panel .muted{font-size:14px}.classroom-panel .close{min-width:44px;min-height:44px}.classroom-panel .primary{font-size:16px;min-height:48px;justify-content:center}.classroom-panel .pill{font-size:14px;min-height:44px;margin-top:12px}.classroom-panel input[type=range]{min-height:40px}.classroom-panel .setting{font-size:14px}.classroom-panel input[type=checkbox]{width:22px;height:22px}
.image-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.image-choice{display:flex;gap:10px;align-items:center;min-width:0;border:1px solid #c6d1c1;border-radius:12px;background:#fffdf5;padding:10px;text-align:left;font:14px Arial,sans-serif}.image-choice img{width:45px;height:45px;object-fit:contain;background:#e3e7dd;border-radius:6px}.image-choice span{overflow:hidden;overflow-wrap:anywhere;max-height:60px}.image-choice[aria-pressed=true]{border-color:#46694b;background:#e1ecd8}#imageImportStatus:empty{display:none}#imageImportStatus,#countdownError{font-size:14px;overflow-wrap:anywhere}#countdownError{color:#874735}
.duration-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:24px 0 14px}.duration-fields label{font-size:14px}.duration-fields input{display:block;width:100%;min-height:48px;margin-top:7px;border:1px solid #bccab4;background:#fffef8;border-radius:10px;padding:10px;font:20px Arial,sans-serif;color:#2b4336}.duration-fields input:disabled{opacity:.65}
.countdown-reading{padding:24px 16px;background:#e6eddc;border:1px solid #d0ddc2;border-radius:18px;text-align:center}.countdown-reading strong{display:block;font:44px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums}.countdown-reading span{display:block;margin-top:8px;font-size:14px}
#countdownHud{position:absolute;left:50%;bottom:94px;transform:translateX(-50%);z-index:5;border-radius:20px;padding:10px 24px;text-align:center;pointer-events:none;min-width:170px;font:14px Arial,sans-serif}#countdownHud strong{display:block;font:30px/1.2 Arial,sans-serif;font-variant-numeric:tabular-nums;margin-top:3px}#countdownHud.timer-finished{background:#ecf4d7;border-color:#9bb879}body.has-countdown #message{bottom:184px}
@media(hover:none){.image-move{opacity:1}}
@media(max-width:1040px){.autoscroll{left:30px;right:auto;top:158px;transform:none;width:270px}.hud{top:224px}.brand{max-width:calc(100% - 158px)}}
@media(max-width:700px){header .header-actions{grid-template-columns:repeat(2,52px);grid-template-rows:repeat(3,52px);gap:8px}header .header-actions .tool-button{width:52px;height:52px;min-width:52px;min-height:52px;padding:3px}header .header-actions .tool-button small{font-size:11px}header .header-actions .tool-button :is(img,svg){width:25px;height:25px}header .header-actions .tool-button span{height:25px;line-height:25px;font-size:23px}header .header-actions #imageButton img{width:36px;height:25px}header .header-tools{gap:8px}.header-tools .creator-mark{width:42px;height:42px}.brand,header .brand{max-width:calc(100% - 128px);padding:12px}header h1{font-size:22px}header h1 span{display:none}.version{letter-spacing:1px}.autoscroll{left:16px;top:154px;width:min(210px,calc(100% - 150px));padding:8px 10px;display:block;font-size:13px}.auto-toggle{min-height:26px}.auto-speed{margin-top:3px}.hud{left:16px;top:244px;width:min(210px,calc(100% - 150px))}.stats{gap:8px}.stats b{font-size:16px}.classroom-panel{padding:22px}#countdownHud{bottom:82px;padding:9px 20px}body.has-countdown #message{bottom:170px}#message{bottom:82px}}
@media(max-width:380px){header h1{font-size:20px}.row .eyebrow{font-size:7px;letter-spacing:.6px}#soundWord{letter-spacing:0}.hud .glass{padding:10px}.stats{font-size:10px}}
@media(max-height:590px) and (min-width:701px){header .header-actions{grid-template-columns:repeat(2,48px);grid-template-rows:repeat(3,48px);gap:6px}header .header-actions .tool-button{width:48px;height:48px;min-width:48px;min-height:48px;padding:3px}header .header-actions .tool-button small{font-size:10px}header .header-actions .tool-button :is(img,svg){width:24px;height:24px}header .header-actions .tool-button span{height:24px;line-height:24px;font-size:23px}.header-tools .creator-mark{width:36px;height:36px}header .brand{max-width:250px}.autoscroll{top:12px;left:50%;right:auto;transform:translateX(-50%);width:230px}.hud{top:110px;width:200px}#countdownHud{bottom:62px;padding:8px 18px;min-width:145px}#countdownHud strong{font-size:26px}body.has-countdown #message{bottom:142px}}
@media(max-height:590px) and (max-width:700px){.hud{top:220px}.hud .glass{padding:7px 9px}.autoscroll{top:134px}.header-tools .creator-mark{display:none}.brand,header .brand{padding:9px}header h1{font-size:19px}#countdownHud{bottom:65px;left:auto;right:16px;transform:none;min-width:128px;padding:8px 12px}#countdownHud strong{font-size:24px}body.has-countdown #message{bottom:140px;font-size:10px}}
@media(max-height:590px) and (min-width:701px){header .brand{padding:10px 14px}header .brand .eyebrow{font-size:8px;letter-spacing:1px}header .brand .version{font-size:8px;letter-spacing:.5px}header .brand h1{font-size:21px;margin:6px 0}header .brand h1 span{display:none}}
