@font-face{font-family:AdministaSubtitle;src:url('../assets/fonts/IRANSansWeb(FaNum)_Bold.ttf') format('truetype');font-weight:700 900;font-display:swap}
@font-face{font-family:SubFont-peyda;src:url('../textEditor/fonts/Peyda-Medium.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-kalameh;src:url('../textEditor/fonts/KalamehWebblack.woff') format('woff');font-display:swap}
@font-face{font-family:SubFont-yekan;src:url('../textEditor/fonts/YekanBoom.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-titr;src:url('../textEditor/fonts/TitrZebr.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-lalezar;src:url('../textEditor/fonts/lalezar.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-shabnam;src:url('../textEditor/fonts/Shabnam-Medium.woff') format('woff');font-display:swap}
@font-face{font-family:SubFont-sahel;src:url('../textEditor/fonts/Sahel-Black.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-sultan;src:url('../textEditor/fonts/Sultan-Adan-Bold.woff') format('woff');font-display:swap}
@font-face{font-family:SubFont-dastnevis;src:url('../textEditor/fonts/danstevis.otf') format('opentype');font-display:swap}
@font-face{font-family:SubFont-koodak;src:url('../textEditor/fonts/BonyadeKoodak-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-cinema;src:url('../textEditor/fonts/Cinema.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-avini;src:url('../textEditor/fonts/Avisi.woff') format('woff');font-display:swap}
@font-face{font-family:SubFont-rokh;src:url('../textEditor/fonts/RokhFaNum-Black.woff') format('woff');font-display:swap}
@font-face{font-family:SubFont-arvand;src:url('../textEditor/fonts/Arvand-Bold.woff') format('woff');font-display:swap}
@font-face{font-family:SubFont-mahoor;src:url('../textEditor/fonts/Mahoor-Medium.woff2') format('woff2');font-display:swap}
@font-face{font-family:SubFont-modam;src:url('../textEditor/fonts/Modam-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-ravi;src:url('../textEditor/fonts/Ravi-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-yekta;src:url('../textEditor/fonts/Yekta.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-nastaliq;src:url('../textEditor/fonts/IranNastaliq.ttf') format('truetype');font-display:swap}
@font-face{font-family:SubFont-potk;src:url('../textEditor/fonts/Potk.woff') format('woff');font-display:swap}

.subtitle-studio{max-width:1180px;margin:0 auto;padding:20px 16px 110px;color:#ecf1fb;--st-panel:#131b2e;--st-border:#2c3852;--st-accent:#ff6b00;--st-accent-soft:#ff8a33;--st-purple:#aa8cff;font-family:inherit;max-height:calc(100dvh - 176px);overflow:auto;overscroll-behavior:contain}
.subtitle-studio *{box-sizing:border-box}

/* Outer copy follows the shell; editing panels retain their dark canvas surface. */
.subtitle-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:20px;color:var(--sui-text,#181816);flex-wrap:wrap}
.subtitle-heading-main{min-width:200px;flex:1}
.subtitle-eyebrow{color:var(--sui-text-2,#6e6e68);font-size:12px;font-weight:700}
.subtitle-heading h1{font-size:26px;margin:6px 0 8px;color:inherit}
.subtitle-studio p{color:#b9c4d7;line-height:1.85;font-size:13px;margin:8px 0}
.subtitle-heading p,.subtitle-studio .subtitle-footnote{color:var(--sui-text-2,#6e6e68)}
.subtitle-studio h2{font-size:16px;margin:0 0 14px;color:#f8fafc}

.subtitle-topbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.subtitle-studio button,.subtitle-button{font:inherit;font-size:13px;color:#e7eafa;background:#1e293b;border:1px solid #384664;padding:9px 14px;border-radius:11px;cursor:pointer;line-height:1.45;transition:all .16s ease}
.subtitle-studio .subtitle-button,.subtitle-top-btn.export{background:linear-gradient(135deg,#ff6b00,#ff8800);color:#ffffff;border-color:#ff7b1a;font-weight:700;box-shadow:0 4px 14px rgba(255,107,0,.28)}
.subtitle-top-btn.srt{background:#1e293b;color:#f8fafc;border-color:#475569;font-weight:700;font-size:12px;padding:7px 11px}
.subtitle-top-btn.help{width:34px;height:34px;padding:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;font-weight:800;background:#1e293b;color:#f8fafc}
.subtitle-heading .subtitle-back{color:var(--sui-text,#181816);text-decoration:underline;font-size:13px;padding:6px 8px}
.subtitle-back,.subtitle-link{color:#ffb074;cursor:pointer;font-weight:600}
.subtitle-link input,.subtitle-upload input{position:absolute;width:1px;height:1px;opacity:0}

.subtitle-help-showcase{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:10px;margin-bottom:18px;padding:14px;background:#131b2e;border:1px solid #334155;border-radius:16px}
.subtitle-help-card{background:#1e293b;border:1px solid #334155;border-radius:12px;padding:12px;display:flex;flex-direction:column;gap:4px}
.subtitle-help-card strong{color:#ff8a33;font-size:13px}
.subtitle-help-card span{color:#cbd5e1;font-size:12px;line-height:1.6}

.subtitle-upload{position:relative;min-height:250px;padding:36px 22px;border:2px dashed #ff7b1a88;border-radius:24px;background: radial-gradient(circle at top,#2a1f3d,#0f172a);display:flex;align-items:center;justify-content:center;gap:16px;flex-direction:column;cursor:pointer;text-align:center}
.subtitle-upload-badge{background:rgba(255,107,0,.16);color:#ff9838;border:1px solid rgba(255,107,0,.4);padding:4px 12px;border-radius:99px;font-size:12px;font-weight:700}
.subtitle-upload strong{font-size:22px;color:#ffffff}
.subtitle-upload>span:not(.subtitle-button):not(.subtitle-upload-badge){font-size:13px;color:#cbd5e1}

.subtitle-studio button:disabled{opacity:.42;cursor:default;box-shadow:none}
.subtitle-studio button:focus-visible,.subtitle-studio input:focus-visible,.subtitle-studio textarea:focus-visible,.subtitle-link:focus-within,.subtitle-upload:focus-within{outline:2px solid #ff8800;outline-offset:2px}

.subtitle-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.18fr);gap:20px;align-items:start}
.subtitle-preview-panel{background:#0b1120;border:1px solid var(--st-border);padding:14px;border-radius:20px;position:sticky;top:12px}
.subtitle-stage-wrap{position:relative;display:flex;align-items:center;justify-content:center}
.subtitle-media{position:relative;width:100%;display:flex;align-items:center;justify-content:center;background:#050811;border-radius:14px;overflow:hidden;max-height:560px;min-height:220px}
.subtitle-media video{display:block;width:100%;max-height:560px;object-fit:contain}
.subtitle-media canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none}

.subtitle-stage-box{position:absolute;transform:translate(-50%,-50%);width:66%;height:48px;border:1.5px dashed rgba(255,255,255,.55);border-radius:10px;cursor:move;touch-action:none;pointer-events:auto;transition:border-color .15s}
.subtitle-stage-box:hover{border-color:#ff8800;background:rgba(255,107,0,.06)}
.subtitle-stage-handle{position:absolute;width:12px;height:12px;background:#ffffff;border:2px solid #ff6b00;border-radius:50%;cursor:nwse-resize}
.subtitle-stage-handle.tl{top:-6px;left:-6px}
.subtitle-stage-handle.br{bottom:-6px;right:-6px}

.subtitle-floating-tools{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:10px;background:#131c31;padding:6px;border-radius:12px;border:1px solid #26334d}
.subtitle-floating-tools button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;padding:6px 4px;border-radius:9px;background:transparent;border:none;color:#e2e8f0;font-size:10px;min-width:0}
.subtitle-floating-tools button i{font-size:15px}
.subtitle-floating-tools button.active{background:rgba(255,107,0,.22);color:#ff8a33}

.subtitle-playbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding:8px 10px;background:#131c31;border-radius:12px;border:1px solid #26334d}
.subtitle-playbar-right{display:flex;align-items:center;gap:6px}
.subtitle-play-toggle{background:#ff6b00!important;border-color:#ff6b00!important;color:#fff!important;font-weight:700;padding:7px 14px!important}
.subtitle-icon-btn{padding:6px 10px!important;font-size:15px!important;background:#1e293b!important}
.subtitle-clock{font-size:12px;font-variant-numeric:tabular-nums;color:#cbd5e1}
.subtitle-file-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;flex-wrap:wrap}
.subtitle-filename{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin:0!important;font-size:12px!important}

.subtitle-controls{display:grid;gap:16px;min-width:0}
.subtitle-control-card,.subtitle-editor{background:var(--st-panel);border:1px solid var(--st-border);padding:18px;border-radius:18px;min-width:0}
.subtitle-drawer-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.subtitle-drawer-header h2{margin:0}
.subtitle-save-pill{padding:5px 11px!important;font-size:11px!important;border-radius:99px!important;background:#1e293b!important;color:#ffb074!important;border-color:#ff6b0066!important}

.subtitle-main-tabs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;background:#0b1120;padding:5px;border-radius:13px;border:1px solid #26334d;margin-bottom:14px}
.subtitle-main-tabs button{padding:8px 4px;font-size:12px;font-weight:700;border:none;background:transparent;color:#94a3b8;border-radius:9px;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.subtitle-main-tabs button.active{background:#ff6b00;color:#ffffff;box-shadow:0 2px 10px rgba(255,107,0,.35)}

.subtitle-filter-pills{display:flex;gap:6px;overflow-x:auto;padding-bottom:6px;margin-bottom:12px;scrollbar-width:thin}
.subtitle-filter-pills button{padding:6px 12px;font-size:12px;border-radius:99px;white-space:nowrap;background:#0f172a;border:1px solid #2e3c56;color:#cbd5e1}
.subtitle-filter-pills button.active{background:#f8fafc;color:#0f172a;border-color:#f8fafc;font-weight:700}

.subtitle-template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:330px;overflow-y:auto;padding-left:2px;margin-bottom:14px}
.subtitle-tpl-card{display:flex;flex-direction:column;justify-content:space-between;padding:10px;border-radius:14px;background:#0b1120;border:1.5px solid #26334d;text-align:center;min-height:106px;position:relative;overflow:hidden}
.subtitle-tpl-card.active{border-color:#ff6b00;background:#171f36;box-shadow:0 0 0 1px #ff6b00}
.subtitle-tpl-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:60px;width:100%}
.subtitle-tpl-preview .tpl-line-1{font-size:11px;opacity:.92;line-height:1.3}
.subtitle-tpl-preview .tpl-line-2{font-size:13px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap}
.subtitle-tpl-preview .tpl-word-active{font-style:normal;padding:1px 7px;border-radius:6px;display:inline-block}
.subtitle-tpl-card:hover .tpl-word-active{animation:subTplPulse 1.8s infinite ease-in-out}
.subtitle-tpl-preview .tpl-progress-bar{display:block;width:78%;height:4px;border-radius:99px;margin-top:4px}
.subtitle-tpl-card:hover .tpl-progress-bar{animation:subTplProgress 2.2s infinite linear}
.subtitle-tpl-preview .tpl-wave-bars{display:inline-flex;align-items:flex-end;gap:2px;height:12px;margin-top:3px}
.subtitle-tpl-preview .tpl-wave-bars i{display:block;width:3px;height:8px;background:currentColor;border-radius:2px}
.subtitle-tpl-card:hover .tpl-wave-bars i{animation:subTplWave .9s infinite ease-in-out alternate}
.subtitle-tpl-preview .tpl-wave-bars i:nth-child(2){height:12px}
.subtitle-tpl-preview .tpl-wave-bars i:nth-child(3){height:6px}
.subtitle-tpl-preview .tpl-wave-bars i:nth-child(4){height:11px}

@keyframes subTplPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes subTplProgress{0%{clip-path:inset(0 80% 0 0)}100%{clip-path:inset(0 0 0 0)}}
@keyframes subTplWave{0%{transform:scaleY(.45)}100%{transform:scaleY(1.15)}}

.subtitle-tpl-footer{display:flex;align-items:center;justify-content:space-between;width:100%;margin-top:6px;padding-top:5px;border-top:1px solid rgba(255,255,255,.06)}
.subtitle-tpl-name{font-size:11px;color:#94a3b8;font-weight:600}
.subtitle-tpl-palettes{display:inline-flex;align-items:center;gap:4px}
.subtitle-tpl-palettes i{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid rgba(255,255,255,.45);cursor:pointer}
.subtitle-tpl-palettes i.current{transform:scale(1.25);border:2px solid #ffffff}

.subtitle-anim-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:290px;overflow-y:auto;margin-bottom:12px}
.subtitle-anim-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:10px 6px;background:#0b1120;border:1.5px solid #26334d;border-radius:12px;min-height:74px}
.subtitle-anim-card.active{border-color:#ff6b00;background:#1a2238}
.subtitle-anim-card .anim-demo{display:inline-block;padding:3px 10px;border-radius:7px;background:#1e293b;color:#facc15;font-weight:800;font-size:13px}
.subtitle-anim-card strong{font-size:11px;color:#cbd5e1;font-weight:600}

.subtitle-font-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-height:280px;overflow-y:auto;margin-bottom:12px}
.subtitle-font-card{padding:12px 6px;background:#0b1120;border:1.5px solid #26334d;border-radius:12px;text-align:center;font-size:15px;color:#f8fafc}
.subtitle-font-card.active{border-color:#ff6b00;background:#1a2238;color:#ffb074}

.subtitle-option-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px;margin-bottom:12px}
.subtitle-option-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.subtitle-option-grid button.active{border-color:#ff6b00;background:#262038;color:#ffb074;font-weight:700}

.subtitle-shadow-card{display:flex;flex-direction:column;align-items:center;gap:4px;padding:10px 6px!important;background:#0b1120!important}
.subtitle-shadow-card span{font-size:15px;font-weight:800;color:#ffffff}
.subtitle-shadow-card small{font-size:11px;color:#94a3b8}

.subtitle-swatch-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:10px 0 14px}
.subtitle-swatch-grid.compact{grid-template-columns:repeat(6,minmax(0,1fr))}
.subtitle-swatch{height:32px;border-radius:9px;border:2px solid rgba(255,255,255,.18);padding:0!important;position:relative;cursor:pointer}
.subtitle-swatch.active{border-color:#ffffff;transform:scale(1.08);box-shadow:0 0 0 2px #ff6b00}
.subtitle-swatch.transparent{background:repeating-conic-gradient(#334155 0% 25%,#0f172a 0% 50%) 50%/10px 10px!important}
.subtitle-swatch.custom-picker{display:flex;align-items:center;justify-content:center;background:conic-gradient(#ef4444,#facc15,#10b981,#38bdf8,#a855f7,#ef4444);color:#fff;font-weight:800}
.subtitle-swatch.custom-picker input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}

.subtitle-slider-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:12px;color:#cbd5e1}
.subtitle-slider-row input[type=range]{flex:1}
.subtitle-slider-row span{min-width:34px;text-align:left;font-variant-numeric:tabular-nums;color:#ff9838}
.subtitle-sub-label{font-size:12px!important;color:#94a3b8!important;margin:6px 0 8px!important}
.subtitle-button.full-width{width:100%;margin-top:8px}

.subtitle-saved-list{display:grid;gap:8px;margin-bottom:10px}
.subtitle-saved-item{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;background:#0b1120;border:1px solid #26334d;border-radius:11px;cursor:pointer}
.subtitle-saved-item strong{font-size:13px;color:#f8fafc}
.subtitle-saved-item span{font-size:11px;color:#94a3b8}

.subtitle-global-sliders{border-top:1px solid #26334d;padding-top:12px;margin-top:10px;display:grid;gap:10px}
.subtitle-global-sliders>label,.subtitle-control-card>label{display:flex;align-items:center;gap:14px;font-size:13px}
.subtitle-global-sliders input[type=range],.subtitle-control-card input[type=range]{flex:1}
.subtitle-studio input[type=range]{accent-color:#ff6b00;cursor:pointer;min-width:0}

.subtitle-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.subtitle-studio label{font-size:13px}
.subtitle-studio select,.subtitle-studio input[type=number],.subtitle-studio textarea{font:inherit;color:#f4f6ff;background:#0b1120;border:1px solid #384664;border-radius:9px;padding:8px}
.subtitle-studio select{margin-right:8px;max-width:160px}

.subtitle-alert{border:1px solid #58648a;border-radius:12px;padding:12px 16px;background:#1e293b;color:#e0e9ff;margin-bottom:14px;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.subtitle-alert.error{border-color:#bd6576;background:#422632;color:#ffcfda}

.subtitle-progress{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:18px 0;padding:18px;background:linear-gradient(135deg,#1e1b2e,#131b2e);border:1px solid #ff6b0066;border-radius:16px;font-size:13px}
.subtitle-progress-ring{width:48px;height:48px;border-radius:50%;border:3px solid rgba(255,107,0,.25);border-top-color:#ff6b00;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:12px;color:#ff9838;animation:subSpin 1.1s linear infinite}
.subtitle-progress-ring span{animation:subSpinReverse 1.1s linear infinite}
@keyframes subSpin{to{transform:rotate(360deg)}}
@keyframes subSpinReverse{to{transform:rotate(-360deg)}}
.subtitle-progress-body{flex:1;min-width:180px;display:flex;flex-direction:column;gap:4px}
.subtitle-progress-body small{color:#fda4af;font-size:11px}
.subtitle-progress progress{width:100%;accent-color:#ff6b00;height:8px}

.subtitle-editor{margin-top:20px}
.subtitle-scrubber{display:block;width:100%;margin:16px 0 10px}
.subtitle-timeline-shell{position:relative;margin-bottom:14px}
.subtitle-timeline{position:relative;height:76px;background:repeating-linear-gradient(90deg,#0b1120 0,#0b1120 calc(10% - 1px),#23304a calc(10% - 1px),#23304a 10%);border:1px solid #384664;border-radius:12px;overflow:hidden}
.subtitle-filmstrip-track{position:absolute;left:0;right:0;bottom:0;height:20px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.05) 0,rgba(255,255,255,.05) 28px,rgba(0,0,0,.35) 28px,rgba(0,0,0,.35) 30px);border-top:1px solid rgba(255,255,255,.08);pointer-events:none}
.subtitle-cue{position:absolute;top:8px;height:42px;min-width:4px;background:#3b2d54;border:1.5px solid #9f78d6;border-radius:7px;touch-action:none;cursor:grab;display:flex;align-items:center;overflow:hidden}
.subtitle-cue.selected{background:#ff6b00;border-color:#ffffff;box-shadow:0 2px 10px rgba(255,107,0,.4)}
.subtitle-cue-text{pointer-events:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 10px;font-size:11px;font-weight:700;direction:rtl;width:100%;color:#ffffff}
.subtitle-handle{position:absolute;top:0;bottom:0;width:9px;background:rgba(255,255,255,.32);z-index:2;cursor:ew-resize;touch-action:none}
.subtitle-handle.start{left:0}
.subtitle-handle.end{right:0}
.subtitle-playhead{position:absolute;top:0;bottom:0;width:2.5px;background:#facc15;box-shadow:0 0 8px #facc15;pointer-events:none;z-index:3}

.subtitle-quick-actions{display:flex;align-items:center;gap:6px;overflow-x:auto;padding:8px;background:#0b1120;border:1px solid #26334d;border-radius:12px;margin-bottom:14px}
.subtitle-quick-actions button{display:inline-flex;align-items:center;gap:5px;padding:7px 11px;font-size:12px;border-radius:9px;white-space:nowrap;background:#162036;border-color:#2c3a57}
.subtitle-quick-actions button.active{background:#ff6b00;color:#ffffff;border-color:#ff6b00}
.subtitle-quick-actions button.danger{color:#fda4af;border-color:#7f1d1d}

.subtitle-pages{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 14px;font-size:12px;color:#c5c9d7}
.subtitle-pages span{flex:1;text-align:center;min-width:100px}

.subtitle-cue-list{display:grid;gap:10px;max-height:520px;overflow:auto}
.subtitle-cue-editor{display:grid;grid-template-columns:36px minmax(0,1fr) 150px;gap:10px;align-items:start;padding:12px;border:1px solid #2e3b56;border-radius:12px;background:#0e1628}
.subtitle-cue-editor.selected{border-color:#ff6b00;background:#182036}
.subtitle-cue-editor textarea{width:100%;min-height:84px;resize:vertical;line-height:1.85}
.subtitle-cue-number{padding:8px!important;font-weight:700}
.subtitle-times{display:flex;gap:6px;flex-wrap:wrap}
.subtitle-times label{display:flex;align-items:center;justify-content:space-between;width:100%;gap:8px}
.subtitle-times input{width:90px;direction:ltr}
.subtitle-times button{padding:4px 12px;color:#fda4af}
.subtitle-footnote{text-align:center;margin-top:20px!important}

@media(max-width:720px){
  .subtitle-studio{padding:14px 10px 110px}
  .subtitle-heading h1{font-size:22px}
  .subtitle-workspace{grid-template-columns:1fr;gap:14px}
  .subtitle-preview-panel{position:static;padding:10px}
  .subtitle-media,.subtitle-media video{max-height:420px}
  .subtitle-floating-tools{padding:4px;gap:4px}
  .subtitle-floating-tools button{padding:5px 2px;font-size:9px}
  .subtitle-control-card,.subtitle-editor{padding:14px}
  .subtitle-main-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
  .subtitle-template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .subtitle-cue-editor{grid-template-columns:30px minmax(0,1fr);gap:8px}
  .subtitle-times{grid-column:2;display:flex;flex-wrap:wrap}
  .subtitle-times label{width:auto}
  .subtitle-times input{width:75px}
  .subtitle-row{gap:8px}
  .subtitle-row>button{flex-grow:1}
  .subtitle-upload{padding:26px 16px}
}
