:root{font-family:system-ui,-apple-system,"PingFang TC","Microsoft JhengHei","Noto Sans CJK TC",sans-serif;color:#243b58;background:#f3f6fa;font-size:14px;--navy:#142e57;--blue:#2463db;--blue-hover:#174fbf;--border:#dce4ef;--muted:#637691;--surface:#fff;--soft:#f5f8fd;--radius:12px;--shadow:0 3px 14px #17375705;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.43;cursor:not-allowed}[hidden]{display:none!important}button,summary,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid #8bb4ff;outline-offset:3px}input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #dbe8ff;border-color:#7c9fd6!important}h1,h2,h3,p{margin:0}h2{font-size:15px;font-weight:650;color:var(--navy)}h3{font-size:14px;color:var(--navy);font-weight:650}.ui-icon{width:18px;height:18px;flex:none;vertical-align:middle}.button,.text-button,.icon-button{border:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;font-weight:550;transition:background .15s,border-color .15s,color .15s}.button{min-height:40px;padding:10px 16px;border:1px solid #d5deea;border-radius:8px;color:#385473;background:#fff;font-size:13px;line-height:1.3;white-space:nowrap}.button:hover:not(:disabled){border-color:#92b0da;background:#f3f7fe;color:#174da6}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:0 2px 4px #2463db14}.button.primary:hover:not(:disabled){background:var(--blue-hover);border-color:var(--blue-hover);color:white}.button.small{min-height:34px;padding:8px 11px;font-size:12px}.text-button{background:transparent;color:#426faa;padding:6px 2px;font-size:12px;line-height:1.5}.text-button:hover:not(:disabled){color:var(--blue-hover)}.icon-button{width:34px;height:34px;flex:none;background:transparent;color:#637691;font-size:23px;border-radius:7px}.icon-button:hover:not(:disabled){background:#edf3fd;color:var(--blue)}.danger{color:#b65a5a!important}.danger:hover:not(:disabled){background:#fff0f0!important;color:#9c3636!important}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.subtle{font-size:11px;color:var(--muted)}kbd{display:inline-flex;align-items:center;justify-content:center;min-width:21px;padding:2px 5px;border:1px solid #d5e1f1;border-bottom-width:2px;border-radius:4px;background:#f7faff;color:#637691;font:11px ui-monospace,monospace}
/* Persistent project actions. */
.header{height:76px;background:#fff;border-top:3px solid var(--blue);border-bottom:1px solid var(--border);display:flex;align-items:center;gap:28px;padding:0 32px;position:relative;z-index:5}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-size:21px;font-weight:750;letter-spacing:.5px;text-decoration:none;flex:none}.brand-mark{background:linear-gradient(135deg,#174bbd,#247bfb);color:#fff;border-radius:8px;padding:10px 9px;font-size:19px;letter-spacing:-1px;font-style:italic;line-height:1}.brand small{display:block;font-size:8px;color:#637691;letter-spacing:1.8px;margin-top:4px;font-weight:600}.project-name{padding-left:28px;border-left:1px solid var(--border);display:flex;flex-direction:column;gap:3px;min-width:0;margin-right:auto}.project-name label{font-size:10px;color:#637691}.project-name input{border:1px solid transparent;background:transparent;color:#334e70;font-size:13px;min-width:120px;width:240px;max-width:100%;padding:3px 4px;margin-left:-5px;border-radius:4px}.project-name input:hover{border-color:#e1e8f2}.header-actions{display:flex;align-items:center;gap:16px;flex:none}.save-state{font-size:11px;color:#637691;display:flex;gap:6px;align-items:center}.save-state:before{content:"";width:5px;height:5px;background:#87a0bf;border-radius:50%}.header-actions>.primary{padding:11px 17px}.toolbar-menu{position:relative}.toolbar-menu summary{list-style:none;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;border:1px solid #d9e2ee;padding:8px 11px;border-radius:7px;background:#fff;font-size:12px;color:#4e6788;min-height:34px;white-space:nowrap}.toolbar-menu summary::-webkit-details-marker{display:none}.toolbar-menu[open]>summary{background:#edf4ff;border-color:#b4cbed;color:#235ab5}.menu-content{position:absolute;right:0;top:calc(100% + 7px);width:204px;padding:6px;border:1px solid var(--border);background:#fff;border-radius:9px;box-shadow:0 10px 32px #1636571c;z-index:15}.menu-content>button{display:block;border:0;width:100%;padding:11px 12px;background:transparent;text-align:left;border-radius:5px;color:#3c587a;font-size:12px;font-weight:500}.menu-content>button:hover:not(:disabled){background:#eef4fe;color:var(--blue)}
main{max-width:1800px;margin:auto;padding:26px 32px 24px}.workspace-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}.eyebrow{display:block;font-size:9px;font-weight:650;color:#637691;letter-spacing:1.9px;margin-bottom:8px}.workspace-heading h1{font-size:26px;line-height:1.3;letter-spacing:.5px;font-weight:720;color:var(--navy)}.workspace-heading p{font-size:12px;color:#637691;margin-top:7px}.workflow{display:flex;gap:3px;align-items:center}.workflow button{display:flex;align-items:center;gap:9px;border:0;background:transparent;border-radius:7px;padding:10px 12px;color:#637691;font-size:12px;font-weight:550;white-space:nowrap}.workflow button>span{font:11px ui-monospace,monospace;color:#637691;background:#e8eef6;display:grid;place-items:center;width:26px;height:26px;border-radius:7px}.workflow button[aria-current=step]{color:#28589a;background:#e7effc}.workflow button[aria-current=step]>span{color:#fff;background:#2463db}.workflow button:hover:not(:disabled){background:#e8eef8;color:#244e8a}.workflow button.is-done>span{background:#dfeafa;color:#346eb4}
/* Three entry paths, compact while working. */
.source-panel{margin-bottom:24px}.source-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 11px}.source-heading h2{font-size:12px;font-weight:650;color:#586f8e}.source-heading>span{font-size:11px;color:#637691}.source-paths{display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px}.source-path-wrap{min-width:0}.source-path{position:relative;display:grid;grid-template-columns:36px 1fr;column-gap:13px;row-gap:17px;text-align:left;padding:17px 18px;width:100%;height:100%;background:#fff;border:1px solid var(--border);border-radius:10px;box-shadow:var(--shadow);color:var(--navy);transition:border-color .15s,background .15s}.source-path:hover{border-color:#8bb0e8;background:#fbfdff}.source-path.recommended{background:linear-gradient(120deg,#edf4ff,#f7faff);border-color:#c4d8f6}.path-icon{display:grid;place-items:center;width:36px;height:36px;border:1px solid #e2eaf5;background:#f4f7fc;border-radius:9px;color:#527cad}.recommended .path-icon{background:#e2edff;border-color:#caddfa;color:#2463db}.path-title{display:block;font-size:14px;font-weight:650;line-height:1.5}.path-description{display:block;font-size:11px;color:#637691;line-height:1.7;margin-top:3px}.path-action{grid-column:2;display:flex;align-items:center;justify-content:space-between;gap:12px;color:#4b78b9;font-size:12px;font-weight:600}.path-action .ui-icon{width:16px;height:16px}.has-cues .source-path{display:flex;align-items:center;gap:10px;padding:12px 14px}.has-cues .path-icon{height:29px;width:29px;border-radius:7px;flex:none}.has-cues .path-icon .ui-icon{width:16px;height:16px}.has-cues .path-title{font-size:12px}.has-cues .path-description{display:none}.has-cues .path-action{margin-left:auto;font-size:11px;white-space:nowrap}.has-cues .source-heading{margin-bottom:8px}.has-cues .source-panel{margin-bottom:18px}
.workspace{display:grid;grid-template-columns:minmax(0,1fr) 352px;gap:22px;align-items:start}.main-column{min-width:0}.card{background:#fff;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.preview-card{overflow:hidden}.card-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px}.media-title{display:flex;align-items:center;gap:10px;min-width:0}.media-indicator{height:7px;width:7px;flex:none;border-radius:50%;background:#bac9dd}.has-media .media-indicator{background:#3477e7;box-shadow:0 0 0 4px #edf4ff}.media-summary{min-width:0}.media-summary h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:420px;font-size:13px}.media-summary>span{display:block;margin-top:3px;font-size:10px;color:#637691}.media-actions{display:flex;align-items:center;gap:8px;flex:none}.preview-mode-hint{padding:8px 18px;color:#637691;background:#f9fbfe;border-block:1px solid #edf1f6;font-size:10px;line-height:1.7}.stage{padding:16px 18px;background:#e9eef6;position:relative;display:flex;justify-content:center;align-items:center;min-height:180px}.stage:before{content:"";position:absolute;inset:16px 18px;border:1px solid #ccd8e9;pointer-events:none;z-index:1}#preview{display:block;width:100%;height:auto;max-height:342px;object-fit:contain;background:#ecf3fc}.stage-upload{position:absolute;top:38%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:12px;background:#ffffffef;box-shadow:0 7px 28px #142e5714;border:1px solid #d1dff1;border-radius:10px;color:#416697;padding:16px 20px;text-align:left;font-size:14px;font-weight:600;line-height:1.5;z-index:2;white-space:nowrap}.upload-mark{display:grid;place-items:center;height:38px;width:38px;border-radius:9px;background:#eef5ff;color:#4076c7}.stage-upload small{display:block;font-size:10px;font-weight:400;color:#637691;margin-top:4px}.transport{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 18px 6px}.play-controls{display:flex;align-items:center;gap:7px}.play-button{display:grid;place-items:center;border:0;background:var(--blue);color:#fff;width:36px;height:36px;border-radius:50%;font-size:13px;box-shadow:0 2px 5px #2463db18}.play-button:hover:not(:disabled){background:var(--blue-hover)}.clock{margin-left:11px;color:#637691;font:12px ui-monospace,SFMono-Regular,monospace;white-space:nowrap}.clock b{color:#3f648e;font-weight:600}.transport-right{display:flex;align-items:center;gap:10px}.volume-symbol{color:#637691}.transport-right input{width:70px}.transport-right .button[aria-pressed=true]{background:#eaf2ff;color:var(--blue);border-color:#adcaed}.seek{padding:3px 20px 11px}.seek input{width:100%;height:14px}input[type=range]{accent-color:#4c82da;cursor:pointer}input[type=range]:disabled{cursor:not-allowed}
/* Time tools sit with the waveform. */
.timeline-card{margin-top:18px;margin-bottom:18px}.timeline-heading{display:flex;align-items:center;gap:13px;padding:15px 18px 12px}.timeline-heading h2{font-size:13px}.timeline-heading>span{font-size:10px;color:#637691}.zoom-control{margin-left:auto;display:flex;align-items:center;gap:7px;color:#637691;font-size:10px}.zoom-control select{background:white;border:1px solid #d7e1ef;border-radius:5px;padding:5px 7px;color:#587ca8;font-size:10px;min-width:70px}.spot-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 18px 12px;padding:10px 12px;background:#f6f9fe;border:1px solid #e4ebf5;border-radius:8px}.spot-description{display:flex;align-items:center;gap:10px;min-width:0}.key-graphic{display:grid;place-items:center;width:28px;height:28px;border:1px solid #d4e0f2;border-bottom-width:2px;border-radius:5px;background:#fff;color:#637691;font-size:18px;flex:none}.spot-description b{font-size:11px;font-weight:600;color:#54749a}.spot-description p{font-size:10px;color:#637691;line-height:1.6;margin-top:2px}.spot-buttons{display:flex;gap:7px;flex:none}.spot-bar.recording{background:#edf4ff;border-color:#b8d0f5}.spot-bar.recording .key-graphic{background:#2463db;color:#fff;border-color:#2463db}.timeline-scroll{overflow-x:auto;overflow-y:hidden;margin:0 18px;scrollbar-width:thin;scrollbar-color:#c2d2e9 #f3f7fc}.timeline-scroll #timelineInner{position:relative;min-width:100%;padding-bottom:3px}.timeline-scroll canvas{display:block;width:100%;height:48px}.track{height:42px;margin-top:4px;background:#f4f7fc;position:relative}.timeline-cue{position:absolute;top:3px;height:35px;border:1px solid #c6d8f1;background:#e7effc;color:#637691;font-size:10px;line-height:31px;padding:0 9px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;border-radius:5px;cursor:pointer;touch-action:pan-x}.timeline-cue.selected{background:#3879dc;color:#fff;border-color:#2d6dca;z-index:1}.timeline-cue.active:not(.selected){background:#d9e7fd;border-color:#97b5df;color:#37649e}.timeline-handle{position:absolute;top:0;height:100%;width:7px;cursor:ew-resize;touch-action:none}.timeline-handle.start{left:0}.timeline-handle.end{right:0}.timeline-handle:hover{background:#3c74bf40}.playhead{position:absolute;top:0;bottom:0;width:1px;background:#c98c57;pointer-events:none;z-index:2}.playhead:before{content:"";position:absolute;top:0;left:-3px;border:4px solid transparent;border-top:6px solid #c98c57}.ruler{display:flex;justify-content:space-between;padding:8px 18px 12px;font:10px ui-monospace,monospace;color:#637691}
/* Subtitle editing table. */
.caption-card{overflow:visible}.caption-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:17px 18px 12px}.caption-title{display:flex;gap:9px;align-items:center;min-width:0}.caption-title h2{font-size:14px;white-space:nowrap}.caption-title>span{font-size:10px;color:#637691;white-space:nowrap}.caption-tools{display:flex;align-items:center;gap:6px}.caption-tools .icon-button{font-size:21px;width:29px;height:31px}.caption-tools .button{margin-left:8px}.pending-count{padding:4px 7px;border-radius:5px;background:#fff3df;color:#8d6326!important;font-size:9px!important}.list-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 18px 14px}.search-field{position:relative;width:250px;max-width:100%}.search-field>span{position:absolute;left:11px;top:6px;color:#637691;font-size:18px}.search-field input{width:100%;height:35px;padding:8px 12px 8px 32px;background:#f8faff;border:1px solid #dfe7f3;border-radius:7px;color:#3f5d84;font-size:11px}.search-field input::placeholder{color:#637691}.list-head,.cue-row{display:grid;grid-template-columns:26px 183px minmax(0,1fr) 63px 45px;align-items:center;column-gap:10px;padding:11px 18px}.list-head{font-size:10px;color:#637691;background:#f8fafd;border-block:1px solid #e5ecf6}.cue-list{max-height:450px;overflow:auto;scrollbar-width:thin;scrollbar-color:#c4d3e8 transparent}.cue-row{position:relative;min-height:72px;border-bottom:1px solid #edf1f7;border-left:3px solid transparent;padding-left:15px;cursor:pointer}.cue-row:last-child{border-bottom:0}.cue-row:hover{background:#fafcff}.cue-row.selected{background:#eff5ff;border-left-color:#3979dc}.cue-row.active:not(.selected){background:#f5f9ff}.cue-row.invalid{background:#fff8f3;border-left-color:#c88c68}.cue-index{font:10px ui-monospace,monospace;color:#637691}.cue-times{display:flex;align-items:center;gap:6px}.cue-times input{width:50%;min-width:0;border:1px solid transparent;padding:7px 3px;border-radius:4px;color:#637691;background:transparent;font:11px ui-monospace,monospace;letter-spacing:-.3px}.cue-times input:hover,.cue-text:hover{border-color:#dce6f4;background:#ffffffb3}.cue-times input:focus,.cue-text:focus{border-color:#b2caed;background:white}.cue-text{width:100%;resize:vertical;min-height:35px;max-height:160px;border:1px solid transparent;background:transparent;border-radius:5px;color:#2e4b71;padding:7px 6px;font-size:13px;line-height:1.7;outline:none}.cue-status{display:inline-flex;justify-content:center;text-align:center;white-space:nowrap;font-size:9px;padding:5px 5px;border-radius:5px;color:#8c6429;background:#fbf3e7}.cue-status.timed{color:#426e67;background:#edf5f2}.cue-status.review{color:#8c6025;background:#fff1d8}.cue-status.bad{color:#9a4d34;background:#ffede6}.cue-row-tools{display:flex;align-items:center;gap:2px}.cue-row-tools button{background:transparent;border:0;color:#637691;font-size:19px;padding:4px 2px;min-width:20px;border-radius:4px}.cue-row-tools button:hover{color:#2968c2;background:#e4edfb}.cue-row-tools button:last-child:hover{color:#b65c5c;background:#fff1f1}.empty-list{text-align:center;padding:40px 18px 42px;display:flex;align-items:center;flex-direction:column;color:#637691;font-size:12px;line-height:1.9;gap:6px}.empty-list>span{font-size:30px;letter-spacing:4px;color:#637691}.empty-list b{font-size:14px;font-weight:550;color:#637691}.empty-list p{font-size:11px;color:#637691}.empty-list .button{margin-top:9px}.list-footer{padding:13px 18px;background:#fafcff;border-top:1px solid #e7eef6;display:flex;justify-content:space-between;gap:12px;align-items:center;border-radius:0 0 12px 12px;font-size:10px;color:#637691;line-height:1.7}.list-footer .bad{color:#b2684d}.list-footer>span:last-child{font-size:9px;white-space:nowrap}.cleanup-summary{display:block;font-size:9px;color:#637691;margin-top:3px}.notes-repair,.notes-report{margin:12px 18px;padding:13px 15px;background:#f1f6ff;border:1px solid #cbdcf5;border-radius:8px;font-size:11px;line-height:1.8;color:#4c6e9b}.notes-repair p{margin:3px 0 9px}.notes-repair>div{display:flex;gap:16px;flex-wrap:wrap}.notes-report{margin:12px 0}.notes-report summary{cursor:pointer;font-weight:600}.notes-report p{margin:8px 0;overflow-wrap:anywhere}
/* Gesture updates stay inside the timeline. Keep touch and text selection from
   competing with the captured pointer while adjusting a subtitle boundary. */
.timeline-scroll canvas{cursor:crosshair;touch-action:pan-y;user-select:none}
.track{cursor:crosshair;touch-action:pan-y}
.timeline-handle{width:10px}
.timeline-cue{user-select:none}
.script-conversion{margin:9px 0 19px;padding:11px 12px;background:#f6f9fe;border:1px solid #e0e8f4;border-radius:8px}
.conversion-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.conversion-actions>span{font-size:11px;color:#637691;margin-right:auto}.conversion-actions .button{font-size:11px;min-height:31px;padding:6px 10px;white-space:nowrap}.conversion-actions .text-button{font-size:11px;white-space:nowrap}.conversion-status{font-size:10px;color:#637691;line-height:1.7;margin-top:7px}
@media(max-width:480px){.script-conversion{padding:10px}.conversion-actions{gap:7px}.conversion-actions>span{width:100%;margin-bottom:1px}.conversion-actions .button{flex:1}.conversion-actions .text-button{font-size:10px}}
/* Single-cue, whole-track and output settings each have a dedicated tab. */
.inspector{position:sticky;top:18px;min-width:0;overflow:hidden}.inspector-title{display:flex;justify-content:space-between;align-items:center;padding:19px 19px 15px}.inspector-title h2{font-size:14px}.inspector-title>span{font-size:10px;color:#637691}.inspector-tabs{display:flex;border-bottom:1px solid #e2e9f3;padding:0 15px;gap:3px}.inspector-tabs button{position:relative;border:0;background:transparent;color:#637691;font-size:12px;font-weight:550;padding:12px 8px 13px;flex:1;white-space:nowrap}.inspector-tabs button[aria-selected=true]{color:#2666c6}.inspector-tabs button[aria-selected=true]:after{position:absolute;content:"";height:2px;bottom:-1px;left:7px;right:7px;background:#2f73dc;border-radius:2px}.inspector-tabs button:hover{background:#f9fbfe;color:#3b6aa9}.inspector-body{padding:20px 19px;max-height:calc(100dvh - 145px);overflow:auto;scrollbar-width:thin;scrollbar-color:#ccd9ed transparent}.pane-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.pane-heading h3{font-size:12px;color:#637691}.pane-heading>span:last-child{font:11px ui-monospace,monospace;color:#637691}.pane-heading .text-button{font-size:10px}.field{margin-bottom:18px}.field>label,.label-row>label{display:block;font-size:11px;font-weight:550;color:#637691;margin-bottom:8px}.field input:not([type=range]):not([type=color]),.field select,.field textarea{width:100%;min-width:0;border:1px solid #d7e1f0;border-radius:7px;background:#fff;padding:10px 11px;color:#3b5d86;font-size:12px;line-height:1.6}.field textarea{resize:vertical;min-height:110px}.field input:disabled,.field textarea:disabled{background:#f7f9fd;color:#637691}.label-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}.label-row>label{margin:0}.label-row output{font:11px ui-monospace,monospace;color:#637691;padding:2px 6px;background:#f1f5fc;border-radius:4px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:12px}.two-col .field{min-width:0}.set-buttons{display:flex;flex-direction:column;gap:9px;margin-top:2px}.set-buttons .button{justify-content:space-between}.edit-buttons{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:16px 0 0}.edit-buttons .text-button{font-size:11px}.selected-note{font-size:11px;color:#637691;line-height:1.9;border-top:1px solid #e7edf6;padding-top:15px;margin-top:16px}.helper{font-size:11px;color:#637691;line-height:1.9;margin:9px 0 17px}.inspector select{width:100%;padding:11px 10px;border:1px solid #d8e2f0;border-radius:7px;background:white;color:#42638d;font-size:12px}.inspector input[type=range]{width:100%;height:17px;margin:4px 0}.inspector input[type=color]{width:100%;height:39px;border:1px solid #dbe5f3;background:white;padding:4px;border-radius:6px;cursor:pointer}.template-panel{padding:13px;border:1px solid #dde7f5;background:#f7faff;border-radius:8px;margin-bottom:14px}.template-panel label{font-size:11px}.template-panel .label-row{margin-bottom:9px}.style-mode-panel{padding:13px;border:1px solid #d5e3f7;border-radius:8px;background:#f3f7ff;margin-bottom:17px}.style-mode-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:13px}.style-mode-heading b{font-size:11px;color:#5e7ca3;font-weight:600}.style-mode-heading .button{font-size:10px;padding:7px 8px;min-height:31px}.style-mode-choices{display:grid;grid-template-columns:1fr 1fr;gap:7px}.style-mode-option{display:flex;align-items:center;justify-content:center;gap:6px;padding:10px 5px;border:1px solid #d4dfef;background:#fff;border-radius:6px;color:#637691;font-size:11px;cursor:pointer;white-space:nowrap}.style-mode-option.active{border-color:#92b5ea;background:#e8f1ff;color:#2d66b9;font-weight:600}.style-mode-option:focus-within{outline:2px solid #7ba7e6;outline-offset:2px}.style-mode-option input{width:13px;height:13px;margin:0;accent-color:#2463db}.style-mode-panel p{font-size:10px;color:#637691;line-height:1.9;margin:12px 0 9px}.style-mode-panel>small{display:block;font-size:9px;color:#637691;border-top:1px solid #dbe5f5;padding-top:9px;line-height:1.8}.font-identity{display:flex;flex-direction:column;gap:7px;padding:14px 0 15px;border-bottom:1px solid #e6edf6;margin-bottom:14px}.font-identity>span{font-size:10px;color:#637691}.font-identity b{font-size:17px;font-weight:600;color:#456b9c}.font-identity small{font-size:10px;color:#637691;line-height:1.7}fieldset{border:0;padding:0;margin:0;min-width:0}fieldset:disabled{opacity:.46}.preset-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 18px}.preset{border:1px solid #dce5f2;border-radius:6px;background:#fff;padding:5px;cursor:pointer;color:#637691}.preset.active{border-color:#8fb5ed;background:#f3f8ff}.preset-sample{display:grid;place-items:center;background:#8095b1;color:#fff;border-radius:4px;height:43px;font-size:12px}.preset-sample.outline{-webkit-text-stroke:.5px #102752;text-shadow:1px 1px #102752}.preset b{display:block;font-size:10px;font-weight:500;margin:7px 0 4px}.check-option{display:flex;gap:9px;align-items:flex-start;font-size:12px!important;color:#5c7ba3;line-height:1.8;margin:12px 0 0;cursor:pointer}.check-option input{height:15px!important;width:15px!important;margin:4px 0 0!important;padding:0!important;accent-color:#2463db;flex:none}.advanced-options,.shortcuts-details{border-top:1px solid #e6edf6;margin-top:20px;padding-top:15px}.advanced-options>summary,.shortcuts-details>summary{font-size:11px;color:#637691;cursor:pointer}.advanced-options p{font-size:10px;color:#637691;line-height:1.9;margin:10px 0}.machine-settings{padding-top:19px;margin-top:19px;border-top:1px solid #e6edf6}.machine-settings>b{font-size:11px;color:#637691}.machine-settings>p{font-size:10px;color:#637691;margin:7px 0 11px;line-height:1.8}.machine-entry{width:100%;font-size:11px!important}.machine-summary{display:block;font-size:9px;color:#637691;line-height:1.8;margin-top:8px}.format-badge{padding:13px;margin-bottom:19px;border:1px solid #dbe6f7;border-radius:7px;background:#f4f8ff;color:#5c83b7;font:11px ui-monospace,monospace;text-align:center}.output-guide{margin-top:22px;padding:17px;border:1px solid #d6e3f7;border-radius:9px;background:#f4f8ff}.format-file{display:inline-block;background:#e3edfd;color:#4776b6;border-radius:4px;padding:4px 6px;font:10px ui-monospace,monospace;margin-bottom:14px}.output-guide h3{font-size:13px;line-height:1.6}.output-guide p{font-size:11px;color:#637691;line-height:1.9;margin:9px 0 16px}.output-guide>.button{width:100%;font-size:12px}.shortcuts>h3{display:none}.shortcuts>span{display:flex;align-items:center;justify-content:space-between;margin-top:12px;color:#637691;font-size:11px}#confirmMatch{width:100%;margin-top:13px;color:#3f77b8;background:#eff6ff;border-color:#bcd3f0}
.page-footer{max-width:1800px;margin:auto;padding:0 32px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px;color:#637691;font-size:9px;letter-spacing:.4px}.page-footer .text-button{font-size:10px}
/* Dialog controls follow the same visual language. */
dialog{max-width:760px;width:calc(100vw - 40px);max-height:calc(100dvh - 48px);border:1px solid #d5e0ef;border-radius:14px;padding:28px;color:#425e81;box-shadow:0 24px 100px #10294e35;overflow:auto;scrollbar-width:thin;scrollbar-color:#c7d6eb transparent}dialog::backdrop{background:#18345166;backdrop-filter:blur(3px)}
/* A scrollable dialog becomes focusable itself; its default browser ring framed the whole window. Controls inside keep their own focus rings. */
dialog:focus,dialog:focus-visible{outline:none}/* Title and close button stay reachable while a long dialog scrolls. */
.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;position:sticky;top:-28px;z-index:3;margin:-28px -28px 10px;padding:28px 28px 14px;background:#fff}.dialog-heading h2{font-size:21px;letter-spacing:.2px;margin-top:9px;font-weight:650;line-height:1.4}.dialog-heading .eyebrow{font-size:9px}.dialog-heading>.icon-button{font-size:26px;align-self:flex-start}dialog textarea{width:100%;border:1px solid #d4dfee;border-radius:8px;padding:15px;font-size:13px;line-height:1.9;color:#42648e;resize:vertical;outline:none;background:#fff}dialog input,dialog select{width:100%;min-width:0;border:1px solid #d8e3f1;border-radius:6px;padding:10px 12px;color:#52739b;background:#fff;outline:none;font-size:12px}.script-options{display:grid;grid-template-columns:1.2fr 1fr 1.2fr;gap:15px;margin-top:20px}.split-mode-field{margin-top:18px}.source-scope-field{margin:15px 0}.source-scope-field>label{display:block;font-size:11px;color:#637691;margin-bottom:8px}.script-preview-heading{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin:18px 0 10px;font-size:12px;color:#637691}.script-preview-heading b{font-weight:550}.script-preview{max-height:225px;overflow:auto;border:1px solid #dce7f6;border-radius:8px;padding:9px 14px;margin-bottom:15px;background:#f6f9ff;font-size:12px;line-height:1.9;color:#4e709c;scrollbar-width:thin;scrollbar-color:#c5d6ee transparent}.script-preview-row{display:flex;gap:13px;padding:6px 0;white-space:pre-wrap;border-bottom:1px solid #e4edf9}.script-preview-row:last-child{border:0}.script-preview-row span:first-child{padding-top:5px;font:9px ui-monospace,monospace;color:#637691;min-width:20px;flex:none}.scope-note{font-size:11px;color:#637691;line-height:1.9;margin:8px 0 12px}.dialog-note{background:#f5f8fd;border:1px solid #e4ecf7;border-radius:7px;padding:12px 14px;color:#637691;font-size:11px;line-height:1.9}.dialog-actions{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:10px;position:sticky;bottom:-28px;background:#fff;border-top:1px solid #e2eaf5;margin:23px -28px -28px;padding:17px 28px;z-index:3;box-shadow:0 -14px 24px -22px #10294e66}.dialog-actions>.text-button:first-child{margin-right:auto}.dialog-actions .button{font-size:12px}.export-summary{border:1px solid #dce7f5;background:#f5f9ff;padding:16px;border-radius:8px;font-size:12px;color:#637691;line-height:1.9;margin-bottom:23px}.export-summary.bad{background:#fff8ed;border-color:#ecdabb;color:#ae8648}#exportHint{white-space:pre-line;font-size:12px;line-height:2}#shiftDialog{max-width:440px}#shiftDialog>p{font-size:12px;color:#637691;line-height:1.9;margin-bottom:20px}#helpDialog{max-width:690px}#helpDialog ol{padding-left:23px;color:#637691;font-size:12px;line-height:2.2}#helpDialog li{margin-bottom:12px}#helpDialog>p{font-size:11px;color:#637691;line-height:1.9;margin-top:19px}#helpDialog a{color:#3470bb;text-decoration:none}.cleanup-options{border:1px solid #dce7f7;background:#f5f8fe;border-radius:8px;padding:4px 16px 16px}.cleanup-help{margin:15px 0 20px;font-size:11px}.cleanup-result{padding:14px;border:1px solid #d1e0f6;border-radius:8px;background:#eff5ff;color:#4b6fa0;font-size:12px;line-height:1.9;max-height:190px;overflow:auto;white-space:pre-wrap}#cleanupDialog .field{margin-top:18px}.alignment-file{display:flex;align-items:center;gap:13px;flex-wrap:wrap;margin:0 0 16px}.alignment-file>span{font-size:12px;color:#637691;overflow-wrap:anywhere}#alignmentDialog{max-width:860px}#alignmentPlayer{width:100%;margin-bottom:20px;height:40px}.alignment-options{display:grid;grid-template-columns:1fr 1fr;gap:0 18px;margin:19px 0 3px}.alignment-options .field{min-width:0}.alignment-split-preview{max-height:185px}#alignmentSplitCount{font-size:11px;color:#637691}#alignmentProgress{width:100%;height:8px;accent-color:#3978d7;margin:16px 0 7px}#alignmentStatus{font-size:12px;line-height:1.9;color:#557caa;margin:12px 0}#alignmentStatus.bad{color:#b56e4f}#alignmentSummary{font-size:12px;color:#587eae;line-height:1.9;margin:16px 0}#alignmentResults{border:1px solid #e1e9f5;border-radius:8px;overflow:hidden}#alignmentResults:empty{display:none}.alignment-row{display:grid;grid-template-columns:30px 176px minmax(0,1fr) 45px;gap:10px;align-items:center;padding:10px 12px;border-bottom:1px solid #e1e9f6;background:#f7faff}.alignment-row:last-child{border:0}.alignment-row.needs-review{background:#fffaf1}.alignment-time{font:10px ui-monospace,monospace;color:#637691;white-space:nowrap}.alignment-text{font-size:12px;color:#4d6e9c;white-space:pre-wrap;overflow-wrap:anywhere}.alignment-badge{font-size:9px;color:#6c9791;text-align:center}.needs-review .alignment-badge{color:#896225}.alignment-row>.icon-button{width:27px;height:30px;font-size:21px}.machine-quick{border:1px solid #d3e2f8;border-radius:9px;padding:17px;background:#f4f8ff;margin:16px 0 22px}.machine-quick>b{font-size:13px;color:#577da9}.machine-quick>p{font-size:12px;line-height:1.9;margin:8px 0 14px;color:#637691}.machine-import-buttons{display:flex;flex-wrap:wrap;gap:9px}.machine-quick small{font-size:11px;line-height:1.9;display:block;margin-top:12px;color:#637691}.machine-help{font-size:11px;line-height:1.9;color:#637691;overflow-wrap:anywhere}#machineDialog .label-row{flex-wrap:wrap;gap:8px}#machineDialog .field{margin-top:17px}#machineDialog .check-option{margin-bottom:9px}#machineDialog .helper{margin:7px 0 15px}#machineTemplateUID{font-family:ui-monospace,monospace;font-size:11px}#machineStatus{font-size:12px;line-height:1.9;color:#3971b7;min-height:28px}.toast{position:fixed;left:50%;bottom:26px;max-width:calc(100vw - 32px);padding:13px 19px;background:#17375f;color:#fff;border-radius:9px;box-shadow:0 8px 28px #17375f28;z-index:30;transform:translate(-50%,12px);opacity:0;pointer-events:none;font-size:12px;line-height:1.8;transition:transform .18s,opacity .18s}.toast.show{opacity:1;transform:translate(-50%,0)}.drag-over{outline:3px solid #699ee9;outline-offset:-3px}.bad{color:#b67050}input[aria-invalid=true],textarea[aria-invalid=true]{border-color:#d28c72!important;background:#fff6f0!important}
/* Keep controls readable as columns narrow, then stack settings below the editor. */
@media(min-width:1700px){#preview{max-height:400px}.workspace{grid-template-columns:minmax(0,1fr) 380px;gap:26px}.cue-list{max-height:480px}}
@media(max-width:1200px){.header{padding:0 24px;gap:22px}.header-actions{gap:10px}.project-name{padding-left:22px}.project-name input{width:190px}.save-state{font-size:10px}main{padding:23px 24px}.workspace{grid-template-columns:minmax(0,1fr) 316px;gap:18px}.workflow button{font-size:11px;gap:7px;padding:9px}.workflow button>span{height:23px;width:23px;font-size:10px}.workspace-heading h1{font-size:24px}.source-path{padding:15px;column-gap:10px}.path-description{font-size:10px}.spot-bar{flex-wrap:wrap}.spot-buttons{margin-left:auto}.list-head,.cue-row{grid-template-columns:22px 160px minmax(0,1fr) 51px 40px;gap:7px;padding-right:13px}.cue-times input{font-size:10px;padding:6px 1px}.cue-text{font-size:12px}.cue-status{font-size:8px}.list-footer>span:last-child{display:none}.inspector-body{padding:18px 16px}.inspector-title{padding:18px 16px 13px}.inspector-tabs{padding:0 10px}.stage-upload{padding:13px 15px;font-size:13px}.media-summary h2{max-width:270px}.source-heading{padding:0 1px}.has-cues .source-path{padding:12px 11px}.has-cues .path-action{gap:5px}.has-cues .path-action .ui-icon{width:13px}.page-footer{padding-inline:24px}}
@media(max-width:1020px){.workspace-heading{align-items:flex-start}.workspace-heading p{font-size:11px}.workflow{display:grid;grid-template-columns:1fr 1fr;gap:1px}.workflow button{padding:5px 8px;font-size:10px}.workflow button>span{height:21px;width:21px}.header{gap:18px}.brand{font-size:19px;gap:9px}.brand-mark{font-size:17px;padding:9px 7px}.brand small{font-size:7px}.header-actions{gap:9px}.save-state{display:none}.project-name{padding-left:18px}.project-name input{width:170px}.workspace{grid-template-columns:minmax(0,1fr) 292px;gap:15px}.list-head,.cue-row{grid-template-columns:20px 144px minmax(0,1fr) 36px;gap:7px}.list-head>span:nth-child(4),.cue-row>.cue-status{display:none}.cue-times input{font-size:9px}.caption-toolbar{flex-wrap:wrap;gap:10px}.caption-tools{margin-left:auto}.caption-title{gap:7px}.transport{padding:11px 13px 5px}.clock{font-size:10px;margin-left:5px}.transport-right{gap:7px}.transport-right input{width:45px}.transport-right>.button{padding:7px 8px;font-size:10px}.media-actions .button{padding:7px 9px;font-size:10px}.source-path{grid-template-columns:30px 1fr;gap:13px 8px}.path-icon{width:30px;height:30px}.path-title{font-size:13px}.path-description{font-size:10px}.has-cues .source-path{flex-wrap:wrap;gap:6px}.has-cues .path-action{width:100%;justify-content:flex-end;margin:4px 0 0}.has-cues .path-title{font-size:11px}.media-summary h2{max-width:210px}.spot-description p{font-size:9px}.stage{padding:13px}.stage:before{inset:13px}.stage-upload{gap:9px}.stage-upload small{font-size:9px}.timeline-heading>span{display:none}.inspector-tabs button{font-size:11px;padding-inline:5px}.page-footer>span:nth-child(2){font-size:8px}}
@media(max-width:820px){.header{height:auto;min-height:73px;padding:13px 20px;gap:16px;flex-wrap:wrap}.header-actions{margin-left:auto}.project-name{order:3;width:100%;padding:9px 0 0;border:0;border-top:1px solid #edf1f6;flex-direction:row;align-items:center;gap:14px}.project-name input{width:100%;max-width:none;font-size:12px}.project-name label{white-space:nowrap;font-size:10px}.workspace{grid-template-columns:minmax(0,1fr)}.inspector{position:static;width:100%}.inspector-body{max-height:none;overflow:visible;padding:22px}.inspector-title{padding:18px 22px 10px}.inspector-tabs{padding:0 16px}.inspector-tabs button{font-size:13px;min-height:44px}.workspace-heading{gap:15px;margin-bottom:20px}.workflow button{font-size:11px;padding:5px 7px}.source-path{padding:14px}.path-description{font-size:10px}.source-paths{gap:10px}.has-cues .source-path{flex-wrap:nowrap}.has-cues .path-action{width:auto;margin:0 0 0 auto;justify-content:space-between;gap:5px}.source-panel{margin-bottom:19px}.has-cues .source-path .path-icon{display:none}.media-summary h2{max-width:390px}.list-head,.cue-row{grid-template-columns:24px 180px minmax(0,1fr) 61px 44px;gap:8px}.list-head>span:nth-child(4),.cue-row>.cue-status{display:initial}.cue-row>.cue-status{display:inline-flex}.cue-times input{font-size:11px}.cue-text{font-size:13px}.cue-status{font-size:9px}.spot-bar{flex-wrap:nowrap}.spot-buttons{margin:0}.spot-description p{font-size:10px}#preview{max-height:345px}.font-identity{padding-top:12px}.field input:not([type=range]):not([type=color]),.field select,.field textarea{font-size:13px}.style-mode-option{font-size:12px;min-height:43px}.style-mode-heading .button{font-size:11px}.style-mode-panel p{font-size:11px}.style-mode-panel>small{font-size:10px}.machine-entry{max-width:100%}.two-col{gap:16px}.style-mode-choices{gap:12px}.advanced-options p,.machine-settings>p{font-size:11px}.inspector input[type=range]{height:22px}.preset-sample{height:52px;font-size:15px}.format-badge{font-size:12px}.inspector-tabs{position:relative}.page-footer{padding-inline:24px;margin-top:3px}.page-footer>span:nth-child(2){font-size:9px}}
@media(max-width:600px){.header{padding:12px 16px;gap:12px}.brand{font-size:18px;gap:9px}.brand-mark{padding:9px 7px;font-size:16px}.brand small{font-size:6px;letter-spacing:1.3px}.header-actions{gap:7px}.header-actions>.primary{padding:10px 11px;font-size:11px;gap:6px;min-height:37px}.header-actions>.primary .ui-icon{width:15px;height:15px}.project-menu>summary{min-height:36px;font-size:11px;padding:8px}.project-name{gap:10px}.project-name input{font-size:12px}main{padding:21px 16px}.workspace-heading{display:block;margin-bottom:19px}.workspace-heading h1{font-size:23px}.workspace-heading p{font-size:11px;margin-top:7px}.eyebrow{font-size:8px;margin-bottom:7px}.workflow{display:flex;justify-content:space-between;margin-top:18px;gap:2px;background:#eaf0f8;padding:4px;border-radius:8px}.workflow button{padding:7px 5px;gap:4px;font-size:10px;border-radius:5px;flex:1;justify-content:center}.workflow button>span{display:none}.workflow button[aria-current=step]{background:#fff;box-shadow:0 1px 5px #1633500b}.source-heading h2{font-size:11px}.source-heading>span{font-size:9px}.source-paths{grid-template-columns:1fr;gap:9px}.source-path{display:flex;align-items:center;padding:13px 14px;gap:12px}.path-title{font-size:13px}.path-description{font-size:10px;margin-top:2px}.path-action{margin-left:auto;font-size:11px;white-space:nowrap;gap:7px}.path-icon{width:33px;height:33px;flex:none}.path-action .ui-icon{width:14px;height:14px}.has-cues .source-paths{grid-template-columns:1fr 1fr 1fr;gap:7px}.has-cues .source-path{flex-direction:column;gap:5px;align-items:flex-start;padding:11px 9px}.has-cues .source-path .path-title{font-size:10px}.has-cues .path-action{font-size:10px;gap:3px;margin:0}.has-cues .path-action .ui-icon{width:12px}.source-panel{margin-bottom:17px}.source-heading>span{max-width:60%;text-align:right}.workspace{gap:17px}.card-toolbar{padding:13px;gap:10px}.media-summary h2{max-width:180px;font-size:12px}.media-summary>span{font-size:9px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.media-actions{gap:3px}.media-actions .button{padding:7px 8px;font-size:10px}.media-actions .button>.ui-icon{display:none}.media-actions .icon-button{width:25px;height:30px;font-size:19px}.media-title{gap:7px}.media-indicator{height:6px;width:6px}.preview-mode-hint{font-size:9px;padding:7px 13px}.stage{padding:11px;min-height:170px}.stage:before{inset:11px}.stage-upload{padding:11px 12px;gap:9px;font-size:12px}.upload-mark{height:30px;width:30px}.upload-mark .ui-icon{width:17px;height:17px}.stage-upload small{font-size:9px}.transport{padding:11px 11px 4px;gap:5px}.play-controls{gap:3px}.play-controls .icon-button{width:24px;height:30px}.play-button{height:33px;width:33px;font-size:12px}.clock{font-size:9px;margin-left:6px}.transport-right{gap:2px}.transport-right>input,.volume-symbol{display:none}.transport-right .button{font-size:9px;padding:7px 8px;min-height:29px}.seek{padding:3px 14px 10px}.timeline-card{margin:15px 0}.timeline-heading{padding:14px 13px 10px;gap:9px}.timeline-heading h2{font-size:12px}.zoom-control{font-size:9px;gap:4px}.zoom-control select{font-size:9px;min-width:59px;padding:5px}.spot-bar{margin:0 13px 11px;flex-wrap:wrap;gap:9px;padding:11px}.spot-description{gap:8px}.spot-description b{font-size:11px}.spot-description p{font-size:9px}.spot-buttons{margin-left:auto;gap:6px}.spot-buttons .button{font-size:10px;padding:7px 9px;min-height:31px}.timeline-scroll{margin-inline:13px}.ruler{padding:8px 13px 11px;font-size:9px}.timeline-cue{font-size:9px}.caption-toolbar{padding:14px 12px 11px;gap:9px}.caption-title h2{font-size:12px}.caption-title{gap:6px;flex-wrap:wrap}.caption-title>span{font-size:9px}.pending-count{font-size:8px!important;padding:3px 5px}.caption-tools{gap:2px}.caption-tools .icon-button{height:28px;width:26px;font-size:19px}.caption-tools .button{font-size:10px;min-height:30px;padding:7px 9px;margin-left:4px}.list-controls{padding:0 12px 12px;gap:10px}.search-field{width:210px;min-width:0}.search-field input{font-size:10px;height:32px}.toolbar-menu summary{font-size:10px;min-height:32px;padding:7px 9px;gap:7px}.project-menu summary{font-size:11px}.list-head,.cue-row{grid-template-columns:19px 143px minmax(0,1fr) 32px;gap:5px;padding-left:10px;padding-right:9px}.cue-row{padding-left:7px;min-height:76px}.list-head>span:nth-child(4),.cue-row>.cue-status{display:none}.list-head{font-size:9px}.cue-times{gap:2px}.cue-times input{font-size:9px;padding:6px 0;letter-spacing:-.4px}.cue-text{font-size:12px;padding:6px 3px;min-height:44px;line-height:1.8}.cue-index{font-size:9px}.cue-row-tools{gap:0;flex-direction:column}.cue-row-tools button{font-size:16px;min-width:26px;padding:3px 5px;line-height:1}.cue-list{max-height:430px}.list-footer{font-size:9px;padding:12px;line-height:1.8}.cleanup-summary{font-size:8px}.notes-repair{margin:11px 12px;padding:12px;font-size:10px}.notes-repair>div{gap:10px}.notes-repair .button{font-size:10px;min-height:31px;padding:7px 9px}.notes-repair .text-button{font-size:10px}.inspector-title{padding:17px 17px 10px}.inspector-title h2{font-size:13px}.inspector-tabs{padding:0 10px}.inspector-tabs button{font-size:12px}.inspector-body{padding:20px 17px}.pane-heading h3{font-size:12px}.field label{font-size:11px}.set-buttons .button{font-size:12px}.edit-buttons .text-button{font-size:11px}.style-mode-panel{padding:13px}.style-mode-choices{gap:8px}.style-mode-option{font-size:11px}.style-mode-heading .button{font-size:10px}.two-col{gap:12px}.page-footer{padding:0 16px 23px;font-size:8px;gap:8px}.page-footer>span:nth-child(2){display:none}.page-footer .text-button{font-size:9px}.empty-list{padding:30px 14px}.empty-list b{font-size:13px}.empty-list p{font-size:10px}dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:11px;padding:20px}.dialog-heading{gap:14px;top:-20px;margin:-20px -20px 8px;padding:20px 20px 12px}.dialog-heading h2{font-size:18px}.dialog-actions{bottom:-20px;margin:20px -20px -20px;padding:14px 20px;gap:8px}.dialog-actions .button{font-size:11px;padding:10px 12px}.dialog-actions .text-button{font-size:10px}dialog input,dialog select,dialog textarea{font-size:12px}.script-options{grid-template-columns:1fr 1fr;gap:12px}.script-options>.field:last-child{grid-column:1/-1}.script-preview-heading{font-size:11px}.script-preview{font-size:12px;padding:9px 11px;max-height:210px}.script-preview-row{gap:9px}.scope-note{font-size:10px}.dialog-note{font-size:10px}.helper{font-size:10px}.alignment-options{gap:0 12px}.alignment-row{grid-template-columns:25px minmax(0,1fr) 42px;gap:7px;padding:10px}.alignment-time{grid-column:2;font-size:9px}.alignment-text{grid-column:2;font-size:11px}.alignment-row>.icon-button{grid-column:1;grid-row:1/3}.alignment-badge{grid-column:3;grid-row:1/3;font-size:8px}.alignment-file>.button{font-size:11px}.alignment-file>span{font-size:11px}#alignmentStatus,#alignmentSummary{font-size:11px}.notes-report{font-size:10px}.machine-quick{padding:14px}.machine-import-buttons .button{font-size:10px;padding:9px 10px}.machine-quick>p{font-size:11px}.machine-quick small{font-size:10px}.toast{font-size:11px;padding:12px 16px;bottom:18px}.check-option{font-size:11px!important}.cleanup-options{padding:3px 12px 14px}.cleanup-help{font-size:10px}.field textarea{min-height:110px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.has-cues .workspace-heading{margin-bottom:18px}.has-cues .workspace-heading .eyebrow,.has-cues .workspace-heading p{display:none}.has-cues .workspace-heading h1{font-size:23px}.has-cues #preview{max-height:290px}.has-cues .source-panel{margin-bottom:17px}@media(max-width:600px){.has-cues .workspace-heading h1{font-size:22px}.has-cues .workflow{margin-top:13px}.has-cues #preview{max-height:290px}}

.font-profile-panel{padding:13px;border:1px solid #d7e4f6;border-radius:8px;background:#f4f8ff;margin-bottom:14px}.font-profile-panel>label{font-size:11px;color:#54749a;display:block;margin-bottom:9px}.font-profile-panel select{width:100%;padding:10px 8px;background:white;border:1px solid #d6e2f3;border-radius:6px;color:#416690;font-size:11px}.font-profile-panel p{font-size:10px;color:#637691;line-height:1.8;margin:9px 0}.font-profile-panel>.button{width:100%;font-size:11px}.program-font-upload{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:18px 0}.program-font-upload>span{font-size:12px;color:#637691;overflow-wrap:anywhere}
.button.accent{background:#eef4ff;border-color:#b9cff2;color:#1d55a8;font-weight:600}
.button.accent:hover:not(:disabled){background:#e2edff;border-color:#8fb0e3;color:#174da6}
.local-font-picker{border:1px solid #d5e2f4;border-radius:10px;background:#f8fbff;padding:14px 16px 16px;margin:-6px 0 18px}
.local-font-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:9px}
.local-font-head label{font-size:12px;font-weight:650;color:#3d5d86}
.local-font-head .text-button{font-size:12px}
#localFontList{margin-top:8px;padding:4px;font-size:13px;line-height:1.6;height:auto;min-height:190px;border-radius:8px}
#localFontList option{padding:5px 8px;border-radius:5px}
#localFontList option:checked{background:#dce8fb linear-gradient(#dce8fb,#dce8fb);color:#173f7a}
.local-font-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:11px}
.local-font-actions>span{font-size:12px;color:#637691}.program-font-sample{padding:25px 15px;border:1px solid #dce6f4;border-radius:8px;background:#f6f9ff;color:#284f85;font-size:29px;line-height:1.8;text-align:center;margin:12px 0}.program-font-tools{display:flex;justify-content:space-between;gap:12px;margin-top:18px}#fontProfilesDialog input[readonly]{background:#f3f6fa;color:#637691}
/* Action feedback stays readable above the editor and above modal dialogs. */
.app-notice{position:fixed;inset:20px 24px auto auto;margin:0;width:min(460px,calc(100vw - 32px));max-width:none;box-sizing:border-box;display:none;grid-template-columns:32px minmax(0,1fr) 32px;gap:12px;padding:19px 17px;border:1px solid #b9d2f4;border-left:5px solid #3679d8;border-radius:12px;background:#fff;color:#294e80;box-shadow:0 12px 50px #193d7133;font-size:14px;line-height:1.7;z-index:100;pointer-events:auto}.app-notice.show{display:grid}.app-notice::backdrop{display:none}.app-notice strong{display:block;font-size:16px;color:#204476}.app-notice p{margin:3px 0 0;overflow-wrap:anywhere}.app-notice #noticeIcon{display:grid;place-items:center;align-self:start;height:30px;border-radius:50%;background:#e8f1ff;color:#2c70cb;font-size:18px;font-weight:700}.app-notice button{align-self:start;border:0;background:transparent;color:#637691;font-size:24px;line-height:30px;cursor:pointer;border-radius:5px}.app-notice[data-kind=warning]{border-color:#e5cfaa;border-left-color:#ad752a;background:#fffcf5}.app-notice[data-kind=warning] #noticeIcon{background:#fff0d2;color:#99651f}.app-notice button:focus-visible{outline:3px solid #719ce0;outline-offset:2px}.font-profile-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}
/* Program fonts and this Mac's settings sit together; tags say which scope each one changes. */
.font-scope-group{display:grid;gap:10px;margin-bottom:18px}
.font-scope-group>.scope-card{margin:0;padding:14px;border:1px solid #d7e4f6;border-radius:9px;background:#f4f8ff}
.font-scope-group>.machine-settings{background:#f8fafc;border-color:#dfe6ef}
.scope-head{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.scope-head>label,.scope-head>b{font-size:13px!important;font-weight:650;color:#2f5689;margin:0!important}
.scope-tag{font-size:10px;line-height:1.6;padding:2px 8px;border-radius:999px;background:#e1ecfd;color:#1d55a8;white-space:nowrap}
.scope-tag.local{background:#eceff3;color:#4f6178}
.font-scope-group .scope-desc{font-size:11px!important;color:#637691;line-height:1.8;margin:2px 0 10px!important}
.template-panel select{width:100%;padding:10px 8px;background:white;border:1px solid #d6e2f3;border-radius:6px;color:#416690;font-size:11px}
#programTemplateSummary{font-size:10px;color:#637691;line-height:1.8;margin:9px 0}
#openTemplates{width:100%}
.template-panel .machine-settings{margin-top:12px;padding-top:10px;border-top:1px dashed #d7e1ee}
.template-panel .machine-settings>summary{font-size:11px;color:#637691;cursor:pointer}
.template-panel .machine-settings[open]>summary{margin-bottom:8px}
.template-section-title{font-size:13px;color:#2f5689;margin:4px 0 8px}
.template-list{list-style:none;margin:0 0 16px;padding:0;display:grid;gap:8px}
.template-list li{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #dbe5f2;border-radius:9px;padding:11px 13px;background:#fff}
.template-list li>div:first-child{min-width:0}
.template-list b{display:block;font-size:13px;color:#2f4f78}
.template-list small{display:block;font-size:11px;color:#637691;line-height:1.7;overflow-wrap:anywhere}
.template-list li>div:last-child{display:flex;align-items:center;gap:10px;flex-shrink:0}
.template-candidate{margin-top:14px;padding-top:6px;border-top:1px solid #dfe8f5}
.template-summary{font-size:12px;color:#425e81;line-height:1.8;white-space:pre-line;overflow-wrap:anywhere;margin:4px 0 12px}
#templateStatus{font-size:14px;line-height:1.8;background:#edf4ff;border:1px solid #cbdcf5;border-radius:8px;padding:12px 15px;color:#325f96}
#templateStatus:empty{display:none}
.template-note{font-size:12px;line-height:1.8;color:#325f96;background:#edf4ff;border:1px solid #cbdcf5;border-radius:8px;padding:11px 13px;margin:0 0 16px}
.uses-program-template .text-color-panel,.uses-program-template #styleModePanel,.uses-program-template #customStyleControls,.uses-program-template #animationOptions{display:none}
@media(max-width:600px){.template-list li{flex-direction:column;align-items:stretch}.template-list li>div:last-child{justify-content:space-between}}.font-profile-actions>.button{flex:1;min-width:170px}.font-profile-actions>.text-button{font-size:12px;min-height:40px;white-space:nowrap}.button.danger{background:#a83939;border-color:#a83939;color:#fff}.button.danger:hover{background:#902d2d}.confirm-action-dialog{max-width:520px;padding:28px}.confirm-action-icon{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff0df;color:#a66525;font-size:25px;font-weight:650;margin-bottom:17px}.confirm-action-dialog h2{font-size:21px;line-height:1.5;color:#294b73;margin:0 0 16px}.confirm-action-detail{white-space:pre-wrap;overflow-wrap:anywhere;background:#f4f7fc;border:1px solid #dbe4f2;border-radius:8px;padding:14px 16px;color:#31557f;font-size:15px;line-height:1.8;max-height:160px;overflow:auto;margin-bottom:16px}#confirmActionMessage{font-size:14px;line-height:1.9;white-space:pre-line;color:#526b88}.confirm-action-dialog .dialog-actions .button{min-width:110px;font-size:14px;min-height:44px}#programFontStatus,#alignmentStatus,#machineStatus{font-size:14px;line-height:1.8;background:#edf4ff;border:1px solid #cbdcf5;border-radius:8px;padding:12px 15px;min-height:49px;color:#325f96}#programFontStatus:empty{display:none}
#backupDialog{max-width:640px}
.move-notice{display:flex;align-items:center;gap:14px;margin:14px 32px 0;padding:12px 14px 12px 18px;border:1px solid #f0d49b;border-left:5px solid #d99a1e;border-radius:10px;background:#fff8e8;color:#5d4310}
.move-notice[hidden]{display:none}
.move-notice a{color:#1d55a8;font-weight:600}
.move-notice p{flex:1;margin:0;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.move-notice .icon-button{font-size:20px}
@media(max-width:600px){.move-notice{margin:10px 12px 0;flex-wrap:wrap;gap:10px}.move-notice p{flex-basis:100%}}
.backup-card{border:1px solid #d3e2f8;border-radius:10px;padding:17px 18px;background:#f6f9ff;margin:0 0 14px}
.backup-card>b{font-size:13px;color:#2f5689}
.backup-card>p{font-size:12px;line-height:1.9;margin:6px 0 13px;color:#637691}
.backup-restore{border-top:1px solid #dfe8f5;margin-top:16px;padding-top:4px}
.backup-restore .helper{margin:10px 0 4px}
.backup-restore .check-option{font-size:13px!important;color:#2f4f78;margin-top:12px}
.backup-restore .check-option input{margin-top:6px}
.backup-restore .check-option:has(input:disabled){color:#9aabc2;cursor:default}
.backup-warning{display:block;font-size:12px;line-height:1.7;color:#9a5b0b}
.backup-warning:empty{display:none}
#backupStatus{font-size:14px;line-height:1.8;background:#edf4ff;border:1px solid #cbdcf5;border-radius:8px;padding:12px 15px;color:#325f96;margin-top:6px}
#backupStatus:empty{display:none}#alignmentStatus.bad{background:#fff7ec;border-color:#e6cda9;color:#925e28}.helper{line-height:1.8}@media(max-width:600px){.app-notice{inset:12px 12px auto auto;width:calc(100vw - 24px);padding:15px 12px;gap:9px;font-size:13px}.app-notice strong{font-size:15px}.confirm-action-dialog{padding:20px}.confirm-action-dialog h2{font-size:19px}.confirm-action-dialog .dialog-actions{flex-wrap:nowrap}.confirm-action-dialog .dialog-actions .button{flex:1;min-width:0}#programFontStatus,#alignmentStatus,#machineStatus{font-size:13px}}
.app-notice{inset:90px 24px auto auto;pointer-events:none}.app-notice button{pointer-events:auto}.conversion-status{font-size:13px;line-height:1.8;color:#365f90;margin-top:11px}#scriptScopeNote,.scope-note{font-size:12px;line-height:1.8}@media(max-width:600px){.app-notice{inset:82px 12px auto auto}.conversion-status{font-size:12px}}
.confirm-action-dialog .button.danger{color:#fff!important;background:#a83939!important;border-color:#a83939}.confirm-action-dialog .button.danger:hover{background:#902d2d!important}
.srt-range-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:12px 0}.srt-range-actions .button{min-height:40px}.srt-range-actions .text-button{font-size:12px;min-height:38px}.srt-auto-result{white-space:pre-line;line-height:1.9;font-size:13px;color:#315d8c;background:#edf4ff;border:1px solid #bad1ef;border-left:4px solid #3679d8;border-radius:8px;padding:13px 15px;margin:14px 0}
.text-color-panel{border:1px solid #cbdcf5;border-radius:9px;background:#f3f7ff;padding:15px;margin-bottom:18px}.text-color-panel h4{font-size:13px;font-weight:650;color:#345d8e;margin:0}.text-color-panel>.label-row{margin-bottom:14px}.text-color-panel .color-mode-label{display:block;font-size:11px;color:#5b7699;margin:0 0 7px}.text-color-panel>select{width:100%;border:1px solid #cfddf1;border-radius:6px;padding:11px 9px;font-size:12px;color:#385f91;background:white}.native-color-sample{background:linear-gradient(#1861e1,#0f4cb4 60%,#022b71);background-clip:text;-webkit-background-clip:text;color:transparent;text-align:center;font-size:27px;font-weight:750;margin:15px 0}.text-color-panel .color-mode-hint{font-size:12px;line-height:1.85;color:#456791;margin:11px 0 12px}.text-color-panel>.button{width:100%;font-size:12px;min-height:40px}.color-input-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}.color-input-row .field{margin:5px 0}.color-input-row input{width:100%;min-width:0;border:1px solid #cfddf1;border-radius:6px;background:#fff;padding:6px;height:43px;color:#365d8c}.color-input-row input[type=text]{font:14px ui-monospace,monospace;padding:9px}.color-input-row label{font-size:11px;display:block;margin-bottom:8px}.color-quick-actions{display:flex;justify-content:space-between;flex-wrap:wrap;gap:7px;margin-top:13px}.color-quick-actions .text-button{font-size:11px;min-height:32px}.color-error{font-size:12px;line-height:1.8;color:#9a542c;background:#fff7ec;border:1px solid #e6cdab;border-radius:6px;padding:10px;margin-top:9px}
.source-paths{grid-template-columns:repeat(4,minmax(0,1fr))}#srtAudioDialog{max-width:860px}#srtVoicePlayer{width:100%;height:42px;margin-bottom:20px}.srt-audio-status{font-size:14px;line-height:1.8;background:#edf4ff;border:1px solid #cbdcf5;border-radius:8px;padding:12px 15px;margin:16px 0}.srt-audio-status.bad{background:#fff7ec;border-color:#e6cda9;color:#925e28}.srt-audio-rows{max-height:330px;overflow:auto;border-radius:8px;margin-top:14px}#srtAudioProgress{width:100%;accent-color:#3679d8}#srtAudioDialog select{width:100%}@media(max-width:1100px){.source-paths{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.source-paths{grid-template-columns:1fr}.has-cues .source-paths{grid-template-columns:repeat(2,minmax(0,1fr))}.srt-audio-status{font-size:13px}}
