/* Workbench design tokens; Element Plus supplies the interactive controls. */
:root{--primary:#3269d5;--primary-dark:#2457b7;--primary-soft:#edf3ff;--bg:#f3f5f9;--surface:#fff;--text:#24334b;--muted:#64748b;--line:#e0e6ef;--el-color-primary:#3269d5;--el-border-radius-base:8px;--el-font-family:"Microsoft YaHei UI","Microsoft YaHei",system-ui,sans-serif;font-family:var(--el-font-family)}
body{background:var(--bg);color:var(--text)}button,input,textarea,select{font-family:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible{outline:3px solid #9cbdfa;outline-offset:3px}button.primary{background:var(--primary);border-color:var(--primary);box-shadow:0 3px 7px #3269d51f}button.primary:hover{background:var(--primary-dark);border-color:var(--primary-dark);transform:none}
.sidebar{background:#fff;border-color:var(--line)}.mark{background:#3269d5}#nav button.on{background:#edf3ff;color:#2457b7}.sidebar-foot{color:#718096}.brand-copy{color:#20324d}.header-title{color:#34435c}header{border-color:var(--line);min-height:60px}.menu-group{color:#7c899d}
main{max-width:1660px;padding:28px 28px 52px}.studio-title{margin-bottom:24px}.studio-title h1{font-size:27px;font-weight:700;line-height:1.4;color:#182b49}.studio-title .crumb{margin-bottom:12px}.task-facts{margin-top:13px}.task-facts>span{background:#fff;border-color:#e1e7f0;color:#66758b}.task-facts .ico{color:#7d91ac}.studio-board{grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);gap:24px;align-items:start}.studio-column{gap:24px}
.studio-stage{border:1px solid #dfe5ef;border-radius:14px;background:#fff;overflow:visible;box-shadow:0 2px 3px #213b5a04,0 7px 22px #213b5a06}.stage-head{min-height:65px;padding:16px 22px;border-radius:14px 14px 0 0;border-bottom:1px solid #e5eaf2;background:#f9fbfe}.stage-head h2{font-size:16px;font-weight:700;color:#263b5b}.stage-head>.ico{color:#8498b7}.stage-head .step-no{height:30px;width:32px;border-radius:8px;background:#eaf1fd;color:#3565ad;font-size:12px;font-weight:700}.stage-04{border-color:#cbd9ef;box-shadow:0 3px 5px #23487506,0 9px 26px #2348750a}.stage-04 .stage-head{background:#f1f6ff}.stage-04 .step-no{background:#3269d5;color:white}.stage-body{padding:22px}.stage-body label{font-size:13px;font-weight:600;color:#46556d}.stage-body input,.stage-body textarea{background:#fff;border:1px solid #dce3ed;border-radius:8px;color:#334155;box-shadow:0 1px 2px #152a4310;line-height:1.65}.stage-body input:focus,.stage-body textarea:focus{border-color:#82a8e9;box-shadow:0 0 0 3px #eaf1ff;outline:0}.stage-body textarea::placeholder,.stage-body input::placeholder{color:#8995a7}.stage-body textarea[readonly]{background:#f7f9fc;box-shadow:none}.stage-body #taskLink{min-height:90px}.stage-body #originalText{min-height:170px;height:190px}.stage-body #scriptText{min-height:260px}.stage-body .current-input{padding:9px 12px;border:1px solid #e7ecf5;border-radius:7px;background:#f7f9fd;color:#667792;margin:0 0 18px;font-size:12px}.tool-line{gap:9px;margin:14px 0}.tool-line button,.result-tools button,.result-tools a{border-radius:7px;font-weight:500;min-height:36px}.tool-line>.primary{min-height:42px}.source-entry{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:13px 0 0;margin-top:12px;border-top:1px dashed #dce4ee}.source-entry button,.source-entry a{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:7px 12px;border:1px solid #dbe4f3;border-radius:7px;background:#f6f9ff;color:#3965aa;font-size:12px;text-decoration:none}.source-entry span{font-size:12px;color:#7d8ba2;margin-left:auto}.headline-result{padding:14px 15px;background:#f6f8fc;border:1px solid #e5eaf2;border-radius:8px;font-size:15px;line-height:1.6;color:#263b5b}.topic-line span{background:#eff4fc;border:1px solid #dfe9fa;color:#4e6d9d}.field-line{margin-bottom:14px}.field-cap{color:#65738a;font-size:12px}.draft-status{color:#72829a}.result-tools{margin-bottom:0}
.presenter-workspace{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(0,1fr);gap:22px;align-items:start}.presenter-sample{padding:10px;background:#f3f6fb;border:1px solid #e1e7f0;border-radius:10px;min-width:0}.sample-heading{display:flex;justify-content:space-between;align-items:center;margin:1px 2px 10px;font-size:12px;color:#54657f}.sample-heading span{padding:2px 6px;border:1px solid #d9e2f0;border-radius:4px;background:#fff;color:#8491a5;font-size:10px}.presenter-sample .preview-frame{position:relative;display:block;aspect-ratio:9/14;width:100%;min-height:240px;max-height:460px;padding:0;overflow:hidden;background:#e4e9f0;border:0;border-radius:7px;box-shadow:none}.presenter-sample video{display:block;width:100%;height:100%;object-fit:contain;position:absolute;inset:0}.sample-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:10px 2px 0}.sample-footer strong{font-size:13px;color:#334a6e}.sample-footer button{padding:4px 7px;min-height:28px;border:1px solid #d7e1ef;background:#fff;color:#51709c;font-size:11px;border-radius:5px}.sample-note{margin:7px 2px 0;color:#74849c;font-size:10px;line-height:1.6}.avatar-video-status{position:absolute;inset:auto 8px 8px;padding:8px;background:#fffffff2;border-radius:6px;color:#4b607d;font-size:11px;text-align:center}.avatar-video-status[hidden]{display:none}.presenter-settings{min-width:0;padding-top:2px}
.voice-settings label{display:block;font-size:13px;font-weight:600;margin:0 0 9px;color:#475973}.voice-settings .el-select{width:100%;margin:0}.voice-settings .el-select__wrapper{min-height:42px;border-radius:8px}.voice-settings .el-select__input{box-shadow:none!important;background:transparent!important;border:0!important;min-height:0!important;margin:0!important;padding:0!important}.voice-binding{display:flex;flex-wrap:wrap;gap:6px 9px;align-items:center;margin:13px 0 20px;padding:11px 12px;border-radius:8px;background:#f6f8fc;border:1px solid #e9edf4}.voice-binding>span:first-child{color:#8793a6;font-size:11px}.voice-binding strong{font-size:12px;color:#4f6385;overflow-wrap:anywhere;font-weight:500}.voice-binding .el-tag{font-size:10px;border-color:#dde4ef;color:#76869d;background:#fff}.slider-setting{margin:17px 0}.slider-label{display:flex;align-items:center;justify-content:space-between;gap:8px}.slider-label label{margin-bottom:0}.slider-label strong{font-size:12px;color:#5e789c;font-weight:500}.slider-setting>small{color:#8a97aa;font-size:10px}.slider-setting .el-slider{height:39px;gap:14px}.slider-setting .el-slider__runway{margin-right:0}.slider-setting .el-slider__input{width:52px;flex-shrink:0}.slider-setting .el-input__wrapper{padding:1px 5px;box-shadow:0 0 0 1px #dfe5ee inset}.slider-setting input.el-input__inner{border:0;border-radius:0;box-shadow:none;margin:0;padding:0;background:transparent;min-height:28px;font-size:12px}.slider-setting .el-slider__button{width:16px;height:16px;border-width:2px}.voice-actions{display:grid;gap:8px;margin-top:19px}.voice-actions button{justify-content:center;min-height:40px;border:1px solid #b9cdef;background:#f0f5ff;color:#3666b2}.voice-actions small{color:#7d8ca2;font-size:11px;text-align:center}.teacher-dropdown .el-select-dropdown__item{height:49px;line-height:49px;padding:0 12px}.teacher-option{display:flex;align-items:center;gap:10px}.teacher-option img{width:29px;height:34px;border-radius:5px;object-fit:cover;object-position:top}.teacher-option span{font-size:13px}.teacher-option small{margin-left:auto;color:#8a98ad;font-size:10px}.teacher-shortcuts{margin:22px 0 0;border-top:1px solid #edf0f6;padding-top:15px}.teacher-shortcuts>span{display:block;font-size:11px;color:#8391a6;margin-bottom:9px}.teacher-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px;margin:0}.teacher-list .teacher-card{min-height:65px;padding:7px 4px;gap:5px;border-radius:7px;border-color:#e4e9f1;background:#fff;box-shadow:none}.teacher-list .teacher-card img{width:30px;height:34px;object-fit:cover;object-position:top;border-radius:5px}.teacher-list .teacher-card span{font-size:10px;color:#62738e}.teacher-list .teacher-card.selected{background:#f0f5ff;border-color:#7fa5e8;box-shadow:inset 0 0 0 1px #d1e0f9}.teacher-list .teacher-card.selected span{color:#3269d5}.teacher-list .teacher-card.selected:after{background:#3269d5;width:13px;height:13px;font-size:8px;top:3px;right:3px}.teacher-list .teacher-card:hover{transform:none;background:#f6f9ff;border-color:#a4bfe9}.production-action{display:flex;gap:16px;align-items:center;justify-content:space-between;margin-top:22px;padding-top:20px;border-top:1px solid #e7edf5}.production-action strong{font-size:14px;color:#334b6b}.production-action small{display:block;font-size:11px;color:#8090a6;margin-top:5px}.production-action button{flex-shrink:0;min-height:42px;font-size:13px}.inline-status{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#f4f7fd;border:1px solid #e1e9f6;color:#5c7090;font-size:12px}.inline-status>span{flex:1;min-width:0}.inline-status button{min-height:28px;padding:4px 7px;font-size:11px;color:#3269d5}.inline-status progress{flex-basis:100%;accent-color:#3269d5}.stage-body .asset{border:1px solid #e5eaf2;background:#f9fbfe;box-shadow:none;margin-top:14px;border-radius:9px}.current-product .product-heading strong{font-size:12px;color:#4d6586}.stage-body .asset small{color:#8b99aa}.video-intro{display:flex;align-items:center;gap:12px;margin-bottom:16px}.video-intro-icon{display:grid;width:44px;height:44px;place-items:center;flex-shrink:0;border-radius:10px;background:#edf3fe;color:#4679ca}.video-intro strong{font-size:14px;color:#354d70}.video-intro p{margin:5px 0 0;font-size:12px;line-height:1.6;color:#8390a3}
#machineMonitor{padding:16px 28px 10px;border-bottom:1px solid #e1e7f0;background:#fff}#machineMonitor[hidden]{display:none}.machine-list,.device-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.machine-card{min-width:0;padding:10px 12px;border:1px solid #e0e7f1;border-radius:8px;background:#f7f9fc}.machine-top{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.machine-top strong{font-size:13px;color:#304666}.machine-badge{display:inline-flex;align-items:center;gap:5px;font-size:11px;border-radius:20px;padding:2px 6px;color:#247a5d;background:#e6f5ee}.machine-badge i{width:5px;height:5px;border-radius:50%;background:currentColor}.machine-lanes{display:flex;gap:9px;align-items:center;justify-content:space-between;margin-top:7px}.machine-lanes>span{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:11px;color:#7b8ca4}.machine-lanes .ico{width:13px;height:13px}.machine-lanes b{font-size:12px;color:#526987;font-weight:500}.machine-lanes b.busy{color:#3269d5;font-weight:700}.machine-card>small{display:block;font-size:10px;color:#8897ac;margin-top:5px}.machine-card.offline{background:#fff7f6;border-color:#f0dbd7}.machine-card.offline .machine-badge{background:#fbeae7;color:#b55c4a}.machine-card.unknown .machine-badge{background:#edf0f6;color:#8190a5}.machine-warning{font-size:10px;color:#b87726}.monitor-footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:7px;font-size:10px;color:#8594aa}.monitor-footer button{border:0;padding:0;background:transparent;min-height:22px;font-size:10px;color:#6787b7}.monitor-footer .ico{width:12px;height:12px}.monitor-explainer{font-size:13px;line-height:1.8;color:#74849b;margin-top:20px}
.el-overlay{background:#1e314b66;backdrop-filter:blur(3px)}.el-dialog{padding:0;border-radius:14px;box-shadow:0 18px 70px #1c2f4a33;max-height:calc(100dvh - 32px);overflow:auto}.el-dialog__header{min-height:65px;padding:21px 24px 18px;border-bottom:1px solid #e9edf4;margin:0}.el-dialog__title{font-size:17px;font-weight:650;color:#293f60}.el-dialog__headerbtn{border:0;background:transparent;border-radius:0;box-shadow:none;width:54px;height:60px;min-height:0;padding:0;top:1px;right:3px}.el-dialog__body{padding:24px}.el-dialog__footer{padding:16px 24px;background:#f8fafd;border-top:1px solid #e9edf4;border-radius:0 0 14px 14px}.el-button{font-size:13px;font-weight:500;box-shadow:none;text-decoration:none;line-height:1}.el-button--primary{color:#fff;background:var(--el-color-primary);border-color:var(--el-color-primary)}.el-button--primary:hover{color:#fff;background:#2457b7;border-color:#2457b7}.el-dialog a.el-button{display:inline-flex;align-items:center;justify-content:center;height:32px;padding:8px 15px}.modal-video{display:block;width:100%;max-height:65dvh;object-fit:contain;background:#111b2c;border-radius:8px}.generation-summary{display:flex;gap:12px;align-items:center;margin-bottom:28px}.generation-symbol{display:grid;width:50px;height:50px;place-items:center;border-radius:12px;background:#eaf1fc;color:#4878c5;font-size:10px;font-weight:750}.generation-summary>div{min-width:0;flex:1}.generation-summary h3{font-size:15px;line-height:1.5;color:#334c6d;overflow-wrap:anywhere;margin:0 0 4px}.generation-summary p{font-size:11px;line-height:1.7;color:#8392a8;margin:0}.generation-progress{margin:27px 0 16px;padding:18px;background:#f7f9fd;border-radius:10px;border:1px solid #e9eef6}.generation-message{font-size:13px;color:#5c7497;margin-bottom:16px;overflow-wrap:anywhere}.generation-timing{display:flex;justify-content:space-between;font-size:11px;color:#8c9ab0;margin-top:15px}.generation-timing strong{font-weight:500;color:#687e9d}.generation-modal .el-step__title{font-size:12px}.generation-modal .el-step__icon{width:26px;height:26px}.indeterminate-track{height:8px;background:#e6edf9;overflow:hidden;border-radius:20px}.indeterminate-track span{display:block;width:30%;height:100%;background:#5c89db;border-radius:20px;animation:waiting-progress 1.8s ease-in-out infinite}.generated-player{display:block;width:100%;max-height:310px;margin-top:18px;border-radius:8px}.generation-modal .el-alert{margin-top:12px}.generation-modal .el-dialog__footer{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.generation-modal .el-dialog__footer .el-button{margin:0}.el-select-dropdown{max-width:calc(100vw - 24px)}
@keyframes waiting-progress{0%{transform:translateX(-110%)}100%{transform:translateX(450%)}}
@media(max-width:1250px){main{padding:22px 18px 42px}.studio-board{gap:16px;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)}.studio-column{gap:16px}.stage-body{padding:18px}.stage-head{padding:15px 18px}.presenter-workspace{gap:14px;grid-template-columns:minmax(135px,.8fr) minmax(0,1fr)}.production-action{flex-wrap:wrap}.production-action button{width:100%}.machine-list{grid-template-columns:repeat(2,minmax(0,1fr))}.machine-lanes{justify-content:flex-start;gap:28px}#machineMonitor{padding-inline:20px}.device-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:1000px) and (min-width:701px){.presenter-workspace{grid-template-columns:1fr}.presenter-sample{max-width:270px;width:100%;margin:0 auto}.presenter-sample .preview-frame{min-height:270px;max-height:330px;aspect-ratio:9/12}.teacher-list{grid-template-columns:repeat(3,minmax(0,1fr))}.studio-board{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){.sidebar{height:auto;position:static;width:100%;flex-basis:auto}#nav{flex:none}.brand{padding:13px 16px}.workspace{width:100%}.machine-list{gap:7px}.machine-lanes{gap:12px}.monitor-footer{justify-content:space-between}#machineMonitor{padding:12px 16px 8px}.studio-title h1{font-size:24px}}
@media(max-width:700px){main{padding:20px 12px 36px}.studio-board{grid-template-columns:1fr;gap:16px}.studio-column{gap:16px}.stage-body{padding:17px}.stage-head{min-height:59px;padding:14px 17px}.stage-head h2{font-size:15px}.studio-title{margin-bottom:18px}.studio-title h1{font-size:23px}.stage-body textarea,.stage-body input{font-size:16px}.presenter-workspace{grid-template-columns:1fr;gap:22px}.presenter-sample{width:100%;max-width:290px;margin:auto;padding:11px}.presenter-sample .preview-frame{aspect-ratio:9/13;min-height:300px;max-height:420px}.sample-footer button{min-height:36px;padding:7px 10px;font-size:12px}.sample-note{font-size:11px}.teacher-list{grid-template-columns:repeat(5,minmax(0,1fr))}.teacher-list .teacher-card{min-height:65px}.teacher-list .teacher-card img{width:30px;height:34px}.teacher-list .teacher-card span{font-size:10px}.voice-settings .el-select__wrapper{min-height:44px}.voice-settings .el-select__selected-item{font-size:16px}.slider-setting .el-slider__input{width:68px}.slider-setting input.el-input__inner{font-size:16px}.slider-setting .el-slider{height:44px}.voice-actions button,.production-action button,.stage-05 .tool-line button{min-height:46px}.source-entry button,.source-entry a,.result-tools button,.result-tools a{min-height:42px}.source-entry span{margin-left:0}.machine-card{padding:8px}.machine-top{gap:5px}.machine-top strong{font-size:12px}.machine-badge{font-size:10px}.machine-lanes{gap:5px;flex-wrap:wrap}.machine-lanes>span{font-size:10px;gap:3px}.machine-lanes b{font-size:11px}.monitor-footer{font-size:9px;gap:6px}.monitor-footer button{font-size:11px;min-height:30px}#machineMonitor{padding:10px 12px 6px}.generation-summary{flex-wrap:wrap;margin-bottom:22px}.generation-summary h3{font-size:14px}.generation-summary .el-tag{margin-left:62px}.el-dialog__header{padding:18px;min-height:60px}.el-dialog__body{padding:18px}.el-dialog__footer{padding:14px 18px}.generation-modal .el-button{min-height:40px}.generation-modal .el-dialog__footer{justify-content:stretch}.generation-modal .el-dialog__footer>*{flex:1}.generation-progress{padding:15px}.generation-modal .el-step__title{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.indeterminate-track span{animation:none;transform:none;width:100%;opacity:.4}}

/* Wide samples use the full card width instead of letterboxing in a portrait frame. */
.presenter-workspace.landscape{grid-template-columns:minmax(0,1fr)}.landscape .presenter-sample{width:100%;max-width:none}.landscape .preview-frame{min-height:0;max-height:360px}.landscape .voice-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.landscape .setting-section{grid-column:1/-1}.landscape .voice-binding{margin-bottom:0}.landscape .voice-actions{max-width:250px;margin:8px 0 0}.landscape .slider-setting{margin-bottom:8px}.result-tools a,.current-product a{color:#416ba9}.studio-board button:not(.primary){color:#4d6384;border-color:#d7e2f1}.source-entry button{color:#3269d5}.studio-stage:focus-within{border-color:#c0d2f1}
@media(max-width:700px){.landscape .voice-settings{grid-template-columns:1fr;gap:0}.landscape .voice-actions{max-width:none}.landscape .preview-frame{min-height:0;max-height:none}.landscape .setting-section{grid-column:auto}.landscape .presenter-sample{max-width:none}.landscape .slider-setting{margin:16px 0}}

@media(max-width:700px){.studio-column{display:contents}.stage-01{order:1}.stage-02{order:2}.stage-03{order:3}.stage-04{order:4}.stage-05{order:5}}

.create-teacher-preview{grid-template-columns:minmax(0,1fr);padding:12px;background:#f7f9fd;border:1px solid #e2e8f2;border-radius:9px}.create-avatar-video{display:block;width:100%;height:280px;object-fit:contain;border-radius:7px;background:#e8edf5}.create-teacher-preview small{color:#7d8ca3}.create-side .mini-teachers .teacher-card.selected{border-color:#7fa5e8;background:#edf3ff}.create-side .mini-teachers .teacher-card.selected:after{background:#3269d5}.create-side .mini-teachers .teacher-card.selected span{color:#3269d5}
#voicePreviewPlayer audio{display:block;width:100%;max-width:100%;height:40px;margin-top:10px}#previewStatus:not(:empty){margin-top:8px;color:#536887;font-size:13px}.voice-actions button[aria-busy=true]{cursor:progress;opacity:.72}
.studio-stage button[aria-busy="true"] { cursor:progress; }
.copy-spinner { display:inline-block; width:1em; height:1em; flex:none; border:2px solid currentColor; border-right-color:transparent; border-radius:50%; animation:copy-spin .8s linear infinite; }
@keyframes copy-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) {
 .busy-caption .copy-spinner { animation-duration:2s!important; }
}
.source-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:10px; }
.source-actions #sourceTools,.source-actions #sources,.source-actions .source-entry { display:contents; }
.source-actions :is(button,a) { height:44px; box-sizing:border-box; margin:0; }
.source-actions:has(#sourceTools:empty):has(#sources:empty) { display:none; }
@media (max-width:700px) {
 .source-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
 .source-actions :is(a,button) { justify-content:center; min-height:44px; text-align:center; }
 .source-actions .source-entry span { grid-column:1/-1; }
}
.copy-error { margin:6px 0; color:#a12e2b; font-size:13px; overflow-wrap:anywhere; }
.production-buttons { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.history-modal .el-dialog__body { max-height:65vh; overflow-y:auto; }
.history-caption { margin:0 0 16px; color:#72819a; font-size:13px; line-height:1.6; }
.history-list { display:grid; gap:12px; }
.history-item { border:1px solid #e2e8f2; border-radius:10px; padding:16px; background:#fff; }
.history-heading { display:flex; align-items:center; gap:10px; justify-content:space-between; color:#273e60; }
.history-meta { display:flex; flex-wrap:wrap; gap:6px 14px; margin:10px 0; color:#75839b; font-size:12px; }
.history-message { color:#536783; font-size:13px; overflow-wrap:anywhere; }
.history-actions { display:flex; gap:8px; flex-wrap:wrap; }
.history-actions .el-button { margin:0; }
.history-player { display:block; width:100%; max-height:45vh; margin-top:14px; border-radius:8px; }
.history-count { color:#78879c; margin-right:auto; font-size:12px; }
.history-modal .el-dialog__footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.history-more { margin-top:14px; width:100%; }
.history-empty { text-align:center; padding:35px 12px; color:#7c8ba2; }
@media(max-width:700px){
 .production-buttons { width:100%; }
 .production-buttons button { flex:1; }
 .history-item { padding:12px; }
 .history-actions .el-button,.history-modal .el-dialog__footer .el-button { min-height:44px; }
}
:root {
 --meter-track:#e2e9f4;
 --meter-fill:#386dd4;
 --meter-height:6px;
}
.workspace progress,.generation-modal .el-progress-bar__outer,.indeterminate-track {
 height:var(--meter-height)!important; background:var(--meter-track);
 border:0; border-radius:99px; overflow:hidden;
}
.workspace progress { appearance:none; -webkit-appearance:none; vertical-align:middle; }
.workspace progress::-webkit-progress-bar { background:var(--meter-track); border-radius:inherit; }
.workspace progress::-webkit-progress-value { background:var(--meter-fill); border-radius:inherit; }
.workspace progress::-moz-progress-bar { background:var(--meter-fill); border-radius:99px; }
.generation-modal .el-progress:not(.is-success):not(.is-exception) .el-progress-bar__inner,.indeterminate-track span { background:var(--meter-fill); }
.inline-status { padding:10px 12px; row-gap:9px; }
.inline-status + .inline-status { margin-top:8px; }
.inline-status b,.generation-modal .el-progress__text { font-variant-numeric:tabular-nums; }
.inline-status .indeterminate-track { flex-basis:100%; }
.inline-status progress { margin-top:0; }
.studio-stage button:has(>.busy-caption) { display:inline-flex; align-items:center; justify-content:center; }
.busy-caption { display:inline-grid; grid-template-columns:14px auto 14px; align-items:center; column-gap:8px; line-height:20px; }
.busy-caption .copy-spinner { width:14px; height:14px; box-sizing:border-box; }
.stage-03 .headline-editor { width:100%; margin:0 0 16px; padding:11px 13px; font-weight:600; line-height:1.6; }
.stage-03 .field-line label { margin:0; }
.topic-editor,.topic-chips { display:flex; align-items:center; flex-wrap:wrap; gap:9px; min-width:0; }
.topic-editor { margin:9px 0; }
.topic-chips { display:contents; }
.topic-chip { position:relative; display:inline-flex; align-items:center; max-width:100%; box-sizing:border-box; padding:0 34px 0 9px; min-height:38px; border:1px solid #cbdaf1; border-radius:10px; background:#f3f7fe; color:#375c95; }
.topic-chip:focus-within { border-color:#5279c0; box-shadow:0 0 0 2px #e4ecfa; }
.topic-field { position:relative; min-width:0; margin:6px 0; }
.topic-measure,.topic-field textarea { display:block; box-sizing:border-box; margin:0; padding:0 3px; font:inherit; line-height:1.55; white-space:pre-wrap; overflow-wrap:anywhere; }
.topic-measure { visibility:hidden; }
.topic-field textarea { position:absolute; inset:0; width:100%; height:100%; min-height:0; border:0; border-radius:0; outline:none; box-shadow:none; background:transparent; resize:none; overflow:hidden; color:inherit; }
.topic-field textarea:focus { border:0; box-shadow:none; }
.topic-chip .remove-topic { position:absolute; top:0; right:0; display:grid; place-items:center; width:30px; height:30px; min-height:0; padding:0; border:0; box-shadow:none; background:transparent; color:#526b90; font-size:19px; }
#addTopic { min-height:38px; border:1px dashed #99b0d2; color:#355985; background:white; }
@media(max-width:700px){
 .topic-chip { min-height:46px; padding-right:46px; }
 .topic-chip { font-size:16px; }
 .topic-chip .remove-topic,#addTopic { min-width:44px; height:44px; }
 #originalText,#headline { font-size:16px; }
}

/* Teacher selection in the new-task dialog */
#dialog:has(.casting-form) {
  width: min(780px, calc(100vw - 24px));
  padding: clamp(18px, 3vw, 30px);
}
.casting-form .casting-name { display:block; margin:16px 0 22px; font-weight:600; }
.casting-name span { margin-left:4px; color:#728095; font-size:12px; font-weight:400; }
.casting-name input { display:block; width:100%; margin-top:8px; }
#castingPicker > summary {
  display:flex; align-items:center; gap:10px; min-height:44px;
  list-style:none; cursor:pointer; color:#24354b;
}
#castingPicker > summary::-webkit-details-marker { display:none; }
#castingSelection { color:#415777; font-size:13px; }
.casting-toggle { margin-left:auto; color:#345fa6; font-size:13px; }
#castingPicker[open] .casting-toggle { font-size:0; }
#castingPicker[open] .casting-toggle::after { content:'收起'; font-size:13px; }
.casting-layout {
  display:grid; grid-template-columns:minmax(0, 1.65fr) minmax(160px,1fr);
  align-items:start; gap:20px; margin:6px 0 16px;
}
.casting-layout .mini-teachers {
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0;
  max-height:min(360px,46vh);
}
.casting-layout .teacher-card {
  width:100%; min-height:0; padding:6px 6px 9px; gap:7px;
  border:1px solid #dce3eb; border-radius:12px; background:#fff;
}
.casting-layout .teacher-card img,.casting-layout .teacher-card .avatar-placeholder {
  display:block; width:100%; height:auto; aspect-ratio:1.18;
  object-fit:cover; object-position:center 26%; border-radius:7px;
}
.casting-layout .teacher-card span { font-size:14px; color:#344257; }
.casting-layout .teacher-card.selected {
  border-color:#547dc8; background:#f0f5ff; box-shadow:0 0 0 1px #547dc8;
}
.casting-layout .teacher-card.selected span { color:#244f9a; }
.casting-layout .teacher-card.selected::after { background:#345fb3; top:9px; right:9px; }
.casting-layout .teacher-card:focus-visible,#castingPicker summary:focus-visible {
  outline:3px solid #789cdd; outline-offset:2px;
}
.casting-layout .create-teacher-preview {
  display:block; margin:0; padding:10px; border:1px solid #dde5ee;
  border-radius:12px; background:#f5f7fa;
}
.casting-layout .create-avatar-video { height:clamp(180px,30vh,265px); background:#e5eaf1; }
.casting-layout .create-teacher-preview strong { display:block; margin-top:8px; font-size:15px; }
#dialog:has(.casting-form) .actions { justify-content:flex-end; padding-top:12px; border-top:1px solid #e5eaf0; }
@media(max-width:650px) {
  .casting-layout { grid-template-columns:1fr; gap:12px; }
  .casting-layout .mini-teachers { gap:8px; max-height:min(190px,30vh); }
  .casting-layout .teacher-card img { max-height:95px; }
  .casting-layout .create-teacher-preview { display:flex; align-items:center; gap:14px; }
  .casting-layout .create-avatar-video { width:45%; height:140px; }
  #dialog:has(.casting-form) .actions { position:sticky; bottom:0; background:white; z-index:1; }
}
