/* V35 — proportions from the CapCut reference recording: large preview,
   compact filmstrip, fixed playhead, small independent media lanes. */
.chooser-page-clean .mode-card.video-mode .mode-media img.v28-showcase-img{object-fit:cover!important;object-position:center center!important}
.v34-help{display:none!important}
.v34-topline{height:26px;min-height:26px;padding:0 7px 4px!important}
.v34-ruler{height:13px!important;margin:1px 8px 2px!important;gap:37px!important}
.v34-timeline-viewport,.v34-timeline-scroller{height:55px!important}
.v34-filmline,.v34-clip-group{height:54px!important}
.v34-clip{height:48px!important}
.v34-trim-handle{width:13px!important}.v34-trim-handle i{height:18px!important}
.v34-reorder{width:20px!important;height:20px!important;top:2px!important;font-size:12px!important}
.v34-transition{width:25px!important;min-width:25px!important;height:27px!important;margin-inline:-12px!important}
.v34-transition svg{width:17px!important;height:17px!important}
.v34-add{width:38px!important;min-width:38px!important;height:40px!important}
.v34-add b{font-size:22px!important}
.v34-playhead{z-index:15!important}
.v35-layer-stack{display:grid;gap:3px;padding:4px 3px 3px}
.v35-layer-row{height:26px;min-height:26px;display:flex;align-items:stretch;gap:6px;width:100%;min-width:0}
.v35-lane-mark{flex:0 0 18px;align-self:center;color:#8295ac;font-size:13px;text-align:center;line-height:20px}
.v35-layer-placeholder,.v35-layer-media{border:0;border-radius:4px;text-align:left;padding:2px 9px;font-size:10px!important;min-height:0!important;height:26px;line-height:20px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.v35-layer-placeholder{background:#17191f;color:#a3a7b1;flex:1}
.v35-layer-media{position:relative;display:block;width:calc(100% - 55px);margin-right:auto;color:#ebeff9;border:1px solid #45618c}
.v35-audio-clip{background:linear-gradient(90deg,#204c8a,#1b376e);color:#dfeaff;border-color:#5186c8}
.v35-subtitle-clip{background:linear-gradient(90deg,#55407e,#423464);color:#e9d8ff;border-color:#8668ab}
.v35-photo-clip{background:linear-gradient(90deg,#387068,#27544b);border-color:#64b9ac}
.v35-layer-track-name{display:block;position:relative;z-index:2;max-width:calc(100% - 12px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-shadow:0 1px 2px #081126}
.v35-wave{position:absolute;inset:4px 4px 4px 0;display:flex;align-items:center;justify-content:space-between;opacity:.48;pointer-events:none;gap:1px}
.v35-wave i{width:2px;min-width:1px;flex:1;max-height:95%;background:#b4dbff;border-radius:2px}
.v35-photo-add .v35-layer-placeholder{background:#121a25}
.v35-caption-timing{display:grid;gap:6px;margin:10px 0}
.v35-caption-label{display:flex;justify-content:space-between;align-items:center;color:#f1d19d;font-size:12px}
.v35-caption-label small{font-size:10px;color:#8998aa}
.v35-caption-cue{padding:7px;border:1px solid #38516d;border-radius:8px;background:#0c1724;display:grid;gap:5px}
.v35-caption-cue>input{width:100%;min-height:31px;font-size:12px;background:#141f2b;color:#f3f4f7;border-radius:5px;border:1px solid #2f455a;padding:4px 6px}
.v35-caption-cue>div{display:flex;align-items:end;gap:8px}
.v35-caption-cue label{font-size:10px;color:#c4d1de;display:flex;flex-direction:column;gap:3px;flex:1}
.v35-caption-cue label input{min-height:31px;width:100%;padding:4px 6px;border:1px solid #41536b;background:#111a25;color:#e8edf3;border-radius:5px;font-size:11px}
.v35-caption-cue button{min-width:34px;min-height:31px;border:1px solid #70485b;border-radius:6px;color:#ffd9df;background:#341e2a;font-size:21px}
.v35-cloud-options{margin-top:10px;padding:7px;color:#9aacc4;font-size:11px}
.v35-cloud-options summary{cursor:pointer}
.v35-cloud-options button{margin-top:8px}
@media (max-width:650px){
 body .mode-editor .editor-layout>.stage-panel{flex:0 0 clamp(350px,55dvh,560px)!important;height:clamp(350px,55dvh,560px)!important;max-height:560px!important;min-height:350px!important;overflow:hidden!important;position:relative!important;top:auto!important;z-index:2!important;padding:0!important;border:0!important;border-radius:0!important;background:#050608!important;box-shadow:none!important}
 body .mode-editor .stage-panel .preview-area{flex:1 1 0!important;min-height:0!important;max-height:none!important;height:auto!important;background:#050608!important}
 body .mode-editor .stage-panel #previewCanvas{max-width:100%!important;max-height:100%!important;object-fit:contain!important}
 body .mode-editor .editor-layout>.timeline-panel{flex:0 0 auto!important;height:auto!important;max-height:none!important;min-height:0!important;padding:4px 5px 5px!important;border:0!important;border-radius:0!important;overflow:visible!important;background:#090b11!important}
 body .mode-editor .timeline-panel>#v29-playlist{padding:0!important;margin:0!important;border:0!important}
 body .mode-editor .editor-layout>.tab-row{order:3!important;position:relative!important;top:auto!important;bottom:auto!important;margin:0!important;max-height:62px!important;min-height:62px!important;flex-basis:62px!important;height:62px!important;background:#0b0c10!important}
 body .mode-editor .editor-layout>.properties-panel{order:4!important;min-height:0!important}
 body .mode-editor .v20-stage-label{display:none!important}
 .v34-timeline-viewport,.v34-timeline-scroller{height:54px!important}
 .v34-filmline,.v34-clip-group{height:53px!important}.v34-clip{height:47px!important}
 .v34-topline{height:23px!important;min-height:23px!important}
 .v35-layer-row{height:24px;min-height:24px}.v35-layer-placeholder,.v35-layer-media{height:24px!important}
}
@media(max-width:380px){
 body .mode-editor .editor-layout>.stage-panel{flex-basis:clamp(310px,52dvh,490px)!important;height:clamp(310px,52dvh,490px)!important;min-height:310px!important}
}
.v35-extra-layers{display:grid;gap:6px;margin:10px 0;padding-top:12px;border-top:1px solid #344d69}
.v35-extra-choice{padding:8px;background:#132a30;border:1px solid #346f69;border-radius:8px;display:flex;align-items:center;gap:8px;font-size:11px;text-align:left;color:#e3f6f3}
.v35-extra-choice.selected{border-color:#e5c284;background:#24312e}
.v35-extra-choice small{margin-left:auto;color:#a8c8c5;font-size:10px}
.v35-photo-controls{display:grid;gap:10px;padding:10px;border:1px solid #426969;border-radius:8px;background:#101d20}
.v35-photo-controls strong{color:#eed4a9;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.v35-photo-controls label{font-size:11px;color:#b7ceca;display:grid;grid-template-columns:1fr auto;gap:5px}
.v35-photo-controls label input{grid-column:1/-1}
/* Keep picture/audio/text lanes visible while a tool is open — do not hide the timeline. */
@media(max-width:650px){
 body .mode-editor.v24-tool-open.v27-visual-panel .editor-layout>.timeline-panel,
 body .mode-editor.v24-tool-open .editor-layout>.timeline-panel{display:block!important;order:2!important;position:relative!important;top:auto!important;visibility:visible!important}
 body .mode-editor.v24-tool-open .editor-layout>.tab-row{order:3!important}
 body .mode-editor.v24-tool-open .editor-layout>.properties-panel{order:4!important}
}
