:root{
 --primary:#147768;--primary-dark:#105f54;--primary-soft:#e8f4f0;
 --bg:#f3f6f4;--surface:#fff;--text:#20312d;--muted:#73817c;
 --line:#e0e8e4;--radius:12px;
 font-family:Inter,"SF Pro Text","Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
}
body{background:#f3f6f4;color:#20312d}
body::before{display:none}
header{min-height:56px;padding-inline:26px;background:rgba(255,255,255,.96);border-color:#e4eae7}
main{max-width:1580px;padding:26px 26px 48px}
h1,.brand-copy,.eyebrow{letter-spacing:0}
button:has(>.ico,>.copy-spinner),#nav button{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex:none}
.sidebar{position:sticky;top:0;width:202px;height:100dvh;flex-basis:202px;border-color:#e0e8e4}
.brand{gap:8px;padding:24px 14px}.brand-copy{font-size:16px}.brand-copy small{font-size:11px}
.mark,.login::before{border-radius:8px;background:#147768}
#nav button{justify-content:flex-start;font-size:14px}
#nav button.on{background:#e8f4f0;color:#105f54}
.menu-group{padding:24px 14px 5px;color:#73817c;font-size:12px}
.header-title{font-size:15px}
.title h1{margin:0 0 5px}.title p{margin:0}
button.primary{box-shadow:0 2px 5px rgb(20 119 104 / .14)}
.task-register{border:0;background:transparent;overflow:visible}
.register-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0 16px;flex-wrap:wrap}
.mode-tabs{display:flex;align-items:center;gap:3px;padding:3px;border-radius:8px;background:#eaf0ed}
.mode-tabs button{min-height:34px;padding:5px 11px;border:0;border-radius:6px;background:transparent;color:#63736d;font-size:13px}
.mode-tabs [aria-pressed=true]{background:#fff;color:#176c5d;box-shadow:0 1px 4px rgb(31 55 46 / .12)}
.task-search{display:flex;align-items:center;gap:8px;margin:0;padding:0 11px;border:1px solid #dfe8e3;border-radius:8px;background:#fff;color:#75847e}
.task-search input{margin:0;padding-inline:0;border:0;background:transparent;font-weight:400}
.task-search:focus-within{outline:2px solid rgb(20 119 104 / .16)}.task-search input:focus{box-shadow:none}
#listRows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.register-head{display:none}
.register-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-content:start;gap:12px 8px;min-height:126px;padding:16px;border:1px solid #e0e8e4;border-radius:11px;background:#fff;text-align:left;font-size:13px;box-shadow:0 3px 12px rgb(31 55 46 / .035);transition:border-color .16s,box-shadow .16s}
.register-row:hover{border-color:#bad0c5;background:#fff;box-shadow:0 5px 15px rgb(31 55 46 / .08)}
.task-cell{display:flex;grid-column:1;grid-row:1;align-items:center;gap:12px;min-width:0}
.task-cell>span{min-width:0}.task-cell strong{display:block;font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.task-cell small,.register-row small{display:block;margin-top:3px;font-size:12px}
.file-mark{display:grid;width:42px;height:46px;flex:none;place-items:center;border-radius:8px;background:#e8f4f0;color:#147768}
.file-mark.sound{background:#faf2df;color:#8b6824}
.owner-cell{grid-column:1;grid-row:2;align-self:end;overflow-wrap:anywhere;color:#62746c}
.state-cell{grid-column:2;grid-row:2;align-self:end;overflow-wrap:anywhere;text-align:right;color:#52665d}
.count-cell{position:static;display:inline-flex;grid-column:2;grid-row:1;align-items:center;justify-self:end;padding:4px 8px;border-radius:6px;background:#f1f5f3;color:#526c62;font-size:12px}
.register-row>.ico{position:absolute;right:12px;bottom:9px;width:14px;height:14px;color:#84958d}
.register-empty{padding:56px 16px;border:1px dashed #d9e5df;border-radius:12px;background:#fff;text-align:center}
.register-empty>.ico{width:38px;height:38px;color:#648278}.register-empty h3{margin:12px}

/* Task heading and metadata */
.studio-title{margin-bottom:22px}
.studio-title .crumb{display:flex;align-items:center;gap:5px;margin-bottom:12px;color:#75847e;font-size:12px}
.studio-title .crumb button{min-height:30px;padding:4px 8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#60736c;font-size:12px}
.studio-title .crumb button:hover{border-color:#dce7e2;background:#fff}
.studio-title .crumb .ico{width:14px;height:14px}
.studio-title .bar{align-items:center;gap:14px}
.studio-title h1{margin:0;color:#1f332e;font-size:29px;font-weight:720;letter-spacing:-.025em;line-height:1.25}
.studio-title [data-act=rename]{min-height:36px;padding:7px 11px;border-color:#dce6e1;background:#fff;color:#50645c;font-size:13px}
.task-facts{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:13px;color:#63736d;font-size:12px}
.task-facts span{display:flex;min-height:29px;align-items:center;gap:5px;padding:4px 9px;border:1px solid #e2eae6;border-radius:999px;background:#fff}
.task-facts .ico{width:14px;height:14px;color:#789088}

/* Separate, calm stage cards */
.studio-board{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);gap:20px;align-items:start}
.studio-column{display:grid;gap:16px;min-width:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none}
.studio-stage{--stage:#147768;--tint:#e8f4f0;overflow:hidden;border:1px solid #e0e8e4;border-radius:13px;border-bottom:1px solid #e0e8e4;background:#fff;box-shadow:0 3px 12px rgb(31 55 46 / .045);transition:border-color .18s,box-shadow .18s}
.studio-stage:hover{border-color:#d2dfd9;box-shadow:0 6px 18px rgb(31 55 46 / .065)}
.studio-stage:last-child{border-bottom:1px solid #e0e8e4}
.stage-03{--stage:#8b6824;--tint:#faf2df}.stage-04,.stage-05{--stage:#486b83;--tint:#eaf1f6}
.stage-head{display:flex;min-height:63px;align-items:center;gap:10px;padding:13px 19px;border-bottom:1px solid #edf1ef;background:#fff}
.stage-head h2{margin:0;color:#253a34;font-size:16px;font-weight:700;letter-spacing:0}
.stage-head>.ico{width:19px;height:19px;margin-left:auto;color:var(--stage)}
.step-no{display:grid;width:32px;height:32px;flex:none;place-items:center;border-radius:9px;background:var(--tint);color:var(--stage);font:700 12px/1 "Segoe UI",sans-serif}
.stage-body{padding:20px}
.stage-body label,.create-modal label{display:block;margin-bottom:14px;color:#455b53;font-size:12px;font-weight:650;letter-spacing:.005em}
.stage-body label>input,.stage-body label>select,.stage-body label>textarea{margin-top:7px}
.stage-body input,.stage-body select,.stage-body textarea,.create-modal :is(input,select,textarea){width:100%;min-width:0;border:1px solid #dbe5e0;border-radius:8px;background:#fff;color:#263a34;font-size:14px;font-weight:400;line-height:1.55;box-shadow:inset 0 1px 1px rgb(25 50 39 / .025);transition:border-color .16s,box-shadow .16s,background .16s}
.stage-body input,.stage-body select,.create-modal :is(input,select){min-height:42px;padding:9px 12px}
.stage-body textarea{min-height:74px;padding:11px 12px;resize:vertical}
.stage-body input::placeholder,.stage-body textarea::placeholder{color:#9aa9a2}
.stage-body input:hover,.stage-body select:hover,.stage-body textarea:hover{border-color:#b8cbc2}
.stage-body input:focus,.stage-body select:focus,.stage-body textarea:focus{border-color:#4b9a88;outline:0;box-shadow:0 0 0 3px rgb(20 119 104 / .11)}
.stage-body input[readonly]{border-color:#e1e9e5;background:#f5f8f6;color:#53665e}
.stage-body select,.create-modal select{appearance:none;padding-right:38px;background-color:#fff;background-image:linear-gradient(45deg,transparent 50%,#71867d 50%),linear-gradient(135deg,#71867d 50%,transparent 50%);background-position:calc(100% - 17px) 52%,calc(100% - 12px) 52%;background-size:5px 5px,5px 5px;background-repeat:no-repeat}
.tool-line,.field-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.tool-line:empty{display:none}.tool-line>.primary{flex:1}
.tool-line button,.field-line button,.asset button{min-height:40px;border-radius:8px;padding:8px 13px;font-size:13px;font-weight:650}
.studio-board button.primary{border-color:var(--primary);background:var(--primary);color:#fff;box-shadow:0 3px 8px rgb(50 105 213 / .16)}
.studio-board button.primary:hover{border-color:var(--primary-dark);background:var(--primary-dark);box-shadow:0 4px 9px rgb(50 105 213 / .18)}
.studio-board button:not(.primary):hover{border-color:#a7bfe8;background:#f4f7fd;color:#3269d5;box-shadow:0 2px 6px rgb(50 105 213 / .06)}
.studio-board button:focus-visible,.studio-title button:focus-visible{outline:3px solid rgb(20 119 104 / .2);outline-offset:2px}
.field-line{justify-content:space-between;gap:12px;margin-bottom:8px}.field-line strong,.field-cap{color:#455b53;font-size:12px;font-weight:700}
.field-cap{display:block;margin-top:18px}
.headline-result{min-height:45px;margin-top:5px;padding:11px 13px;border:1px solid #e2e9e5;border-radius:8px;background:#f7f9f8;color:#263a34;font-size:14px;font-weight:650;overflow-wrap:anywhere}
.topic-line{display:flex;gap:7px;flex-wrap:wrap;padding:10px 0 3px;color:#73817c;font-size:13px;overflow-wrap:anywhere}
.topic-line span{padding:4px 9px;border:1px solid #f0e5ca;border-radius:999px;background:#fbf5e8;color:#806127;font-size:12px}
.stage-body .readout{margin:16px 0 0}.readout textarea{min-height:118px;border-color:#e3eae6;background:#f8faf9;line-height:1.7}
.stage-body .asset{margin-top:10px;padding:12px;border:1px solid #e6ece9;border-radius:9px;background:#fafcfb;font-size:13px}
.stage-body .asset+.asset{margin-top:8px}
.asset summary{display:flex;min-height:26px;align-items:center;gap:8px;color:#354a42;font-size:13px;font-weight:680;list-style:none;cursor:pointer}
.asset summary::-webkit-details-marker{display:none}
.asset summary::before{content:"";width:7px;height:7px;flex:none;border-right:1.5px solid #758c82;border-bottom:1.5px solid #758c82;transform:rotate(-45deg);transition:transform .16s}
.asset[open] summary::before{transform:rotate(45deg) translate(-1px,-1px)}
.stage-body .asset small{display:block;margin-top:6px;color:#82918b;font-size:11px;line-height:1.55}
.asset pre{max-height:240px;margin:10px 0;padding:11px 12px;border:1px solid #e8eeeb;border-radius:7px;background:#fff;color:#45574f;font-size:13px;line-height:1.7}
.asset video{display:block;width:100%;max-height:280px;margin-top:11px;border-radius:8px;background:#18231f}
.asset audio{display:block;width:100%;margin-top:10px}.asset .actions{gap:8px;margin:10px 0 0}
.asset .actions a{display:inline-flex;min-height:32px;align-items:center;padding:5px 9px;border:1px solid #dce7e1;border-radius:7px;background:#fff;color:#23695c;text-decoration:none;font-size:12px}
.asset .actions a:hover{border-color:#9dbeb1;background:#f2f8f5}

/* One current result per stage, with inline preview and download. */
.current-input{margin:0 0 14px;color:#73817c;font-size:12px;line-height:1.6}
.result-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}
.result-tools:empty{display:none}
.result-tools a,.product-heading a{display:inline-flex;min-height:36px;align-items:center;padding:7px 10px;border:1px solid #dce7e1;border-radius:7px;background:#fff;color:#23695c;text-decoration:none;font-size:12px}
.result-tools button{min-height:36px;padding:7px 10px;font-size:12px}
.product-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.product-heading strong{color:#354a42;font-size:13px}
.stage-body .current-product{background:#fff}
@media(max-width:700px){.result-tools a,.result-tools button,.product-heading a{min-height:44px}}

/* Teacher and audio controls */
.teacher-preview{display:grid;grid-template-columns:108px minmax(0,1fr);align-items:start;gap:16px;margin:0 0 15px}
.preview-frame{position:relative;overflow:hidden;aspect-ratio:4/5;border:1px solid #e0e8e4;border-radius:10px;background:#eef3f0;box-shadow:0 2px 8px rgb(28 53 42 / .06)}
.preview-frame img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 0%}
.preview-frame>span{position:absolute;right:6px;bottom:6px;left:6px;padding:5px 7px;border:1px solid rgb(255 255 255 / .2);border-radius:6px;background:rgb(25 43 36 / .76);color:#fff;text-align:center;font-size:11px;font-weight:650}
.preview-frame>.avatar-placeholder{position:absolute;inset:0;width:auto;height:auto;border-radius:0}
.avatar-placeholder.large{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;color:#60736b}
.avatar-placeholder.large b{display:grid;width:54px;aspect-ratio:1;place-items:center;border:1px solid #d5dfeb;border-radius:50%;background:#fff;color:#147768;font-size:24px}
.avatar-placeholder.large small{text-align:center;font-size:11px;font-weight:400}
.teacher-config{min-width:0}.teacher-config label{margin-bottom:12px}.teacher-config .voice-field{position:relative;margin-bottom:0}
.voice-field input{padding-right:30px!important;font-family:ui-monospace,"Cascadia Code",Consolas,monospace!important;font-size:12px!important}
.voice-field input[readonly]{background:#f4f8f6;color:#357363}.voice-field small{display:block;margin-top:5px;color:#85948d;font-size:11px;font-weight:400}
.teacher-list,.mini-teachers{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:0 0 16px;max-height:min(280px,38vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px 2px 0}
.mini-teachers{max-height:min(190px,30vh)}
.teacher-list{max-height:min(220px,30vh)}
.teacher-list .teacher-card,.mini-teachers .teacher-card{position:relative;display:flex;min-width:0;min-height:102px;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:9px 5px 8px;border:1px solid #e1e9e5;border-radius:9px;background:#fff;box-shadow:0 1px 2px rgb(28 53 42 / .03);text-align:center}
.teacher-list .teacher-card img,.teacher-list .teacher-card .avatar-placeholder,.mini-teachers .teacher-card img,.mini-teachers .teacher-card .avatar-placeholder{display:grid;width:48px;height:56px;flex:none;place-items:center;border-radius:7px;object-fit:cover;object-position:center 0%}
.teacher-list .teacher-card span,.mini-teachers .teacher-card span{max-width:100%;color:#52655d;font-size:11px;font-weight:650}
.teacher-list .teacher-card:hover,.mini-teachers .teacher-card:hover{border-color:#9dbeb1;background:#f8fbf9;box-shadow:0 3px 8px rgb(28 53 42 / .06);transform:translateY(-1px)}
.teacher-list .teacher-card.selected,.mini-teachers .teacher-card.selected{border-color:#398c79;background:#eef7f3;box-shadow:inset 0 0 0 1px rgb(20 119 104 / .12),0 3px 8px rgb(20 119 104 / .07)}
.teacher-list .teacher-card.selected span,.mini-teachers .teacher-card.selected span{color:#176e60}
.teacher-list .teacher-card.selected::after,.mini-teachers .teacher-card.selected::after{content:"✓";position:absolute;top:5px;right:5px;display:grid;width:17px;height:17px;place-items:center;border-radius:50%;background:#147768;color:#fff;font-size:10px;font-weight:800}
.duo{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.audio-controls{gap:10px;margin:0 0 14px}
.audio-controls label{margin:0;padding:11px 12px;border:1px solid #e4ebe7;border-radius:9px;background:#fafcfb}
.audio-controls label>input{margin-top:7px;background:#fff}.audio-controls label>small{display:block;margin-top:4px;color:#8b9992;font-size:10px;font-weight:400}
.inline-status{margin-top:12px;padding:11px 12px;border:1px solid #dcebe4;border-radius:8px;background:#f1f8f5;color:#3e5d51;font-size:12px}
.inline-status progress{display:block;width:100%;height:7px;margin-top:8px;border:0;border-radius:999px;overflow:hidden;accent-color:#16816f}
.execution{margin-top:19px;padding:18px 20px;border:1px solid #e0e8e4;border-radius:13px;background:#fff;box-shadow:0 3px 12px rgb(31 55 46 / .045)}
.execution h2{display:flex;align-items:center;gap:8px;margin:0 0 8px;color:#263a34;font-size:15px}
.execution h2 .ico{color:#55776a}.execution .job{padding:12px 4px;border-top:1px solid #edf1ef;font-size:13px}

/* Activity workspace */
.activity-toolbar{display:flex;align-items:center;gap:10px;margin:20px 0 13px;flex-wrap:wrap}
.activity-filters{display:flex;align-items:center;gap:3px;padding:3px;border:1px solid #e1e9e5;border-radius:9px;background:#eef3f0}
.activity-filters button{min-height:34px;padding:6px 12px;border:0;border-radius:7px;background:transparent;color:#65766e;font-size:13px}
.activity-filters button[aria-pressed=true]{background:#fff;color:#176c5d;box-shadow:0 1px 4px rgb(31 55 46 / .12)}
.activity-search{display:flex;min-width:220px;flex:1;align-items:center;gap:8px;margin:0;padding:0 11px;border:1px solid #dfe8e3;border-radius:8px;background:#fff;color:#75847e}
.activity-search input{width:100%;min-height:38px;margin:0;padding:7px 0;border:0;background:transparent;font-size:13px}
.activity-search:focus-within{outline:2px solid rgb(20 119 104 / .15)}
.activity-toolbar>[data-act=refresh]{min-height:40px;white-space:nowrap}
.activity-summary{margin:8px 0 10px;color:#75847e;font-size:12px}.activity-summary strong{color:#1f6e5f;font-size:18px}
.activity-list{display:grid;gap:8px}
.activity-row{display:flex;align-items:flex-start;gap:13px;padding:17px 18px;border:1px solid #e0e8e4;border-radius:11px;background:#fff;box-shadow:0 2px 9px rgb(31 55 46 / .035)}
.activity-row:hover{border-color:#bfd2c8;box-shadow:0 5px 15px rgb(31 55 46 / .07)}
.activity-mark{display:grid;width:34px;height:34px;flex:none;place-items:center;border-radius:9px;background:#e8f4f0;color:#147768}
.activity-mark.done{background:#e8f4f0;color:#147768}.activity-mark.active{background:#eef1fb;color:#556cb0}.activity-mark.failed{background:#fff0ee;color:#c85c4e}
.activity-mark .ico{width:17px;height:17px}
.activity-content{min-width:0;flex:1}.activity-line{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.activity-line strong{color:#243b33;font-size:14px}.activity-state{padding:3px 7px;border-radius:999px;font-size:11px}
.activity-state.done{background:#eaf6f0;color:#21765e}.activity-state.active{background:#eef1fb;color:#556cb0}.activity-state.failed{background:#fff0ee;color:#c85c4e}
.activity-meta{display:flex;align-items:center;gap:7px;margin-top:5px;color:#87948e;font-size:12px;flex-wrap:wrap}
.activity-task{padding:0;border:0;background:transparent;color:#276e60;font-size:12px;font-weight:650;text-align:left}
.activity-task:hover{text-decoration:underline}.activity-content p{margin:8px 0 0;color:#53655d;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.activity-content progress{display:block;width:min(330px,100%);height:6px;margin-top:9px;accent-color:#16816f}.activity-content small{display:block;margin-top:7px;color:#8a9891;font-size:11px}
.activity-empty{padding:60px 16px;border:1px dashed #d9e5df;border-radius:12px;background:#fff;text-align:center;color:#82918a}
.activity-empty .ico{width:38px;height:38px;color:#648278}.activity-empty h3{margin:12px 0 5px;color:#455b53;font-size:16px}.activity-empty p{margin:0;font-size:12px}
.activity-more{display:block;min-height:40px;margin:14px auto 0;padding:8px 18px;border:1px solid #d8e5df;border-radius:8px;background:#fff;color:#276e60;font-size:13px}.activity-more:hover{border-color:#9dbeb1;background:#f3f8f5}

/* Create-task dialog */
.create-modal{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px}
.create-side{padding:0 0 0 18px;border:0;border-left:1px solid #e4ebe7;border-radius:0;background:#fff}
.create-side .mini-teachers{margin:12px 0}.create-side .mini-teachers .teacher-card{min-height:78px;padding:6px 3px}
.create-side .mini-teachers .teacher-card img,.create-side .mini-teachers .teacher-card .avatar-placeholder{width:38px;height:44px}
.create-side .mini-teachers .teacher-card .avatar-placeholder small{display:none}
.delivery{display:flex;gap:7px;flex-wrap:wrap;margin:0;padding:0;border:0}
.delivery legend{margin-bottom:8px;color:#455b53;font-size:12px;font-weight:700}
.delivery label{display:flex;align-items:center;gap:6px;margin:0;padding:8px 10px;border:1px solid #dfe8e3;border-radius:8px;background:#fff;cursor:pointer}
.delivery input{width:auto;min-height:0;margin:0;accent-color:#147768}.delivery label:has(:checked){border-color:#72a998;background:#eef7f3;color:#176e60}
.delivery .ico{width:15px;height:15px;margin:0}

@media(max-width:1000px){
 main{padding-inline:18px}.studio-board{gap:14px}.stage-body{padding:16px}.stage-head{padding:12px 15px}
 .teacher-preview{grid-template-columns:86px minmax(0,1fr)}.teacher-list,.mini-teachers{gap:6px}
 .teacher-list .teacher-card{min-height:94px;padding:7px 3px}
 .teacher-list .teacher-card img,.teacher-list .teacher-card .avatar-placeholder{width:43px;height:50px}
 .sidebar{width:176px;flex-basis:176px}.brand-copy small{display:none}
}
@media(max-width:820px){
 .sidebar{position:static;width:100%;height:auto;flex-basis:auto;border-right:0;border-bottom:1px solid #e0e8e4}
 .menu-group{display:none}.brand{padding:10px 16px}#nav{flex-direction:row;padding:0 10px 8px;overflow-x:auto}
 #nav button{width:auto;min-width:max-content;min-height:40px;justify-content:center}
 header{min-height:48px;padding-inline:16px}.register-head,.register-row{gap:10px}
}
@media(max-width:700px){
 main{padding:18px 12px 36px}.studio-title{margin-bottom:16px}.studio-title h1{font-size:23px}
 .studio-board,.create-modal{grid-template-columns:minmax(0,1fr);gap:13px}.studio-column{gap:13px}
 .stage-head{min-height:56px;padding:11px 14px}.stage-body{padding:15px}
 .register-tools{padding:12px 0;gap:10px}.task-search{width:100%}#listRows{grid-template-columns:minmax(0,1fr);gap:9px}
 .register-row{grid-template-columns:minmax(0,1fr) auto;gap:7px 12px;min-height:108px;padding:14px}
 .task-cell{grid-column:1}.owner-cell{grid-column:1;grid-row:auto;font-size:12px}.owner-cell small{display:inline;margin-left:8px}
 .state-cell,.count-cell{grid-column:2;text-align:right;font-size:12px;max-width:95px}.state-cell{grid-row:1}.count-cell{grid-row:2}.register-row>.ico{display:none}
 .teacher-preview{grid-template-columns:82px minmax(0,1fr);gap:12px}.teacher-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
 .teacher-list .teacher-card{min-height:90px;padding:7px 4px}
 .teacher-list .teacher-card img,.teacher-list .teacher-card .avatar-placeholder{width:42px;height:48px}
 .tool-line{align-items:stretch}.tool-line button,.field-line button,.delivery label{min-height:44px}
 .stage-body input,.stage-body textarea,.stage-body select{font-size:16px}.stage-body .asset{font-size:14px}
 .create-modal{gap:14px}.create-side{padding:14px 0 0;border:0;border-top:1px solid #e4ebe7}
 .create-modal label{margin-bottom:9px}dialog{max-height:92dvh;overflow-y:auto}.execution{margin-top:14px;padding:15px}
 .activity-toolbar{align-items:stretch;margin-top:15px}.activity-filters{width:100%;overflow-x:auto}.activity-filters button{flex:1;white-space:nowrap}.activity-search{min-width:0;width:100%}.activity-toolbar>[data-act=refresh]{width:100%}
 .activity-row{gap:10px;padding:14px 12px}.activity-mark{width:31px;height:31px}.activity-line strong{font-size:13px}.activity-content p{font-size:12px}
}


/* Clear legacy card placement rules for the desktop task table. */
.register-row .owner-cell{grid-column:auto;grid-row:auto;align-self:auto;overflow-wrap:normal;color:inherit}
.register-row .count-cell{position:static;display:block;grid-column:auto;grid-row:auto;align-self:auto;padding:0;border-radius:0;background:transparent;color:inherit;text-align:left}

/* Task queue: project-1 style status overview and dense work table. */
.task-page-title{margin-bottom:18px}.task-page-title .eyebrow{color:#73819a;font-size:11px;font-weight:750;letter-spacing:.12em}.task-page-title h1{color:#17243a;font-size:28px}.task-page-title .sub{color:#69778d}
.queue-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:0 0 16px}
.queue-stat{display:grid;grid-template-columns:28px 1fr auto;grid-template-rows:auto auto;align-items:center;gap:3px 8px;min-height:88px;padding:13px 14px;border:1px solid #e2e8f0;border-radius:9px;background:#fff;color:#34435a;text-align:left;cursor:pointer;box-shadow:0 2px 7px rgb(34 56 84 / .035);transition:border-color .16s,box-shadow .16s,transform .16s}
.queue-stat:hover,.queue-stat.selected{border-color:#9bbcf0;box-shadow:0 4px 12px rgb(54 114 220 / .1);transform:translateY(-1px)}
.queue-stat-icon{display:grid;grid-row:1 / span 2;width:28px;height:28px;place-items:center;border-radius:7px;background:#eef3fb;color:#4678c8}.queue-stat-icon .ico{width:15px;height:15px}
.queue-stat-label{color:#52627a;font-size:13px;font-weight:650}.queue-stat strong{grid-column:3;grid-row:1 / span 2;color:#2d5fae;font-size:25px;font-weight:700;line-height:1}.queue-stat small{color:#8b97a8;font-size:11px;white-space:nowrap}.queue-stat.active .queue-stat-icon{background:#eaf4f0;color:#25805a}.queue-stat.active strong{color:#25805a}.queue-stat.done .queue-stat-icon{background:#eaf5ee;color:#31845c}.queue-stat.done strong{color:#31845c}.queue-stat.failed .queue-stat-icon{background:#fff0ee;color:#c14f55}.queue-stat.failed strong{color:#c14f55}.queue-stat.draft .queue-stat-icon{background:#f1f3f6;color:#7b8798}.queue-stat.draft strong{color:#69778d}.queue-stat.queue .queue-stat-icon{background:#fff6e6;color:#b7791f}.queue-stat.queue strong{color:#b7791f}
.task-register{border:1px solid #e1e7ef;border-radius:9px;background:#fff;box-shadow:0 3px 14px rgb(34 56 84 / .045);overflow:visible}.register-tools{padding:13px 15px;border-bottom:1px solid #edf0f4;background:#fbfcfe}.mode-tabs{background:#edf2f8}.mode-tabs button{color:#68768a}.mode-tabs [aria-pressed=true]{color:#2f65b2}.register-filter-tools{display:flex;align-items:center;gap:8px;margin-left:auto}.task-search{min-width:240px;border-color:#dbe3ee}.list-refresh{display:inline-flex;min-height:38px;align-items:center;gap:6px;padding:7px 12px;border:1px solid #dbe3ee;border-radius:7px;background:#fff;color:#50627a;font-size:13px;cursor:pointer}.list-refresh:hover{border-color:#a7c5ed;color:#2f65b2;background:#f8fbff}.list-refresh .ico{width:15px;height:15px}
#listRows{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0}.register-table{grid-column:1 / -1;min-width:0}.register-head,.register-row{display:grid;grid-template-columns:minmax(210px,2fr) minmax(180px,1.8fr) minmax(130px,1.1fr) minmax(100px,.9fr) minmax(125px,1.05fr) minmax(125px,1.05fr) minmax(60px,.55fr) minmax(120px,1.05fr);column-gap:14px;align-items:center}.register-head{min-height:42px;padding:0 17px;border-bottom:1px solid #e9edf3;background:#f7f9fc;color:#7b8798;font-size:12px;font-weight:700}.register-row{min-height:92px;padding:13px 17px;border:0;border-bottom:1px solid #edf0f4;border-radius:0;background:#fff;text-align:left;box-shadow:none;transition:background .15s}.register-row:last-child{border-bottom:0}.register-row:hover{border-color:#edf0f4;background:#f9fbfe;box-shadow:none}.task-cell{display:flex;align-items:center;gap:11px;min-width:0}.task-cell strong{display:block;overflow:hidden;color:#24344d;font-size:14px;text-overflow:ellipsis;white-space:nowrap}.task-cell small,.register-row small{margin-top:4px;color:#8a96a8;font-size:11px}.file-mark{width:34px;height:36px;border-radius:7px;background:#edf3fc;color:#3f73bf}.file-mark.sound{background:#fff5e6;color:#ad7823}.progress-cell{display:grid;gap:3px;min-width:0}.progress-cell>strong{overflow:hidden;color:#536177;font-size:12px;font-weight:550;text-overflow:ellipsis;white-space:nowrap}.progress-cell>small{overflow:hidden;color:#95a0b0;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.progress-cell progress{display:block;width:100%;height:5px;margin:2px 0 1px;accent-color:#4a83d9}.status-pill{display:inline-flex;width:max-content;max-width:100%;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;font-size:11px;font-weight:700;line-height:1.2}.status-pill .ico{width:12px;height:12px}.status-pill.queue{background:#fff5e3;color:#ad761b}.status-pill.active{background:#eaf4f0;color:#27825f}.status-pill.draft{background:#f0f2f5;color:#707d90}.status-pill.done{background:#e9f5ee;color:#32835c}.status-pill.failed{background:#fff0ee;color:#c45155}.config-cell,.created-cell,.updated-cell,.count-cell{min-width:0}.config-cell strong,.owner-cell strong,.created-cell time,.updated-cell time,.count-cell strong{display:block;overflow:hidden;color:#40516a;font-size:13px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.config-cell small,.owner-cell small,.created-cell small,.updated-cell small,.count-cell small{display:block;color:#929eae}.created-cell time,.updated-cell time{font-size:12px;font-weight:550}.count-cell strong{color:#2e5fae;font-size:17px}.row-actions{display:flex;align-items:center;gap:5px;white-space:nowrap}.row-actions button{min-height:32px;padding:6px 8px;border:1px solid transparent;border-radius:6px;background:transparent;color:#6b7a90;font-size:12px;cursor:pointer}.row-actions .view-action{border-color:#d9e4f2;background:#f7faff;color:#356bb8}.row-actions button:hover{border-color:#9bbcf0;background:#f1f6fd;color:#2e66b5}.more-action{display:none}.register-empty{margin:16px;border-color:#dbe4ee;background:#fbfcfe}.register-empty>.ico{color:#6d8fbe}
@media(max-width:1150px){.queue-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.register-head,.register-row{grid-template-columns:minmax(190px,1.8fr) minmax(170px,1.6fr) minmax(120px,1fr) minmax(90px,.8fr) minmax(105px,1fr) minmax(105px,1fr) 52px 108px;column-gap:10px}.config-cell small{display:none}}
@media(max-width:820px){.register-filter-tools{width:100%;margin-left:0}.task-search{flex:1;min-width:0}.register-tools{align-items:stretch}.register-tools .mode-tabs{overflow-x:auto}.register-tools .mode-tabs button{white-space:nowrap}}
@media(max-width:820px){
 #listRows{grid-template-columns:minmax(0,1fr)}.register-head{display:none}.register-row{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;gap:9px 10px;min-height:0;padding:14px 12px}.task-cell{grid-column:1;grid-row:1}.progress-cell{grid-column:2;grid-row:1 / span 2;min-width:92px;max-width:118px;text-align:right;justify-items:end}.progress-cell>strong,.progress-cell>small{max-width:118px}.progress-cell progress{width:92px}.config-cell{grid-column:1;grid-row:2}.owner-cell{grid-column:1;grid-row:3}.created-cell{grid-column:1;grid-row:4}.updated-cell{grid-column:2;grid-row:4;text-align:right}.count-cell{display:none}.row-actions{grid-column:1 / -1;grid-row:5;justify-content:flex-end;padding-top:3px;border-top:1px solid #eef1f5}.row-actions .view-action{flex:1}.row-actions .more-action{display:block}.config-cell small,.owner-cell small,.created-cell small,.updated-cell small{display:inline;margin-left:5px}
}
@media(max-width:700px){
 .task-page-title{align-items:flex-start}.task-page-title h1{font-size:23px}.queue-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.queue-stat{min-height:76px;padding:10px}.queue-stat strong{font-size:22px}.queue-stat small{font-size:10px;overflow:hidden;text-overflow:ellipsis}.task-register{border-radius:8px}.register-tools{padding:11px}.register-filter-tools{align-items:stretch;flex-direction:column}.list-refresh{justify-content:center}#listRows{grid-template-columns:minmax(0,1fr)}.register-table{width:100%}.register-head{display:none}.register-row{grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto auto;gap:9px 10px;min-height:0;padding:14px 12px}.task-cell{grid-column:1;grid-row:1}.task-cell strong{font-size:14px}.progress-cell{grid-column:2;grid-row:1 / span 2;min-width:92px;max-width:118px;text-align:right;justify-items:end}.progress-cell>strong{max-width:118px}.progress-cell>small{max-width:118px}.progress-cell progress{width:92px}.status-pill{font-size:10px}.config-cell{grid-column:1;grid-row:2}.owner-cell{grid-column:1;grid-row:3}.created-cell{grid-column:1;grid-row:4}.updated-cell{grid-column:2;grid-row:4;text-align:right}.count-cell{display:none}.row-actions{grid-column:1 / -1;grid-row:5;justify-content:flex-end;padding-top:3px;border-top:1px solid #eef1f5}.row-actions .view-action{flex:1}.row-actions .more-action{display:block}.config-cell small,.owner-cell small,.created-cell small,.updated-cell small{display:inline;margin-left:5px}.register-empty{margin:10px 0}.task-page-title .bar{width:100%}
}

.draft-status{display:block;min-height:20px;margin:8px 0;color:#64748b;font-size:12px}.draft-status.error{color:#b42318}#scriptText:not([readonly]):focus{border-color:#6191db;box-shadow:0 0 0 3px #eaf1fd}#previewStatus .inline-status{background:#f6f8fc;color:#52627a}

.task-register .register-tools { border-radius: inherit; }
.register-row:last-child { border-radius: 0 0 8px 8px; }

.row-actions{flex-wrap:wrap}.row-actions .delete-action{color:#bf4545}.row-actions .delete-action:hover{border-color:#efb6b6;background:#fff3f3;color:#a72e2e}
.source-link-hint{display:block;margin:-8px 0 12px;color:#64748b;font-size:12px;line-height:1.6}
