
/* V31 refinements */
.chooser-page-clean .mode-card .mode-media{background:linear-gradient(140deg,#0a1524,#0c1b2b)!important}
.chooser-page-clean .mode-card .mode-media img.v28-showcase-img{width:100%!important;height:100%!important;object-fit:contain!important;object-position:center center!important;background:radial-gradient(circle at 50% 40%,#153355,#09131f 72%)!important;padding:0!important}
.chooser-page-clean .mode-card.ai-mode .mode-media img.v28-showcase-img,.chooser-page-clean .mode-card.v30-auto-card .mode-media img.v28-showcase-img{object-fit:cover!important}
.chooser-page-clean .mode-card.video-mode .mode-media:before{display:none!important}
.chooser-page-clean .mode-card .mode-info{padding:18px 16px 18px!important}
.chooser-page-clean .mode-card .mode-info>small{margin-top:3px!important}

body .mode-editor .content-shell .editor-top{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;gap:8px!important;align-items:center!important}
body .mode-editor .editor-top .editor-top-left{min-width:0!important;display:flex!important;align-items:center!important;gap:8px!important;overflow:hidden!important}
body .mode-editor .editor-top #project-name{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body .mode-editor .editor-top .v24-format-host{width:auto!important;max-width:none!important}
body .mode-editor .editor-top #ratio-select{width:92px!important;max-width:92px!important;height:42px!important;min-height:42px!important;padding:0 30px 0 14px!important;border-radius:14px!important;display:flex!important;align-items:center!important}
body .mode-editor .editor-top .editor-actions{display:flex!important;gap:8px!important;width:auto!important;max-width:none!important}
body .mode-editor .editor-top .editor-actions label,body .mode-editor .editor-top .editor-actions .btn{height:42px!important;min-height:42px!important;border-radius:14px!important}
body .mode-editor .editor-top .editor-actions label{width:42px!important;min-width:42px!important;padding:0!important;display:flex!important;align-items:center!important;justify-content:center!important}
body .mode-editor .editor-top .editor-actions [data-action="export"]{min-width:132px!important;padding:0 18px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:10px!important}

.timeline-panel #v29-playlist{margin-top:10px!important;padding-top:10px!important;border-top:1px solid #3b5f7a60!important}
.v31-sequence-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin:4px 0 10px}
.v31-sequence-head>div{display:grid;gap:4px;min-width:0}
.v31-sequence-head strong{font-size:13px;color:#f4d7a8}
.v31-sequence-head small{font-size:10px;color:#9cb5ca;line-height:1.35}
.v31-sequence-shell{padding:8px 0 4px}
.v31-sequence-strip{display:flex;align-items:center;gap:8px;overflow-x:auto;padding:4px 0 10px;scrollbar-width:thin;overscroll-behavior-x:contain}
.v31-clip-unit{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.v31-clip-wrap{display:flex;align-items:stretch;gap:0;min-width:var(--clip-width);width:var(--clip-width);border:1px solid #5d7890;border-radius:14px;overflow:hidden;background:#0b1522;box-shadow:inset 0 1px #ffffff17;transition:border-color .18s,box-shadow .18s}
.v31-clip-wrap.selected{border-color:#efc682;box-shadow:0 0 0 1px #e2b16082,0 0 16px #d9a24f33}
.v31-clip-wrap.dragging,.v30-organize-row.dragging{border-color:#6fd4ff;box-shadow:0 0 18px #4db9f880}
.v31-clip-body{position:relative;display:block;width:calc(var(--clip-width) - 28px);min-width:76px;height:78px;padding:0;border:0;background:transparent;color:#fff;cursor:pointer}
.v31-clip-film{display:block;position:absolute;inset:0;background:#13263b;background-size:auto 100%;background-repeat:repeat-x;background-position:left center}
.v31-clip-film::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 0%,transparent 48%,#07111ece 100%)}
.v31-clip-overlay{position:absolute;inset:0;display:flex;justify-content:space-between;align-items:flex-end;padding:8px}
.v31-clip-overlay b{align-self:flex-start;background:#071522d8;border:1px solid #9fc1dd64;color:#fff;border-radius:999px;padding:2px 7px;font-size:10px}
.v31-clip-overlay small{background:#06101ba8;color:#f7f0e5;border-radius:7px;padding:2px 6px;font-size:10px}
.v31-clip-grip{width:28px;min-width:28px;border:0;border-left:1px solid #35506a;background:linear-gradient(180deg,#10263a,#0b1625);color:#d4e5f5;font-size:15px;cursor:grab}
.v31-clip-grip:active{cursor:grabbing}
.v31-transition{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:58px;min-width:58px;height:58px;border-radius:14px;border:1px dashed #5f8caf;background:#11263a;color:#bddfff;cursor:pointer;padding:4px 3px;box-shadow:inset 0 1px #ffffff12}
.v31-transition span{font-size:18px;line-height:1}
.v31-transition small{font-size:8px;line-height:1.15;text-align:center;max-width:52px}
.v31-transition.active{border-color:#e4b772;background:#2b2630;color:#ffe0af}
.v31-add-clip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;width:64px;min-width:64px;height:64px;border-radius:16px;border:1px dashed #6b94b6;background:#102136;color:#c5e4ff;font-size:11px;font-weight:700;cursor:pointer}
.v31-add-clip b{font-size:26px;line-height:1}
.v31-selected-tools{margin-top:4px;padding:12px;border:1px solid #3f5d79;border-radius:14px;background:linear-gradient(180deg,#0b1827,#0d1b2b)}
.v31-selected-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.v31-selected-head strong{font-size:12px;color:#f2d4a2}
.v31-selected-head button{border:1px solid #975e66;background:#43242b;color:#ffd4da;border-radius:12px;height:40px;padding:0 14px;font-size:11px;font-weight:700}
.v31-trim-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.v31-trim-grid label{display:grid;grid-template-columns:1fr auto;gap:5px;color:#a9c3d8;font-size:11px;align-items:center}
.v31-trim-grid output{color:#f1d39e;font-variant-numeric:tabular-nums}
.v31-trim-grid input{grid-column:1/-1;display:block;width:100%;accent-color:#ecbf74;height:18px}
.v31-selected-tip{margin:10px 2px 0;color:#8fb2ce;font-size:10px;line-height:1.35}
@media (max-width:620px){
  .chooser-page-clean .mode-card{grid-template-columns:minmax(122px,37%) minmax(0,1fr)!important;min-height:190px!important}
  .chooser-page-clean .mode-card .mode-media{height:100%!important;min-height:100%!important}
  .chooser-page-clean .mode-card .mode-info strong{font-size:19px!important}
  body .mode-editor .content-shell .editor-top{grid-template-columns:minmax(0,1fr) 92px 42px 132px!important}
  .v31-sequence-head{align-items:center}
}
@media (max-width:420px){
  .v31-trim-grid{grid-template-columns:1fr}
  .v31-clip-body{height:74px}
  .v31-transition{width:52px;min-width:52px;height:54px}
}
