/* © 유정쌤의 실험실 · 교사 화면 */
body.teacher-view{color-scheme:light;--ink:#20332f;--muted:#657671;--line:#dce4df;--gold:#16785d;--paper:#fff;background:#f3f6f5;color:#20332f}body.teacher-view #room,body.teacher-view .room-shade{display:none}body.teacher-view .topbar{height:70px;padding:12px 28px;background:#fff;border-bottom:1px solid #e0e8e3}body.teacher-view .wordmark{color:#6d8277}body.teacher-view .header-actions,body.teacher-view .foot{display:none}body.teacher-view #mode-banner{background:#eaf4ed;color:#325c47;border-color:#cfe2d3;margin:10px 28px 0}body.teacher-view #main{padding:20px 28px 28px;max-width:none;min-height:calc(100vh - 70px)}body.teacher-view dialog{background:#fff;color:#20332f;border-color:#d4dfd8;box-shadow:0 30px 100px #173b2b33}body.teacher-view dialog::backdrop{background:#172c2566}body.teacher-view .modal-top{color:#46735f;border-color:#e0e8e3}body.teacher-view .modal-top button{color:#3b5549}body.teacher-view #modal-body .btn.secondary{background:#f1f6f2;color:#28513c;border-color:#cddfd2}body.teacher-view #modal-body input{background:#fff;color:#20332f;border-color:#cbd9d0}body.teacher-view #modal-body .solution-photo{max-height:70vh}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.t-dashboard{display:grid;grid-template-columns:216px minmax(0,1fr);gap:26px;max-width:1800px;margin:auto}.t-sidebar{position:sticky;top:18px;align-self:start;background:#fff;border:1px solid #e0e7e2;border-radius:14px;padding:20px 14px;display:flex;flex-direction:column;min-height:calc(100dvh - 130px);max-height:calc(100dvh - 110px)}.t-sidebar-title{display:flex;align-items:center;gap:10px;margin:0 8px 24px}.t-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#e6f3eb;color:#197052;font:26px 'Gowun Batang',serif}.t-sidebar-title strong{display:block;font-size:16px}.t-sidebar-title small{display:block;font-size:11px;color:#6d8277;margin-top:2px}.t-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:9px 14px;border:1px solid #d4dfd8;border-radius:8px;background:#fff;color:#375145;font-size:12px;font-weight:600;text-decoration:none;cursor:pointer;white-space:nowrap}.t-button:hover{background:#f0f6f2;border-color:#9dbdad}.t-button:disabled{opacity:.5;cursor:wait}.t-primary{background:#187658;border-color:#187658;color:#fff}.t-primary:hover{background:#115e46;border-color:#115e46}.t-new-lesson{width:100%;padding:12px 8px}.t-sidebar-help{font-size:11px;color:#6d8075;line-height:1.85;margin:12px 8px 24px}.t-sidebar-label{font-size:11px;font-weight:700;color:#627a6a;display:flex;justify-content:space-between;padding:0 9px;margin-bottom:10px}.t-sidebar-label span{color:#9aaba0}.t-lesson-list{overflow:auto;min-height:80px;flex:1;display:flex;flex-direction:column;gap:7px}.t-lesson{width:100%;text-align:left;background:#fff;border:1px solid transparent;padding:13px 11px;border-radius:9px;color:#4a6154;cursor:pointer}.t-lesson:hover{background:#f6f9f7}.t-lesson.active{background:#eaf5ee;border-color:#bfdfc9;color:#15563e}.t-lesson strong{display:block;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.t-lesson span{display:block;font-size:10px;color:#718477;margin-top:5px}.t-lesson span b{letter-spacing:1.4px;margin-left:3px;font-weight:600}.t-sidebar-bottom{padding:18px 8px 0;margin-top:20px;border-top:1px solid #e8eee9;color:#85968a;line-height:2;font-size:10px}.t-content{min-width:0}.t-page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.t-kicker{color:#728477;font-size:10px;font-weight:600;letter-spacing:.6px;margin:0 0 7px}.t-content h1{font-family:'Noto Sans KR',sans-serif;font-size:25px;letter-spacing:-1px;font-weight:700;margin:0;line-height:1.4;color:#223d2e}.t-header-actions{display:flex;flex-wrap:wrap;gap:7px;justify-content:flex-end}.t-operation-grid{display:grid;grid-template-columns:1.18fr 1fr 1fr;gap:12px;margin-bottom:16px}.t-code-card,.t-operation-card{background:#fff;border:1px solid #dce6df;border-radius:12px;padding:17px 18px}.t-code-card{background:#e7f3ec;border-color:#cee3d6}.t-card-label{font-size:11px;font-weight:700;color:#607a69;margin-bottom:10px}.t-code-row{display:flex;gap:16px;align-items:center;justify-content:space-between}.t-code-row strong{font-size:28px;letter-spacing:4px;color:#145e44;font-variant-numeric:tabular-nums;line-height:1.3}.t-code-row .t-button{min-height:33px;padding:6px 12px;font-size:11px;background:#ffffffb8}.t-code-card p{font-size:10px;color:#688271;line-height:1.8;margin:9px 0 0}.t-operation-state{display:flex;align-items:center;gap:8px;margin:4px 0 12px;min-height:24px}.t-operation-state strong{font-size:12px;font-weight:600}.t-dot{width:7px;height:7px;border-radius:50%;background:#b4c0b7;flex-shrink:0}.t-dot.on{background:#329969;box-shadow:0 0 0 3px #e6f5ea}.t-operation-card .t-button{min-height:34px;width:100%;font-size:11px;padding:6px 10px}.t-metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.t-metrics button{background:#fff;border:1px solid #dfe7e1;border-radius:10px;padding:15px 18px;display:flex;align-items:center;justify-content:space-between;text-align:left;color:#294435;cursor:pointer;gap:8px}.t-metrics button:hover{border-color:#87b49b}.t-metrics span{font-size:11px;color:#657b6c;font-weight:500}.t-metrics strong{font-size:27px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums}.t-metrics small{font-size:11px;margin-left:4px;font-weight:500;color:#7f9286}.t-metrics .t-metric-pending{background:#fff9ea;border-color:#eddeb6}.t-metric-pending strong{color:#a7731a}.t-ready-line{display:flex;flex-wrap:wrap;align-items:center;gap:13px;padding:13px 2px;color:#69806f;font-size:10px}.t-ready-line b{color:#3a6e51;font-weight:600}.t-ready-line small{font-size:10px;margin-left:auto;color:#8b9b8e}.t-tabs{display:flex;gap:22px;border-bottom:1px solid #dce5df;margin-top:2px}.t-tabs button{border:0;border-bottom:3px solid transparent;background:none;color:#829186;font-size:13px;font-weight:600;min-height:48px;padding:10px 2px;cursor:pointer}.t-tabs button[aria-selected=true]{border-color:#187658;color:#1d6749}.t-tabs span{font-size:10px;background:#e6ece7;padding:2px 6px;border-radius:20px;margin-left:3px}.t-review-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:18px 0 14px}.t-filters{display:flex;gap:5px;flex-wrap:wrap}.t-filters button{border:1px solid transparent;border-radius:7px;background:transparent;color:#738576;font-size:11px;padding:8px 10px;cursor:pointer}.t-filters button[aria-pressed=true]{border-color:#c4ddce;background:#e9f3ec;color:#206344;font-weight:700}.t-filters span{font-size:10px;margin-left:5px;opacity:.7}.t-search-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.t-search-row label{margin:0}.t-search-row select,.t-search-row input{min-height:36px;padding:8px 10px;border:1px solid #d6e1d9;background:#fff;color:#3e5948;font-size:11px;border-radius:7px}.t-search-row select{width:115px}.t-search input{width:205px}.t-review-layout{display:grid;grid-template-columns:minmax(270px,.88fr) minmax(360px,1.35fr);gap:16px;height:max(440px,calc(100dvh - 490px));max-height:850px}.t-question-list,.t-review-detail{min-width:0;background:#fff;border:1px solid #dce5de;border-radius:12px;overflow:hidden;min-height:0}.t-question-list{display:flex;flex-direction:column}.t-list-heading{display:flex;justify-content:space-between;align-items:center;padding:15px 17px;border-bottom:1px solid #e5ebe7;background:#fbfcfb;font-size:12px}.t-list-heading span{font-size:11px;color:#83958a}.t-list-scroll{overflow:auto;flex:1}.t-question{display:block;text-align:left;width:100%;background:#fff;border:0;border-bottom:1px solid #eaf0eb;border-left:3px solid transparent;padding:16px 14px;color:#2c4938;cursor:pointer}.t-question:hover{background:#f6faf7}.t-question.selected{background:#eff7f1;border-left-color:#25805c}.t-question-top{display:flex;justify-content:space-between;align-items:center;gap:8px}.t-question-top strong{font-size:12px;font-weight:600}.t-status{display:inline-block;white-space:nowrap;border-radius:5px;font-size:9px;font-weight:600;padding:4px 7px;background:#edf1ee;color:#788b7d;line-height:1.4}.t-status.pending{background:#fff0ce;color:#9a6c22}.t-status.approved{background:#e2f2e7;color:#267349}.t-status.revision{background:#fce9e2;color:#ad6147}.t-question-title{font-size:12px;font-weight:500;margin:8px 0;line-height:1.6;overflow-wrap:anywhere}.t-question-meta{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px;font-size:9px;color:#8b9b8f}.t-question-meta b{color:#b78531;font-weight:600}.t-review-detail>article{height:100%;display:flex;flex-direction:column;min-height:0}.t-detail-header{padding:16px 20px;display:flex;justify-content:space-between;align-items:flex-start;border-bottom:1px solid #e3ebe5;gap:14px}.t-detail-header h2{font-family:inherit;font-size:17px;font-weight:700;color:#2b4735;line-height:1.5;margin:7px 0 5px;overflow-wrap:anywhere}.t-detail-header p{font-size:10px;color:#7e9183;margin:0}.t-detail-index{font-size:10px;color:#91a095;white-space:nowrap;padding-top:5px}.t-detail-body{overflow:auto;padding:18px 20px;flex:1;min-height:0}.t-content h3{font-family:inherit;font-size:11px;font-weight:700;color:#607a67;margin:0 0 9px}.t-problem-block{display:grid;grid-template-columns:140px minmax(0,1fr);gap:18px;align-items:center}.t-diagram{background:#f5f8f4;border:1px solid #e2eae0;border-radius:9px;overflow:hidden}.t-diagram svg{width:100%;display:block}.t-problem-copy{font-size:13px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#2e4937}.t-answer{background:#eef6f0;border-radius:8px;border:1px solid #d6e9da;margin:17px 0;padding:10px 13px;display:flex;align-items:center;gap:15px;flex-wrap:wrap;color:#25583b}.t-answer>strong{font-size:10px;font-weight:700}.t-answer>span{font-size:12px}.t-answer math-field{font-size:21px;min-height:0;color:#25583b;max-width:100%;padding:0;display:inline-block}.t-solution{margin:17px 0 20px}.t-solution .question-body{font-size:12px;line-height:1.9;color:#4b6352;margin:0 0 8px}.t-solution .btn{font-size:11px;background:#fff!important;color:#365f46!important;border-color:#c9ddcd!important;min-height:34px;padding:7px 12px}.t-solution details{font-size:10px;color:#839486;margin-top:12px}.t-solution details p{font-size:12px;color:#607663;white-space:pre-wrap;line-height:1.9;padding:8px 0;margin:0}.t-evaluation{border-top:1px solid #e6ece6;padding-top:17px}.t-eval-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.t-eval-heading h3{margin:0}.t-eval-heading span{font-size:10px;color:#849588}.t-eval-heading b{color:#2d7851;font-size:17px;margin:0 3px}.t-score-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px 14px}.t-score-grid label,.t-feedback-label{font-size:10px;color:#68806b;line-height:1.5;font-weight:500;margin:0}.t-score-grid select{display:block;background:#fff;border:1px solid #d4e1d6;color:#355640;border-radius:6px;padding:7px 9px;min-height:34px;font-size:11px;margin-top:6px}.t-feedback-label{display:block;margin-top:14px}.t-feedback-label textarea{display:block;min-height:72px;resize:vertical;line-height:1.8;font-size:11px;color:#36543f;background:#fff;border:1px solid #d3e0d5;border-radius:7px;margin-top:6px;padding:9px 11px}.t-review-footer{background:#fff;border-top:1px solid #dfe9e1;padding:10px 16px 13px;box-shadow:0 -5px 16px #23462b04;flex-shrink:0}.t-save-state{font-size:9px;color:#87978a;margin-bottom:8px}.t-review-buttons{display:flex;gap:6px;justify-content:flex-end;flex-wrap:wrap}.t-review-buttons .t-button{font-size:10px;padding:8px 10px;min-height:36px}.t-revision-button{border-color:#ead3be;color:#a17143;background:#fffbf5}.t-empty{padding:48px 22px;text-align:center;color:#8b9a8e}.t-empty strong{display:block;color:#6d8272;font-size:13px;font-weight:600}.t-empty p{font-size:11px;line-height:1.9;margin:10px 0 0}.t-detail-empty{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center}.t-detail-empty>span{display:grid;place-items:center;background:#edf5ef;color:#82ab8a;width:54px;height:54px;border-radius:50%;font-size:24px;margin-bottom:18px}.t-table-panel{background:#fff;border:1px solid #dce6de;border-radius:12px;overflow:hidden;margin-top:18px}.t-table-title{display:flex;justify-content:space-between;padding:22px 24px;border-bottom:1px solid #e2eae4}.t-table-title h2{font:700 16px 'Noto Sans KR',sans-serif;color:#2a4b35;margin:0 0 7px}.t-table-title p{font-size:11px;line-height:1.8;color:#7d9081;margin:0}.t-table-scroll{overflow:auto;max-height:65vh}.t-table-panel table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}.t-table-panel th{background:#f7faf7;color:#7d9282;font-size:10px;font-weight:500;padding:13px 18px;text-align:left;position:sticky;top:0;border-bottom:1px solid #e1e9e3}.t-table-panel td{padding:14px 18px;border-bottom:1px solid #eaf0eb;color:#4c6753}.t-table-panel tr:hover td{background:#fbfdfb}.t-table-panel td strong{font-size:12px;color:#36553d}.t-table-panel td small{display:block;font-size:9px;color:#95a396;margin-top:4px}.t-table-panel td .t-button{font-size:10px;min-height:31px;padding:6px 10px}.t-report-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:20px 24px;border-bottom:1px solid #e5ece6;font-size:12px}.t-report-row p{color:#7e9182;margin:8px 0 0;font-size:11px}.t-empty-lesson{padding:70px 30px;border:1px dashed #c6d9ca;border-radius:14px;text-align:center;background:#fff}.t-empty-symbol{display:grid;place-items:center;width:62px;height:62px;margin:0 auto 22px;border-radius:18px;font-size:28px;background:#edf7ef;color:#70a680}.t-empty-lesson h2{font:700 21px 'Noto Sans KR',sans-serif;color:#36563e;margin:0 0 14px}.t-empty-lesson p{color:#849588;line-height:2;font-size:12px;margin-bottom:25px}.t-create-dialog h2{font:700 23px 'Noto Sans KR',sans-serif;color:#294d35;margin:5px 0 18px}.t-create-dialog>p{font-size:12px;color:#6f8575;line-height:2;margin-bottom:25px}.t-create-dialog>p strong{color:#2c6a44}.t-create-dialog label{font-size:12px;color:#516e5b}.t-create-dialog input{margin-top:9px;font-size:14px;min-height:48px}.t-create-example{display:flex;gap:12px;flex-wrap:wrap;background:#f0f7f1;padding:15px;border-radius:8px;margin:20px 0;color:#67876f;font-size:11px}.t-create-example b{color:#a0b9a6}.t-dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}body.teacher-view :focus-visible{outline-color:#469c72}
@media(min-width:1700px){.t-dashboard{grid-template-columns:240px minmax(0,1fr);gap:32px}.t-review-layout{grid-template-columns:1fr 1.4fr}.t-problem-block{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:1180px){.t-dashboard{grid-template-columns:180px minmax(0,1fr);gap:18px}.t-page-header{align-items:flex-start}.t-content h1{font-size:21px}.t-header-actions .t-button{font-size:10px;padding:7px 10px}.t-sidebar{padding:17px 10px}.t-sidebar-title{margin-left:3px}.t-new-lesson{font-size:11px}.t-operation-grid{gap:8px}.t-code-card,.t-operation-card{padding:14px 12px}.t-code-row strong{font-size:23px;letter-spacing:3px}.t-code-row{gap:7px}.t-code-card p{font-size:9px}.t-operation-state strong{font-size:11px}.t-metrics button{padding:13px 12px}.t-review-layout{grid-template-columns:minmax(230px,.8fr) minmax(320px,1.3fr)}.t-problem-block{grid-template-columns:105px minmax(0,1fr);gap:12px}.t-detail-header,.t-detail-body{padding:15px}.t-ready-line small{margin-left:0}.t-review-tools{gap:8px}.t-search input{width:190px}.t-review-buttons .t-button{padding:7px 8px}}
@media(max-width:980px){body.teacher-view #main{padding:16px}.t-dashboard{grid-template-columns:1fr;gap:18px}.t-sidebar{position:static;min-height:0;max-height:none;padding:13px;display:grid;grid-template-columns:160px 1fr;gap:10px;align-items:center}.t-sidebar-title{margin:0}.t-new-lesson{width:auto;justify-self:end}.t-sidebar-help,.t-sidebar-label,.t-sidebar-bottom{display:none}.t-lesson-list{grid-column:1/-1;flex-direction:row;min-height:0;overflow:auto;gap:7px}.t-lesson{min-width:210px;width:210px;flex-shrink:0;padding:9px 11px}.t-lesson strong{font-size:11px}.t-lesson span{font-size:9px;margin-top:2px}.t-review-layout{grid-template-columns:minmax(240px,.85fr) minmax(320px,1.2fr);height:600px}.t-operation-grid{grid-template-columns:1.1fr 1fr 1fr}.t-code-row strong{font-size:26px}.t-page-header{margin-bottom:16px}}
@media(max-width:700px){body.teacher-view .topbar{padding:12px 16px;height:65px}body.teacher-view .wordmark{display:none}body.teacher-view #mode-banner{margin:8px 16px 0}body.teacher-view #main{padding:14px}.t-sidebar{grid-template-columns:1fr auto}.t-new-lesson{font-size:10px;padding:9px}.t-sidebar-title strong{font-size:14px}.t-sidebar-title small{font-size:9px}.t-logo{width:30px;height:30px;font-size:23px}.t-page-header{flex-direction:column;gap:12px}.t-content h1{font-size:23px}.t-header-actions{justify-content:flex-start}.t-header-actions .t-button{min-height:34px}.t-operation-grid{grid-template-columns:1fr 1fr}.t-code-card{grid-column:1/-1;padding:16px}.t-code-row strong{font-size:30px}.t-operation-card{padding:14px}.t-metrics{grid-template-columns:repeat(2,1fr);gap:8px}.t-metrics button{padding:14px}.t-metrics strong{font-size:25px}.t-ready-line{gap:8px;font-size:9px}.t-ready-line small{width:100%;font-size:9px}.t-tabs{gap:20px}.t-tabs button{font-size:12px}.t-review-tools{padding:14px 0}.t-filters button{font-size:10px;padding:8px}.t-search-row{width:100%;flex-wrap:nowrap}.t-search-row label.t-search{flex:1}.t-search input{width:100%}.t-search-row select{width:110px}.t-review-layout{grid-template-columns:1fr;height:auto}.t-question-list{max-height:290px;min-height:150px}.t-review-detail{height:680px}.t-problem-block{grid-template-columns:120px minmax(0,1fr)}.t-detail-header h2{font-size:17px}.t-review-buttons .t-button{font-size:11px;padding:9px 10px}.t-table-title{padding:18px}.t-report-row{padding:16px}.t-create-dialog h2{font-size:21px}.t-dialog-actions{flex-wrap:wrap}}
.t-dashboard.focus-mode{grid-template-columns:1fr;max-width:1600px}.focus-mode .t-sidebar,.focus-mode .t-operation-grid,.focus-mode .t-metrics,.focus-mode .t-ready-line{display:none}.focus-mode .t-review-layout{height:max(420px,calc(100dvh - 290px));max-height:none}.focus-mode .t-page-header{margin-bottom:10px}@media(max-width:700px){.focus-mode .t-review-layout{height:auto}.focus-mode .t-review-detail{height:680px}}
/* 검토 문장은 충분히 크게, 저장 버튼은 패널 안에 고정합니다. */
.t-question-top strong,.t-question-title{font-size:13px}.t-status{font-size:10px}.t-problem-copy{font-size:15px}.t-detail-header h2{font-size:19px}.t-solution .question-body{font-size:13px}.t-review-buttons .t-button{font-size:11px}.t-score-grid label,.t-feedback-label{font-size:11px}.t-review-layout{height:max(380px,calc(100dvh - 620px))}.focus-mode .t-review-layout{height:max(420px,calc(100dvh - 350px))}@media(max-width:980px) and (min-width:701px){.t-review-layout{height:600px}}@media(max-width:700px){.t-review-layout,.focus-mode .t-review-layout{height:auto}.t-review-detail{height:680px}}

/* AI 교사 검토 보조 */
.t-ai{border:1px solid #d7cdeb;border-radius:12px;background:#fbf9ff;padding:20px;margin:22px 0}.t-ai-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.t-ai-kicker{font-size:9px;letter-spacing:1.6px;color:#7b669c}.t-ai-heading h3{margin:5px 0!important;font-size:16px!important}.t-ai-wand{background:#6c4b91!important;color:#fff!important;border-color:#6c4b91!important;white-space:nowrap;min-height:42px}.t-ai-help,.t-ai-idle,.t-ai-loading,.t-ai-limit,.t-ai-meta{font-size:12px;line-height:1.8;color:#6d647b}.t-ai-photo{display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.7;color:#5a4c6e;margin:12px 0}.t-ai-photo input{width:16px;min-height:16px;height:16px;margin-top:3px;accent-color:#6c4b91}.t-ai-output{margin-top:16px}.t-ai-verdict{display:flex;gap:8px;align-items:center;flex-wrap:wrap;color:#225b44}.t-ai-verdict.needs_revision{color:#a34425}.t-ai-verdict.uncertain{color:#8e681b}.t-ai-verdict span{font-size:10px;font-weight:400;color:#7b7185}.t-ai-summary{font-size:14px;line-height:1.8;white-space:pre-wrap}.t-ai-checks{display:grid;gap:9px}.t-ai-check{border:1px solid #e0dce7;border-radius:8px;padding:12px;background:#fff}.t-ai-check>div{display:flex;justify-content:space-between;gap:8px;font-size:12px}.t-ai-check span{font-size:10px;color:#347154}.t-ai-check.issue{border-color:#e4bda7}.t-ai-check.issue span{color:#a34425}.t-ai-check.uncertain span{color:#8e681b}.t-ai-check p,.t-ai-reasoning p,.t-ai-suggestion p{font-size:12px;line-height:1.9;white-space:pre-wrap;margin:7px 0 0;color:#4b4652;overflow-wrap:anywhere}.t-ai-reasoning{font-size:12px;margin:14px 0}.t-ai-reasoning summary{cursor:pointer;color:#6c4b91;font-weight:600}.t-ai-suggestion{padding:14px;border-radius:8px;background:#eee7f6}.t-ai-suggestion>strong{font-size:12px}.t-ai-suggestion button{margin-top:12px;background:#fff}.t-ai-suggestion small{display:block;color:#6d647b;font-size:10px;line-height:1.7;margin-top:8px}.t-ai-limit{border-top:1px solid #e1dae9;padding-top:12px}.t-ai-meta{font-size:10px}.t-ai-error{color:#a34425;font-size:12px;line-height:1.8}@media(max-width:600px){.t-ai{padding:14px}.t-ai-heading{align-items:flex-start;flex-direction:column}.t-ai-wand{width:100%}}

/* Compact teacher workspace: give the submission the available viewport. */
body.teacher-view .topbar{height:46px;padding:6px 20px}
body.teacher-view #main{padding:12px 18px;min-height:calc(100dvh - 46px)}
body.teacher-view #mode-banner{margin:4px 18px 0;padding:5px 10px;font-size:11px}
.t-dashboard{grid-template-columns:180px minmax(0,1fr);gap:16px}
.t-sidebar{padding:16px 12px;min-height:calc(100dvh - 84px);max-height:calc(100dvh - 72px)}
.t-sidebar-title{margin:0 0 18px}.t-sidebar-label{margin-top:20px}
.t-sidebar-bottom{padding:12px 0 0}.t-sidebar-bottom .t-button{width:100%;font-size:11px}
.t-page-header,.focus-mode .t-page-header{align-items:center;margin-bottom:10px;gap:12px}
.t-content h1{font-size:20px;letter-spacing:-.5px}.t-header-actions{gap:6px}
.t-button,.t-header-actions .t-button,.t-review-buttons .t-button{min-height:30px;padding:5px 10px;font-size:12px;border-radius:6px;line-height:1.5}
.t-operation-grid{display:flex;gap:8px;margin:0 0 6px;flex-wrap:wrap}
.t-code-card,.t-operation-card{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:7px;flex:1}
.t-card-label{margin:0;font-size:11px;white-space:nowrap}.t-code-row{gap:10px;flex:1}
.t-code-row strong{font-size:20px;letter-spacing:2px}.t-code-row .t-button,.t-operation-card .t-button{min-height:28px;padding:3px 9px;width:auto;font-size:11px}
.t-operation-state{margin:0;min-height:0;flex:1;white-space:nowrap;gap:5px}.t-operation-state strong{font-size:11px}
.t-overview{position:relative;margin:0 0 4px;color:#647b6d;font-size:11px}
.t-overview>summary{cursor:pointer;padding:3px 0;width:fit-content}
.t-overview[open]{padding-bottom:6px}.t-metrics{gap:6px;margin-top:6px}
.t-metrics button{padding:8px 12px}.t-metrics strong{font-size:18px}.t-ready-line{padding:7px 2px;font-size:11px}
.focus-mode .t-overview{display:none}.t-tabs{gap:20px;margin:0}.t-tabs button{min-height:34px;padding:6px 2px;font-size:12px}
.t-review-tools{padding:8px 0;gap:6px}.t-filters button{min-height:30px;padding:5px 9px;font-size:11px}
.t-search-row select,.t-search input{min-height:30px;padding:4px 8px;font-size:12px}.t-search input{width:210px}
.t-review-layout{grid-template-columns:245px minmax(0,1fr);gap:12px;height:max(400px,calc(100dvh - 250px));max-height:none}
.focus-mode .t-review-layout{height:max(400px,calc(100dvh - 178px));grid-template-columns:245px minmax(0,1fr)}
.t-list-heading{padding:10px 12px}.t-question{padding:11px 12px}.t-question-title{margin:5px 0;line-height:1.5}.t-question-meta{font-size:10px}
.t-detail-header{padding:10px 16px;align-items:center}.t-detail-header>div{display:grid;grid-template-columns:auto 1fr;column-gap:8px;align-items:center}
.t-detail-header h2{font-size:17px;line-height:1.4;margin:0}.t-detail-header p{grid-column:2;font-size:11px;margin-top:3px}
.t-detail-body{padding:16px 20px;scrollbar-gutter:stable}.t-problem-block{grid-template-columns:150px minmax(0,1fr);gap:20px;align-items:center}
.t-content h3{font-size:12px}.t-problem-copy{font-size:15px;line-height:1.8}.t-answer{margin:12px 0;padding:7px 12px}.t-answer>strong{font-size:11px}
.t-solution{margin:12px 0;font-size:12px;color:#647b6d}.t-solution>summary{cursor:pointer;padding:5px 0}.t-solution[open]>summary{margin-bottom:10px}
.t-evaluation{padding-top:12px}.t-eval-heading{margin-bottom:8px}.t-score-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.t-score-grid select{margin-top:4px;padding:5px 8px;min-height:30px}
.t-feedback-label{margin-top:10px}.t-feedback-label textarea{min-height:58px;font-size:13px;padding:7px 10px}
.t-review-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 12px}.t-save-state{margin:0;font-size:11px;white-space:nowrap}
.t-ai{padding:12px 14px;margin:12px 0;border-radius:8px}.t-ai-heading{gap:10px}.t-ai-heading h3{font-size:13px!important;margin:0!important}.t-ai-wand{min-height:30px}
.t-ai-output{margin-top:8px}.t-ai-idle,.t-ai-loading{font-size:11px;line-height:1.6;margin:0}.t-ai-verdict{font-size:13px}.t-ai-summary{font-size:13px;line-height:1.7;margin:7px 0}
.t-ai-answer{font-size:13px;line-height:1.7;margin:6px 0;color:#4b4652;overflow-wrap:anywhere}.t-ai-answer strong{font-size:11px;color:#7b7185;margin-right:8px}
.t-ai-reasoning{margin:8px 0 0}.t-ai-checks{margin-top:10px;gap:6px}.t-ai-check{padding:9px 10px}.t-ai-suggestion{padding:0;background:none;margin-top:8px;font-size:12px}.t-ai-suggestion summary{cursor:pointer;color:#6c4b91;font-weight:600}.t-ai-suggestion button{margin-top:8px}
@media(max-width:1100px){.t-dashboard{grid-template-columns:160px minmax(0,1fr);gap:12px}.t-review-layout,.focus-mode .t-review-layout{grid-template-columns:210px minmax(0,1fr)}.t-page-header{flex-wrap:wrap}.t-header-actions .t-button{font-size:11px}.t-search input{width:165px}.t-problem-block{grid-template-columns:115px minmax(0,1fr);gap:12px}.t-score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.t-dashboard{grid-template-columns:1fr;gap:10px}.t-sidebar{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:8px;padding:8px;min-height:0;max-height:none}.t-sidebar-title{margin:0 auto 0 0}.t-sidebar-label{display:none}.t-lesson-list{flex:1;min-width:180px}.t-lesson{min-width:160px;width:auto;padding:6px 9px}.t-sidebar-bottom{display:block;border:0;padding:0;margin:0}.t-sidebar-bottom .t-button{font-size:10px}.t-review-layout{height:max(500px,calc(100dvh - 330px))}}
@media(max-width:700px){body.teacher-view #main{padding:10px}.t-content h1{font-size:18px}.t-page-header{align-items:flex-start;gap:8px}.t-header-actions{flex-wrap:wrap}.t-operation-grid{gap:6px}.t-code-card{flex-basis:100%}.t-operation-card{padding:6px 8px}.t-code-row strong{font-size:20px}.t-overview summary{padding:5px 0}.t-metrics{grid-template-columns:repeat(2,1fr)}.t-review-layout,.focus-mode .t-review-layout{grid-template-columns:1fr;height:auto}.t-question-list{max-height:220px}.t-review-detail,.focus-mode .t-review-detail{height:760px}.t-detail-body{padding:14px}.t-detail-header{padding:10px 12px}.t-detail-header h2{font-size:16px}.t-problem-block{grid-template-columns:100px minmax(0,1fr)}.t-review-footer{align-items:flex-start;flex-direction:column;gap:6px}.t-review-buttons{width:100%}.t-ai-heading{flex-direction:row;align-items:center}.t-ai-wand{width:auto}.t-search input{width:100%}.t-sidebar-bottom{display:none}}
@media(min-width:981px){
 .t-dashboard,.t-dashboard.focus-mode{height:calc(100dvh - 70px);min-height:540px}
 body.teacher-view:has(#mode-banner:not([hidden])) .t-dashboard{height:calc(100dvh - 106px)}
 .t-content{display:flex;flex-direction:column;min-height:0}
 .t-content>*{flex-shrink:0}#teacher-workspace{flex:1;min-height:0}
 .t-review-layout,.focus-mode .t-review-layout{height:100%;min-height:0}
 .t-sidebar{height:100%;min-height:0;max-height:none}
 .t-overview[open] .t-metrics{margin-top:6px}
}
/* The management header already contains navigation and lesson actions. */
body.teacher-view .topbar{display:none}
body.teacher-view #main{min-height:100dvh}
@media(min-width:981px){
 .t-dashboard,.t-dashboard.focus-mode{height:calc(100dvh - 24px)}
 body.teacher-view:has(#mode-banner:not([hidden])) .t-dashboard{height:calc(100dvh - 60px)}
}
body.teacher-view:has(#mode-banner:not([hidden])) #main{min-height:calc(100dvh - 36px)}
/* Independent teacher calculation workspace. */
.t-calc{height:100%;overflow:auto;background:#fff;border:1px solid #dce5de;border-radius:12px;margin-top:10px;padding:22px}
.t-calc-title{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:20px}.t-calc-title h2{font:700 21px 'Noto Sans KR',sans-serif;margin:0;color:#284638}.t-calc-title p{font-size:12px;color:#718477;margin:8px 0 0}.t-calc-title>span{font-size:11px;color:#6f8878;background:#eff6f0;padding:6px 10px;border-radius:20px}
.t-calc-grid{display:grid;grid-template-columns:minmax(280px,1fr) minmax(280px,1fr);gap:28px}.t-calc fieldset{border:0;padding:0;margin:0;min-width:0}.t-calc label{display:block;font-size:12px;color:#526e5d;margin:0 0 14px;font-weight:500}.t-calc input,.t-calc select,.t-calc textarea{display:block;width:100%;margin-top:7px;border:1px solid #cfddd2;background:#fff;color:#294b36;border-radius:7px;padding:9px 11px;font-size:14px;min-height:38px}.t-calc textarea{resize:vertical;min-height:90px;line-height:1.8}.t-calc-diagram{background:#f4f8f4;border:1px solid #e1eae2;border-radius:9px;margin:14px 0}.t-calc-diagram svg{display:block;width:100%;height:200px}.t-calc-params{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.t-calc-submit{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.t-calc-submit .t-button{padding:8px 16px;min-height:36px}.t-calc-submit small{font-size:10px;color:#8a998e}.t-calc-result{background:#f7faf7;border:1px solid #e0e9e1;border-radius:10px;padding:22px;display:flex;flex-direction:column;min-width:0}.t-calc-output{flex:1}.t-calc-empty{padding:65px 10px;text-align:center;color:#84988a}.t-calc-empty>span{font-size:36px;color:#7ba68c}.t-calc-empty h3{font-size:16px;margin:14px 0}.t-calc-empty p{font-size:12px;line-height:1.9}.t-calc-verdict{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#456d55}.t-calc-verdict small{font-size:10px;color:#899b8d}.t-calc-answer{font-size:28px;font-weight:700;line-height:1.6;color:#206845;white-space:pre-wrap;overflow-wrap:anywhere;margin:18px 0}.t-calc-summary{font-size:13px;line-height:1.8;color:#526c59;margin-bottom:28px}.t-calc-reasoning{font-size:14px;color:#425e4b;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}.t-calc-result section{margin:22px 0}.t-calc-meta,.t-calc-note{font-size:10px;color:#86998b;line-height:1.8}.t-calc-note{padding-top:14px;margin:22px 0 0;border-top:1px solid #dce7de}.t-calc-wait{padding:70px 0;text-align:center;color:#5b7b65;font-size:14px}
@media(max-width:800px){.t-calc{padding:16px;height:auto}.t-calc-grid{grid-template-columns:1fr;gap:20px}.t-calc-title{align-items:flex-start}.t-calc-title>span{font-size:9px}.t-calc-result{min-height:300px}.t-calc-empty{padding:35px 10px}}
.t-calc-condition-grid{display:grid;grid-template-columns:minmax(140px,1fr) minmax(140px,1fr);gap:16px;align-items:center;margin:12px 0}.t-calc-condition-grid .t-calc-diagram{margin:0}.t-calc-condition-grid .t-calc-diagram svg{height:160px}.t-calc-condition-grid .t-calc-params{grid-template-columns:1fr;gap:0}.t-calc-condition-grid label{margin-bottom:8px}.t-calc-title{margin-bottom:16px}.t-calc label{margin-bottom:10px}.t-calc textarea{min-height:85px}.t-calc{padding:18px}.focus-mode .t-calc-grid{grid-template-columns:minmax(320px,1fr) minmax(320px,1.2fr)}
@media(max-width:800px){.focus-mode .t-calc-grid{grid-template-columns:1fr}.t-calc-condition-grid{grid-template-columns:1fr 1fr}.t-calc-condition-grid .t-calc-diagram svg{height:150px}}
.t-calc-recheck{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:22px}.t-calc-recheck small{font-size:10px;color:#89998e}.t-calc-comparison{padding:14px;border:1px solid #d2e2d6;border-radius:8px;background:#edf5ee}.t-calc-comparison.different{background:#fff8e9;border-color:#dfc88f}.t-calc-comparison>div{display:flex;gap:14px;align-items:baseline;margin-top:10px;font-size:14px;overflow-wrap:anywhere}.t-calc-comparison span{font-size:11px;min-width:64px;color:#738575}.t-calc-comparison p{font-size:11px;line-height:1.8;color:#6e7c70;white-space:pre-wrap;overflow-wrap:anywhere}.t-calc-comparison details{font-size:11px;margin-top:12px}
.t-calc-recheck{margin:12px 0 18px}
