.subtitle-workbench{box-sizing:border-box;width:min(1060px,calc(100vw - 32px));max-height:90vh;padding:24px;border:1px solid #d9dce5;border-radius:18px;background:#fff;color:#202636;overflow:auto;font:14px/1.5 'Segoe UI','Microsoft YaHei',sans-serif}
.subtitle-workbench::backdrop{background:#10152199}
.subtitle-workbench header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}
.subtitle-workbench h2{margin:0;font-size:24px}.subtitle-workbench h3{font-size:17px;margin:0 0 16px}
.subtitle-workbench header p{margin:8px 0}.subtitle-workbench section{padding:22px 0;border-top:1px solid #e8eaf0}
.subtitle-workbench button,.subtitle-workbench select,.subtitle-workbench input,.subtitle-workbench textarea{font:inherit;box-sizing:border-box}
.subtitle-workbench input,.subtitle-workbench textarea,.subtitle-workbench select{background:#f8f9fc;color:#202636}
.subtitle-workbench button,.subtitle-workbench a{padding:9px 15px;border:1px solid #d5d9e4;border-radius:8px;background:#fff;color:#30384b;cursor:pointer;text-decoration:none}
.subtitle-workbench button:hover,.subtitle-workbench a:hover{background:#f3f0ff}.subtitle-workbench button:disabled{opacity:.5;cursor:not-allowed}
.subtitle-workbench :focus-visible{outline:3px solid #a492ed;outline-offset:2px}
.subtitle-workbench .subtitle-primary{background:#7152ce;color:#fff;border-color:#7152ce}
.subtitle-note{color:#697386;line-height:1.65;font-size:13px}
.subtitle-source{position:relative;width:fit-content;max-width:100%;margin:18px auto}
.subtitle-source video{display:block;max-width:100%;max-height:310px}
.subtitle-region{position:absolute;border:2px solid #a88aff;background:#a88aff22;pointer-events:none;box-sizing:border-box}
.subtitle-ranges{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.subtitle-ranges label{font-size:13px;color:#596478}.subtitle-ranges input{display:block;width:100%;margin-top:6px;border:1px solid #ccd3df;border-radius:6px;padding:8px}
.subtitle-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.subtitle-actions select{padding:8px;max-width:260px;border:1px solid #ccd3df;border-radius:6px}
.subtitle-cues{margin-top:18px;max-height:400px;overflow:auto}
.subtitle-cue{display:grid;grid-template-columns:110px 1fr 1fr;gap:12px;padding:12px 0;border-top:1px solid #edf0f5}
.subtitle-cue span{font-size:12px;color:#6b7586}.subtitle-cue textarea{width:100%;resize:vertical;border:1px solid #ccd3df;border-radius:7px;padding:9px;line-height:1.5}
.subtitle-status{color:#6344be}.subtitle-error{color:#b02d3d;white-space:pre-wrap}
.subtitle-result video{display:block;width:100%;max-height:480px;margin-bottom:16px}
@media(max-width:640px){.subtitle-workbench{width:calc(100vw - 16px);padding:16px;max-height:94vh}.subtitle-workbench h2{font-size:20px}.subtitle-ranges{grid-template-columns:repeat(2,1fr)}.subtitle-cue{grid-template-columns:1fr}.subtitle-cue textarea{min-height:70px}.subtitle-actions{align-items:stretch}.subtitle-actions>button,.subtitle-actions>a{flex:1}.subtitle-actions label{width:100%}.subtitle-actions select{width:100%;max-width:none}}
