:root{font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;color:#202b42;background:#f4f6fa;font-synthesis:none;--blue:#455fe8;--blue-dark:#354ed0;--line:#e8ecf3;--muted:#8a94a7;--green:#14886f}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button,a,summary,select{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}button{border:0;background:none;color:inherit}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.symbols{width:0;height:0;position:absolute}[hidden]{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #455fe860;outline-offset:3px}.topbar{height:94px;display:flex;align-items:center;gap:28px;max-width:1320px;margin:auto;padding:0 36px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700;letter-spacing:.2px}.brand-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:14px;color:#fff;background:var(--blue);box-shadow:0 7px 16px #455fe826}.brand small{display:block;font-size:10px;font-weight:400;letter-spacing:1px;margin-top:5px;color:var(--muted)}.direction{display:flex;gap:13px;align-items:center;font-size:12px;padding:9px 14px;border-radius:30px;background:#e9edfa;color:#5e6eae}.direction [lang=ug]{font-family:"Geeza Pro","Tahoma",serif;font-size:15px}.connection{margin-inline-start:auto;color:var(--muted);font-size:11px;display:flex;gap:7px;align-items:center}.connection::before{content:"";width:6px;height:6px;border-radius:50%;background:#b1b8c8}.connection.ready::before{background:#36ab8e}.connection.error::before{background:#e19c47}main{max-width:1320px;margin:0 auto;padding:30px 36px 0}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:4px 0 30px;gap:16px}.eyebrow{color:var(--blue);font-size:11px;font-weight:650;letter-spacing:1px;display:inline-flex;align-items:center;gap:7px}.eyebrow::before{content:"";height:5px;width:5px;border-radius:50%;background:var(--blue)}h1{font-size:29px;letter-spacing:-.8px;font-weight:700;line-height:1.5;margin:10px 0 8px}.page-heading p{font-size:13px;color:#7a869c;margin:0;line-height:1.8}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:26px;align-items:start}.main-column,.side-column{display:flex;flex-direction:column;gap:22px;min-width:0}.card{background:#fff;border:1px solid var(--line);border-radius:20px;box-shadow:0 5px 16px -13px #28376922;min-width:0}.card-heading{min-height:70px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid #eff2f7}.card-heading h2{display:flex;align-items:center;gap:10px;font-size:14px;margin:0;font-weight:650}.number{font-family:monospace;font-size:12px;color:#9ca9c8;letter-spacing:-.5px}.muted{color:var(--muted);font-size:11px;line-height:1.8}.dropzone{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:400px;margin:24px;border:1.5px dashed #cdd5ed;border-radius:15px;cursor:pointer;background:linear-gradient(135deg,#f9faff,#f2f5fd);transition:background .15s,border-color .15s}.dropzone:hover,.dropzone.dragover{border-color:var(--blue);background:#eef2ff}.dropzone input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.dropzone strong{font-size:19px;margin-top:18px;font-weight:650}.dropzone>span:not(.upload-art):not(.choose-file){color:#97a1b5;font-size:12px}.dropzone small{font-size:10px;color:#9ca5b6;line-height:1.8;max-width:90%;text-align:center;margin-top:20px}.choose-file{display:inline-flex;align-items:center;justify-content:center;gap:22px;padding:12px 23px;background:var(--blue);border-radius:9px;color:#fff;font-size:12px;font-weight:550;margin-top:15px;box-shadow:0 7px 15px #455fe824}.upload-art{position:relative;display:grid;place-items:center;width:86px;height:100px;border:2px solid #cbd4f4;border-radius:12px;background:#fff;box-shadow:10px 9px 0 -2px #e4eafc;transform:rotate(-8deg);color:#7387d6}.upload-art>svg{width:34px;height:34px;transform:rotate(8deg)}.art-tag{position:absolute;right:-30px;bottom:9px;background:#dae3ff;border:3px solid #f7f9ff;border-radius:8px;color:#637bc7;padding:3px 11px;font:17px "Geeza Pro",serif;transform:rotate(12deg)}.settings-card,.progress-card,.export-card{padding:0 22px 20px}.side-column .card-heading{border:0;padding:21px 0 18px;min-height:0}.side-column .card-heading h2{font-size:13px}.pill{padding:4px 8px;background:#edf0fc;color:#7280bd;border-radius:5px;font-size:9px}.field-label{display:block;margin:2px 0 10px;font-size:11px;color:#6d7a90}select{width:100%;min-height:42px;padding:9px 10px;background:#f7f8fc;color:#3b4863;border:1px solid #e8ecf4;border-radius:8px;font-size:11px;cursor:pointer;min-width:0}.toggle-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:19px 0;font-size:11px;line-height:1.7}.toggle-row strong{font-size:11px;font-weight:500}.toggle-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}input[type=checkbox]{appearance:none;position:relative;width:34px;height:20px;min-width:34px;border-radius:12px;background:#dfe4ee;cursor:pointer;transition:background .15s;margin:0}input[type=checkbox]::after{content:"";position:absolute;left:3px;top:3px;background:#fff;width:14px;height:14px;border-radius:50%;box-shadow:0 1px 3px #0001;transition:transform .15s}input[type=checkbox]:checked{background:var(--blue)}input[type=checkbox]:checked::after{transform:translateX(14px)}details{border-top:1px solid var(--line);padding-top:14px;margin:0 0 16px}summary{cursor:pointer;font-size:11px;color:#65728d;line-height:1.7}summary span{float:right}.range-label{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#75819a;margin-top:17px}.range-label output{font-variant-numeric:tabular-nums;color:#526486}input[type=range]{width:100%;accent-color:var(--blue);cursor:pointer;margin:14px 0 3px}.button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 19px;border-radius:9px;min-height:44px;font-size:12px;line-height:1.5;font-weight:550;cursor:pointer}.primary{background:var(--blue);color:#fff;box-shadow:0 4px 9px #455fe818}.primary:hover:not(:disabled){background:var(--blue-dark)}.secondary{border:1px solid #dfe5f0;color:#65738d;background:#fff}.success{background:var(--green);color:#fff}.full{width:100%}.compact{min-height:36px;padding:7px 12px;font-size:11px}.privacy-note{color:#a1a9b8;font-size:10px;line-height:1.9;margin:13px 0 0}.steps{list-style:none;margin:3px 0 0;padding:0}.steps li{position:relative;display:flex;gap:13px;padding:0 0 25px}.steps li:last-child{padding-bottom:2px}.steps li:not(:last-child)::after{content:"";position:absolute;height:calc(100% - 30px);width:1px;top:30px;left:13px;background:#edf0f6}.step-circle{width:27px;height:27px;display:grid;place-items:center;border:1px solid #e7ebf3;border-radius:50%;background:#fafbfe;color:#a1aabd;font-size:10px;flex-shrink:0}.steps strong{display:block;font-size:11px;color:#8390a8;font-weight:500;line-height:1.7}.steps small{display:block;font-size:10px;color:#b0b8c6;margin-top:4px;line-height:1.5}.steps li.current strong{color:var(--blue);font-weight:600}.steps li.current .step-circle{border-color:#d9e1ff;background:#ebefff;color:var(--blue)}.steps li.done .step-circle{color:var(--green);border-color:#d7eee8;background:#eef9f5}.steps li.done strong{color:#647689}.progress-track{height:4px;border-radius:3px;background:#eff2fa;overflow:hidden;margin-top:20px}#progress-bar{height:100%;width:0;background:var(--blue);transition:width .3s}#progress-message{font-size:11px;color:#697992;line-height:1.8;margin:12px 0 4px;overflow-wrap:anywhere}.task-controls{display:flex;gap:7px;flex-wrap:wrap;margin-top:9px}.text-button{font-size:11px;color:var(--blue);min-height:36px;padding:6px 0;cursor:pointer}.player-wrap{position:relative;margin:20px 20px 0;border-radius:12px;overflow:hidden;background:#141c2e;line-height:0}video{width:100%;max-height:470px;display:block;background:#141c2e}video::cue{font-family:"Geeza Pro","Tahoma",serif;background:#10182bd9;color:#fff;font-size:1.2em}.crop-guide{position:absolute;left:3%;right:3%;top:70%;bottom:2%;border:1px dashed #a9baff;background:#536af318;pointer-events:none;line-height:1.3}.crop-guide span{position:absolute;top:-19px;right:0;color:#dce4ff;font-size:10px;background:#324c9ecf;padding:2px 5px;border-radius:4px}.file-row{display:flex;align-items:center;gap:9px;padding:12px 22px;font-size:11px;color:#72819b}.file-row>svg{width:16px;height:16px}.file-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}.now-caption{padding:17px 24px 21px;border-top:1px solid var(--line);background:#fafbff;border-radius:0 0 20px 20px;min-height:100px}.caption-kicker{font-size:9px;color:#9aa6bf}.now-caption>p[lang=ug]{font-family:"Geeza Pro","Tahoma",serif;color:#314265;font-size:23px;line-height:1.9;margin:4px 0 0;text-align:center;white-space:pre-wrap}.now-zh{color:#96a1b5;font-size:12px;line-height:1.7;text-align:center;margin:5px 0 0}.editor-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 23px;border-bottom:1px solid var(--line);font-size:11px;color:#8995aa}.editor-toolbar>span{line-height:1.7}.editor-toolbar .button{background:#edf1ff;color:var(--blue);white-space:nowrap}.cue{padding:18px 24px;border-bottom:1px solid #edf0f6}.cue.active{background:#f7f9ff;border-inline-start:3px solid #738af3;padding-inline-start:21px}.cue-heading{display:flex;align-items:center;gap:8px;font-size:10px;color:#9ba7bc;min-height:35px}.cue-number{min-width:24px;font-variant-numeric:tabular-nums}.cue-heading input[type=text]{min-width:0;width:103px;border:1px solid #e7ebf3;border-radius:5px;background:#f8fafe;font:10px monospace;text-align:center;color:#7788a8;min-height:30px;padding:4px}.cue-heading .play-cue{display:inline-flex;gap:3px;align-items:center;color:#7f93d8;margin-inline-start:auto;min-height:34px;font-size:10px}.play-cue svg{width:13px;height:13px}.cue label.field-label{font-size:9px;margin:12px 0 2px;color:#a4aec0}.cue textarea{width:100%;border:0;background:transparent;outline-offset:1px;resize:vertical;min-height:38px;padding:4px 0;color:#64728b;font-size:13px;line-height:1.8}.cue textarea[lang=ug]{font-family:"Geeza Pro","Tahoma",serif;min-height:64px;font-size:22px;line-height:1.8;color:#2c3f65}.cue-bottom{display:flex;justify-content:space-between;gap:12px;align-items:center}.review-label{display:flex;align-items:center;gap:7px;font-size:10px;color:#8b98af;min-height:36px}.review-label input{transform:scale(.8);transform-origin:center}.delete-cue{color:#a0a9ba;font-size:10px;min-height:36px}.cue-note{font-size:10px;color:#b07f33;background:#fffaec;border-radius:5px;padding:7px 9px;line-height:1.7;margin:5px 0}.editor-bottom{display:flex;justify-content:space-between;align-items:center;padding:13px 24px;gap:12px}#save-state{font-size:10px;color:var(--muted)}#speech-reference{margin:0 24px 20px}#speech-reference p{font-size:12px;color:#697992;line-height:1.9;white-space:pre-wrap}#speech-reference small{font-size:10px;color:#a0a9ba}.warnings{margin:15px 23px 0;background:#fff8e9;color:#a17a3e;padding:10px 13px;border-radius:8px;font-size:11px;line-height:1.9}.warnings p{margin:2px 0}.export-card .muted{margin-top:0}.export-card .field-label{margin-top:15px}.export-card .button{margin-top:7px}.export-card #preview-export{width:100%;text-align:center}.srt-link{display:flex;justify-content:space-between;align-items:center;color:#8898b8;border-bottom:1px solid #edf0f5;font-size:11px;min-height:45px;margin-top:8px}.recent-card{padding:0 3px}.recent-heading{display:flex;justify-content:space-between;align-items:center;margin:4px 0 11px}.recent-heading h2{font-size:11px;color:#8391aa;font-weight:500;margin:0}.recent-heading>span{font-size:9px;color:#a8b1c2}.recent-job{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%;text-align:start;padding:11px 1px;border-bottom:1px solid #e5eaf3;font-size:10px;color:#8d9bb2}.recent-job span:first-child{min-width:0;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.recent-job.current{color:var(--blue)}#notice{position:fixed;z-index:50;left:50%;bottom:24px;transform:translateX(-50%);width:max-content;max-width:calc(100% - 32px);padding:13px 20px;border-radius:11px;background:#263449;color:#fff;box-shadow:0 8px 30px #172c3f25;font-size:12px;line-height:1.7}#browser-format{padding:0 22px 12px}footer{display:flex;justify-content:space-between;gap:20px;color:#a2acbe;font-size:10px;padding:29px 3px 28px;line-height:1.8}#task-state{font-size:9px}.export-card>h2{font-size:13px}@media(min-width:1100px){.side-column{position:sticky;top:20px;max-height:calc(100vh - 40px);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}.editor-card{scroll-margin-top:24px}}@media(max-width:900px){.topbar{padding-inline:24px}.workspace{grid-template-columns:minmax(0,1fr) 300px;gap:18px}main{padding-inline:24px}.dropzone{margin:18px;min-height:365px}.settings-card,.progress-card,.export-card{padding-inline:18px}.cue{padding-inline:18px}.cue.active{padding-inline-start:15px}.cue-heading{gap:5px}.cue-heading input[type=text]{width:88px}}@media(max-width:740px){.topbar{height:80px;padding:0 20px;gap:15px}.brand{font-size:15px}.brand-icon{width:37px;height:37px;border-radius:11px}.brand small{font-size:9px}.connection{font-size:0;gap:0}.connection::before{height:7px;width:7px}.direction{margin-inline-start:auto;font-size:10px;gap:8px;padding:7px 10px}.direction [lang=ug]{font-size:13px}main{padding:17px 16px 0}.page-heading{margin:0 0 22px;align-items:flex-start}h1{font-size:23px;letter-spacing:-.5px;margin-top:8px}.page-heading p{font-size:11px}.eyebrow{font-size:10px}.workspace{grid-template-columns:1fr;gap:18px}.main-column,.side-column{gap:18px}.card{border-radius:16px}.card-heading{padding:17px 18px;min-height:60px}.dropzone{margin:16px;min-height:320px;gap:8px}.dropzone strong{font-size:17px}.dropzone small{font-size:9px;margin-top:15px;max-width:85%}.upload-art{transform:rotate(-7deg) scale(.85);margin-top:0}.dropzone strong{margin-top:5px}.choose-file{margin-top:12px;padding:11px 23px}.side-column .card-heading{padding-block:18px 17px}.settings-card,.progress-card,.export-card{padding-inline:20px}.settings-card .full{min-height:46px}.toggle-row{padding-block:18px}.privacy-note{font-size:10px}.steps{display:grid;grid-template-columns:1fr 1fr;gap:20px 12px}.steps li{padding:0!important;gap:10px}.steps li::after{display:none}.steps strong{font-size:10px}.steps small{font-size:9px}.player-wrap{margin:16px 16px 0}.file-row{padding-inline:18px}.now-caption{padding:12px 18px 17px}.now-caption>p[lang=ug]{font-size:22px}.cue{padding:16px 18px}.cue.active{padding-inline-start:15px}.cue-heading input[type=text]{width:90px;flex:1}.cue-heading .play-cue{font-size:0;min-width:30px;justify-content:center}.play-cue svg{width:17px;height:17px}.cue-number{min-width:19px}.editor-toolbar{padding:13px 18px;font-size:10px}.cue textarea[lang=ug]{font-size:21px}.editor-bottom{padding-inline:18px}.page-heading .secondary{min-height:36px;padding:7px 10px;font-size:10px;white-space:nowrap}.page-heading .secondary span{display:none}footer{font-size:9px;flex-direction:column;gap:4px;padding-top:24px}#editor{scroll-margin-top:14px}}@media(max-width:359px){.topbar{padding-inline:15px;gap:8px}.brand{font-size:14px;gap:8px}.direction{padding:6px 8px;gap:6px}.brand small{letter-spacing:0}.topbar .connection{display:none}h1{font-size:20px}.dropzone{min-height:300px}.cue-heading input[type=text]{width:70px;font-size:9px}.now-caption>p[lang=ug]{font-size:20px}.page-heading .button{padding:5px 8px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
.error{color:#bc653f!important}input[aria-invalid=true]{border-color:#d8866d!important;background:#fff7f4!important}@media(max-width:740px){.main-column,.side-column{display:contents}.video-card{order:0}.settings-card{order:1}.progress-card{order:2}.editor-card{order:3}.export-card{order:4}.recent-card{order:5}}
video::cue{font-size:var(--subtitle-font-size,24px)}
@media(max-width:740px){.field-label,select,.toggle-row,.toggle-row strong,.text-button{font-size:12px}.side-column .card-heading h2{font-size:14px}.button{font-size:13px}.privacy-note{font-size:11px}.steps strong{font-size:12px}.steps small{font-size:10px}}
@media(max-width:740px){.page-heading{flex-wrap:wrap}.page-heading>div{flex:1 1 100%}.page-heading h1{font-size:25px;line-height:1.45}.page-heading .secondary{margin-left:auto;font-size:12px}.editor-toolbar{font-size:12px}.privacy-note{line-height:1.7}.cue-heading input[type=text]{font-size:11px;min-height:36px}}
.review-shortcuts{display:flex;justify-content:flex-end;gap:22px;padding:14px 22px;font-size:13px;border-top:1px solid var(--line)}.review-shortcuts a{color:var(--blue);text-decoration:none;padding:5px 0}#editor,#export-card{scroll-margin-top:20px}
.cue.needs-review{border-inline-start:3px solid #d59a31;background:#fffaf0;padding-inline-start:21px}.editor-toolbar{flex-wrap:wrap}.editor-toolbar>span{flex:1 1 180px}.editor-toolbar #filter-review{white-space:nowrap;font-size:12px}.cue.needs-review .cue-number{color:#a16a16;font-weight:700}@media(max-width:740px){.cue.needs-review{padding-inline-start:15px}}
.source-review-item{padding:.8rem 0;border-top:1px solid #e3e7ef;overflow-wrap:anywhere}.source-review-item p{margin:.4rem 0;white-space:pre-wrap}.source-review-item strong{font-size:.8rem}#source-review{margin-top:1rem;font-size:.85rem;line-height:1.6}#source-review summary{cursor:pointer;color:#5653c5;font-weight:600}#source-review-records{max-height:26rem;overflow:auto;padding-right:.35rem}

/* Integrated pages use the shared translation-site foundation and components. */
body[data-integrated] .standalone-header { display: none; }
body[data-integrated] main { max-width: none; margin: 0; padding: 0; }
body[data-integrated] .workspace { grid-template-columns: minmax(0, 1fr) 320px; gap: .75rem; }
body[data-integrated] .main-column, body[data-integrated] .side-column { gap: .75rem; }
body[data-integrated] .side-column { position: static; max-height: none; overflow: visible; }
body[data-integrated] .card { border-color: var(--border-color); border-radius: var(--panel-radius); box-shadow: none; }
body[data-integrated] .video-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .625rem 1rem; padding: .875rem 1rem; margin: 0 0 .75rem; background: var(--surface-color); border: 1px solid var(--border-color); border-radius: var(--panel-radius); }
body[data-integrated] .video-title { min-width: 0; }
body[data-integrated] h1 { margin: 0; color: var(--text-color-primary); font-size: 1.125rem; line-height: 1.5; font-weight: 600; letter-spacing: 0; }
body[data-integrated] .page-heading p { margin-top: .25rem; color: var(--text-color-secondary); font-size: .8125rem; line-height: 1.6; }
body[data-integrated] .video-toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; min-width: 0; }
body[data-integrated] .font-preferences { margin: 0; }
body[data-integrated] .mt-access { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; font-size: .75rem; color: var(--text-color-secondary); }
body[data-integrated] .mt-access p { margin: 0; font-size: .75rem; }
body[data-integrated] .connection { margin: 0; font-size: .75rem; color: var(--text-color-secondary); gap: .375rem; }
body[data-integrated] .card-heading { min-height: 50px; padding: .875rem 1rem; border-color: var(--border-color); }
body[data-integrated] .card-heading h2, body[data-integrated] .side-column .card-heading h2 { font-size: .9375rem; font-weight: 600; color: var(--text-color-primary); }
body[data-integrated] .number { color: #8b9bb5; font-size: .75rem; }
body[data-integrated] .muted, body[data-integrated] .field-label, body[data-integrated] .privacy-note,
body[data-integrated] .caption-kicker, body[data-integrated] .cue label.field-label,
body[data-integrated] .recent-heading h2, body[data-integrated] .recent-heading > span { color: var(--text-color-secondary); }
body[data-integrated] .muted { font-size: .75rem; }
body[data-integrated] .field-label { margin: .125rem 0 .5rem; font-size: .8125rem; }
body[data-integrated] .settings-card, body[data-integrated] .progress-card, body[data-integrated] .export-card { padding: 0 1rem 1rem; }
body[data-integrated] .side-column .card-heading { min-height: 0; padding: 1rem 0 .875rem; border: 0; }
body[data-integrated] .pill { background: #edf3ff; color: #2456bd; font-size: .6875rem; border-radius: 5px; }
body[data-integrated] main select:not([data-uyghur-font]) { min-height: 38px; padding: .5rem .625rem; border-color: #e8ecf3; border-radius: 7px; background: #f8faff; color: #46556d; font-size: .8125rem; line-height: 1.4; transition: background-color 160ms ease, border-color 160ms ease; }
body[data-integrated] main select:hover:not(:disabled) { background: #f0f5ff; border-color: #d5e1f8; }
body[data-integrated] main select:focus-visible, body[data-integrated] .cue textarea:focus-visible, body[data-integrated] .cue-heading input:focus-visible { outline: 2px solid #96b5ef; outline-offset: 2px; }
body[data-integrated] .button, body[data-integrated] .choose-file { min-height: 38px; padding: .5rem 1rem; border-radius: var(--button-radius); font-size: .875rem; font-weight: 500; line-height: 1.4; gap: .5rem; box-shadow: none; transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 120ms ease; }
body[data-integrated] .button.compact { min-height: 34px; padding: .375rem .625rem; font-size: .8125rem; }
body[data-integrated] .primary, body[data-integrated] .choose-file { background: var(--primary-color); color: white; }
body[data-integrated] .primary:hover:not(:disabled), body[data-integrated] .choose-file:hover { background: var(--primary-hover-color); }
body[data-integrated] .secondary { color: #526078; border-color: var(--border-color); background: #fff; }
body[data-integrated] .secondary:hover:not(:disabled) { background: #eef3fb; color: var(--primary-color); }
body[data-integrated] .success { background: #18795f; }
body[data-integrated] .button:active:not(:disabled) { transform: scale(.98); }
body[data-integrated] .button svg { width: 17px; height: 17px; }
body[data-integrated] .dropzone { min-height: 270px; margin: 1rem; gap: .5rem; border: 1px dashed #c5d5ed; border-radius: 7px; background: #f8faff; }
body[data-integrated] .dropzone:hover, body[data-integrated] .dropzone.dragover { border-color: #96b5ef; background: #f0f5ff; }
body[data-integrated] .upload-art { width: 50px; height: 50px; margin: 0 0 .25rem; border: 1px solid #dce6f8; border-radius: 8px; box-shadow: none; background: #edf3ff; color: var(--primary-color); transform: none; }
body[data-integrated] .upload-art > svg { width: 24px; height: 24px; transform: none; }
body[data-integrated] .art-tag { display: none; }
body[data-integrated] .dropzone strong { margin: 0; font-size: 1rem; font-weight: 500; }
body[data-integrated] .dropzone > span:not(.upload-art):not(.choose-file) { font-size: .8125rem; color: var(--text-color-secondary); }
body[data-integrated] .choose-file { margin-top: .5rem; }
body[data-integrated] .dropzone small { margin-top: .5rem; color: var(--text-color-secondary); font-size: .75rem; }
body[data-integrated] .toggle-row { padding: .875rem 0; font-size: .8125rem; }
body[data-integrated] .toggle-row strong { font-size: .8125rem; }
body[data-integrated] .toggle-row small, body[data-integrated] .privacy-note { color: var(--text-color-secondary); font-size: .75rem; line-height: 1.7; }
body[data-integrated] details { border-color: var(--border-color); }
body[data-integrated] summary, body[data-integrated] .range-label, body[data-integrated] .text-button { font-size: .8125rem; }
body[data-integrated] .range-label { color: var(--text-color-secondary); }
body[data-integrated] .text-button { color: var(--primary-color); }
body[data-integrated] .steps strong { color: #526078; font-size: .8125rem; }
body[data-integrated] .steps small { color: var(--text-color-secondary); font-size: .75rem; }
body[data-integrated] .steps li.current .step-circle { border-color: #c4d6fb; background: #edf3ff; color: var(--primary-color); }
body[data-integrated] .steps li.current strong { color: var(--primary-color); }
body[data-integrated] #task-state { font-size: .75rem; }
body[data-integrated] #progress-message { font-size: .8125rem; color: #526078; }
body[data-integrated] .player-wrap { margin: 1rem 1rem 0; border-radius: 7px; }
body[data-integrated] .file-row { padding: .625rem 1rem; color: var(--text-color-secondary); font-size: .75rem; }
body[data-integrated] .now-caption { min-height: 0; padding: .75rem 1rem; border-color: var(--border-color); border-radius: 0 0 8px 8px; background: #f5f8ff; }
body[data-integrated] [lang=ug], body[data-integrated] video::cue { font-family: var(--uyghur-font,'ALKATIP Basma'), 'Geeza Pro', serif; }
body[data-integrated] .caption-kicker { font-size: .75rem; }
body[data-integrated] .now-caption > p[lang=ug] { color: var(--text-color-primary); font-size: 1.125rem; line-height: 1.9; }
body[data-integrated] .now-zh { color: var(--text-color-secondary); font-size: .8125rem; }
body[data-integrated] .review-shortcuts { padding: .5rem 1rem; gap: 1.25rem; font-size: .8125rem; }
body[data-integrated] .editor-toolbar { padding: .625rem 1rem; font-size: .8125rem; color: var(--text-color-secondary); }
body[data-integrated] .editor-toolbar .button { background: #edf3ff; color: #2456bd; }
body[data-integrated] .cue { padding: .75rem 1rem; border-color: var(--border-color); }
body[data-integrated] .cue.active { padding-inline-start: calc(1rem - 3px); border-inline-start-color: #789fed; background: #f5f8ff; }
body[data-integrated] .cue.needs-review { padding-inline-start: calc(1rem - 3px); }
body[data-integrated] .cue-heading { gap: .5rem; color: var(--text-color-secondary); }
body[data-integrated] .cue-heading input[type=text] { font-size: .75rem; color: #526078; border-radius: 6px; background: #f8faff; min-height: 32px; }
body[data-integrated] .cue label.field-label { font-size: .75rem; margin: .5rem 0 .125rem; }
body[data-integrated] .cue textarea, body[data-integrated] .cue textarea[lang=ug] { font-family: inherit; color: var(--text-color-primary); font-size: 1rem; line-height: 1.8; }
body[data-integrated] .cue textarea[lang=ug] { min-height: 3.5rem; font-size: 1.0625rem; }
body[data-integrated] .cue .play-cue, body[data-integrated] .review-label, body[data-integrated] .delete-cue { font-size: .75rem; }
body[data-integrated] .review-label, body[data-integrated] .delete-cue { color: var(--text-color-secondary); }
body[data-integrated] .editor-bottom { padding: .625rem 1rem; }
body[data-integrated] #save-state { font-size: .75rem; }
body[data-integrated] #source-review summary { color: var(--primary-color); }
body[data-integrated] .recent-card { padding: 0 1rem 1rem; border: 1px solid var(--border-color); border-radius: 8px; background: #fff; }
body[data-integrated] .recent-heading { padding-top: 1rem; gap: .5rem; flex-wrap: wrap; }
body[data-integrated] .recent-heading h2 { font-size: .875rem; font-weight: 600; color: var(--text-color-primary); }
body[data-integrated] .recent-heading > span, body[data-integrated] .recent-job { font-size: .75rem; }
body[data-integrated] .recent-job { padding: .75rem 0; color: #526078; border-color: var(--border-color); }
body[data-integrated] .recent-job.current { color: var(--primary-color); }
body[data-integrated] .srt-link { font-size: .8125rem; color: var(--primary-color); }
body[data-integrated] .video-footer-note { display: block; margin-top: .25rem; }
body[data-integrated] #notice { background: var(--text-color-primary); border-radius: 4px; font-size: .875rem; }
@media (max-width: 1000px) {
 body[data-integrated] .workspace { grid-template-columns: repeat(2,minmax(0,1fr)); }
 body[data-integrated] .main-column, body[data-integrated] .side-column { display: contents; }
 body[data-integrated] .video-card { order: 0; grid-column: 1 / -1; }
 body[data-integrated] .settings-card { order: 1; }
 body[data-integrated] .progress-card { order: 2; }
 body[data-integrated] .editor-card { order: 3; grid-column: 1 / -1; }
 body[data-integrated] .export-card { order: 4; grid-column: 1 / -1; }
 body[data-integrated] .recent-card { order: 5; grid-column: 1 / -1; }
}
@media (max-width: 759px) {
 body[data-integrated] .video-toolbar { grid-template-columns: minmax(0,1fr); }
 body[data-integrated] .video-toolbar-actions { justify-content: space-between; }
 body[data-integrated] .font-preferences { justify-content: flex-start; }
 body[data-integrated] .page-heading > div { flex: initial; }
 body[data-integrated] .cue-heading .play-cue { font-size: 0; min-width: 34px; }
 body[data-integrated] .cue-heading input[type=text] { width: 88px; }
 body[data-integrated] .connection { display: flex; font-size: .75rem; }
}
@media (max-width: 600px) {
 body[data-integrated] .workspace { grid-template-columns: minmax(0,1fr); }
 body[data-integrated] .video-toolbar { padding: .75rem; }
 body[data-integrated] .video-toolbar-actions { gap: .5rem; }
 body[data-integrated] .dropzone { min-height: 250px; margin: .75rem; }
 body[data-integrated] .card-heading { padding: .75rem; }
 body[data-integrated] .player-wrap { margin: .75rem .75rem 0; }
 body[data-integrated] .mt-access { align-items: flex-start; gap: .25rem; }
 body[data-integrated] .mt-access p { flex-basis: 100%; }
 body[data-integrated] .steps { gap: 1rem .75rem; }
 body[data-integrated] .font-preferences { flex: 1 1 190px; }
 body[data-integrated] .font-preferences select { max-width: 100%; }
 body[data-integrated] .site-footer { padding-inline: .25rem; }
}
@media (pointer: coarse) {
 body[data-integrated] .button, body[data-integrated] .choose-file, body[data-integrated] main select, body[data-integrated] .text-button { min-height: 44px; }
 body[data-integrated] .cue-heading input[type=text] { min-height: 44px; font-size: 16px; }
 body[data-integrated] .cue textarea:focus { font-size: 16px; }
}
body[data-integrated] .card { transition: border-color 180ms ease, box-shadow 180ms ease; }
body[data-integrated] .editor-card:focus-within { border-color: #b6c8ed; box-shadow: var(--focus-glow); }
body[data-integrated] .primary:hover:not(:disabled) { box-shadow: 0 3px 8px rgba(37,99,235,.16); }
body[data-integrated] .dropzone:has(input:disabled) { cursor: default; }
body[data-integrated] .dropzone:has(input:disabled) .choose-file { background: #edf3ff; color: #2456bd; }

/* Shared language selection remains independent from interface language. */
.video-language-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:10px; margin-bottom:8px; }
.video-language-grid > div { min-width:0; }
.video-language-grid select { width:100%; font-size:12px; }
#now-ug:lang(zh), #now-zh:lang(zh), .cue textarea:lang(zh) { font-family:-apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; }
#now-ug:lang(bo), #now-zh:lang(bo), .cue textarea:lang(bo) { font-family:'Noto Serif Tibetan',serif; line-height:1.9; }
video::cue { font-family:var(--subtitle-font-family,'Noto Naskh Arabic'),sans-serif; }

.subtitle-position { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem; padding: .625rem 1rem; color: var(--muted); font-size: .8125rem; }
.subtitle-position .button { flex-shrink: 0; }
.subtitle-position output { font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
    .subtitle-position .button, body[data-integrated] .subtitle-position .button { min-height: 44px; }
}

.caption-preview-image { position: absolute; display: block; pointer-events: none; }
.caption-preview-status { padding: 0 1rem .5rem; color: var(--muted); font-size: .8125rem; }

.video-output-language { grid-column: 1 / -1; }
