:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#1a1a1a;background:#e8ecf1;font-family:Segoe UI,system-ui,sans-serif;line-height:1.4}*{box-sizing:border-box}body{margin:0}.app{gap:12px;max-width:1080px;margin:0 auto;padding:16px;display:grid}.lesson-header{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.lesson-header-main{min-width:0}.lesson-header h1{letter-spacing:-.03em;color:#0f172a;margin:0 0 4px;font-size:1.5rem;font-weight:700}.lesson-header p{color:#64748b;margin:0;font-size:.9rem}.operator-toggle{color:#475569;font:inherit;cursor:pointer;background:#fff;border:1px solid #c5cad3;border-radius:6px;flex-shrink:0;padding:7px 12px;font-size:.82rem}.operator-toggle.open{color:#2f6fed;border-color:#2f6fed}.layout.lesson-layout{grid-template-columns:1fr;align-items:start;gap:12px;display:grid}.panel{background:#fff;border:1px solid #d5dae2;border-radius:10px;gap:8px;padding:12px;display:grid}.stage{min-width:0}.stage-header{justify-content:space-between;align-items:center;gap:8px;display:flex}.stage-header strong{font-size:.95rem}.control-group{border-top:1px solid #eef0f3;gap:8px;padding-top:4px;display:grid}.control-group:first-of-type{border-top:none;padding-top:0}.control-group .group-title{letter-spacing:.06em;text-transform:uppercase;color:#6b7280;font-size:.72rem;font-weight:700}.row{flex-wrap:wrap;align-items:end;gap:8px;display:flex}label{color:#444;gap:4px;font-size:.8rem;display:grid}label.grow{flex:160px}input{width:100%;min-width:120px;font:inherit;background:#fff;border:1px solid #c5cad3;border-radius:6px;padding:6px 8px}button{color:#fff;font:inherit;cursor:pointer;background:#2f6fed;border:1px solid #2f6fed;border-radius:6px;padding:7px 12px}button:disabled{opacity:.5;cursor:not-allowed}button.secondary{color:#2f6fed;background:#fff}.hint{color:#6b7280;margin:0;font-size:.78rem}.student-hint{margin-top:2px}.status-bar{color:#333;background:#fff;border:1px solid #d5dae2;border-radius:10px;flex-wrap:wrap;align-items:center;gap:6px;padding:8px 10px;font-size:.82rem;display:flex}.status-bar.error{background:#fff7f6;border-color:#f0b4ae}.pill{color:#374151;background:#f3f4f6;border:1px solid #e5e7eb;border-radius:999px;align-items:center;gap:6px;padding:3px 8px;display:inline-flex}.pill strong{color:#111;font-weight:650}.pill .dot{background:#9ca3af;border-radius:50%;width:7px;height:7px}.pill.running .dot,.pill.conn-connected .dot{background:#16a34a}.pill.conn-connecting .dot,.pill.conn-reconnecting .dot{background:#d97706}.pill.conn-disconnected .dot{background:#9ca3af}.pill.running{color:#166534;background:#ecfdf3;border-color:#bbf7d0}.pill.user-turn{color:#065f46;background:#ecfdf5;border-color:#6ee7b7}.pill.speaking,.speaking-badge{color:#9a3412;background:#fff7ed;border:1px solid #fed7aa}.speaking-badge{border-radius:999px;align-items:center;gap:4px;padding:2px 8px;font-size:.78rem;font-weight:600;animation:1.4s ease-in-out infinite pulse-speak;display:inline-flex}.pill.err-msg{color:#b42318;text-overflow:ellipsis;white-space:nowrap;background:#fef2f2;border-color:#fecaca;max-width:100%;overflow:hidden}@keyframes pulse-speak{0%,to{opacity:1}50%{opacity:.65}}.board{background:linear-gradient(#fbfbfc 0%,#f1f4f8 100%);border:1px solid #cfd5de;border-radius:10px;width:100%;height:min(58vh,560px);min-height:360px;position:relative;overflow:hidden;box-shadow:inset 0 1px #fffc}.board-empty{text-align:center;pointer-events:none;place-content:center;gap:6px;padding:24px;display:grid;position:absolute;inset:0}.board-empty-title{color:#4b5563;font-size:1.05rem;font-weight:600}.board-empty-hint{color:#9ca3af;max-width:360px;font-size:.85rem}.obj-text{white-space:pre-wrap;pointer-events:none;font-weight:600;position:absolute}.obj-shape{pointer-events:none;border-style:solid;position:absolute}.obj-shape.ellipse{border-radius:50%}.obj-shape.line,.obj-shape.arrow{border-width:2px medium medium;border-bottom-style:none;border-bottom-color:currentColor;border-left-style:none;border-left-color:currentColor;border-right-style:none;border-right-color:currentColor;background:0 0!important;height:0!important}.obj-highlight{opacity:.35;pointer-events:none;position:absolute}.caption-rail{gap:8px;margin-top:4px;display:grid}.caption-primary{color:#f8fafc;background:#0f172a;border-radius:10px;min-height:72px;padding:12px 14px}.caption-label{letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin-bottom:6px;font-size:.68rem;font-weight:700}.caption-asr .caption-label{opacity:1;color:#6b7280}.turn-line{flex-wrap:wrap;align-items:baseline;gap:8px;font-size:1.08rem;line-height:1.45;display:flex}.turn-speaker{color:#93c5fd;font-weight:700}.turn-seq{color:#94a3b8;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem}.turn-text{color:#f1f5f9;flex:200px}.caption-placeholder{color:#94a3b8;font-size:.9rem}.caption-asr{background:#f8fafc;border:1px solid #e5e7eb;border-radius:8px;padding:8px 10px}.caption-asr-body{color:#475569;gap:4px;max-height:120px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.75rem;display:grid;overflow:auto}.cap-line{line-height:1.35}.cap-line .cap-speaker{color:#64748b;font-weight:600}.cap-line.cap-mixed .cap-speaker{color:#0f766e}.cap-line.cap-mixed{background:#f0fdfa;border-radius:4px;padding:2px 4px}.student-bar{background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;gap:8px;padding:10px 12px;display:grid}.student-bar-title{letter-spacing:.06em;text-transform:uppercase;color:#64748b;font-size:.72rem;font-weight:700}button.interrupt-btn{color:#9a3412;background:#fff7ed;border-color:#b45309}button.interrupt-btn.armed:not(:disabled){color:#fff;background:#ea580c;border-color:#c2410c}.student-ask{align-items:end}.log{color:#e2e8f0;white-space:pre-wrap;background:#0f172a;border-radius:6px;max-height:180px;padding:8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem;overflow:auto}select{width:100%;min-width:120px;font:inherit;background:#fff;border:1px solid #c5cad3;border-radius:6px;padding:6px 8px}label.check{flex-direction:row;align-items:center;gap:8px;font-size:.82rem;display:flex}label.check input{width:auto;min-width:0}.rtc-stage{gap:6px;display:grid}.rtc-stage.lesson-audio{margin-top:2px}.rtc-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:8px;display:grid}.rtc-card{background:#0f172a;border:1px solid #1e293b;border-radius:8px;min-height:72px;position:relative;overflow:hidden}.rtc-card mb-publisher,.rtc-card mb-subscriber{width:100%;height:100px;min-height:88px;display:block}.rtc-card-label{color:#cbd5e1;word-break:break-all;background:#0f172aeb;border-top:1px solid #1e293b;padding:6px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem}.rtc-placeholder{color:#94a3b8;text-align:center;place-content:center;min-height:88px;padding:16px;font-size:.85rem;display:grid}.hint.err-hint{color:#b42318}label.lesson-paste{width:100%}textarea{resize:vertical;background:#fff;border:1px solid #c5cad3;border-radius:6px;width:100%;min-height:88px;padding:6px 8px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.72rem;line-height:1.35}.script-result{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:6px;gap:4px;padding:8px 10px;font-size:.78rem;display:grid}.script-result strong{color:#14532d;font-weight:650}.operator{gap:0;padding:0;overflow:hidden}.operator-summary{color:#334155;text-align:left;cursor:pointer;width:100%;font:inherit;background:#f8fafc;border:none;border-radius:0;align-items:center;gap:10px;padding:12px 14px;display:flex}.operator.open .operator-summary{border-bottom:1px solid #e2e8f0}.operator-summary-title{letter-spacing:.06em;text-transform:uppercase;color:#475569;font-size:.78rem;font-weight:700}.operator-summary-hint{color:#94a3b8;text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:.78rem;overflow:hidden}.operator-chevron{color:#94a3b8;font-size:.85rem}.operator-body{gap:14px;padding:12px 14px 14px;display:grid}.operator-tech-pills{flex-wrap:wrap;gap:6px;display:flex}.operator.collapsed{background:#f8fafc}
