:root{font-family:"Segoe UI","Microsoft YaHei",system-ui,sans-serif;color:#1e2933;background:#f4f6f8;font-size:14px;--bg:#f4f6f8;--paper:#fff;--line:#dfe5e9;--muted:#637582;--teal:#087f8c;--teal-soft:#e8f4f4;--green:#17775b;--amber:#956018;--danger:#b8333c;--copper:#aa643e;--radius:6px}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit;color:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--teal)}svg{vertical-align:middle;flex:none}h1,h2,h3,p{margin:0}h1{font-size:26px;line-height:1.4;font-weight:650}h2{font-size:18px;font-weight:650;line-height:1.5}h3{font-size:15px;font-weight:650}p{line-height:1.75}small{font-size:12px;line-height:1.6}strong{font-weight:650}hr{border:0;border-top:1px solid var(--line);margin:28px 0}input:not([type=checkbox]):not([type=range]):not([type=color]),textarea,select{border:1px solid #cfd9e0;background:#fff;border-radius:var(--radius);padding:9px 11px;min-height:36px;outline:none;max-width:100%}input[type=color]{border:1px solid #cfd9e0;border-radius:6px;background:white;height:38px;width:100%;padding:4px}textarea{resize:vertical;line-height:1.65;min-height:64px}input[type=range]{accent-color:var(--teal);cursor:pointer;min-width:0}input[type=checkbox]{accent-color:var(--teal);width:17px;height:17px;flex:none;margin:0}input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 2px #087f8c1f}button:focus-visible,a:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--teal);outline-offset:3px}input:disabled,textarea:read-only,select:disabled{background:#f4f6f8;color:#526574}input:invalid:not(:focus):not(:placeholder-shown){box-shadow:none}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;min-height:36px;padding:7px 14px;border:1px solid #d5dfe6;border-radius:6px;background:#fff;font-weight:500;line-height:1.4;white-space:nowrap;text-decoration:none;transition:background .12s,border-color .12s}.button:hover:not(:disabled){background:#f4f8f9;border-color:#9ab9c0}.button.primary{background:var(--teal);color:#fff;border-color:var(--teal)}.button.primary:hover:not(:disabled){background:#076d78}.button.danger{color:var(--danger)}.button.danger:hover:not(:disabled){background:#fff1f1;border-color:#cf8990}.button.small{padding:5px 10px;min-height:32px;font-size:13px}.icon-button{width:36px;padding:7px;flex-shrink:0}.text-button{padding:0;min-height:24px;background:transparent;border:0;justify-content:flex-start;color:var(--teal);white-space:normal;text-align:left}.text-button:hover:not(:disabled){background:transparent;text-decoration:underline}.action-group{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.muted{color:var(--muted)}small.muted{display:block}.notice{padding:12px 16px;border:1px solid #c4e1e4;background:#f0f8f8;color:#315c65;border-radius:6px;line-height:1.75;font-size:13px;margin-bottom:16px}.notice.warning{border-color:#ead5ae;background:#fff9ed;color:#80591f}.danger-note{color:var(--danger);background:#fff3f3;border-radius:6px;padding:14px;margin-bottom:18px}.form-error{background:#fff1f2;color:#a52b34;padding:12px 14px;border-radius:6px;border:1px solid #edc5c8;margin-top:14px;line-height:1.6}.form-error .button{margin:8px 6px 0 0}.form-error[hidden]{display:none}.loading,.initial-loading{padding:70px;text-align:center;color:var(--muted)}.skip-link{position:fixed;top:-50px;left:10px;z-index:100;padding:10px;background:white}.skip-link:focus{top:6px}.topbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:16px;border-bottom:1px solid var(--line);background:white;position:relative;z-index:10}.breadcrumbs{display:flex;align-items:center;gap:10px;min-width:0}.breadcrumbs .separator{color:#9dacb9}.breadcrumbs .nav-button{border:0;background:transparent;padding:4px 6px;font-size:15px;min-height:32px;max-width:260px;overflow:hidden;text-overflow:ellipsis}.current-crumb{font-size:15px;font-weight:600;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.top-actions{display:flex;align-items:center;gap:16px;flex-shrink:0}.avatar{width:32px;height:32px;min-height:32px;background:#e5f1f1;border-radius:50%;padding:0;color:var(--teal);border:1px solid #d1e6e8;font-weight:650}.page{max-width:1600px;margin:auto;padding:28px 32px 48px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.page-heading p{margin-top:6px}.surface{border:1px solid var(--line);background:var(--paper);border-radius:8px;overflow:hidden}.section-toolbar{display:flex;justify-content:space-between;align-items:center;padding:15px 20px;gap:16px;border-bottom:1px solid var(--line);flex-wrap:wrap}.section-toolbar h2{margin:0}.tabs{display:flex;gap:14px;align-items:stretch}.tabs .button{border:0;border-radius:0;background:transparent;position:relative;padding:12px 13px;color:#526575;min-height:42px}.tabs .button.active{color:var(--teal);font-weight:650}.tabs .button.active:after{content:"";position:absolute;bottom:-1px;height:3px;left:0;right:0;background:var(--teal)}.tabs .button:hover{background:#f7fbfb}.project-tabs{border-bottom:1px solid var(--line);margin-bottom:24px}.search-field{display:flex;align-items:center;gap:8px;position:relative}.search-field svg{position:absolute;left:11px;color:var(--muted)}.search-field input{padding-left:36px!important;min-width:250px}.table-scroll{overflow:auto}.data-table{width:100%;border-collapse:collapse;line-height:1.6;white-space:normal}.data-table th{background:#f3f6f8;color:#576c7d;text-align:left;font-weight:550;font-size:13px;padding:13px 20px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:19px 20px;border-bottom:1px solid #e7edf1;vertical-align:middle}.data-table tbody tr:last-child td{border-bottom:0}.data-table tbody tr:hover{background:#fbfdfd}.data-table td:last-child{white-space:nowrap}.project-cell{display:flex;align-items:center;gap:16px;min-width:220px}.project-title{font-size:17px;font-weight:650;color:var(--ink)}.project-cell p{font-size:13px;margin-top:4px;max-width:360px}.project-thumb{width:70px;height:58px;flex:none;background:linear-gradient(135deg,#e4f0f0,#eff4f7);color:#497f87;display:flex;align-items:center;justify-content:center;border:1px solid #d7e6e8;border-radius:5px}.continue-strip{display:flex;align-items:center;gap:20px;background:white;border:1px solid var(--line);border-radius:8px;padding:15px 20px;margin-bottom:20px}.continue-strip strong{display:block;font-size:17px;margin:5px 0}.continue-strip>.button{margin-left:auto}.progress-view{width:150px;max-width:100%}.progress-label{font-size:13px;font-variant-numeric:tabular-nums;margin-bottom:7px;white-space:nowrap}.progress-track{height:6px;background:#e8eef1;border-radius:9px;overflow:hidden}.progress-track span{display:block;background:var(--teal);height:100%;border-radius:9px}.episode-progress .progress-view{width:200px;margin-bottom:7px}.role-label{display:inline-block;background:#f0f4f6;border:1px solid #e0e8ec;border-radius:4px;padding:3px 8px;font-size:12px;white-space:nowrap}.empty-state{min-height:250px;padding:50px 24px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:13px;text-align:center;color:var(--muted)}.empty-state h2{color:#314553}.empty-state p{max-width:560px}.empty-state>.button{margin-top:4px}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:18px;min-width:0}.field-label{font-weight:550;font-size:13px}.field small{color:var(--muted)}.field input,.field textarea,.field select{width:100%}.check-field{display:flex;align-items:center;gap:9px;font-size:13px;line-height:1.6}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.modal{padding:0;border:1px solid var(--line);border-radius:10px;box-shadow:0 20px 70px #182d4430;background:white;color:#1e2933;width:min(560px,calc(100vw - 32px));max-width:1120px;max-height:calc(100dvh - 48px);overflow:hidden}.modal[open]{display:flex;flex-direction:column}.modal.wide{width:min(1080px,calc(100vw - 40px))}.modal::backdrop{background:#142b424d;backdrop-filter:blur(2px)}.modal-header{padding:17px 22px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:20px;flex-shrink:0}.modal-header .icon-button{border:0;color:var(--muted)}.modal-body{padding:24px;overflow:auto;overscroll-behavior:contain;min-height:0}.modal-footer{border-top:1px solid var(--line);padding:15px 24px;display:flex;justify-content:flex-end;gap:10px;flex-shrink:0}.menu-list{display:flex;flex-direction:column;gap:6px}.menu-list>.button{justify-content:flex-start}.identity-block{display:flex;flex-direction:column;gap:5px;padding:0 4px 20px;color:var(--muted)}.identity-block strong{font-size:18px;color:#203442}.shortcut-list{display:grid;grid-template-columns:160px 1fr;gap:17px 14px;margin:0;font-size:13px}.shortcut-list dd{margin:0;line-height:1.6}kbd{font-family:Consolas,monospace;background:#f1f5f6;border:1px solid #dce5e9;border-radius:4px;padding:3px 6px}.settings-layout{display:grid;grid-template-columns:1.25fr 1fr;gap:24px}.settings-form{padding:28px}.settings-form h2{margin-bottom:20px}.settings-form>.button{margin-top:20px}.style-layout{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,1fr);gap:28px}.style-layout .tabs{margin-bottom:22px}.style-canvas{aspect-ratio:16/9;position:relative;background:linear-gradient(150deg,#203441,#496877);border-radius:6px;margin:8px 0 16px;overflow:hidden}.style-sample{position:absolute;white-space:pre;max-width:90%;line-height:1.4}.auth-layout{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:32px}.auth-panel{width:100%;max-width:470px}.auth-card{padding:38px 36px 24px;background:white;border:1px solid var(--line);border-radius:7px}.auth-heading{border-left:3px solid var(--teal);padding-left:17px;margin-bottom:30px}.auth-heading h1{font-size:26px;margin-bottom:5px}.auth-submit{width:100%;margin-top:22px;min-height:42px}.auth-caption{text-align:center;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:21px;margin-top:25px}.password-field{position:relative}.password-field .icon-button{position:absolute;right:3px;top:25px;background:transparent;border:0;color:var(--muted)}.password-field input{padding-right:40px!important}#notifications{position:fixed;bottom:24px;right:24px;z-index:50;display:flex;flex-direction:column;gap:8px;max-width:min(440px,calc(100vw - 32px));pointer-events:none}.toast{padding:12px 18px;background:#233d48;color:white;border-radius:6px;box-shadow:0 5px 25px #17313d33;font-size:13px;line-height:1.6}.toast.error{background:#a5323a}.toast.warning{background:#845f24}.badge{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}.status-completed{color:#17775b}.status-review{color:#956018}.status-proofread{color:#506985}.status-translation,.status-source{color:#667580}.badge.status-completed:before,.badge.status-review:before{display:none}.badge:before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor}.workspace{height:calc(100dvh - 52px);display:flex;flex-direction:column;min-height:650px}.work-tabs{background:white;border-bottom:1px solid var(--line);padding:0 16px;display:flex;align-items:center;justify-content:space-between;flex:none}.work-upper{display:grid;grid-template-columns:minmax(300px,var(--video-width,47%)) 8px minmax(400px,1fr);padding:10px 10px 0;height:var(--upper-height,43vh);min-height:330px;max-height:62vh;flex-shrink:0}.video-card,.editor-card{background:white;border:1px solid var(--line);border-radius:7px;min-width:0;overflow:hidden}.video-card{display:flex;flex-direction:column}.video-frame{background:#1d2a34;position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;overflow:hidden}.video-frame video{height:100%;width:100%;object-fit:contain}.video-frame .video-placeholder{display:flex;flex-direction:column;align-items:center;gap:14px;color:#d5e2e7;padding:20px;text-align:center}.video-placeholder p{font-size:13px}.video-overlay{position:absolute;pointer-events:none;inset:0;overflow:hidden}.subtitle-layer{position:absolute;white-space:pre-wrap;line-height:1.35;max-width:92%;text-align:center;overflow-wrap:anywhere}.video-notice{position:absolute;top:10px;left:10px;right:10px;font-size:12px;color:white;background:#223f48d9;padding:5px 8px;border-radius:4px;pointer-events:none}.video-controls{padding:7px 10px;flex:none}.video-seek{width:100%;display:block;height:12px;margin:0 0 8px}.video-control-row{display:flex;align-items:center;gap:6px}.video-control-row .icon-button{border:0;min-width:28px;width:28px;padding:5px;min-height:30px}.video-control-row .volume{width:65px}.video-time{font-family:Consolas,monospace;font-size:12px;white-space:nowrap;margin-left:3px}.video-control-row select{font-size:12px;min-height:28px;padding:4px;max-width:90px}.video-control-row .spacer{flex:1}.resize-column{cursor:col-resize;touch-action:none}.resize-row{height:8px;flex:none;cursor:row-resize;touch-action:none}.resize-row:hover,.resize-column:hover{background:#afd9dd88}.editor-card{padding:13px 16px;overflow:auto}.editor-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.cue-nav{display:flex;align-items:center;gap:11px}.cue-nav strong{font-size:21px;font-variant-numeric:tabular-nums}.segmented{display:inline-flex;border:1px solid var(--line);background:#f4f7f9;border-radius:5px;padding:2px}.segmented .button{border:0;background:transparent;min-height:27px;font-size:12px;padding:4px 14px}.segmented .active{background:var(--teal);color:white}.time-fields{display:grid;grid-template-columns:1fr 1fr .85fr;gap:12px}.time-fields .field{margin-bottom:11px;gap:5px}.time-fields .field-label{font-size:12px;color:var(--muted)}.time-fields input{font-family:Consolas,monospace;padding:7px 9px!important;min-height:32px!important}.draft-field{display:grid;grid-template-columns:65px minmax(0,1fr);gap:10px;align-items:start;margin-bottom:10px}.draft-field>label{padding-top:9px;font-size:13px;font-weight:550}.draft-field textarea{width:100%;height:43px;min-height:40px;padding:7px 10px;resize:vertical;font-size:14px}.draft-field.active textarea{min-height:73px;border-color:#80b5bc}.draft-field.note textarea{background:#f7f9fa;min-height:37px;height:38px;font-size:13px}.draft-tools{display:flex;justify-content:flex-end;gap:8px;margin-bottom:8px}.draft-tools .button{font-size:12px;min-height:26px;padding:3px 8px}.editor-notice{font-size:12px;padding:8px 10px;border-radius:4px;background:#fff6e5;color:#805b25;margin-bottom:9px}.editor-notice .button{min-height:25px;font-size:12px;padding:3px 8px;margin-left:8px}.save-chip{font-size:12px;white-space:nowrap;color:var(--muted)}.save-chip.saved{color:var(--green)}.save-chip.unsaved{color:var(--amber)}.save-chip.failed{color:var(--danger)}.top-progress{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}.cue-section{background:white;border:1px solid var(--line);border-radius:7px;margin:0 10px 10px;min-height:130px;display:flex;flex-direction:column;flex:1;overflow:hidden}.cue-toolbar{padding:10px 13px;display:flex;align-items:center;gap:9px;flex-wrap:wrap;border-bottom:1px solid var(--line);flex:none}.cue-toolbar strong{margin-right:12px;white-space:nowrap}.cue-toolbar .search-field input{min-width:220px;max-width:280px;min-height:33px!important}.cue-toolbar .button{min-height:33px;padding:6px 10px;font-size:13px}.cue-toolbar .spacer{flex:1}.filter-chips{display:flex;gap:8px;padding:6px 13px;border-bottom:1px solid var(--line);font-size:12px;align-items:center;flex-wrap:wrap}.filter-chips:empty{display:none}.cue-grid-viewport{overflow:auto;min-height:0;flex:1;position:relative}.cue-grid{min-width:950px;position:relative}.cue-grid-head,.cue-grid-row{display:grid;grid-template-columns:54px 202px 66px minmax(160px,1fr) minmax(160px,1fr) minmax(160px,1fr) 94px;align-items:center}.cue-grid.mono .cue-grid-head,.cue-grid.mono .cue-grid-row{grid-template-columns:54px 202px 66px minmax(210px,1fr) minmax(210px,1fr) 94px}.cue-grid-head{height:35px;background:#f0f5f7;position:sticky;top:0;z-index:3;color:#576b7b;font-size:12px;border-bottom:1px solid var(--line)}.cue-grid-head>div{padding:0 11px}.cue-grid-body{position:relative}.cue-grid-row{height:48px;position:absolute;left:0;right:0;border-bottom:1px solid #edf1f4;font-size:13px;background:white;cursor:pointer}.cue-grid-row>div{padding:4px 11px;min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;overflow-wrap:anywhere}.cue-grid-row .time-cell{font-family:Consolas,monospace;font-size:11px;white-space:nowrap}.cue-grid-row:hover{background:#f5fafb}.cue-grid-row.selected{background:#e8f4f4}.cue-grid-row.current{box-shadow:inset 3px 0 var(--teal)}.cue-grid-row.current .number-cell{color:var(--teal);font-weight:700}.cue-grid-row.playing .number-cell:before{content:"▶";font-size:9px;color:var(--copper);position:absolute;left:3px}.cue-grid-row.playing .time-cell{color:var(--copper)}.table-empty{padding:36px;text-align:center;color:var(--muted)}.selection-status{font-size:12px;color:var(--teal)}.timeline-panel{background:white;border:1px solid var(--line);border-radius:6px;margin:0 10px 8px;flex:none;overflow:hidden}.timeline-toolbar{display:flex;gap:10px;align-items:center;padding:7px 12px;border-bottom:1px solid var(--line);font-size:12px;flex-wrap:wrap}.timeline-toolbar input[type=range]{width:120px}.timeline-scroll{overflow:auto;position:relative;max-height:200px}.timeline-content{position:relative;min-width:100%;padding-top:23px}.timeline-ruler{position:absolute;height:23px;left:0;right:0;top:0;background:#f5f8f9;border-bottom:1px solid var(--line);cursor:crosshair}.timeline-tick{position:absolute;top:0;height:23px;font:10px Consolas,monospace;color:#6b7d89;border-left:1px solid #c9d5dd;padding:3px 4px;white-space:nowrap}.timeline-track{height:36px;border-bottom:1px solid #edf1f3;position:relative;background:#fcfdfd}.timeline-track-label{position:sticky;left:0;z-index:5;display:inline-flex;align-items:center;height:100%;width:53px;padding:0 8px;background:#f2f6f8dd;font-size:11px;color:#536b7b;pointer-events:none}.timeline-clip{position:absolute;top:5px;height:26px;background:#d8edef;border:1px solid #9bc9d0;border-radius:4px;font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;cursor:grab;touch-action:none;padding:4px 8px;color:#2b626e}.timeline-clip.screen{background:#e8e4f4;border-color:#c4bbdf;color:#665488}.timeline-clip.note{background:#f7eacb;border-color:#ddc68c;color:#87692c}.timeline-clip.current{outline:2px solid var(--teal);outline-offset:-1px}.clip-handle{position:absolute;top:0;bottom:0;width:7px;cursor:ew-resize;background:#2b626e20}.clip-handle.start{left:0}.clip-handle.end{right:0}.playhead{position:absolute;top:0;bottom:0;width:2px;background:var(--copper);pointer-events:none;z-index:6}.playhead:before{content:"";position:absolute;top:0;left:-4px;border-left:5px solid transparent;border-right:5px solid transparent;border-top:8px solid var(--copper)}.drawer{margin:0 0 0 auto;height:100dvh;max-height:100dvh;border-radius:0;width:min(600px,100vw)}.split-preview{display:grid;grid-template-columns:1fr 1fr;gap:18px}.preview-pane{background:#f5f8f9;padding:14px;border:1px solid var(--line);border-radius:5px;white-space:pre-wrap;line-height:1.7;min-height:75px}.import-steps{display:flex;gap:16px;margin-bottom:24px;color:var(--muted);font-size:13px}.import-steps .active{color:var(--teal);font-weight:650}.file-drop{border:1px dashed #a4bdc7;border-radius:7px;padding:27px;text-align:center;background:#f7fbfc;margin:16px 0}.file-drop input{width:100%;margin-top:12px}.stats-strip{display:flex;gap:24px;flex-wrap:wrap;padding:14px 18px;background:#f3f7f8;border:1px solid var(--line);border-radius:6px;margin:15px 0}.stats-strip strong{display:block;font-size:21px}.stats-strip span{font-size:12px;color:var(--muted)}.busy-note{padding:10px;color:var(--teal)}.error-list{color:var(--danger);font-size:13px;line-height:1.8;max-height:190px;overflow:auto}.preview-table{max-height:280px;overflow:auto}.preview-table td,.preview-table th{padding:9px 12px!important;font-size:12px}.full-preview{height:75vh;display:flex;flex-direction:column}.full-preview .video-frame{flex:1}.unsaved-count{font-size:12px;color:var(--amber)}
@media(max-width:1250px){.page{padding:24px}.topbar{padding:0 14px}.top-actions{gap:10px}.top-progress{display:none}.work-upper{grid-template-columns:minmax(280px,44%) 7px minmax(360px,1fr)}.video-control-row .volume{display:none}.video-time{font-size:11px}.cue-toolbar{gap:7px}.cue-toolbar .search-field input{min-width:180px;width:210px}.cue-toolbar strong{margin-right:4px}.data-table th,.data-table td{padding-left:14px;padding-right:14px}.project-thumb{width:54px;height:50px}.project-cell{gap:11px}.style-layout{gap:18px}}
@media(max-width:900px){.page{padding:20px 16px}.page-heading{gap:12px;align-items:flex-start}.page-heading h1{font-size:23px}.breadcrumbs{gap:5px}.breadcrumbs .nav-button{font-size:13px;max-width:150px}.current-crumb{font-size:13px;max-width:180px}.top-actions>.save-chip{max-width:100px;white-space:normal;font-size:10px}.top-actions>.button.primary{font-size:12px;padding:6px 8px}.workspace{height:auto;min-height:calc(100dvh - 52px)}.work-upper{display:flex;flex-direction:column;height:auto;max-height:none;gap:12px;padding:12px}.video-card{min-height:260px;max-height:420px;height:42vw}.editor-card{overflow:visible}.resize-column,.resize-row{display:none}.cue-section{min-height:340px;height:45vh;flex:none}.timeline-panel{margin-top:6px}.work-tabs{padding:0 8px}.work-tabs>.action-group{max-width:40%;font-size:12px}.draft-field.active textarea{min-height:78px}.settings-layout,.style-layout{grid-template-columns:1fr}.style-canvas{max-height:220px}.modal.wide{width:calc(100vw - 24px)}.project-cell{min-width:210px}.progress-view{width:130px}.section-toolbar{padding:12px;gap:10px}.section-toolbar .tabs{gap:8px}.data-table{min-width:700px}.continue-strip{padding:14px}.continue-strip .project-thumb{display:none}.shortcut-list{grid-template-columns:130px 1fr}.cue-toolbar .spacer{display:none}.video-control-row .volume{display:block}.video-control-row select{max-width:110px}.video-time{font-size:12px}.video-control-row .icon-button{min-width:32px;width:32px}}
@media(max-width:550px){.topbar{padding:0 8px;gap:4px;height:50px}.breadcrumbs .separator{display:none}.breadcrumbs .nav-button{max-width:115px;padding:4px;font-size:12px}.breadcrumbs .nav-button svg{display:none}.current-crumb{max-width:88px;font-size:12px}.top-actions{gap:6px}.top-actions .save-chip{display:none}.avatar{width:28px;height:28px;min-height:28px}.page{padding:18px 12px}.page-heading{flex-wrap:wrap;gap:12px;margin-bottom:18px}.page-heading h1{font-size:22px}.page-heading p{font-size:13px}.page-heading>.action-group{width:100%;justify-content:flex-start}.section-toolbar{align-items:flex-start}.section-toolbar>.action-group{width:100%}.section-toolbar input[type=search],.search-field,.search-field input{width:100%;min-width:0!important}.section-toolbar>.tabs{width:100%}.project-tabs{gap:0;justify-content:space-between}.project-tabs .button{padding:10px;font-size:12px}.continue-strip{align-items:flex-start;gap:12px}.continue-strip>.button{font-size:12px;padding:6px 10px}.continue-strip strong{font-size:14px}.settings-form{padding:20px}.form-grid{gap:0 12px}.auth-layout{padding:18px}.auth-card{padding:28px 24px 20px}.auth-heading h1{font-size:23px}.modal,.modal.wide{width:100vw;max-width:100vw;height:100dvh;max-height:100dvh;border:0;border-radius:0;margin:0}.modal-header{padding:15px 16px}.modal-body{padding:20px 16px;flex:1}.modal-footer{padding:14px 16px}.modal-header h2{font-size:17px}.split-preview{grid-template-columns:1fr}.workspace{min-height:calc(100dvh - 50px)}.work-upper{padding:8px;gap:8px}.video-card{height:68vw;min-height:250px}.video-controls{padding:7px 5px}.video-control-row{gap:2px;flex-wrap:wrap}.video-control-row .volume{display:none}.video-time{font-size:11px}.video-control-row .icon-button{width:28px;min-width:28px;padding:4px}.video-control-row select{max-width:70px;padding:4px!important}.editor-card{padding:12px}.editor-heading{gap:6px}.cue-nav{gap:6px}.cue-nav strong{font-size:18px}.segmented .button{padding:5px 10px}.time-fields{gap:7px;grid-template-columns:1fr 1fr}.time-fields>.field:last-child{grid-column:1/-1;display:none}.time-fields input{font-size:12px}.draft-field{grid-template-columns:48px 1fr;gap:6px}.draft-field>label{font-size:12px}.draft-field textarea{font-size:14px}.draft-tools{flex-wrap:wrap}.cue-toolbar{padding:10px 8px;gap:6px}.cue-toolbar .search-field{width:calc(100% - 86px)}.cue-toolbar .search-field input{width:100%;max-width:none}.cue-toolbar>.button{font-size:12px;min-height:34px;padding:6px 9px}.cue-toolbar .button svg{width:14px;height:14px}.cue-section{margin:0 8px 8px;height:370px}.work-tabs{padding:0 4px}.work-tabs .tabs{gap:6px}.work-tabs .button{padding:10px 14px}.work-tabs>.action-group>.button{padding:5px;font-size:11px}.work-tabs>.action-group .check-field{display:none}.timeline-panel{margin:0 8px 8px}.stats-strip{gap:17px;padding:13px}.shortcut-list{grid-template-columns:1fr;gap:6px}.shortcut-list dd{margin-bottom:12px}#notifications{bottom:14px;right:16px}.notice{font-size:12px;padding:10px}.modal .data-table{min-width:500px}}
[hidden]{display:none!important}.filter-options{display:flex;flex-wrap:wrap;gap:14px 22px;margin:12px 0 22px}.mapping-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;align-items:center;margin:12px 0}.split-section{border-top:1px solid var(--line);padding-top:18px;margin-top:16px}.split-section>input[type=range]{width:100%;margin:14px 0}.split-section .field{margin-bottom:8px}.glossary-result{display:flex;justify-content:space-between;gap:16px;padding:15px 0;border-bottom:1px solid var(--line);align-items:center}.glossary-result .term-arrow{color:#a0adb7}.draft-recovery{margin-bottom:20px}.draft-recovery textarea{width:100%;margin:9px 0}.video-card:fullscreen{border:0;border-radius:0;background:#162633;width:100vw;height:100vh}.video-card:fullscreen .video-controls{background:white}.video-card:fullscreen .video-frame{height:calc(100vh - 70px)}
@media(pointer:coarse){.button,.icon-button{min-height:44px}.tabs .button{min-height:44px}.cue-grid-row{cursor:pointer}.video-control-row .icon-button{min-height:36px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.video-placeholder .button{color:#23313f;background:#fff}.term-matches{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0 8px}.term-matches span{font-size:12px}.term-matches mark{background:#e0f1eb;color:#075b5e}.form-error,.danger-note{white-space:pre-wrap}

@media(max-width:550px){.top-actions .save-chip{display:block;max-width:64px;font-size:10px}.breadcrumbs .nav-button{max-width:80px}.top-actions>.button.primary{padding:6px;font-size:11px;gap:3px}.top-actions{gap:4px}}
.field-error{color:#a52b34;font-size:12px;margin-bottom:8px;white-space:pre-wrap}.draft-field .field-error{grid-column:2}.term-matches>span{white-space:pre-wrap}

.partition-editor{margin:20px 0;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}
.partition-editor>.field{max-width:180px;margin-top:12px}
.partition-editor h3{margin-top:0}
.partition-editor select{min-width:180px;max-width:100%}

/* Current-cue controls follow the approved toolbar prototype. */
.editor-heading{align-items:flex-start;flex-wrap:wrap;row-gap:8px}
.editor-heading>.segmented{flex-shrink:0;margin:4px 0 0 auto}
.cue-controls{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;min-width:0;flex:1 0 auto;max-width:100%}
.cue-navigation{display:flex;align-items:center;gap:10px;flex:none}
.editor-heading .cue-nav{display:inline-flex;align-items:center;gap:0;border:1px solid #d5e1e7;border-radius:9px;background:#fff;min-height:38px}
.editor-heading .cue-nav .icon-button{border:0;background:transparent;width:30px;min-height:36px;padding:6px;border-radius:8px}
.editor-heading .cue-nav .icon-button:hover:not(:disabled){background:#eef5f7}
.cue-position{display:flex;align-items:baseline;gap:9px;padding:0 7px;white-space:nowrap;font-variant-numeric:tabular-nums}
.editor-heading .cue-nav strong{font-size:16px;min-width:1ch;text-align:center;line-height:1.4}
.cue-hash{color:#526a7b;font-size:14px}.cue-total{color:#698294;font-size:13px}
.cue-status{padding:4px 8px;background:#f1f6f8;color:#617b8c;border-radius:6px;font-size:12px;line-height:1.6;white-space:nowrap}
.cue-status.review{background:#fff6e5;color:#805b25}.cue-status.completed{background:#eaf5ef;color:#17775b}
.cue-playback-actions{display:flex;align-items:center;gap:8px;flex:none}
.cue-playback-actions .button{min-height:36px;padding:7px 10px;border-radius:7px;background:#fff;font-size:13px;gap:6px}
.cue-playback-actions .button[aria-pressed=true]{background:var(--teal-soft);border-color:#7bbcc2;color:var(--teal)}
.cue-playback-actions svg{width:17px;height:17px}
.cue-action-wrap{display:inline-flex;position:relative}
.cue-action-tip{position:absolute;top:calc(100% + 9px);left:50%;transform:translateX(-50%);z-index:20;visibility:hidden;opacity:0;pointer-events:none;background:#2b3944;color:#fff;border-radius:6px;padding:9px 12px;white-space:pre-line;width:max-content;max-width:260px;font-size:12px;line-height:1.6;font-weight:400;transition:opacity .12s}
.cue-action-tip:before{content:'';position:absolute;bottom:100%;left:50%;margin-left:-6px;border:6px solid transparent;border-bottom-color:#2b3944}
.cue-action-wrap:hover>.cue-action-tip,.cue-action-wrap:focus-within>.cue-action-tip{visibility:visible;opacity:1}
@media(max-width:550px){.editor-heading{gap:8px}.editor-heading>.segmented{margin:0 0 0 auto}.cue-controls{flex:1 1 100%}.cue-playback-actions{position:relative}.cue-action-wrap{position:static}.cue-action-tip{left:0;transform:none;width:250px;max-width:calc(100vw - 56px)}.cue-action-tip:before{left:40px}.cue-action-wrap:last-child .cue-action-tip:before{left:140px}}
@media(pointer:coarse){.editor-heading .cue-nav .icon-button{min-height:44px;width:36px}.cue-playback-actions .button{min-height:44px}}
