.teacher-tutor .columns{display:block;text-align:left}
.teacher-tutor .card{background:#0a192b;border-color:var(--line)}
.teacher-tutor .card h2,.teacher-tutor .card h3,.teacher-tutor .card .question,.teacher-tutor .card .feedback{color:var(--ink)}
.teacher-tutor .card .question,.teacher-tutor .card .feedback{background:#132b43}
.teacher-tutor .muted{color:var(--muted)}
.teacher-tutor .error{color:#fda4af}
.teacher-tutor a{color:var(--cyan)}
.teacher-tutor #active[hidden]{display:none}
.teacher-tutor .card textarea,.teacher-tutor .card select{background:#071625;color:var(--ink);max-width:100%}
.teacher-tutor .card button.secondary{color:#eaf5ff;background:#183650;border-color:#35506d}
.teacher-tutor .card audio{width:min(100%,320px)}

.teacher-tutor .app .columns{margin-top:12px}


.teacher-tutor .icon-button.tutor-speaking:not(.listening){
  color:white;background:#1672d4;opacity:1;animation:teacher-micro-pulse .85s ease-in-out infinite alternate
}
@keyframes teacher-micro-pulse{
  from{background-color:#1259a8;box-shadow:0 0 5px #60a5fa}
  to{background-color:#258aff;box-shadow:0 0 22px #60a5fa}
}
@media(prefers-reduced-motion:reduce){
  .teacher-tutor .icon-button.tutor-speaking:not(.listening),.teacher-tutor .icon-button.listening{animation:none}
}

body.teacher-tutor{display:block;padding:0;background:#0d1929}
.teacher-tutor .app{width:100%;min-height:100svh;margin:0;padding:48px clamp(16px,2.7vw,36px) 24px;border:0;border-radius:0;background:linear-gradient(145deg,#0b1b2d,#101a2c);box-shadow:none}
.teacher-tutor .app-logo{width:100px;top:4px;left:16px}
.teacher-tutor #avatarSwitch{position:relative;top:auto;left:auto;transform:none;width:52px;height:52px;margin:0 auto 22px;padding:10px;border-width:4px}
.teacher-tutor #avatarSwitch::after{content:"";position:absolute;inset:-8px;border:1px solid #5793b8;pointer-events:none}
.teacher-tutor #avatarSwitch:active{transform:scale(.96)}
.teacher-tutor .subtitle{margin:0 0 16px;font-size:1.7rem}
.teacher-tutor .avatar-stage{width:min(80%,400px);height:auto;aspect-ratio:1;margin:0 auto 6px;transform:none}
.teacher-tutor .photo-avatar{width:min(380.8px,calc(100% - 19.2px));height:auto;aspect-ratio:1;border-radius:50%}
.teacher-tutor .halo{width:100%;height:auto;aspect-ratio:1}
.teacher-tutor .status{margin:0 0 10px}
.teacher-tutor .status-dot{background:#67e8f9;box-shadow:0 0 9px #67e8f9}
.teacher-tutor .conversation{display:flex;flex-direction:column;align-items:center;gap:3px;padding:4px 12px 10px;border-radius:14px}
.teacher-tutor .conversation .icon-button{width:96px;height:96px;flex:none}
.teacher-tutor .conversation .icon-button svg{width:38px;height:38px}
.teacher-tutor .status,.teacher-tutor .oral-instruction{font-size:1rem}
.teacher-tutor .answer{margin:0;color:var(--ink);font-size:.87rem;line-height:1.55}
.teacher-tutor .answer-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.teacher-tutor #textResponse{margin:0}
.teacher-tutor .controls,.teacher-tutor #teacherPlayback{margin-inline:auto}
.teacher-tutor #textResponse,.teacher-tutor #active .question{color:transparent}

.teacher-tutor #active [hidden]{display:none!important}
.course-progress{max-width:40rem;margin:0 auto 12px;color:var(--ink)}
.course-progress-label{display:flex;justify-content:space-between;gap:.5rem;margin-bottom:6px;font-size:.9rem}
.course-progress-tube{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:2px;border:1px solid #35506d;border-radius:999px;overflow:hidden;background:#0b2239}
.course-progress-tube span{padding:.25rem 0;font-size:.75rem;color:#b9cde0;background:#17334c}
.course-progress-tube .completed{background:#67e8f9;color:#062439;font-weight:700}

.avatar-actions{display:grid;grid-template-columns:minmax(0,1fr) min(44%,400px) minmax(0,1fr);align-items:center;gap:clamp(4px,2vw,22px);max-width:54rem;margin:0 auto 6px}
.teacher-tutor .avatar-actions .avatar-stage{width:100%;margin:0;min-width:0}
.evaluation-buttons{display:grid;gap:clamp(72px,13.2vw,144px);min-width:0}
.evaluation-buttons .evaluation-action{display:flex;align-items:center;justify-content:center;width:100%;min-width:0;min-height:3.3rem;padding:6px clamp(4.8px,1.2vw,12px);font-size:clamp(.67rem,1.8vw,.82rem);line-height:1.2;white-space:normal;overflow-wrap:anywhere;text-align:center}
#perceptionForm{max-width:42rem;margin:12px auto;text-align:left}
#perceptionForm[hidden]{display:none}
.teacher-tutor .transcript-visually-hidden{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.teacher-tutor .teacher-home{position:absolute;top:8px;right:clamp(16px,2.7vw,36px);display:grid;place-items:center;width:44px;height:44px;border:1px solid #35506d;border-radius:50%;background:#071625;color:var(--cyan)}
.teacher-tutor .teacher-logout{position:absolute;top:8px;right:calc(clamp(16px,2.7vw,36px) + 52px);min-height:44px;margin:0;padding:0 12px;border:1px solid #35506d;border-radius:12px;background:#071625;color:var(--cyan)}
.teacher-tutor .teacher-logout:hover,.teacher-tutor .teacher-logout:focus-visible{border-color:var(--cyan);background:#132b43}
.teacher-tutor .teacher-home svg{width:22px;height:22px}
.teacher-tutor .teacher-home:hover,.teacher-tutor .teacher-home:focus-visible{border-color:var(--cyan);background:#132b43}

.teacher-tutor #avatarSwitch[aria-pressed="false"]{color:#9cb2c5;border-color:#49627a;box-shadow:none}

.teacher-tutor .button-help{display:inline-flex;max-width:100%;border-radius:10px}
.teacher-tutor .button-help>button:disabled{pointer-events:none}
.teacher-tutor .button-help+.button-hint{display:none}
.teacher-tutor .button-help:focus-visible+.button-hint:not([hidden]),
.teacher-tutor .button-help:has(:focus-visible)+.button-hint:not([hidden]),
.teacher-tutor .button-help.show-hint+.button-hint:not([hidden]){display:block}
@media(hover:hover){
  .teacher-tutor .button-help:hover+.button-hint:not([hidden]){display:block}
}

.teacher-tutor #active.transcript-visible .question{color:var(--ink)}
.teacher-tutor #active .text-response-choice{margin:8px auto;min-height:44px}
.teacher-tutor #active textarea{width:100%;max-width:100%}
@media(max-width:767px) and (max-height:520px){
  .teacher-tutor .avatar-stage{width:min(44vw,210px)}
}

html.tutor-no-scroll,html.tutor-no-scroll body{overflow:hidden;overscroll-behavior:none}

@media(max-width:767px){.teacher-tutor .app{padding-top:52px}}
