@import url("teacher-tools-contrast.css");
.teacher-console,.student-pathway{display:none;border:1px solid var(--line,#d9e1ea);border-radius:16px;background:var(--panel,#fff);padding:14px;margin:12px 0;box-shadow:0 10px 28px rgba(15,23,42,.06)}
.phase11-teacher-active .teacher-console{display:block}.phase12-student-active .student-pathway{display:block}.phase11-teacher-active .student-pathway,.phase12-student-active .teacher-console{display:none}
.teacher-console-head,.student-pathway-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.teacher-console-head h3,.student-pathway-head h3{margin:.15rem 0}.teacher-console-head p,.student-pathway-head small{margin:0;color:var(--muted,#64748b)}
.teacher-console-grid,.student-pathway-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.teacher-console-grid article,.student-pathway-grid article{border:1px solid var(--line,#d9e1ea);border-radius:13px;padding:12px;background:rgba(248,250,252,.8)}
.teacher-current-card span,.student-pathway-grid article>span{display:block;font-size:.76rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted,#64748b)}.teacher-current-card strong,[data-student-current] strong{display:block;margin:.25rem 0 .4rem;font-size:1rem}.teacher-current-card p,[data-student-current] p{margin:.3rem 0}.teacher-current-card small{color:var(--muted,#64748b)}
.teacher-timer-display{font-variant-numeric:tabular-nums;font-size:2rem;font-weight:800;margin:.35rem 0}.teacher-timer-presets,.teacher-timer-card>div:last-child,.teacher-reveal-card>div,.student-pathway-grid article>div{display:flex;flex-wrap:wrap;gap:6px}.teacher-console button,.student-pathway button,.student-finish-card button,.teacher-board button{border:1px solid var(--line,#cbd5e1);background:var(--panel,#fff);color:inherit;border-radius:9px;padding:.55rem .75rem;font:inherit;cursor:pointer}.teacher-console button:hover,.student-pathway button:hover,.student-finish-card button:hover,.teacher-board button:hover{transform:translateY(-1px)}
.teacher-console.collapsed .teacher-console-grid{display:none}.teacher-console.collapsed{padding-bottom:8px}.teacher-time-up .teacher-timer-display{animation:teacherPulse .45s ease 2}@keyframes teacherPulse{50%{transform:scale(1.08)}}
.teacher-question-card p{min-height:3.2em}.teacher-reveal-card small{display:block;margin-top:10px;color:var(--muted,#64748b)}
.teacher-board{position:fixed;z-index:80;inset:5vh 5vw;background:var(--panel,#fff);color:var(--text,#0f172a);border:1px solid var(--line,#cbd5e1);border-radius:18px;padding:20px;box-shadow:0 30px 90px rgba(15,23,42,.28)}.teacher-board[hidden]{display:none}.teacher-board-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.teacher-board-head>div:last-child{display:flex;gap:8px}.teacher-board p{font-size:1.25rem;font-weight:700}.teacher-board textarea{width:100%;min-height:60vh;resize:none;border:1px solid var(--line,#cbd5e1);border-radius:14px;padding:18px;font:600 1.35rem/1.5 inherit;background:rgba(248,250,252,.7);color:inherit}
.student-stage-progress{min-width:170px}.student-stage-progress strong,.student-stage-progress span{display:block;text-align:right}.student-stage-progress i{display:block;height:7px;border-radius:999px;background:rgba(148,163,184,.2);overflow:hidden;margin-top:6px}.student-stage-progress b{display:block;height:100%;border-radius:inherit;background:currentColor}.student-pathway-grid article p{color:var(--muted,#64748b)}.student-hint-box{margin-top:10px;padding:10px;border:1px dashed var(--line,#cbd5e1);border-radius:10px}.student-hint-box[hidden]{display:none}.student-hint-box p{color:inherit}.student-hint-box small{color:var(--muted,#64748b)}[data-student-stage-done].active{font-weight:800}
.student-finish-card{display:none;margin-top:18px;border-top:1px solid var(--line,#d9e1ea);padding-top:16px}.phase12-student-active .student-finish-card{display:block}.student-finish-card h3{margin:.2rem 0 .8rem}.student-finish-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.student-finish-grid article{position:relative;border:1px solid var(--line,#d9e1ea);border-radius:12px;padding:12px 12px 12px 46px}.student-finish-grid article>span{position:absolute;left:12px;top:12px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;border:1px solid currentColor;font-weight:800}.student-finish-grid p{color:var(--muted,#64748b)}
.phase11-teacher-active .student-finish-card{display:none}.phase11-teacher-active .teacher-prompt{display:block}.phase12-student-active .teacher-prompt{display:none}
@media(max-width:950px){.teacher-console-grid,.student-pathway-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.teacher-board{inset:3vh 3vw}.teacher-board textarea{min-height:55vh}}
@media(max-width:650px){.teacher-console-head,.student-pathway-head{display:block}.teacher-console-head>button{margin-top:8px}.teacher-console-grid,.student-pathway-grid,.student-finish-grid{grid-template-columns:1fr}.student-stage-progress{margin-top:10px}.student-stage-progress strong,.student-stage-progress span{text-align:left}.teacher-board{inset:0;border-radius:0;padding:14px}.teacher-board textarea{min-height:68vh;font-size:1.05rem}}
@media(prefers-reduced-motion:reduce){.teacher-time-up .teacher-timer-display{animation:none}.teacher-console button,.student-pathway button,.student-finish-card button{transition:none}}