:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;font-size:16px;line-height:1.65;color:#29323a;background:#f6f7f9;--ink:#17202a;--accent:#405bd5;--muted:#5f6b7a;--border:#e8ebef;--nav:#18212b}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;transition:background .18s,transform .18s;border-radius:8px;padding:10px 14px}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible{outline:3px solid #8699f2;outline-offset:3px}[hidden]{display:none!important}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}svg{width:22px;height:22px;flex-shrink:0}a{color:var(--accent);text-decoration:none}p{line-height:1.8}h1,h2,p{margin:0}h2{font-size:22px;font-weight:600;letter-spacing:-.4px}.primary{background:var(--accent);color:#fff;font-weight:600;box-shadow:0 5px 13px #405bd519}.primary:hover:not(:disabled){background:#3248bb;transform:translateY(-1px)}.secondary{background:#f0f2f6;color:#556273;border:1px solid #e7eaf0;font-size:16px;font-weight:500}.secondary:hover{background:#e5e9f2}.quiet{background:transparent;color:#5f6b7a;padding:4px 8px;font-size:16px}.brand{display:flex;gap:12px;align-items:center;color:#fff;text-decoration:none}.brand svg{width:35px;height:35px;color:#a2b4ee}.brand span{font-size:20px;letter-spacing:.6px;font-weight:600}.brand small{display:block;font-size:13px;letter-spacing:2.2px;color:#aebaca;margin-top:6px;font-weight:400}.shell{display:grid;grid-template-columns:280px minmax(0,1fr);min-height:100vh}aside{position:sticky;top:0;height:100vh;background:var(--nav);padding:32px 20px 20px;display:flex;flex-direction:column}.nav-intro{display:flex;justify-content:space-between;align-items:center;padding:0 12px;margin:43px 0 14px}.nav-label{font-size:16px;color:#b9c6d7;letter-spacing:1px}.nav-total{color:#b9c6d7;font-size:14px;border:1px solid #35404e;border-radius:5px;padding:2px 5px}nav{display:grid;gap:5px;overflow-y:auto}.channel{display:flex;align-items:center;gap:10px;background:transparent;color:#c6d0de;padding:12px 10px;min-height:44px;text-align:left;font-size:16px}.channel:hover{background:#ffffff08}.channel.active{color:#fff;background:#ffffff0d}.channel-number{font-size:14px;color:#a8bad2;width:20px;flex-shrink:0}.channel.active .channel-number{color:#b4c4fc}.channel-name{flex:1;white-space:nowrap}.channel-state{display:inline-flex;align-items:center;gap:5px;font-size:14px;white-space:nowrap;flex-shrink:0;color:#afbdcf}.channel-state:before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}.channel-state.idle{color:#95c9ad}.channel-state.busy{color:#e0c586}.channel-state.attention{color:#f0aaa0}.channel-state.unknown{color:#b0bac8}.sidebar-footer{margin-top:auto;padding-top:28px}.engine{font-size:16px;color:#9aa8bb;padding:16px 9px;border-bottom:1px solid #ffffff0b;display:flex;gap:7px;align-items:center}.engine>span:last-child{margin-left:auto;font-size:12px;letter-spacing:1.2px;color:#afbdd0}.model-dot{width:5px;height:5px;border-radius:50%;background:#7590dc}.identity{display:flex;align-items:center;gap:10px;padding:21px 5px 0}.avatar{width:32px;height:32px;border-radius:10px;background:#303d50;color:#b7c5da;display:grid;place-items:center;font-size:16px}.identity>div{flex:1}.identity strong{font-size:16px;color:#cbd2dc;font-weight:500}.identity small{display:block;font-size:13px;color:#aebed3;margin-top:5px}.logout{background:transparent;color:#b7c8e0;font-size:22px;padding:4px 7px}main{min-width:0;width:100%;max-width:1600px;margin:auto;padding:0 44px 20px}.topbar{display:flex;align-items:center;justify-content:space-between;min-height:77px;border-bottom:1px solid #e4e7ec;font-size:16px}.breadcrumb{color:#5f6b7a}.breadcrumb span{margin:0 12px;color:#c9cdd5}.breadcrumb strong{font-weight:500;color:#616c79}.connection{color:#5f6b7a;display:flex;align-items:center;gap:7px}.connection:before{content:"";width:5px;height:5px;background:#789b86;border-radius:50%}.hero{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:40px 0 32px}.eyebrow{font-size:14px;color:#5f6b7a;letter-spacing:2.2px;font-weight:500}.hero h1{font-size:clamp(25px,2.4vw,35px);color:var(--ink);font-weight:500;letter-spacing:-1px;margin-top:13px}.hero h1>span{color:#405bd5}.hero p{color:#5f6b7a;font-size:16px;margin-top:13px}.privacy-badge{display:flex;align-items:center;gap:7px;color:#5f6b7a;font-size:14px;white-space:nowrap;background:#fff;border:1px solid var(--border);padding:9px 12px;border-radius:25px}.privacy-badge svg{width:13px;height:13px}.stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:27px}.stats>div{position:relative;background:#fff;border:1px solid var(--border);border-radius:12px;padding:20px 24px}.stats span{display:block;font-size:16px;color:#5f6b7a}.stats strong{font-size:31px;font-weight:500;display:block;color:#293547;margin-top:10px;letter-spacing:-1px;line-height:1}.stats small{position:absolute;right:21px;bottom:22px;font-size:12px;letter-spacing:1.1px;color:#5f6b7a}.workspace{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.2fr);gap:22px;align-items:start}.panel{min-width:0;border:1px solid var(--border);border-radius:14px;background:#fff;padding:27px;box-shadow:0 4px 15px #263a5103}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px}.panel-kicker{display:block;letter-spacing:1.6px;color:#5f6b7a;font-size:12px;margin-bottom:8px}.tag{color:#5f6b7a;font-size:13px;background:#f2f5fc;padding:7px 9px;border-radius:6px;white-space:nowrap}.channel-title-line{display:flex;gap:9px;align-items:center;font-size:16px;color:#647388}.channel-title-line .channel-state{font-size:13px;border-radius:4px;padding:3px 6px;background:#f5f7f8}.channel-activity{font-size:14px;color:#5f6b7a;line-height:1.7;margin:8px 0 22px;padding-bottom:18px;border-bottom:1px solid #f0f1f4}label{display:block;font-size:16px;color:#596577;font-weight:500;margin-bottom:10px}.optional{font-size:14px;color:#5f6b7a;margin-left:6px;font-weight:400}.upload-dropzone{display:flex;flex-direction:column;align-items:center;border:1px dashed #d7dde7;border-radius:10px;background:#f9fafc;padding:25px 15px;transition:.2s;text-align:center}.upload-glyph{width:40px;height:40px;border-radius:12px;border:1px solid #e5e9f2;background:#fff;color:#9ba9c1;display:grid;place-items:center;margin-bottom:14px}.upload-glyph svg{width:18px;height:18px}.upload-dropzone strong{font-size:16px;color:#64728a;font-weight:500}.upload-dropzone p{font-size:13px;color:#5f6b7a;margin:6px 0 14px}.upload-dropzone button{font-size:14px;padding:7px 12px;background:#fff;box-shadow:0 2px 5px #172b4c05}.upload-dropzone button span{margin-left:12px;font-size:16px;color:#8697b3}.upload-dropzone.drag-over{background:#edf1ff;border-color:#6a82d6}.prompt-label{margin-top:24px}input,textarea,select{width:100%;min-width:0;border:1px solid #e1e6ed;padding:12px 13px;border-radius:8px;background:#fff;color:#3c4655;outline:none;font-size:16px}input:focus,textarea:focus,select:focus{border-color:#8394e4;box-shadow:0 0 0 3px #405bd509}textarea{resize:vertical;line-height:1.9;min-height:160px}textarea::placeholder,input::placeholder{color:#6b7787;font-size:16px;opacity:1}.hint{font-size:14px;color:#5f6b7a;margin-top:10px;line-height:1.7}.size-option{margin:21px 0}.size-option select{font-size:16px;color:#6c798c;cursor:pointer;background:#fbfcfd}.wide{width:100%;padding:14px;font-size:16px;letter-spacing:.5px}.composer-foot{color:#5f6b7a;font-size:13px;text-align:center;margin-top:14px}.upload-progress{font-size:14px;color:#647aca;margin-top:10px;overflow-wrap:anywhere}.upload-progress:empty,.error:empty{display:none}.selected-line{display:flex;justify-content:space-between;align-items:center;font-size:14px;color:#5f6b7a;margin-top:17px}.selected-line strong{color:#6c7a95;font-weight:500;margin-left:5px}.selected-assets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.selected-assets:empty{margin:0}.selected-chip{min-width:0;display:flex;align-items:center;gap:7px;background:#f7f9fc;border:1px solid #edf0f5;text-align:left;padding:6px;color:#5f6b7a;font-size:13px}.selected-chip img{width:38px;height:38px;border-radius:5px;object-fit:contain;background:#fff;flex-shrink:0}.selected-chip>span:first-of-type{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove-mark{font-size:18px;color:#a2aebf}.tasks{min-height:650px}.task-filters{display:flex;gap:4px;border-bottom:1px solid #eef0f4;padding-bottom:16px}.filter-button{background:transparent;color:#5f6b7a;font-size:16px;padding:7px 12px}.filter-button.active{background:#f0f3fb;color:#526bb2}.muted{font-size:13px;color:#5f6b7a}.empty{min-height:400px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 18px}.empty-icon{position:relative;width:90px;height:94px;margin-bottom:18px}.empty-icon:before,.empty-icon:after{content:"";position:absolute;width:58px;height:68px;border:1px solid #e3e8f3;border-radius:9px;background:#f9faff;left:11px;top:5px;transform:rotate(-13deg)}.empty-icon:after{transform:rotate(10deg);left:25px;top:11px;background:#fff}.empty-icon svg{position:absolute;color:#b2c0e3;width:23px;height:23px;top:34px;left:43px;z-index:1}.empty h3{font-size:18px;font-weight:500;color:#718198;margin:0 0 10px}.empty p{font-size:16px;color:#5f6b7a;max-width:230px}.job{padding:23px 0;border-bottom:1px solid #edf0f4}.job:last-child{border-bottom:0}.job-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.job-head strong{font-size:16px;font-weight:600;letter-spacing:.3px;color:#61718a}.job-head small{margin-left:auto;font-size:13px;color:#5f6b7a}.status{font-size:13px;border-radius:5px;padding:4px 6px;background:#f2f4f8;color:#5f6b7a}.status.completed{background:#edf5f1;color:#35694f}.status.delivered_with_notes{background:#edf2f7;color:#425b73}.status.running,.status.dispatched,.status.dispatching,.status.queued{background:#edf1ff;color:#4056a3}.status.failed,.status.uncertain,.status.needs_attention{background:#fdf0e8;color:#875223}.job-meta{font-size:13px;color:#5f6b7a;margin:10px 0 0}.job-prompt{font-size:16px;line-height:1.8;color:#354154;white-space:pre-wrap;overflow-wrap:anywhere;max-height:none;overflow:visible;margin:11px 0 14px}.job-images{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.result{min-width:0}.result img{display:block;width:100%;aspect-ratio:1;object-fit:contain;border:1px solid #edf0f5;border-radius:9px;background:#fafbfe}.download-link{display:inline-block;font-size:14px;border-radius:6px;background:transparent;color:var(--accent);padding:0}.download-link.secondary{background:#f0f2f6}.result .download-link{display:block;width:100%;text-align:center;padding:9px 2px;color:#5f6b7a;font-size:13px}.download-link[aria-disabled=true]{opacity:.5;cursor:wait}.job-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px}.job-actions .secondary{font-size:13px;padding:7px 10px}.job-actions>a:not(.secondary){font-size:13px;color:#5f6b7a}.pager{display:flex;align-items:center;justify-content:center;gap:9px;font-size:13px;color:#5f6b7a;margin-top:13px}.pager button{font-size:13px;padding:7px}.notice{background:#fdf6e9;color:#795621;border:1px solid #f0e4c7;border-radius:8px;font-size:16px;padding:12px 15px;margin-bottom:22px}.error{font-size:16px;color:#a33f3b;margin-top:10px;white-space:pre-wrap;overflow-wrap:anywhere}footer{text-align:center;color:#5f6b7a;font-size:13px;padding:28px 0 10px;letter-spacing:.5px}footer span{margin:0 10px}.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);max-width:90vw;border-radius:9px;background:#243146;color:#eef3fc;padding:13px 20px;box-shadow:0 6px 30px #24314625;z-index:30;font-size:16px}.login{display:grid;grid-template-columns:1fr 1fr;min-height:100vh}.login-story{position:relative;min-height:100vh;background:#18212b;padding:52px 64px;overflow:hidden;color:#fff}.login-brand svg{width:37px;height:37px}.story-copy{position:relative;z-index:2;margin-top:92px}.story-copy .eyebrow{color:#a4bbd7;font-size:13px}.story-copy h1{font-size:clamp(30px,3.5vw,49px);font-weight:400;line-height:1.5;letter-spacing:-1.5px;margin:22px 0}.story-copy p{color:#bfccdc;font-size:16px;line-height:2}.story-bottom{position:absolute;bottom:44px;color:#9cacc1;font-size:12px;letter-spacing:2px}.abstract-art{position:absolute;width:340px;height:340px;right:-40px;bottom:70px}.art-ring{position:absolute;border:1px solid #54729036;border-radius:50%;width:320px;height:320px;transform:rotate(-25deg) scaleY(.65)}.ring-two{transform:rotate(42deg) scaleY(.65)}.art-card{position:absolute;width:125px;height:160px;border:1px solid #7893b82b;border-radius:15px;background:linear-gradient(130deg,#758eab25,#253345);box-shadow:0 20px 70px #0002}.card-one{top:73px;left:68px;transform:rotate(-14deg)}.card-two{top:102px;left:133px;transform:rotate(14deg);background:linear-gradient(130deg,#6883bb65,#24374c)}.art-caption{position:absolute;bottom:16px;left:25px;color:#9cacc1;font-size:12px;letter-spacing:2px}.login-side{background:#fbfcfe;display:flex;align-items:center;justify-content:center;padding:45px;position:relative}.login-card{width:100%;max-width:360px}.login-kicker{font-size:13px;letter-spacing:1.7px;color:#5f6b7a}.login-card h2{font-size:25px;letter-spacing:-.6px;font-weight:500;color:#303e51;margin-top:18px}.login-description{font-size:16px;color:#5f6b7a;margin:16px 0 40px}.login-card label{font-size:16px;color:#5f6b7a}.login-card input{padding:15px;background:#fff;font-size:16px}.login-submit{width:100%;display:flex;justify-content:space-between;align-items:center;padding:15px 18px;font-size:16px;margin-top:17px}.login-submit svg{width:18px;height:18px}.privacy-note{display:flex;align-items:flex-start;gap:10px;margin-top:31px;padding-top:27px;border-top:1px solid #e9edf3;color:#5f6b7a}.privacy-note svg{width:15px;height:15px;margin-top:3px}.privacy-note p{font-size:14px;color:#5f6b7a}.privacy-note small{display:block;font-size:13px;color:#5f6b7a;margin-top:5px}.login-foot{position:absolute;bottom:30px;color:#5f6b7a;font-size:13px;letter-spacing:1px}@media(min-width:1600px){main{padding-left:58px;padding-right:58px}.panel{padding:32px}}@media(max-width:1150px){main{padding:0 25px 15px}.shell{grid-template-columns:260px minmax(0,1fr)}aside{padding:28px 15px 18px}.workspace{gap:17px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.panel{padding:20px}.privacy-badge{display:none}.stats small{display:none}.job-images{grid-template-columns:repeat(2,minmax(0,1fr))}.login-story{padding:40px}.abstract-art{right:-100px;opacity:.6}}@media(max-width:900px){.workspace{grid-template-columns:minmax(0,1fr)}.tasks{min-height:470px}.job-images{grid-template-columns:repeat(3,minmax(0,1fr))}.stats>div{padding:17px}.stats strong{font-size:27px}.hero{padding:30px 0 25px}.login-story{padding:35px}.login-side{padding:30px}.story-copy{margin-top:75px}.abstract-art{bottom:80px;width:270px;right:-120px}.login-card h2{font-size:22px}}@media(max-width:650px){.shell{grid-template-columns:minmax(0,1fr)}aside{position:relative;height:auto;padding:20px 18px 14px}.brand svg{width:29px;height:29px}.brand span{font-size:18px}.brand small{font-size:12px;margin-top:4px}.nav-intro,.sidebar-footer .engine{display:none}nav{display:flex;gap:5px;overflow-x:auto;margin-top:22px}.channel{flex-shrink:0;min-height:37px;padding:8px 10px;gap:6px;font-size:14px}.channel-number{display:none}.channel-state{font-size:12px}.sidebar-footer{position:absolute;right:18px;top:20px;padding:0}.identity{padding:0}.identity .avatar,.identity small{display:none}.identity strong{font-size:14px}.logout{font-size:16px}main{padding:0 16px 10px}.topbar{min-height:57px;font-size:13px}.connection{font-size:12px}.hero h1{font-size:27px}.hero p{font-size:14px}.hero .eyebrow{font-size:12px}.stats{gap:8px;margin-bottom:18px}.stats>div{padding:15px 13px;border-radius:9px}.stats span{font-size:13px}.stats strong{font-size:25px;margin-top:9px}.panel{padding:21px;border-radius:12px}h2{font-size:20px}.workspace{gap:18px}.job-images{grid-template-columns:repeat(2,minmax(0,1fr))}.job-head small{width:100%;margin:4px 0 0}.login{grid-template-columns:1fr}.login-story{min-height:220px;padding:28px}.story-copy{margin-top:26px}.story-copy h1{font-size:24px;margin:9px 0 0}.story-copy h1 br{display:none}.story-copy p,.story-bottom{display:none}.story-copy .eyebrow{font-size:12px}.abstract-art{width:180px;height:170px;bottom:-40px;right:-80px;opacity:.4}.art-ring{width:160px;height:160px}.art-card{width:55px;height:75px}.card-one{top:40px;left:20px}.card-two{top:60px;left:60px}.art-caption{display:none}.login-side{padding:45px 28px 70px;min-height:480px}.login-card h2{font-size:24px}.login-description{margin-bottom:30px}.login-foot{bottom:22px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-width:650px){input,textarea,select{font-size:16px}.size-option select,.login-card input{font-size:16px}textarea::placeholder,input::placeholder{font-size:16px}.hint{font-size:16px}}

/* Keep enlarged text comfortable at every screen size. */
label,.channel-name,.job-head strong{font-weight:600}
input,textarea,select{font-size:16px;line-height:1.65}
textarea::placeholder,input::placeholder{font-size:16px;opacity:1}
.channel{min-height:48px}.channel-state{font-weight:500}.channel-number{width:22px}
.section-heading{flex-wrap:wrap}.channel-title-line{flex-wrap:wrap}.task-filters{flex-wrap:wrap}
.login-card{max-width:420px}.privacy-note small{line-height:1.7}
@media(max-width:650px){aside{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:8px;align-items:start}aside>.brand{min-width:0;gap:8px}nav{grid-column:1/-1;grid-row:2;margin-top:18px}.sidebar-footer{position:static;grid-column:2;grid-row:1}.identity{gap:4px}.identity strong{font-size:13px}.channel{font-size:16px;min-height:44px}.channel-state{font-size:13px}.topbar{gap:12px;flex-wrap:wrap;padding:12px 0;font-size:14px}.breadcrumb span{margin:0 6px}.connection{font-size:13px}.hero p{font-size:16px}.stats span{font-size:14px}.hero .eyebrow{font-size:12px}h2{font-size:22px}.hint{font-size:14px}.selected-assets{grid-template-columns:minmax(0,1fr)}.panel{padding:20px}.story-copy .eyebrow{font-size:12px}.brand small{letter-spacing:1.2px}.login-side{padding-left:22px;padding-right:22px}.job-head strong{font-size:16px}}

.channel-title-line .channel-state.idle{color:#35694f}.channel-title-line .channel-state.busy{color:#795621}.channel-title-line .channel-state.attention{color:#9f4a3e}.channel-title-line .channel-state.unknown{color:#5f6b7a}

/* Keep navigation scrollable without a visible scrollbar. */
nav{scrollbar-width:none;-ms-overflow-style:none}nav::-webkit-scrollbar{display:none;width:0;height:0}
@media(min-width:651px){aside{padding-top:24px}.nav-intro{margin-top:26px;margin-bottom:10px}nav{gap:3px}.channel{padding-top:10px;padding-bottom:10px;min-height:44px}.sidebar-footer{padding-top:16px}.engine{padding-top:12px;padding-bottom:12px}.identity{padding-top:16px}}

.result-preview{position:relative;display:block;width:100%;padding:0;background:transparent;cursor:zoom-in;border-radius:9px;overflow:hidden}.result-preview-hint{position:absolute;right:8px;bottom:8px;background:#17202acc;color:#fff;border-radius:6px;padding:4px 8px;font-size:12px;pointer-events:none}.image-preview{width:min(1200px,calc(100vw - 32px));height:min(92vh,1000px);max-width:none;max-height:none;padding:0;border:1px solid #ffffff30;border-radius:14px;background:#17202a;color:#fff;box-shadow:0 20px 100px #0006;overflow:hidden}.image-preview[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto auto}.image-preview::backdrop{background:#09101bce}.preview-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid #ffffff20}.image-preview button{background:#ffffff14;color:#fff;font-size:14px;padding:8px 12px}.image-preview button:hover:not(:disabled){background:#ffffff28}.preview-stage{position:relative;overflow:auto;display:flex;min-width:0;min-height:0;padding:16px;background:#0e141d;overscroll-behavior:contain}.preview-canvas{margin:auto;flex-shrink:0}.preview-canvas img{display:block;height:auto;max-width:none;max-height:none;border-radius:2px}.preview-message{margin:auto;text-align:center;color:#dce4f1;font-size:14px}.preview-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid #ffffff20}.preview-navigation,.preview-zoom{display:flex;align-items:center;gap:8px}.preview-zoom span{min-width:48px;text-align:center;font-size:13px;font-variant-numeric:tabular-nums}.image-preview .download-link{background:#ffffff14;border:1px solid #ffffff20;color:#fff;padding:8px 12px;font-size:14px}.preview-help{text-align:center;color:#becadd;font-size:12px;padding:0 12px 10px}@media(max-width:650px){.image-preview{width:calc(100vw - 16px);height:94vh;border-radius:10px}.preview-header{padding:10px 12px}.preview-controls{padding:10px 12px;gap:10px}.preview-navigation{flex:1}.preview-zoom{order:3;width:100%;justify-content:center}.image-preview button,.image-preview .download-link{font-size:13px;padding:8px 10px}.preview-help{font-size:11px}}

/* Reference thumbnails stay inside the upload frame. */
.upload-empty{display:flex;flex-direction:column;align-items:center}
.upload-dropzone.has-assets .upload-empty{display:none}
.upload-dropzone .selected-line{width:100%;margin-top:0;margin-bottom:10px;text-align:left}
.upload-dropzone .selected-assets{width:100%;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin-top:0;max-height:320px;overflow:auto;padding:3px}
.upload-dropzone .selected-assets:empty{display:none}
.upload-dropzone .selected-chip{position:relative;display:flex;flex-direction:column;gap:7px;align-items:stretch;padding:8px;background:#fff;border:1px solid #dce3ed;border-radius:9px;box-shadow:none;font-size:13px}
.upload-dropzone .selected-chip:hover{border-color:#8394e4;background:#f4f6ff}
.upload-dropzone .selected-chip img{width:100%;height:96px;object-fit:contain;border-radius:5px}
.upload-dropzone .selected-chip>span:first-of-type{flex:none;width:100%;margin:0;font-size:13px;color:#4b5c71}
.upload-dropzone .selected-chip .remove-mark{position:absolute;top:5px;right:5px;margin:0;width:22px;height:22px;border-radius:50%;background:#fff;color:#596577;font-size:18px;line-height:22px;text-align:center;box-shadow:0 1px 5px #17202a20}
.upload-dropzone .selected-reference-preview{display:block;width:100%;padding:0;background:#f5f7fc;border:1px solid #e3e8f3;border-radius:6px;overflow:hidden;cursor:zoom-in}
.upload-dropzone .selected-reference-preview:hover{background:#edf1ff;border-color:#8394e4}
.upload-dropzone .selected-reference-preview img{display:block;width:100%;height:96px;border-radius:0;background:#fff}
.selected-reference-zoom{display:block;padding:4px 2px;color:#354fc4;background:#edf1ff;font-size:12px;line-height:1.5;text-align:center;white-space:nowrap}
.upload-dropzone .selected-reference-remove{align-self:flex-end;min-height:28px;padding:2px 7px;color:#a63d36;background:#fff5f4;border:1px solid #f2d6d2;border-radius:5px;font-size:12px;line-height:1.6}
.upload-dropzone .selected-reference-remove:hover{background:#ffe9e6;border-color:#d9958f}
.image-preview[data-kind="reference"] .preview-canvas{background:#fff}
.upload-dropzone #clearSelection{background:transparent;box-shadow:none;padding:4px 6px}
.upload-dropzone .upload-progress,.upload-dropzone .error{width:100%;text-align:left;margin-bottom:0}

/* Task collection expands with the page instead of nesting scroll areas. */
.tasks{min-height:0}.jobs-list{height:auto;max-height:none;overflow:visible}.jobs-list>.job{padding-right:0}.jobs-list>.empty{min-height:320px}.jobs-list:focus-visible{outline:2px solid #8394e4;outline-offset:4px;border-radius:5px}.jobs-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:18px;margin-top:8px;border-top:1px solid #e8ebef}.jobs-pager span{font-size:14px;color:#5f6b7a;white-space:nowrap}.jobs-pager button{font-size:14px;padding:9px 12px}
@media(max-width:650px){.jobs-list{max-height:none}.jobs-pager{gap:6px}.jobs-pager button{font-size:14px;padding:9px 8px}.jobs-list>.job{padding-right:0}}

/* Persistent update notice remains available until the user refreshes. */
.update-notice{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);z-index:1000;width:min(760px,calc(100vw - 32px));display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 22px;border:1px solid #b9c5f4;border-radius:12px;background:#f3f6ff;color:#263b80;box-shadow:0 10px 35px #17202a25}.update-notice strong{font-size:17px}.update-notice p{font-size:14px;margin-top:4px}.update-notice button{flex-shrink:0;white-space:nowrap}@media(max-width:650px){.update-notice{bottom:12px;align-items:stretch;flex-direction:column;gap:12px;padding:16px}.update-notice button{width:100%}}

.update-notice>div{min-width:0;overflow-wrap:anywhere}
.model-settings{width:min(620px,calc(100vw - 32px));max-height:90vh;overflow:auto;padding:26px;border:1px solid var(--border);border-radius:14px;color:var(--ink);background:#fff;box-shadow:0 20px 80px #0003}.model-settings::backdrop{background:#09101b99}.model-settings label:not(.settings-check){display:block;margin:16px 0 6px}.model-settings input[type=password],.model-settings input[type=number],.model-settings select{width:100%;padding:11px;border:1px solid #dce3ed;border-radius:8px;background:#fff}.settings-check{display:flex;gap:10px;align-items:flex-start;margin-top:14px;line-height:1.6}.settings-check input{margin-top:7px;width:17px;height:17px;flex-shrink:0}.model-settings .hint{margin:10px 0}.model-settings .section-heading{gap:10px}#modelSettingsButton{padding-left:0;margin-bottom:8px;text-align:left}

.stats{grid-template-columns:repeat(4,minmax(0,1fr))}.daily-images{margin:0 0 24px;padding:20px 24px;background:#fff;border:1px solid var(--border);border-radius:12px}.daily-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.daily-heading h2{font-size:18px}.daily-heading>span{font-size:13px;color:var(--muted)}.daily-image-counts{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.daily-image-day{display:flex;flex-direction:column;gap:7px;padding:12px 8px;text-align:center;background:#f6f7f9;border-radius:8px}.daily-image-day span{font-size:13px;color:var(--muted)}.daily-image-day strong{font-size:20px;font-weight:600;color:var(--ink)}.daily-image-day.today{background:#eef1ff}.daily-image-day.today strong{color:var(--accent)}@media(max-width:650px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.daily-images{padding:16px}.daily-heading{align-items:flex-start;flex-direction:column;gap:4px}.daily-image-counts{grid-template-columns:repeat(4,minmax(0,1fr))}.daily-image-day{padding:10px 5px}.daily-image-day strong{font-size:18px}.daily-image-day span{font-size:12px}}

.download-status{display:inline-flex;align-items:center;color:#667085;background:#f4f6f9;border-radius:6px;padding:6px 12px;font-size:14px;white-space:nowrap}.download-status.complete,.image-downloaded{color:#24734a;background:#edf8f1}.image-downloaded{display:block;width:fit-content;margin:4px auto 0;padding:2px 9px}.task-filters{flex-wrap:wrap}

/* Collection controls */
.task-filters{width:fit-content;max-width:100%;display:flex;flex-wrap:wrap;gap:5px;padding:5px;margin-bottom:18px;border:1px solid #e6ebf3;border-radius:13px;background:#f5f7fb}
.task-filters .filter-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:9px 17px;border:1px solid transparent;border-radius:9px;background:transparent;color:#637086;font-size:16px;font-weight:500;line-height:1.4;transition:background .18s,color .18s,box-shadow .18s}
.task-filters .filter-button:hover:not(.active){background:#e9eef8;color:#354ec2}
.task-filters .filter-button.active{background:linear-gradient(135deg,#526fe5,#4059cd);color:#fff;border-color:#4661d5;box-shadow:0 3px 8px #405bd526;font-weight:600}
.task-filters [data-filter="undownloaded"]:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.85}
.result .download-link{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;margin-top:5px;padding:6px 11px;border:1px solid transparent;border-radius:8px;color:#405bc3;font-size:15px;font-weight:500;line-height:1.4}
.result .download-link:hover:not(:disabled){background:#f0f4ff;border-color:#dde5fc}
.job-actions .download-link.secondary,#previewDownload .download-link.secondary{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:42px;padding:10px 16px;border:1px solid #d2dcf6;border-radius:10px;background:linear-gradient(180deg,#f5f7ff,#edf2ff);color:#3e57c1;font-size:15px;font-weight:600;line-height:1.4;box-shadow:0 2px 4px #3e57c108}
.job-actions .download-link.secondary:before,#previewDownload .download-link.secondary:before{content:"↓";font-size:20px;font-weight:600;line-height:1}
.job-actions .download-link.secondary:hover:not(:disabled),#previewDownload .download-link.secondary:hover:not(:disabled){background:#e6edff;border-color:#acbff0;box-shadow:0 4px 10px #405bd515;transform:translateY(-1px)}
.download-status{min-height:34px;gap:6px;padding:7px 12px;border:1px solid #e6ebf1;border-radius:9px;background:#f7f9fc;color:#748197;font-size:14px;font-weight:500;line-height:1.4}
.download-status.complete,.image-downloaded{background:#eff9f3;border-color:#d9eedf;color:#278056}
.image-downloaded{min-height:0;padding:3px 9px;font-size:13px}
@media(max-width:650px){.task-filters .filter-button{min-height:40px;padding:8px 13px;font-size:15px}.job-actions{gap:8px}}

.access-route{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}.lan-entry{display:inline-flex;align-items:center;gap:6px;border:1px solid #cfe9dc;background:#eef9f2;color:#24734a;border-radius:8px;padding:6px 10px;font-size:14px;white-space:nowrap}.lan-entry:hover{background:#e1f3e8}.access-route .connection{font-size:14px}@media(max-width:650px){.access-route{gap:6px}.access-route .connection{font-size:12px}.lan-entry{font-size:12px;padding:4px 8px}}

.job-references{margin:14px 0 16px;padding:12px;background:#f6f7fa;border-radius:9px}.job-reference-label{display:block;font-size:13px;color:var(--muted);margin-bottom:8px}.job-reference-label:only-child{margin-bottom:0}.job-reference-strip{display:flex;gap:10px;overflow-x:auto;padding-bottom:3px}.job-reference{margin:0;width:80px;flex:0 0 80px}.job-reference img{display:block;width:80px;height:80px;object-fit:contain;background:#fff;border:1px solid #e1e6ed;border-radius:7px}.job-reference figcaption{margin-top:5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:var(--muted)}

/* Let the collection grow naturally alongside the composer. */
@media(min-width:901px){
  .workspace{align-items:start}
  .tasks{display:flex;flex-direction:column}
  .tasks>.section-heading,.tasks>.task-filters,.tasks>.bulk-downloads,.tasks>.jobs-pager{flex-shrink:0}
  .tasks>.jobs-list{flex:0 0 auto;min-height:0;height:auto;max-height:none}
}
.jobs-list>.job:first-child{padding-top:8px}
.bulk-downloads{container-type:inline-size;margin:0 0 22px;padding:15px 17px;border:1px solid #dce4f4;border-radius:15px;background:#f8faff}
.bulk-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px 16px}
.bulk-title{flex-shrink:0;color:#35425e;font-size:16px;font-weight:700;white-space:nowrap}
.bulk-selection-actions,.bulk-export-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;min-width:0}
.bulk-export-actions{margin-left:auto}
.bulk-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:45px;padding:10px 14px;border:1px solid transparent;border-radius:10px;font-size:15px;font-weight:650;line-height:1.4;white-space:nowrap}
.bulk-actions .secondary{border-color:#e2e7ef;background:#f0f3f7;color:#566477}
.bulk-actions .secondary:hover:not(:disabled){border-color:#ccd6e9;background:#e6ecf6;color:#354bc0}
.bulk-actions .primary{background:#4b62e1;color:#fff;box-shadow:0 2px 4px #4b62e112}
.bulk-actions .primary:before{content:"↓";margin-right:7px;font-size:21px;line-height:1}
.bulk-actions .primary:disabled{background:#a6b1f1;opacity:1;color:#fff;box-shadow:none}
.bulk-selection-summary{margin:12px 0 0;padding-top:10px;border-top:1px solid #e1e7f4;font-size:13px;color:#52678e;line-height:1.5}
.job-select{display:inline-flex;align-items:center;gap:6px;margin:0;font-size:13px;color:#60708b;cursor:pointer}.job-select input{width:17px;height:17px;margin:0;accent-color:var(--accent)}
@container(max-width:560px){.bulk-export-actions{width:100%;margin-left:0}.bulk-export-actions button{flex:1}}
@media(max-width:650px){
  .bulk-downloads{padding:13px}
  .bulk-actions{gap:11px}
  .bulk-actions button{min-height:44px;padding:9px 11px;font-size:14px}
  .bulk-selection-actions{flex:1}
  .bulk-title{font-size:15px}
}
.job.batch-selected{background:#f7f9ff;border-radius:10px;box-shadow:inset 3px 0 #526fe5;padding-left:12px;padding-right:12px}.job-head{flex-wrap:wrap}
.model-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:9px}
.model-choice{display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0;min-height:116px;padding:14px 11px;text-align:left;border:1px solid #dfe5ef;border-radius:11px;background:#fbfcfe;color:var(--ink);transition:background .18s,border-color .18s,box-shadow .18s}
.model-choice strong{font-size:14px;line-height:1.4;overflow-wrap:anywhere}
.model-choice-detail{font-size:12px;line-height:1.5;color:var(--muted)}
.model-choice-status{margin-top:auto;font-size:11px;color:#748197}
.model-choice:hover:not(:disabled){border-color:#aabbed;background:#f4f6ff}
.model-choice.active{border-color:var(--accent);background:#eef2ff;box-shadow:0 0 0 1px var(--accent)}
.model-choice.active strong,.model-choice.active .model-choice-status{color:var(--accent)}
.model-choice:disabled{opacity:.6;cursor:not-allowed}
.model-choice:focus-visible{outline:3px solid #aabbed;outline-offset:3px}
@media(max-width:650px){.model-choices{gap:6px}.model-choice{padding:11px 8px}.model-choice strong{font-size:12px}.model-choice-detail{font-size:11px}}
.job-images{align-items:start}
.jobs-pager{flex-wrap:wrap}
@media(max-width:900px){.tasks>.jobs-list{max-height:none}.tasks>.jobs-list>.empty{min-height:240px}}

/* Results keep their natural proportions and flow into responsive columns. */
.tasks .job-images{display:block;columns:2;column-gap:12px}
.tasks .job-images>.result{display:inline-block;width:100%;margin:0 0 14px;break-inside:avoid;vertical-align:top}
.tasks .result img{height:auto;aspect-ratio:auto}
.tasks .job-reference-strip{flex-wrap:wrap;overflow:visible}
@media(min-width:1450px){.tasks .job-images{columns:3}}
@media(max-width:900px) and (min-width:651px){.tasks .job-images{columns:3}}
@media(max-width:420px){.tasks .job-images{columns:1}}

/* Keep the composer within reach while browsing the result waterfall. */
@media(min-width:901px){.workspace>.composer{position:sticky;top:var(--composer-sticky-top,16px);align-self:start}}

/* Studio navigation: restrained surfaces, clear states, no inner scrolling. */
.shell>aside{background:linear-gradient(165deg,#192430 0%,#121c26 100%);border-right:1px solid #ffffff08}
.shell>aside>.brand svg{padding:7px;width:40px;height:40px;border-radius:12px;background:#8da9ff10;border:1px solid #91aaf12b;color:#b6c7fa}
.shell>aside>.brand span{font-size:18px;font-weight:650;letter-spacing:1px;line-height:1.4}
.shell>aside>.brand small{font-size:10px;letter-spacing:2.6px;color:#8b9caf;margin-top:3px}
.nav-intro .nav-label{font-size:12px;font-weight:500;color:#8da0b6;letter-spacing:1.5px}
.nav-total{border:1px solid #ffffff12;background:#ffffff04;border-radius:7px;padding:1px 7px;font-size:11px;line-height:20px;font-variant-numeric:tabular-nums;color:#b0c0d4}
#channels{align-content:start;gap:2px;overflow:visible}
#channels>.channel{position:relative;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;border:1px solid transparent;border-radius:9px;background:transparent;color:#b8c4d3;text-align:left;transition:background .16s,border-color .16s,color .16s}
#channels>.channel:hover{background:#ffffff05;border-color:#ffffff08;transform:none}
#channels>.channel.active{background:linear-gradient(100deg,#6386ef22,#6386ef0b);border-color:#759afa30;color:#f5f8ff;box-shadow:inset 2px 0 #8eacff}
#channels .channel-number{display:grid;place-items:center;width:28px;height:25px;border:1px solid #ffffff0c;border-radius:6px;background:#ffffff03;color:#8e9fb4;font-size:12px;font-weight:500;letter-spacing:.4px;font-variant-numeric:tabular-nums}
#channels .active .channel-number{color:#c1d0ff;border-color:#94aefa30;background:#87a7ff12}
#channels .channel-name{min-width:0;font-size:15px;font-weight:500;letter-spacing:.3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#channels .channel-state{font-size:11px;font-weight:500;line-height:18px;gap:5px;padding:1px 6px;border-radius:5px;background:#ffffff04;color:#a0afc0}
#channels .channel-state:before{width:4px;height:4px}
#channels .channel-state.busy{color:#dec899;background:#d9b96b0b}
#channels .channel-state.idle{color:#9cd1b8;background:#70c5a00c}
#channels .channel-state.attention{color:#f0b7b0;background:#f18b7a10}
.sidebar-footer .engine{padding:8px 10px;background:#ffffff03;border:1px solid #ffffff0a;border-radius:8px;font-size:12px;color:#a4b5cb;gap:7px}
.sidebar-footer .engine>span:last-child{font-size:9px;letter-spacing:1.4px;color:#708399}
.sidebar-footer .model-dot{width:5px;height:5px;background:#90a9f4;box-shadow:0 0 0 3px #789cf20c}
.sidebar-footer .identity{padding:14px 2px 0;gap:10px;line-height:1.4}
.sidebar-footer .avatar{width:34px;height:34px;border-radius:10px;background:linear-gradient(145deg,#34465e,#26354a);border:1px solid #9ab7e31a;color:#cad8eb;font-size:12px;font-weight:600}
.sidebar-footer .identity strong{color:#dce5f1;font-size:14px;font-weight:500}
.sidebar-footer .identity small{font-size:11px;color:#8194ac;margin-top:3px}
.sidebar-footer .logout{border:1px solid #ffffff0a;background:#ffffff03;border-radius:8px;color:#9bacc1;font-size:18px;width:30px;height:30px;padding:0}
.sidebar-footer .logout:hover{background:#ffffff0b;color:#e4edff}
@media(min-width:651px){
  .shell>aside{--channel-row:clamp(26px,calc((100dvh - 284px)/15),42px);height:100dvh;padding:24px 18px 18px;overflow:hidden}
  .shell>aside>.brand{flex-shrink:0;gap:11px;padding:0 3px}
  .nav-intro{flex-shrink:0;margin:24px 0 12px;padding:0 10px}
  #channels{flex:0 0 auto;min-height:0;grid-auto-rows:var(--channel-row)}
  #channels>.channel{height:var(--channel-row);min-height:0;padding:3px 9px;line-height:1.3}
  .sidebar-footer{flex-shrink:0;margin-top:auto;padding-top:14px}
}
@media(min-width:651px) and (max-height:700px){
  .shell>aside{--channel-row:clamp(22px,calc((100dvh - 238px)/15),30px);padding:14px 16px 12px}
  .shell>aside>.brand svg{width:32px;height:32px;padding:5px;border-radius:9px}
  .shell>aside>.brand span{font-size:16px}
  .shell>aside>.brand small{font-size:9px;margin-top:1px}
  .nav-intro{margin-top:14px;margin-bottom:8px}
  #channels>.channel{border-radius:7px;grid-template-columns:24px minmax(0,1fr) auto;gap:8px;padding-top:1px;padding-bottom:1px}
  #channels .channel-number{width:24px;height:21px;font-size:11px}
  #channels .channel-name{font-size:14px}
  #channels .channel-state{font-size:10px;line-height:16px}
  .sidebar-footer{padding-top:10px}
  .sidebar-footer .engine{padding-top:6px;padding-bottom:6px}
  .sidebar-footer .identity{padding-top:10px}
}
@media(min-width:651px) and (max-height:560px){
  #channels{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:30px;gap:4px}
  #channels>.channel{height:30px;grid-template-columns:20px minmax(0,1fr) auto;gap:3px;padding:3px 4px}
  #channels .channel-number{width:20px;height:20px;font-size:10px}
  #channels .channel-name{font-size:11px;letter-spacing:0}
  #channels .channel-state{font-size:9px;gap:3px;padding:1px 3px}
}
@media(max-width:650px){
  .shell>aside{padding:20px 16px;gap:0 12px}
  .shell>aside>.brand{gap:9px}
  .shell>aside>.brand span{font-size:16px}
  .shell>aside>.brand svg{width:32px;height:32px;padding:5px}
  .shell>aside>.brand small{font-size:8px;letter-spacing:2px}
  #channels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:38px;gap:4px;margin-top:18px;overflow:visible}
  #channels>.channel{height:38px;min-height:0;padding:5px 6px;grid-template-columns:22px minmax(0,1fr) auto;gap:5px}
  #channels .channel-number{width:22px;height:22px;font-size:10px}
  #channels .channel-name{font-size:12px;letter-spacing:0}
  #channels .channel-state{font-size:10px;padding:1px 4px;gap:3px}
  .sidebar-footer{padding-top:0}
  .sidebar-footer .identity{padding:1px 0 0;gap:6px}
  .sidebar-footer .identity strong{font-size:12px}
  .sidebar-footer .avatar{width:29px;height:29px;font-size:10px}
}

/* An inline task action, intentionally subordinate to the creation status. */
.cancel-generation{display:inline-flex;align-items:center;justify-content:center;padding:3px 10px;min-height:29px;border:1px solid #e5c8c1;border-radius:7px;background:#fff9f7;color:#9b4e3f;font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap}
.cancel-generation:hover:not(:disabled){background:#fcece6;border-color:#d5a293;transform:none}
.cancel-generation:disabled{opacity:.6;cursor:wait}
.status.cancelling{background:#fff0dc;color:#8b6425}

/* Queue counts are separate from a channel's currently running task. */
#channels>.channel{grid-template-columns:26px minmax(0,1fr) auto auto;gap:6px}
#channels .channel-number{width:26px}
#channels .channel-name{font-size:14px;letter-spacing:0}
#channels .channel-queue{font-size:10px;line-height:18px;color:#8397b0;background:#ffffff04;border:1px solid #ffffff09;border-radius:5px;padding:0 4px;white-space:nowrap;font-variant-numeric:tabular-nums}
#channels .channel-queue.has-queue{color:#d5e0fc;border-color:#87a7ff27;background:#7292ed13}
#channels .channel-state{font-size:10px;padding-left:5px;padding-right:5px}
@media(min-width:651px) and (max-height:700px){#channels>.channel{grid-template-columns:22px minmax(0,1fr) auto auto;gap:4px}#channels .channel-number{width:22px}}
@media(max-width:650px),(min-width:651px) and (max-height:560px){#channels>.channel{grid-template-columns:20px minmax(0,1fr) auto auto;gap:3px}#channels .channel-number{width:20px}#channels .channel-name{font-size:11px}#channels .channel-queue{font-size:9px;padding:0 3px}#channels .channel-state{font-size:9px;padding:1px 3px}}

/* Queued task handoff; no extra navigation scrolling. */
.queue-transfer{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%;padding:12px 14px;border:1px solid #dce5f5;border-radius:12px;background:#f5f8ff}.queue-transfer-note{color:#52647f;font-size:14px;margin-right:auto}.queue-transfer-select{width:auto;min-width:130px;padding:9px 12px;border:1px solid #d2dced;border-radius:9px;background:white;color:#263954;font:inherit}.queue-transfer-button{padding:10px 16px;border:0;border-radius:9px;background:#425fde;color:white;font-weight:600;cursor:pointer;box-shadow:0 3px 8px #425fde20}.queue-transfer-button:hover{background:#344fc7}.queue-transfer-button:disabled{opacity:.55;cursor:wait}.queue-transfer-select:focus-visible,.queue-transfer-button:focus-visible{outline:3px solid #98afff;outline-offset:2px}

.reedit-button{border:1px solid #ccd7fb;border-radius:10px;padding:11px 18px;background:#eef3ff;color:#3454cd;font:inherit;font-weight:600;cursor:pointer}.reedit-button:hover{background:#e2eaff;border-color:#9baff2}.reedit-button:focus-visible{outline:3px solid #98afff;outline-offset:2px}.edit-draft-notice{padding:12px 15px;margin:0 0 20px;border:1px solid #d4dfff;border-radius:12px;background:#f2f5ff;color:#405795;font-size:14px;line-height:1.7}

.delete-task-button { color: #b54747; border-color: #efd6d6; }
.delete-task-button:hover { background: #fff1f1; border-color: #dbaaaa; }

.correction-dialog { box-sizing:border-box; width:min(680px, calc(100vw - 32px)); max-height:90vh; max-height:90dvh; overflow:auto; border:1px solid #e1e6ed; border-radius:18px; padding:28px; color:#263345; box-shadow:0 24px 80px #10192a33; }
.correction-dialog::backdrop { background:rgba(16,25,42,.45); }
.correction-dialog form { display:grid; grid-auto-rows:max-content; gap:16px; min-width:0; }
.correction-dialog h2 { margin:0; padding-right:36px; font-size:22px; }
.correction-dialog .correction-close { position:absolute; top:18px; right:18px; display:grid; place-items:center; width:36px; height:36px; min-height:36px; margin:0; padding:0; border:0; border-radius:8px; background:transparent; color:#7b8595; font-size:28px; font-weight:400; line-height:1; cursor:pointer; }
.correction-dialog .correction-close:hover { background:#f0f2f6; color:#263345; }
.correction-dialog .correction-close:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.correction-dialog .job-meta { margin:0; line-height:1.7; color:#748093; font-size:14px; }
.correction-dialog label { margin:0; }
.correction-dialog input[type=checkbox] { box-sizing:border-box; flex:0 0 17px; width:17px; height:17px; min-width:17px; min-height:17px; padding:0; margin:0; accent-color:var(--accent); cursor:pointer; }
.correction-dialog input[type=checkbox]:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
.correction-dialog textarea { display:block; width:100%; min-height:120px; margin-top:8px; box-sizing:border-box; font-size:15px; line-height:1.7; padding:12px 14px; }
.correction-dialog textarea::placeholder { font-size:14px; color:#8b94a3; }
.correction-pages { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px; max-height:240px; overflow:auto; padding:2px; }
.correction-pages:empty { display:none; }
.correction-page { display:grid; grid-template-columns:17px minmax(0,1fr); align-items:center; align-content:start; gap:10px 8px; padding:8px; border:1px solid #e1e6ed; border-radius:10px; cursor:pointer; font-size:13px; background:#fff; }
.correction-page:hover { border-color:#aebbe5; }
.correction-page:has(input:checked) { border-color:var(--accent); background:#f3f5ff; }
.correction-page img { display:block; width:100%; min-width:0; aspect-ratio:1; object-fit:contain; grid-column:1/-1; grid-row:1; border-radius:5px; background:#f7f8fa; }
.correction-page input { grid-column:1; grid-row:2; }
.correction-page span { grid-column:2; grid-row:2; }
.codex-usage { margin:0 0 20px; padding:18px 22px; border:1px solid #e3e7ee; border-radius:12px; background:#fff; }
.codex-usage-heading { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:16px; }
.codex-usage-heading h2 { margin:0; color:#273447; font-size:15px; font-weight:650; }
.codex-usage-heading p { margin:4px 0 0; color:#7b8797; font-size:12px; }
.codex-reset-credits { padding:5px 10px; border-radius:6px; color:#596579; background:#f3f5f9; font-size:12px; }
.codex-usage-windows { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr)); gap:18px 28px; }
.codex-window-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#657185; font-size:13px; }
.codex-window-heading strong { color:#273447; font-size:15px; white-space:nowrap; font-variant-numeric:tabular-nums; }
.codex-usage-track { height:6px; margin:10px 0; overflow:hidden; border-radius:10px; background:#edf0f5; }
.codex-usage-fill { height:100%; border-radius:inherit; background:#4b5bd5; transition:width .2s; }
.codex-usage-fill.low { background:#c58a35; }
.codex-usage-reset { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:6px 12px; color:#c62828; font-size:18px; font-weight:650; line-height:1.5; font-variant-numeric:tabular-nums; }
.codex-usage-reset time { color:inherit; font-size:16px; font-weight:600; }
.codex-usage-state { margin:12px 0 0; color:#8b7351; font-size:12px; }
.codex-usage-state:empty { display:none; }
.batch-correction-controls { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.batch-correction-controls .job-meta { margin:0 auto 0 0; }
.batch-correction-controls button { width:auto; min-height:32px; margin:0; padding:4px 10px; }
.batch-correction-status { margin:0; color:var(--ink); font-size:14px; }
.batch-correction-failures { margin:0; padding-left:1.25em; color:#aa3538; font-size:13px; }
.batch-correction-status:empty,.batch-correction-failures:empty { display:none; }
.correction-feedback { font-weight:600; font-size:14px; }
.correction-option { display:flex; gap:10px; align-items:flex-start; padding:12px 14px; border:1px solid #e8ebf0; border-radius:9px; background:#fafbfc; cursor:pointer; font-size:14px; line-height:1.6; }
.correction-option[hidden] { display:none; }
.correction-option span { flex:1 1 0; min-width:0; }
.correction-option input[type=checkbox] { margin-top:3px; }
.correction-dialog .error:empty { display:none; }
.correction-dialog .correction-actions { justify-content:flex-end; gap:10px; margin:4px 0 0; padding-top:16px; border-top:1px solid #edf0f4; }
.correction-actions button { width:auto; min-width:92px; min-height:42px; margin:0; }
@media(max-width:540px) {
  .correction-dialog { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); padding:20px; border-radius:14px; }
  .correction-dialog h2 { font-size:19px; }
  .correction-pages { grid-template-columns:repeat(2,minmax(0,1fr)); max-height:220px; }
  .correction-dialog textarea { font-size:16px; }
  .correction-actions button { flex:1; }
}
.gpt-custom-sizing{margin-top:12px;padding:14px;border:1px solid #dce3ed;border-radius:12px;background:#f8faff}.gpt-custom-toggle{display:flex;gap:9px;align-items:center;margin:0;cursor:pointer}.gpt-custom-toggle input{width:18px;height:18px;margin:0;accent-color:var(--accent)}#customSizeControls>label{display:block;margin-top:14px}.gpt-custom-sizing select,.gpt-custom-sizing input[type=number]{width:100%;padding:10px;border:1px solid #dce3ed;border-radius:8px;background:#fff;color:inherit}.gpt-custom-dimensions{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px;align-items:end;margin-top:12px}.gpt-custom-dimensions>span{text-align:center;padding-bottom:12px}.gpt-custom-dimensions label{margin:0}.gpt-custom-sizing .hint{margin:9px 0 0;font-size:13px;line-height:1.6}


.gpt-custom-dimensions:has(#customHeightField[hidden]){grid-template-columns:minmax(0,1fr)}

/* Task requirements default closed; native details supports keyboard access. */
.job-prompt-fold{margin:11px 0 14px;border:1px solid #e3e8ef;border-radius:8px;padding:9px 12px;background:#fafbfe}
.job-prompt-fold>summary{cursor:pointer;color:#405bd5;font-size:14px;font-weight:500;user-select:none}
.job-prompt-fold>summary:focus-visible{outline:2px solid #8699f2;outline-offset:4px;border-radius:3px}
.job-prompt-fold[open]>.job-prompt{margin:10px 0 0}

.jobs-page-jump{display:flex;align-items:center;justify-content:center;gap:6px;white-space:nowrap;font-size:14px;color:#5f6b7a}.jobs-page-jump select{width:auto;min-width:64px;margin:0;padding:8px 24px 8px 10px;border:1px solid #d9dfea;border-radius:9px;background-color:#fff;color:#29323a;cursor:pointer}.jobs-page-jump select:focus-visible{outline:2px solid #8394e4;outline-offset:2px}

/* Compact optional copy enhancement. */
.copywriter-panel{margin:8px 0 18px;padding:0;background:transparent;border:0}
.copywriter-heading{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.copywriter-heading button{min-height:34px;padding:6px 11px;font-size:13px}
.copywriter-heading #copyGenerate{min-width:170px;min-height:50px;padding:12px 24px;border-radius:10px;font-size:16px;font-weight:600;letter-spacing:.3px;box-shadow:0 5px 14px #405bd52b}
.copywriter-heading .copy-settings-link{margin-left:auto;color:var(--muted);font-size:12px}
.copy-status{font-size:12px;color:var(--muted);margin:7px 0 0}.copy-status:empty,.copywriter-panel .error:empty{display:none}
.copy-plan-dialog{width:min(800px,95vw);max-width:800px;max-height:90vh;padding:24px;border:1px solid #e0e5ee;border-radius:16px;color:var(--ink);overflow:auto}
.copy-plan-dialog::backdrop{background:rgba(20,30,50,.45)}.copy-plan-dialog h2{margin:0;font-size:21px}
.copy-preview-label{display:block;font-size:12px;color:var(--muted);margin:14px 0 7px}
.copy-plan-text{display:block;width:100%;height:52vh;min-height:250px;resize:vertical;padding:15px;line-height:1.8;font-size:14px;background:#fafbfc}
.copy-plan-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-top:16px}.copy-plan-footer span{font-size:12px;color:var(--muted)}.copy-plan-footer button{white-space:nowrap}
@media(max-width:650px){.copy-plan-dialog{padding:18px}.copy-plan-footer{flex-wrap:wrap}.copy-plan-text{height:48vh}}

/* Compact, readable channel navigation. */
aside{background:linear-gradient(165deg,#172431 0%,#101b27 100%);padding:30px 18px 20px}
.nav-intro{margin:36px 0 12px;padding:0 12px}.nav-label{font-size:13px;font-weight:600;letter-spacing:1.4px;color:#a6b7ca}.nav-total{border:0;background:#ffffff12;padding:2px 9px;border-radius:20px;color:#c3d0e2;font-size:12px}
#channels{gap:5px;min-height:0;scrollbar-width:thin;scrollbar-color:#425166 transparent}
.channel{position:relative;gap:12px;min-height:48px;padding:7px 11px;border:1px solid transparent;border-radius:10px;transition:background .18s,border-color .18s,color .18s}
.channel:hover{background:#ffffff0d}.channel.active{background:#4969da2b;border-color:#8299fb3d;box-shadow:inset 3px 0 #8da7ff;color:#fff}
.channel-number{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:#ffffff0a;color:#aabbcf;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}.channel.active .channel-number{background:#6d88eb44;color:#fff}
.channel-name{font-size:14px;font-weight:500;letter-spacing:.2px}.channel-state{font-size:12px;gap:5px}.channel-state:before{width:6px;height:6px}.channel-queue{font-size:11px}
.sidebar-footer{padding-top:14px}.engine{font-size:13px;padding:12px 10px}.identity{padding-top:15px}.identity strong{font-size:14px}.identity small{font-size:12px}
@media(max-width:900px){aside{height:auto;padding:16px}#channels{display:flex;overflow-x:auto}.channel{flex:0 0 auto}.nav-intro{margin:18px 0 10px}.sidebar-footer{padding-top:10px}}

/* Refined channel rail: one calm, consistent row per channel. */
@media(min-width:901px){
  .shell{grid-template-columns:256px minmax(0,1fr)}
  aside{padding:28px 16px 18px;background:linear-gradient(165deg,#1b2a3a,#121d29 75%)}
  aside .brand{padding:0 6px}.nav-intro{margin:38px 0 14px;padding:0 8px}
  #channels{display:flex;flex-direction:column;gap:4px;overflow-y:auto}
  #channels>.channel{display:flex;align-items:center;gap:10px;min-height:42px;width:100%;padding:5px 9px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none}
  #channels>.channel:hover{background:#ffffff0b}
  #channels>.channel.active{background:linear-gradient(100deg,#5274d633,#5274d614);border-color:#9fb5ff35;box-shadow:inset 3px 0 #92aaff}
  #channels .channel-number{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border-radius:8px;background:#ffffff0a;color:#a8b9d0;font-size:12px;line-height:1}
  #channels .channel.active .channel-number{background:#7d98f233;color:#edf2ff}
  #channels .channel-name{flex:1;min-width:0;font-size:13px;font-weight:500;white-space:nowrap}
  #channels .channel-queue{flex:0 0 auto;border:0;background:transparent;color:#b7c9f1;font-size:11px;padding:0 2px}
  #channels .channel-queue:not(.has-queue){display:none}
  #channels .channel-state{flex:0 0 auto;gap:5px;padding:0;background:transparent!important;border:0;font-size:11px;font-weight:400;line-height:1.4}
  #channels .channel-state:before{width:5px;height:5px}
  #channels .channel-state.attention{color:#df9d97} #channels .channel-state.idle{color:#9dc8b0} #channels .channel-state.busy{color:#d5c394}
  .sidebar-footer{padding-top:16px}.engine{margin:0 1px;padding:11px 8px;border-top:1px solid #ffffff12;border-bottom:1px solid #ffffff0b;background:transparent}
}
@media(max-width:900px){#channels .channel-queue:not(.has-queue){display:none}}

/* Spread the ten channels through the available sidebar height. */
@media(min-width:901px){
  #channels{flex:1 1 auto;justify-content:space-evenly;min-height:0}
  #channels>.channel{flex:0 0 auto;min-height:44px}
  .sidebar-footer{flex:0 0 auto}
}
@media(min-width:901px) and (max-height:700px){
  #channels{justify-content:flex-start;gap:4px}
  #channels>.channel{min-height:40px}
}

.result-download-selection {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 12px 0 8px;
  color: var(--muted);
  font-size: 14px;
}
.result-download-selection button:disabled { opacity: .58; cursor: not-allowed; }
.result-selection-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-top: 8px;
  padding: 5px 6px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #fafbfc;
}
.result-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #657183;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.result-index { color: #8993a2; font-size: 12px; font-variant-numeric: tabular-nums; }
.result-select input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); cursor: inherit; }
.result-select:hover { background: #f0f3f8; }
.result-select:has(input:checked) { border-color: #d8e0ff; background: #edf1ff; color: var(--accent); }
.result-select:has(input:checked) .result-index { color: inherit; }
.result-select:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.result .result-selection-bar .download-link,
.result .result-selection-bar .result-correct {
  width: auto;
  min-height: 32px;
  margin: 0;
  padding: 5px 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
}
.result .result-selection-bar .download-link { margin-left: auto; }
.result .result-selection-bar .result-correct { border-color: transparent; background: transparent; color: #657183; }
.result .result-selection-bar .result-correct:hover { background: #eef1f6; }

/* Four independent image hover actions. */
.result-media{position:relative;border-radius:9px;isolation:isolate}
/* Image actions appear on hover; clicking the image opens the existing viewer. */
.result-actions{position:absolute;left:8px;bottom:8px;z-index:3;display:flex;justify-content:flex-start;gap:4px;width:max-content;max-width:calc(100% - 16px);padding:0;border-radius:7px;background:transparent;opacity:0;pointer-events:none;transition:opacity .15s}
.result-media::after{content:"";position:absolute;inset:auto 0 0;height:68px;border-radius:0 0 9px 9px;background:linear-gradient(transparent,rgba(18,20,24,.32));z-index:2;opacity:0;pointer-events:none;transition:opacity .15s}
.result-media:hover::after,.result-media:focus-within::after{opacity:1}
.result-media:hover .result-actions,.result-media:focus-within .result-actions{opacity:1;pointer-events:auto}
.result-actions .result-action{position:relative;display:inline-flex;align-items:center;justify-content:center;width:32px;min-width:0;min-height:32px;padding:6px;margin:0;border:0;border-radius:5px;background:transparent;color:#fff;font-size:12px;line-height:1.4;white-space:nowrap;box-shadow:none}
.result-actions .result-action svg{width:21px;height:21px;flex-shrink:1;display:block;pointer-events:none}
.result-action-label{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);padding:5px 8px;border-radius:5px;background:rgba(0,0,0,.92);color:#fff;opacity:0;pointer-events:none;transition:opacity .12s;font-weight:400}
.result-action:first-child .result-action-label{left:0;transform:none}
.result-action:last-child .result-action-label{left:auto;right:0;transform:none}
.result-action:hover .result-action-label,.result-action:focus-visible .result-action-label{opacity:1}
.result-actions .result-action:hover:not(:disabled){background:rgba(32,34,38,.52);color:#fff;transform:none}
.result-actions .result-action-delete:hover:not(:disabled){background:#a42e37;color:#fff}
.result-actions .result-action:focus-visible{outline:2px solid #fff;outline-offset:-2px}
.result-actions .result-action:disabled{opacity:.55}
@media(hover:none){.result-actions{opacity:1;pointer-events:auto}.result-media::after{opacity:1}.result-actions .result-action{width:40px;min-height:40px}}
.result-correction-preview{display:block;max-width:100%;width:240px;height:220px;object-fit:contain;justify-self:center;border-radius:9px;background:#f3f4f6}
.result-correction-dialog textarea{resize:none;min-height:110px}
#prompt{box-sizing:border-box;height:auto;min-height:160px;resize:none;overflow-y:hidden}

.result-selection-bar { min-height:0; margin-top:6px; padding:0; border:0; background:transparent; }
.result-selection-bar:empty { display:none; }
.result-correction-dialog form { gap:14px; }
.result-correction-dialog .job-actions { justify-content:flex-end; padding-top:14px; border-top:1px solid #edf0f4; }
.result-correction-dialog .job-actions button { width:auto; min-width:92px; }
.result-correction-dialog .error:empty { display:none; }
@media(max-width:540px){ .result-correction-preview{width:160px;height:150px} .result-correction-dialog .job-actions button{flex:1} }

/* Keep each original and its background operations in one stable result slot. */
.result-version-group{min-width:0;break-inside:avoid;display:flex;flex-direction:column;gap:14px;margin:0 0 12px}
.result-version-group>.result{margin:0;break-inside:avoid}
.result-version-name{margin:0 0 6px;color:#647087;font-size:12px;font-weight:500;line-height:1.5;overflow-wrap:anywhere}
.result-version-group>.result+.result{padding-top:12px;border-top:1px solid #e4e9f1}
.result-version-placeholder{position:relative;isolation:isolate;overflow:hidden;min-height:250px;aspect-ratio:1;box-sizing:border-box;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:24px 18px;border:1px solid #dce3f2;border-radius:14px;background:radial-gradient(ellipse at 50% 0%,#edf0ff 0%,#f7f9fd 55%,#fbfcfe 100%);text-align:center;color:#748199;font-size:13px;line-height:1.6;box-shadow:inset 0 0 0 5px #ffffff85}
.result-version-placeholder strong{font-size:17px;font-weight:600;color:#2e3d5a;letter-spacing:.2px}
.result-progress-icon{display:grid;place-items:center;position:relative;width:48px;height:48px;margin-bottom:6px;border:1px solid #dce3fa;border-radius:15px;background:#fff;box-shadow:0 6px 20px #405bd511;color:#526bd8}
.result-progress-icon svg{width:23px;height:23px}
.result-version-placeholder[aria-busy="true"] .result-progress-icon:after{content:"";position:absolute;inset:-5px;border:2px solid transparent;border-top-color:#7c8fe4;border-right-color:#bac6f8;border-radius:19px;animation:result-progress-spin 2.4s linear infinite}
.result-progress-kicker{color:#697da6;font-size:10px;font-weight:600;letter-spacing:2px}
.result-progress-detail{font-size:12px;max-width:230px}
.result-progress-steps{display:flex;gap:5px;align-self:stretch;max-width:290px;width:100%;padding:0;margin:18px auto 0;list-style:none}
.result-progress-steps li{position:relative;flex:1;padding-top:11px;color:#96a0b3;font-size:11px;line-height:1.5}
.result-progress-steps li:before{content:"";position:absolute;left:0;right:0;top:0;height:3px;border-radius:3px;background:#e3e8f1}
.result-progress-steps .done{color:#6a7dac}.result-progress-steps .done:before{background:#7a8edc}
.result-progress-steps .current{color:#405bd5;font-weight:600}.result-progress-steps .current:before{background:#405bd5}
.result-version-placeholder[aria-busy="true"] .result-progress-steps .current:before{background:linear-gradient(90deg,#a4b3f3,#405bd5,#a4b3f3);background-size:200% 100%;animation:result-progress-flow 2s ease-in-out infinite}
.result-progress-note{font-size:10px;color:#8a96ab;margin-top:3px}
.result-version-complete{float:right;margin-left:6px;padding:1px 6px;border-radius:5px;background:#edf7f0;color:#47845a;font-size:10px;font-weight:500}
.result-version-retry{font-size:12px;padding:6px 13px;margin-top:5px}
@keyframes result-progress-spin{to{transform:rotate(360deg)}}
@keyframes result-progress-flow{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.result-version-placeholder[aria-busy="true"] .result-progress-icon:after,.result-version-placeholder[aria-busy="true"] .result-progress-steps .current:before{animation:none}}
.result-version-placeholder.failed,.result-version-placeholder.needs_attention{background:#fff8f3;border-color:#ead5c7}
.result-version-error{font-size:12px;line-height:1.6;color:#9c4b3f;white-space:pre-wrap;overflow-wrap:anywhere;margin:7px 0 0;max-width:100%}

.result-version-cancel{align-self:flex-start;margin:6px 0 0;padding:5px 9px;font-size:12px;color:#65718a;border:1px solid #dce2ee;background:#fff}
.result-original-expired{padding:10px;border:1px dashed #d8dee8;border-radius:8px;background:#fafbfe}
.result-original-expired .job-meta{font-size:12px;margin:3px 0 0}

/* Result selection and ZIP controls. */
.result > .result-selection{position:static;display:flex;align-items:center;gap:7px;width:fit-content;max-width:100%;min-height:40px;margin:8px 0 0;padding:7px 10px;border:1px solid #cdd6e6;border-radius:7px;background:#fff;color:#334155;font-size:14px;font-weight:600;line-height:1.2;cursor:pointer;user-select:none}
.result-selection input[type=checkbox]{display:block;flex:none;width:18px;height:18px;margin:0;padding:0;accent-color:#405bd5;cursor:pointer}
.result > .result-selection:focus-within{outline:3px solid #9aacf6;outline-offset:2px}
.image-selected .result-media{box-shadow:0 0 0 3px #405bd5}
.image-selected .result-selection{background:#405bd5;border-color:#405bd5;color:#fff}
.image-selected .result-selection input[type=checkbox]{accent-color:#273da9}
.image-selection-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:11px 14px;margin:12px 0 15px;border:1px solid #dbe2f2;border-radius:9px;background:#f7f9ff}
.image-selection-count{font-size:14px;color:#53647e}
.image-selection-bar button{min-height:40px;padding:9px 14px;font-size:14px}
@media(max-width:650px){.result > .result-selection{padding:6px 8px;font-size:13px}.image-selection-bar{padding:10px;gap:8px}}

.image-selection-bar .primary:disabled{background:#a6b1f1;color:#fff;opacity:1;box-shadow:none}
.tasks .job-actions .download-link:disabled{opacity:.45;cursor:not-allowed}

/* Pending recovery is work in progress, not a user-action warning. */
.status.recovering{background:#edf3ff;color:#315bc5;border:1px solid #dce7ff}

/* Separate waiting and running task filters. */
.task-filters .filter-count{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:22px;padding:0 6px;border-radius:6px;background:#e5eaf4;color:#53627b;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.task-filters [data-filter="queued"]:not(.active) .filter-count{background:#fff0d5;color:#98621e}
.task-filters [data-filter="active"]:not(.active) .filter-count{background:#e6edff;color:#405bd5}
.task-filters .filter-button.active .filter-count{background:#ffffff28;color:#fff}

/* Waiting and starting are distinct from active generation. */
.channel-state.queued{color:#8daeda} .channel-title-line .channel-state.queued{color:#496889} #channels .channel-state.queued{color:#a1b7d6}
