:root{--ink:#333e33;--muted:#8a8c7b;--green:#52694d;--paper:#f8f7ef}*{box-sizing:border-box}body{margin:0;background:#efeee3;color:var(--ink);font-family:"Microsoft YaHei","PingFang SC",sans-serif;min-height:100vh;overflow-x:hidden}button,select{font:inherit}button{cursor:pointer;transition:background .2s,transform .2s}button:hover{transform:translateY(-2px);background:#e2e7d9}button:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #92a082;outline-offset:4px}header{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;padding:34px 4.3vw}.brand{color:var(--ink);text-decoration:none;display:flex;gap:12px;align-items:center;font-size:22px;font-weight:600}.brand-mark{font-family:serif;background:var(--green);color:white;border-radius:12px;padding:7px 10px;font-size:22px}.brand small{font:10px Georgia,serif;letter-spacing:2px;margin-left:8px;color:#818573}.room-label{font-size:12px;color:#767f6d;display:flex;align-items:center;gap:10px}.room-label>span,.status-dot{height:6px;width:6px;border-radius:50%;background:#819372;display:inline-block}#clock{margin-left:18px;font-family:Georgia,serif}.room{position:fixed;inset:0;overflow:hidden;pointer-events:none;background:radial-gradient(ellipse at 45% 30%,#fffdf2bb,transparent 60%),linear-gradient(110deg,#e2e6d7,#f3efdf 60%,#e5e1cf)}.window{position:absolute;right:-2%;top:-8%;width:34%;height:73%;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:15px;border:14px solid #dedaca;transform:skewY(-7deg);box-shadow:-24px 18px 60px #b8b89a22;background:#e4e1cf}.window i{background:linear-gradient(140deg,#fefdec,#e6eadac9);border:1px solid #d8dac5}.sunlight{position:absolute;right:2%;top:47%;width:70%;height:40%;background:linear-gradient(165deg,#fffcec55,#fffdeb00);transform:rotate(-28deg);filter:blur(8px)}.desk{position:absolute;left:-5%;right:-5%;bottom:-20%;height:38%;background:linear-gradient(#c8b79544,#c0a78666);transform:rotate(-3deg);border-top:9px solid #d8c9ab55;box-shadow:0 -15px 70px #d1c4a422}.shelf{position:absolute;left:-12px;top:37%;width:210px;height:90px;border-bottom:10px solid #b6ab8b55;display:flex;align-items:end;gap:8px;opacity:.5}.shelf b{height:70px;width:22px;background:#a3ad94;border-radius:3px 3px 0 0}.shelf b:nth-child(2){height:85px;background:#c9b38d;transform:rotate(-9deg)}.shelf b:nth-child(3){height:62px;background:#e0c9a8}.shelf span{height:35px;width:48px;border-radius:3px 3px 20px 20px;background:#b8b6a0;margin-left:17px}.plant{position:absolute;right:4%;bottom:16%;height:240px;width:160px;opacity:.5}.plant b{position:absolute;bottom:0;left:40px;width:90px;height:90px;background:linear-gradient(90deg,#c0b08e,#e0d4b9);border-radius:4px 4px 25px 25px}.plant:before{content:"";position:absolute;left:85px;top:25px;height:160px;width:4px;background:#849175}.plant i{position:absolute;width:70px;height:35px;border-radius:90% 0 90% 0;background:#8e9f7f;left:20px;top:40px;transform:rotate(35deg)}.plant i:nth-child(2){left:85px;top:75px;transform:rotate(-25deg)}.plant i:nth-child(3){top:112px}.plant i:nth-child(4){left:85px;top:10px;transform:rotate(-45deg)}main{position:relative;text-align:center;width:650px;max-width:95%;margin:4vh auto 0;z-index:1}.eyebrow{font:10px Georgia,serif;letter-spacing:3px;color:#8b907f}h1{font-family:"STSong","SimSun",serif;font-size:38px;letter-spacing:3px;font-weight:400;margin:24px 0 14px}.intro{font-size:13px;color:#878b7c;letter-spacing:1px}.focus-space{margin:40px auto 0;width:460px;max-width:100%;padding:32px 36px 25px;border:1px solid #ffffffa0;border-radius:30px;background:linear-gradient(130deg,#fffef477,#f8f7ec33);box-shadow:0 18px 70px #7d85630a;backdrop-filter:blur(9px)}.session-label{font-size:12px;color:#687761;display:flex;gap:9px;align-items:center;justify-content:center}.timer{font-family:Georgia,"Times New Roman",serif;font-size:100px;font-weight:400;letter-spacing:1px;line-height:1.3;margin-top:12px;font-variant-numeric:tabular-nums}.timer span{color:#a4ae95;padding:0 5px}.timer-caption{font-size:11px;letter-spacing:2px;color:#8e927f}.timer-controls{display:flex;gap:12px;justify-content:center;margin:28px 0 30px}button{border:1px solid #ced4c2;background:#fbfcf266;color:#52614a;border-radius:9px;padding:9px 13px;font-size:12px}.primary{background:var(--green);color:#fffef1;border:0;border-radius:30px;padding:14px 29px;font-size:13px;min-width:168px;box-shadow:0 6px 15px #52694d18}.primary:hover{background:#42583e}.primary span{margin-left:26px}.reset{border-radius:50%;width:45px;height:45px;font-size:24px;padding:0}.focus-meta{border-top:1px solid #d7dccb;display:flex;justify-content:center;gap:43px;padding-top:24px}.focus-meta>div{display:flex;flex-direction:column;gap:9px}.focus-meta span{font-size:10px;color:#8f9385}.focus-meta strong{font-size:13px;font-weight:400}.focus-meta b{font:20px Georgia,serif}.focus-meta small{font-size:10px}.focus-meta>i{width:1px;background:#d7dccb}.quiet-note{margin-top:24px;color:#929781;font-size:20px}.quiet-note span{font-size:11px;letter-spacing:2px;margin-left:8px}.teacher-layer{position:fixed;right:4%;bottom:7%;width:290px;height:490px;z-index:4;pointer-events:none;visibility:hidden;transform:translateX(calc(100% + 12vw));transition:transform 1.2s cubic-bezier(.22,.61,.36,1)}.teacher-layer[data-state="ENTERING"],.teacher-layer[data-state="IDLE"],.teacher-layer[data-state="TALKING"]{visibility:visible;transform:translateX(0)}.teacher-layer[data-state="EXITING"]{visibility:visible;transition-duration:1s}.teacher-actor{position:absolute;inset:0}.teacher-actor img,.teacher-actor video{width:100%;height:100%;object-fit:contain;position:relative;filter:drop-shadow(8px 15px 12px #5c65401a)}[hidden]{display:none!important}.teacher-shadow{position:absolute;bottom:5px;left:20%;width:65%;height:15px;border-radius:50%;background:#69774d24;filter:blur(8px)}.teacher-name{position:absolute;bottom:-28px;width:100%;text-align:center;font-size:12px;color:#68745c}.teacher-name span{font-size:10px;color:#929780;margin-left:10px}.speech-bubble{position:absolute;right:calc(100% - 30px);top:65px;width:255px;padding:22px 24px;background:#fffef5e8;backdrop-filter:blur(16px);border:1px solid #fffdf7;border-radius:20px 20px 3px 20px;box-shadow:0 12px 40px #66724f0d;opacity:0;transform:translateY(9px);transition:opacity .3s,transform .3s}.speech-bubble.visible{opacity:1;transform:translateY(0)}.speech-bubble small{font-size:10px;color:#92977e}.speech-bubble p{font-family:"STSong","SimSun",serif;font-size:19px;line-height:1.7;margin:12px 0}.voice-bars{height:14px;display:flex;gap:3px;align-items:center}.voice-bars i{width:3px;height:6px;background:#8c9d7c;border-radius:3px;animation:voice .9s ease-in-out infinite alternate}.voice-bars i:nth-child(2n){animation-delay:-.6s}.voice-bars i:nth-child(3){animation-delay:-.3s}@keyframes voice{to{height:14px}}.teacher-fallback{height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.teacher-fallback span{font-size:140px}.teacher-fallback small{background:#faf7e7;padding:10px;border-radius:12px}.dev-panel{position:fixed;bottom:65px;left:4.3%;width:410px;z-index:5;border:1px solid #ffffff99;border-radius:15px;background:#f8f8efb8;backdrop-filter:blur(18px);box-shadow:0 8px 30px #65704608}summary{display:flex;justify-content:space-between;cursor:pointer;padding:16px 18px;font-size:12px;list-style:none}summary::-webkit-details-marker{display:none}.dev-tag{font-size:10px;color:#949b89}.dev-tag i{display:inline-block;border:solid #8e9783;border-width:0 1px 1px 0;padding:3px;transform:rotate(45deg);margin:0 2px 3px 10px}.dev-content{padding:0 16px 12px}.dev-buttons{display:flex;gap:5px;flex-wrap:wrap}.dev-buttons button{padding:8px 9px;font-size:11px}.sim-row{display:flex;align-items:center;gap:8px;margin:14px 0}.sim-row label{font-size:10px;color:#8b927f}select{border:1px solid #d2d7c5;background:#f5f7ec;border-radius:7px;padding:6px;color:#64735a;font-size:10px;flex:1;min-width:0}.sim-row button{font-size:10px;padding:6px 10px}.debug-line{border-top:1px solid #dfe3d5;padding-top:10px;display:flex;justify-content:space-between;font:9px monospace;color:#869079}.debug-line i{display:inline-block;width:5px;height:5px;background:#94a086;border-radius:50%}.debug-line b{font-weight:400}#audio-status{font-size:9px;color:#909780;margin:8px 0 0}footer{position:fixed;bottom:22px;left:4.3%;right:4.3%;display:flex;justify-content:space-between;font-size:10px;letter-spacing:1px;color:#919783;z-index:1}@media(min-width:1600px){main{margin-top:10vh}.focus-space{margin-top:45px;padding-top:40px;padding-bottom:32px}.teacher-layer{width:360px;height:610px;right:8%;bottom:10%}.speech-bubble{top:100px}.dev-panel{bottom:85px}}@media(max-width:1100px){main{margin-left:12%;width:520px}.teacher-layer{right:1%;width:230px;height:400px}.speech-bubble{width:220px;right:75%;top:-40px}.dev-panel{width:360px}.brand small{display:none}}@media(max-height:800px) and (min-width:800px){main{margin-top:0}h1{font-size:30px;margin:14px}.focus-space{margin-top:20px;padding:20px;width:380px}.timer{font-size:80px}.timer-controls{margin:18px 0}.quiet-note{margin-top:12px}.dev-panel{bottom:50px;width:330px}.dev-buttons button{font-size:10px;padding:6px}.teacher-layer{height:390px;width:230px}}@media(max-width:700px){header{padding:20px}.room-label{font-size:10px}.room-label time{display:none}main{margin:30px auto 320px;width:94%}h1{font-size:28px;letter-spacing:1px}.intro{font-size:11px}.focus-space{width:340px;margin-top:26px}.timer{font-size:82px}.teacher-layer{bottom:235px;right:0;width:145px;height:250px}.teacher-name{display:none}.speech-bubble{right:90%;top:20px;width:190px;padding:14px}.speech-bubble p{font-size:16px}.dev-panel{left:4%;bottom:40px;width:92%}footer{font-size:8px;bottom:14px}.quiet-note{visibility:hidden}}@media(prefers-reduced-motion:reduce){.teacher-layer{transition-duration:.15s!important}.voice-bars i{animation:none}button{transition:none}}
.speech-bubble{z-index:2}.teacher-actor{z-index:1}
.camera-panel{position:fixed;top:135px;left:4.3%;width:300px;z-index:3;padding:18px;border:1px solid #ffffffab;border-radius:18px;background:#f8f8efc9;backdrop-filter:blur(16px);max-height:calc(100vh - 480px);overflow:auto}.camera-heading{display:flex;justify-content:space-between;align-items:center;font-size:13px}.camera-heading small{font-size:10px;color:#7b886c}.camera-note{font-size:10px;color:#87907c;line-height:1.6}.camera-view{aspect-ratio:4/3;border-radius:12px;background:#dce2d3;position:relative;overflow:hidden;display:grid;place-items:center}.camera-view video{width:100%;height:100%;object-fit:contain;transform:scaleX(-1)}.camera-view span{font-size:11px;color:#859078}.camera-actions{display:flex;gap:6px;margin-top:12px;flex-wrap:wrap}.camera-actions button{font-size:11px;padding:8px}.camera-actions button:first-child{background:#52694d;color:white}button:disabled{opacity:.45;cursor:default;transform:none}.camera-panel #camera-status{font-size:10px;line-height:1.7;color:#79836f;margin-bottom:0}#camera-review{font-size:10px;margin-top:10px}dialog{border:1px solid #fff;border-radius:20px;background:#f7f6eb;color:var(--ink);padding:24px;width:640px;max-width:92vw;max-height:90vh;overflow:auto}dialog::backdrop{background:#28352488;backdrop-filter:blur(5px)}.snapshot-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.snapshot-heading h2{font-size:18px;font-weight:400;margin:0}.snapshot-heading button{font-size:20px;padding:3px 10px}#snapshot-image{width:100%;max-height:55vh;object-fit:contain;border-radius:10px;background:#dce2d3}#snapshot-info{font-size:11px;color:#78856c}.snapshot-actions{display:flex;gap:12px;align-items:center}#snapshot-save{font-size:12px;background:#52694d;color:white;text-decoration:none;padding:10px 16px;border-radius:9px}@media(max-height:850px) and (min-width:1101px){.camera-panel{top:105px;width:260px;max-height:calc(100vh - 420px)}.camera-view{aspect-ratio:16/9}}@media(max-width:1100px){.camera-panel{position:relative;top:auto;left:auto;margin:26px 4.3% 320px;width:300px;max-height:none}main{margin-bottom:20px}}@media(max-width:700px){.camera-panel{margin:20px auto 340px;width:min(340px,92%)}main{margin-bottom:10px}}
#vision-status{font-size:11px;line-height:1.7;color:#66755e;overflow-wrap:anywhere}
#teacher-pose-frame{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(8px 15px 12px #5c65401a)}

/* Keep desktop dialogue over the teacher, clear of the central timer. */
@media(min-width:701px){.speech-bubble{top:auto;bottom:calc(100% - 20px);right:0;width:min(255px,100%);padding:16px 20px;border-radius:18px 18px 3px 18px}.speech-bubble p{font-size:18px;margin:9px 0;line-height:1.6}}

/* Immersive room: compact utilities, full-size environment. */
.room{background:#655c48 url('assets/study-room.png?v=2') center center/cover no-repeat}
.room>div{display:none}
.room:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#17201818,transparent 60%,#141c2420);pointer-events:none}
header{position:fixed;top:0;left:0;padding:26px 30px;color:#f7efdb;z-index:2}
.brand{color:#fff6df;font-size:19px;text-shadow:0 2px 15px #0005}.brand-mark{background:#26392dbb;border:1px solid #ffffff40}.brand small{color:#f4e8cf}.room-label{display:none}
main{position:fixed;top:24px;right:24px;left:auto;width:280px;max-width:none;margin:0;z-index:5}
main>.eyebrow,main>h1,main>.intro,main>.quiet-note{display:none}
.focus-space{width:100%;max-width:none;margin:0;padding:18px 20px;border-radius:18px;background:#f7f4e5de;border:1px solid #fffc;backdrop-filter:blur(18px);box-shadow:0 12px 40px #151d241c}
.session-label{font-size:11px;gap:6px}.timer{font-size:58px;margin:3px 0;line-height:1.15}.timer span{padding:0 2px}.timer-caption{font-size:10px;letter-spacing:1px}
.timer-controls{margin:14px 0;gap:8px}.primary{font-size:12px;min-width:150px;padding:10px 16px}.reset{width:36px;height:36px;font-size:21px}.focus-meta{padding-top:12px;gap:28px}.focus-meta>div{gap:5px}.focus-meta strong{font-size:11px}.focus-meta b{font-size:16px}
.camera-panel{position:fixed;top:auto;left:auto;right:24px;bottom:24px;margin:0;width:280px;max-height:calc(100vh - 330px);padding:14px;z-index:5;background:#f7f4e5de;backdrop-filter:blur(18px);border-radius:18px;box-shadow:0 12px 40px #151d2420;overflow:auto}
.camera-heading{gap:8px;font-size:12px}.camera-heading small{margin-left:auto}#camera-fold{padding:0;width:25px;height:25px;font-size:18px;line-height:1}
.camera-view{aspect-ratio:16/9}.camera-note{font-size:9px;margin:7px 0}.camera-actions{margin-top:8px;gap:5px}.camera-actions button{font-size:10px;padding:6px 8px}.camera-panel #camera-status,#vision-status{font-size:10px;line-height:1.5;margin:6px 0}.camera-view span{font-size:10px}
.teacher-layer{right:calc(304px + 5vw);bottom:8vh;width:390px;height:min(70vh,740px)}
.teacher-name{color:#f9f0da;text-shadow:0 1px 5px #000b}.teacher-name span{color:#e9ddc8}
.speech-bubble{top:50px;bottom:auto;right:calc(100% - 70px);width:245px;padding:17px 20px;border-radius:18px 18px 3px 18px;background:#faf6e9eb}.speech-bubble p{font-size:18px}
.dev-panel{left:24px;bottom:24px;width:350px;max-width:calc(100vw - 48px);background:#f7f4e5d9;z-index:6}.dev-panel summary{padding:12px 16px}.dev-panel:has(details:not([open])){width:180px}.dev-content{max-height:45vh;overflow:auto}
footer{left:30px;bottom:82px;right:auto;color:#f4e9d0;text-shadow:0 1px 5px #0008}footer>span:last-child{display:none}
@media(max-height:800px){main{top:16px;right:16px;width:252px}.focus-space{padding:12px 16px}.timer{font-size:48px}.timer-controls{margin:9px 0}.camera-panel{right:16px;bottom:16px;width:252px;max-height:calc(100vh - 275px)}.teacher-layer{right:290px;width:310px;height:65vh}.speech-bubble{width:220px;right:calc(100% - 65px);top:15px}}
@media(max-width:1000px){.teacher-layer{right:285px;width:270px;height:60vh}.speech-bubble{right:0;top:auto;bottom:calc(100% - 10px);width:220px}.brand small{display:none}}
@media(max-width:700px){header{padding:15px}.brand{font-size:16px}main{top:70px;right:12px;width:200px;max-width:none;margin:0}.focus-space{padding:12px}.timer{font-size:44px}.primary{min-width:118px;padding:9px}.focus-meta{gap:16px}.camera-panel{right:12px;bottom:12px;width:200px;max-height:35vh;margin:0}.teacher-layer{right:205px;bottom:15vh;width:160px;height:42vh}.speech-bubble{width:170px;right:-15px;padding:12px}.speech-bubble p{font-size:15px}.dev-panel{left:12px;bottom:12px;max-width:calc(100vw - 24px)}.dev-panel:has(details:not([open])){width:145px}footer{display:none}}

.teacher-shadow{left:51%;transform:translateX(-50%);background:#30251c66;filter:blur(3px)}
.teacher-layer[data-state="ENTERING"] .teacher-shadow,.teacher-layer[data-state="EXITING"] .teacher-shadow{opacity:0}
.teacher-actor img,.teacher-actor video{filter:drop-shadow(2px 3px 3px #34281922)}

/* A single quiet control drawer; the room remains the main view. */
.study-dock{position:fixed;top:22px;right:22px;width:320px;max-width:calc(100vw - 32px);z-index:8;color:var(--ink);border:1px solid #fdf8e780;border-radius:18px;background:#f5f0e5eb;box-shadow:0 12px 36px #21190e20;backdrop-filter:blur(18px);overflow:hidden}
.dock-toggle{width:100%;display:grid;grid-template-columns:1fr auto;gap:5px 12px;align-items:center;text-align:left;border:0;border-radius:0;padding:13px 17px;background:transparent}
.dock-toggle:hover{transform:none;background:#fff9eb70}#dock-time{font:26px Georgia,serif;font-variant-numeric:tabular-nums}#dock-status{grid-column:1;grid-row:2;font-size:10px;color:#64705b}#dock-action{grid-column:2;grid-row:1 / 3;font-size:11px}
#dock-body{max-height:calc(100dvh - 122px);overflow:auto;overscroll-behavior:contain;border-top:1px solid #b8b79f55;padding:0 15px 14px}.dock-hint{font-size:10px;color:#7d806e;margin:15px 0 0}
.study-dock main{position:static;width:100%;max-width:none;margin:0;text-align:center}
.study-dock .focus-space{width:100%;margin:0;padding:14px 0 18px;background:none;border:0;border-radius:0;box-shadow:none;backdrop-filter:none}
.study-dock .timer{font-size:54px}.study-dock .timer-controls{margin:12px 0 16px}.study-dock .focus-meta{padding-top:15px;gap:30px}
.study-dock .camera-panel{position:static;width:100%;max-height:none;margin:0;padding:16px 0;border:0;border-top:1px solid #b8b79f55;border-radius:0;box-shadow:none;background:none;backdrop-filter:none;overflow:visible}
.study-dock .camera-heading{gap:8px}.study-dock #camera-fold{font-size:10px;padding:5px 7px;width:auto;height:auto}.study-dock .camera-view{aspect-ratio:16/9}
.study-dock .dev-panel,.study-dock .dev-panel:has(details:not([open])){position:static;width:100%;max-width:none;margin:0;border:0;border-top:1px solid #b8b79f55;border-radius:0;background:none;box-shadow:none;backdrop-filter:none}
.study-dock .dev-panel summary{padding:14px 0 0}.study-dock .dev-content{max-height:none;padding:14px 0 0;overflow:visible}
@media(max-width:700px){.study-dock{top:66px;right:12px;width:290px}#dock-body{max-height:calc(100dvh - 165px)}}

/* Controls stay to the left, clear of the teacher's walking route. */
.study-dock{left:22px;right:auto;top:88px}
#dock-body{max-height:calc(100dvh - 188px)}
@media(max-width:700px){.study-dock{left:12px;right:auto;top:66px}#dock-body{max-height:calc(100dvh - 165px)}}

/* Align the clip boundary with the screen edge; preserve recorded walking speed. */
.teacher-layer{right:0}

#dock-mini{padding:0 12px 10px}#dock-mini .camera-view{aspect-ratio:16/9;max-height:30vh}#dock-hide{display:block;margin:8px 0 0 auto;font-size:10px;padding:5px 8px}
#dock-restore{position:fixed;top:88px;left:22px;z-index:8;width:36px;height:36px;padding:0;border-radius:50%;background:#f5f0e5e6;box-shadow:0 3px 15px #21190e20}
@media(max-width:700px){#dock-restore{top:66px;left:12px}}

#room-particles{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;mix-blend-mode:screen}

/* Approved warm charcoal glass design. Scene and actor styles are unchanged. */
.study-dock{width:320px;color:#f1eddf;background:linear-gradient(145deg,#303328e8,#24251fde);border:1px solid #d5cdb17a;border-radius:21px;box-shadow:0 16px 48px #100e0930;backdrop-filter:blur(22px)}
.study-dock button,.study-dock select{color:#eeebdf;border-color:#c6c1ac66;background:transparent}
.study-dock button:hover{background:#ece4c416;transform:none}.study-dock button:focus-visible{outline:2px solid #c2d0ac;outline-offset:2px}
.dock-toggle{padding:20px 24px 12px}.dock-title{display:none;font:22px 'STSong','SimSun',serif}.is-open .dock-title{display:block}.is-open #dock-time,.is-open #dock-status{display:none}#dock-time{color:#f3efdf}#dock-status{color:#b6baa6}#dock-action{color:#e1ddce}
#dock-body{padding:0 24px 17px;border:0;scrollbar-width:thin;scrollbar-color:#a3a58e55 transparent}.dock-hint{display:none}
.study-dock .focus-space{padding:10px 0 17px}.study-dock .session-label{justify-content:flex-start;color:#bec7ad;font-size:11px}.study-dock .timer{font-size:66px;line-height:1.1;margin:18px 0 12px;color:#f5efdb}.study-dock .timer span{color:#9da98c}.study-dock .timer-caption{font-size:11px;letter-spacing:0;color:#b8b9a5}
.study-dock .timer-controls{margin:18px 0}.study-dock .primary{background:#6d8565;border:1px solid #a5b79966;flex:1;min-width:0;font-size:13px;padding:12px}.study-dock .primary:hover{background:#7a9471}.study-dock .primary span{margin-left:8px}.study-dock .reset{width:42px;height:42px;font-size:22px;flex:none}
.study-dock .focus-meta{border-color:#d5cdb13b;gap:0;padding-top:16px;text-align:left}.study-dock .focus-meta>div{width:50%;gap:7px}.study-dock .focus-meta>div:first-child{order:2;padding-left:26px}.study-dock .focus-meta>div:last-child{order:0}.study-dock .focus-meta>i{order:1;background:#d5cdb13b}.study-dock .focus-meta span{color:#b8b9a5;font-size:11px}.study-dock .focus-meta strong{font-size:13px}
.study-dock .camera-panel{border-color:#d5cdb13b;padding:16px 0 12px}.study-dock .camera-heading{font-size:13px;margin-bottom:12px}.study-dock .camera-heading small{color:#b7bba7}.study-dock #camera-fold{font-size:9px;border:0;padding:3px;color:#b7bba7}
.study-dock .camera-view{background:#1b1e1ddd;border:1px solid #b6b69a44;border-radius:10px}.study-dock .camera-view span{color:#a7ab9f;font-size:12px;display:flex;flex-direction:column;align-items:center;gap:10px}.study-dock .camera-view span:before{content:'◎';font-size:30px;color:#9dA393}
.study-dock .camera-actions:empty{display:none}.study-dock #camera-start{flex:1;background:transparent;border:1px solid #d4d1bc99;font-size:12px;padding:9px}.study-dock #camera-start:disabled{display:none}.study-dock #camera-stop:disabled{display:none}.study-dock #camera-stop{flex:1;padding:9px}.study-dock #camera-status{color:#aeb29e;font-size:10px;margin:7px 0}.study-dock .supervision-row{align-items:center;justify-content:space-between;margin-top:17px;font-size:13px}
.study-dock #vision-auto{position:relative;width:40px;height:23px;min-width:40px;border:0;border-radius:15px;background:#77796b;font-size:0;padding:0}.study-dock #vision-auto:before{content:'';position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#f5f0e5;transition:transform .2s}.study-dock #vision-auto[aria-pressed="true"]{background:#839976}.study-dock #vision-auto[aria-pressed="true"]:before{transform:translateX(17px)}
.privacy-note{font-size:10px;color:#b3b6a3;margin:10px 0 0}.study-dock .dev-panel{border-color:#d5cdb13b}.study-dock summary{color:#eee9db}.study-dock .dev-tag{font-size:0}.study-dock .dev-tag i{border-color:#c3c7b0}.study-dock .dev-content p,.study-dock #vision-status,.study-dock .camera-note{color:#b7bca9}.advanced-camera{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.study-dock select{background:#30352c}.study-dock .debug-line{border-color:#d5cdb13b;color:#b5bca4}.study-dock .sim-row label{color:#b5bca4}
#dock-mini{padding:4px 16px 12px}#dock-hide{color:#c6cbb8}#dock-restore{background:#30372beb;color:#eee8d5;border:1px solid #c6c1ac66}
@media(max-height:820px){.study-dock .timer{font-size:54px;margin:10px 0}.study-dock .timer-controls{margin:12px 0}.dock-toggle{padding-top:15px}.study-dock .focus-space{padding-bottom:12px}.study-dock .camera-panel{padding-top:12px}}

.panel-feedback{color:#c4c9b5;font-size:10px;line-height:1.5;margin:8px 0 0}
.study-dock .dock-drag-handle{display:block;width:100%;padding:7px 12px;border:0;border-bottom:1px solid #d5cdb125;border-radius:20px 20px 0 0;font-size:11px;color:#c8cbb7;cursor:grab;touch-action:none;user-select:none;letter-spacing:1px}.study-dock.is-dragging .dock-drag-handle{cursor:grabbing;background:#ffffff12}.study-dock.is-dragging{user-select:none}
.scene-picker{padding:10px 0 15px;border-bottom:1px solid #d5cdb13b}.scene-picker label{display:block;font-size:12px;margin-bottom:8px}.study-dock .scene-picker select{width:100%;padding:10px;border-radius:9px;font-size:12px}.scene-picker small{display:block;color:#c4c9b5;font-size:11px;margin-top:5px}.scene-picker small:empty{display:none}

/* Distinguish opening controls from hiding the whole dock. */
#dock-action{font-size:12px;font-weight:600;line-height:1.5;padding:10px 12px;border-radius:10px;background:#e8dfc5;color:#30372b;box-shadow:0 2px 6px #0002;white-space:nowrap}
.dock-toggle:hover #dock-action{background:#fff0ca}
#dock-hide{width:100%;min-height:40px;margin-top:12px;border:1px dashed #c6c1ac88;background:transparent;color:#e0ddcf;font-size:12px;letter-spacing:1px}
#dock-hide:hover{background:#ffffff12;transform:none;border-color:#e8dfc5}

#classroom-monitor{position:fixed;z-index:1;width:478px;height:247px;overflow:hidden;transform-origin:top left;pointer-events:none;color:#f4f0d9;font-family:'KaiTi','STKaiti','楷体',serif;text-shadow:0 0 1px #fff7df99,1px 1px 2px #17221855;letter-spacing:1px}#classroom-monitor h2{font:normal 29px 'KaiTi','STKaiti','楷体',serif;color:#f4dfa0;margin:0 0 15px;border-bottom:1px solid #f4f0d960;padding-bottom:10px}#classroom-monitor .chalk-meta{font-size:20px;margin-bottom:8px}#classroom-monitor .chalk-state{font-size:20px;color:#d9e8d0}#classroom-monitor .chalk-message{font-size:21px;line-height:1.55;margin:12px 0 0;overflow-wrap:anywhere;white-space:pre-wrap}#classroom-monitor .is-writing:after{content:'▏';color:#f3dfab}
