.edit-clip {width:100%;margin-top:12px}
.options.creation-options{grid-template-columns:repeat(2,minmax(0,1fr))}.options.creation-options>div:last-child{grid-column:auto}
.clip-hashtags {color:#13745b!important;font-size:11px!important}
#editor-dialog {width:min(1120px,calc(100% - 32px));max-height:92vh;padding:24px}
#editor-dialog .modal-heading {margin-bottom:16px}
.editor-grid {display:grid;grid-template-columns:minmax(220px,.85fr) minmax(300px,1.15fr);gap:28px;align-items:start}
.editor-preview-column {background:#f3f5f4;padding:20px 12px;min-width:0;border-radius:5px}
#editor-stage {position:relative;aspect-ratio:9/16;width:100%;max-width:259px;margin:0 auto;background:#101513;overflow:hidden;isolation:isolate}
#editor-video {position:absolute;inset:0;display:block;width:100%;height:100%}
#caption-preview {position:absolute;left:7%;right:7%;bottom:8%;text-align:center;color:white;font-family:'DejaVu Sans',sans-serif;font-weight:700;line-height:1.25;text-shadow:1px 1px 1px black,-1px -1px 1px black,1px -1px 1px black,-1px 1px 1px black;white-space:pre-wrap;overflow-wrap:anywhere;pointer-events:none}
#editor-stage[data-position=top] #caption-preview {top:var(--caption-edge,8%);bottom:auto}
#editor-stage[data-position=bottom] #caption-preview {bottom:var(--caption-edge,8%)}
#editor-stage[data-position=center] #caption-preview {top:var(--caption-center,50%);bottom:auto;transform:translateY(-50%)}
.caption-height{margin-top:18px}.caption-height output{float:right;color:var(--green);font-size:12px}.caption-height input{padding:0;min-height:24px;accent-color:var(--green)}
.caption-appearance{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 12px;margin-top:16px}.caption-colors{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.caption-colors input[type=color]{width:40px;height:36px;min-height:36px;padding:3px;cursor:pointer;flex-shrink:0}.color-swatches{display:flex;gap:6px;flex-wrap:wrap}.color-swatch{width:22px;height:22px;border:1px solid #aeb8b2;border-radius:4px;padding:0}.color-swatch[aria-pressed=true]{outline:2px solid var(--green);outline-offset:2px}
@media(max-width:450px){.caption-appearance{grid-template-columns:minmax(0,1fr)}}
#preview-loading {position:absolute;top:43%;width:100%;padding:10px;text-align:center;font-size:12px;color:#fff;pointer-events:none}
.preview-meta {display:flex;justify-content:space-between;font-size:11px;color:#77817c;max-width:320px;margin:12px auto 0}
.editor-preview-column>p {max-width:320px;margin:12px auto;line-height:1.6}
.editor-controls {min-width:0}
.editor-tabs {display:flex;border-bottom:1px solid var(--border);margin-bottom:18px;gap:20px}
.editor-tabs button {border:0;border-bottom:2px solid transparent;background:none;padding:0 2px 12px;color:#77817c;font-size:13px}
.editor-tabs button.selected {color:var(--green);border-bottom-color:var(--green);font-weight:700}
.editor-options {display:grid;grid-template-columns:1fr 1fr;gap:12px}
.editor-option-section {margin:0;padding:0;border:0;min-width:0}
.editor-option-section + .editor-option-section {margin-top:20px;padding-top:20px;border-top:1px solid var(--border)}
#edit-fit:disabled {background:#f1f3f2;color:#89918d;cursor:not-allowed}
#editor-dialog label {margin-top:0}
.cue-heading {display:flex;align-items:center;justify-content:space-between;margin:22px 0 12px}
.cue-heading h3 {font-size:13px}
#caption-cues {max-height:270px;overflow-y:auto;border-top:1px solid var(--border);padding-right:5px}
.cue-row {display:grid;grid-template-columns:50px minmax(0,1fr);gap:10px;padding:9px 0;border-bottom:1px solid #edf0ee;align-items:start}
.cue-row.current {background:#eff7f3}
.cue-time {border:0;background:none;flex-direction:column;gap:5px;color:#27745b;font-size:11px;padding:8px 0}
.cue-time svg {width:12px;height:12px}
.cue-row textarea {resize:vertical;min-height:60px;line-height:1.5;font-size:12px}
.editor-footer {display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:18px;margin-top:20px;border-top:1px solid var(--border)}
.editor-footer>span {min-width:0;overflow-wrap:anywhere}
.suggestion-heading {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:18px}
.suggestion-heading>span {width:100%;overflow-wrap:anywhere}
#publication-panel>input,#publication-panel>textarea {margin-bottom:18px;resize:vertical}
.copy-actions {display:flex;justify-content:flex-end}
.original-captions{margin-top:18px}.original-captions output{float:right;color:var(--green)}.original-captions input{padding:0;min-height:24px;accent-color:var(--green)}.original-captions p{font-size:11px;line-height:1.5;margin:4px 0}
@media(max-width:450px){.editor-options{grid-template-columns:minmax(0,1fr)}.editor-tabs button{min-width:0;flex:1;font-size:12px;gap:6px;line-height:1.35}}
@media(max-width:750px){#editor-dialog{padding:18px;max-height:94vh}.editor-grid{grid-template-columns:minmax(0,1fr);gap:20px}.editor-preview-column{padding:12px}#editor-stage{max-height:280px;max-width:calc(280px * var(--preview-ratio, .5625))!important}.editor-options{gap:10px}#caption-cues{max-height:220px}.editor-footer{position:sticky;bottom:-18px;background:white;padding:12px 0;margin-bottom:-5px}.editor-footer .button{white-space:nowrap;font-size:12px;padding:10px}.editor-footer>span{font-size:10px}.editor-tabs{gap:16px}#editor-heading{font-size:16px}.editor-footer{z-index:2}}
