/* V30 — Refinements requested after the iPhone review. The editor tools keep their places. */
.chooser-page-clean .chooser-intro{margin-bottom:30px!important;line-height:1.72!important;max-width:570px!important}
.chooser-page-clean .v13-hero-signal{margin-top:20px!important;margin-bottom:28px!important}
.chooser-page-clean .mode-options.mode-options-triple{gap:21px!important}
.chooser-page-clean .mode-card.v30-auto-card{border:1px solid #4c92cbbd!important;background:linear-gradient(115deg,#122a4c,#091425)!important;min-height:170px!important}
.chooser-page-clean .v30-auto-card .mode-media:after{background:linear-gradient(180deg,#081a2b11,#081a2b84)}
.chooser-page-clean .v30-auto-card .media-badge{z-index:4}
.chooser-page-clean .mode-card.video-mode .mode-media{background:#0d1c2b;isolation:isolate}
.chooser-page-clean .mode-card.video-mode .mode-media:before{content:"";position:absolute;inset:-12px;background:url('assets/diamond-cinema-camera-premium.jpg') center/cover;filter:blur(13px) brightness(.48);pointer-events:none}
.chooser-page-clean .mode-card.video-mode .mode-media img.v28-showcase-img{position:relative;z-index:1;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;transform:none!important;filter:saturate(1.06) contrast(1.03) drop-shadow(0 6px 13px #000b)!important}
.chooser-page-clean .mode-card.video-mode:hover .mode-media img.v28-showcase-img{transform:none!important}
.chooser-page-clean .mode-card.video-mode .media-overlay-play{z-index:3}
.chooser-page-clean .mode-card .mode-info>small{line-height:1.55!important;margin-bottom:14px!important}
.chooser-page-clean .mode-card .mode-info>.v13-mode-features{margin-bottom:15px!important}
.chooser-page-clean .mode-card .mode-info>em{margin-top:8px!important}
/* iOS header: normalize native select/chevron against button baselines. */
.mode-editor .editor-top{align-items:center!important}
.mode-editor .editor-top .editor-actions,.mode-editor .editor-top .v24-format-host{align-items:center!important;align-self:center!important;line-height:1!important}
.mode-editor .v24-format-host label{display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;margin:0!important;vertical-align:middle!important}
.mode-editor .v24-format-host select{appearance:none!important;-webkit-appearance:none!important;padding:0 25px 0 12px!important;height:44px!important;min-height:44px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dcecff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 9 4-4 4 4M8 15l4 4 4-4'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-size:14px 14px!important;background-position:right 8px center!important;font-family:inherit!important;line-height:44px!important;text-align:left!important;font-size:14px!important;font-weight:700!important}
.mode-editor .editor-top .editor-actions>label,.mode-editor .editor-top .editor-actions>button{height:44px!important;min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important;white-space:nowrap!important;line-height:1!important}
.mode-editor .editor-top .editor-actions svg{display:block!important;margin:0!important;vertical-align:middle!important}
/* Actual story-board timeline: clips, joins, direct trimming, and touch-friendly reorder. */
.v30-timeline-title{display:flex;align-items:center;justify-content:space-between;gap:11px;margin:10px 0 8px}
.v30-timeline-title>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.v30-timeline-title strong{font-size:13px;color:#f5d6a7}
.v30-timeline-title small{font-size:10px;color:#a1b9cd;line-height:1.3}
.v30-organize{border:1px solid #6989a9;border-radius:9px;background:#102a44;color:#cbe8ff;font-size:11px;font-weight:700;white-space:nowrap;padding:11px 12px;cursor:pointer;min-height:39px}
.v30-playlist-scroll{display:flex!important;align-items:stretch!important;gap:0!important;scroll-snap-type:none!important;padding:2px 3px 11px!important;min-height:106px!important}
.v30-clip-pair{display:flex;flex:0 0 auto;align-items:stretch}
.v30-clip-wrap{position:relative;display:flex;flex:0 0 var(--clip-width);width:var(--clip-width);min-width:112px;border:2px solid #52697f;border-radius:11px;overflow:hidden;background:#080f1a;transition:border-color .15s;isolation:isolate}
.v30-clip-wrap.selected{border-color:#ecc485;box-shadow:0 0 0 1px #ddac5b88,0 0 13px #c7974160}
.v30-clip-wrap.dragging,.v30-organize-row.dragging{box-shadow:0 0 17px #4cafeeaa;border-color:#70d3ff;background:#1b3e54}
.v30-clip-select{min-width:0;width:100%;display:flex;flex-direction:column;padding:0;justify-content:stretch;align-items:stretch;background:transparent;border:0;color:#f5f0e9;cursor:pointer;text-align:left}
.v30-thumb{position:relative;min-height:66px;flex:1;display:flex;align-items:flex-end;justify-content:flex-start;background:linear-gradient(130deg,#112f50,#253348,#07131f);background-size:cover;background-position:center center}
.v30-clip-id{position:absolute;top:5px;left:6px;background:#061728d9;border:1px solid #c1daf57a;border-radius:5px;font-size:10px;font-weight:800;padding:2px 6px;color:white}
.v30-clip-time{margin-left:5px;margin-bottom:4px;border-radius:4px;padding:2px 4px;font-size:9px;color:#fff;background:#040910a9}
.v30-clip-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:5px 24px 5px 7px;font-size:9px;line-height:1.2;color:#d5e5f8}
.v30-drag-handle{position:absolute;bottom:0;right:0;top:0;min-width:27px;z-index:2;display:grid;place-items:center;padding:0;color:#b6dffb;background:linear-gradient(90deg,#122437aa,#09213bf3);border:0;border-left:1px solid #97bdd446;font-size:19px;font-weight:900;touch-action:none;user-select:none;-webkit-user-select:none;cursor:grab}
.v30-join{position:relative;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;align-self:center;flex:0 0 61px;min-height:62px;padding:3px 2px;border-radius:9px;border:1px dashed #679ac1;background:#0f2942;color:#b4ddff;cursor:pointer;margin:0 4px}
.v30-join.active{border-color:#e6b66e;color:#ffd7a0;background:#302b2e}
.v30-join span{font-size:25px;line-height:1}
.v30-join small{font-size:8px;max-width:57px;text-align:center;line-height:1.1}
.v30-add-clip{align-self:center;flex:0 0 65px;min-height:68px;display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;border:1px dashed #7096b9;border-radius:10px;background:#10233a;color:#dceeff;cursor:pointer}
.v30-add-clip b{font-size:25px;line-height:1}
.v30-add-clip small{font-size:10px}
.v30-selected-tools{padding:11px 12px 12px;margin-top:4px;border:1px solid #41597b80;border-radius:12px;background:#0d1b2ccb}
.v30-selected-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:8px}
.v30-selected-title strong{font-size:11px;color:#f3d5a0}
.v30-selected-title button{font-size:10px;border:1px solid #875759;background:#271921;color:#f2c8c8;border-radius:6px;padding:6px 8px;cursor:pointer}
.v30-selected-title button:disabled{opacity:.35}
.v30-trim-bars{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.v30-trim-bars label{display:grid;grid-template-columns:1fr auto;gap:5px;color:#a9c4d9;font-size:11px;align-items:center}
.v30-trim-bars output{color:#f0d099;font-variant-numeric:tabular-nums}
.v30-trim-bars input{grid-column:span 2;display:block;width:100%;height:17px;accent-color:#eab975;touch-action:pan-y}
.v30-import-overlay{position:fixed;inset:0;z-index:13000;display:flex;align-items:center;justify-content:center;background:#050c16d8;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);padding:25px}
.v30-import-card{padding:26px 21px;width:min(92vw,390px);background:linear-gradient(140deg,#0d2a48,#080f1c);border:1px solid #c6a36d;border-radius:20px;box-shadow:0 15px 50px #000c;text-align:center;color:#eff4f9}
.v30-import-card h3{margin:8px 0;font-size:19px}
.v30-import-card p{font-size:12px;color:#bed2e0;overflow-wrap:anywhere}
.v30-import-card small{font-size:10px;line-height:1.3;color:#a2b9ca}
.v30-import-spark{font-size:38px;color:#eac584}
.v30-import-meter{height:7px;margin:18px 0;border-radius:10px;background:#28415b;overflow:hidden}
.v30-import-meter span{display:block;width:2%;height:100%;background:linear-gradient(90deg,#2799eb,#efbd72);transition:width .15s ease}
.v30-organize-list{max-height:50vh;overflow-y:auto;display:flex;flex-direction:column;gap:8px;margin:14px 0}
.v30-organize-row{display:flex;gap:7px;align-items:center;min-height:57px;border:1px solid #57738c;border-radius:10px;background:#102138;padding:5px}
.v30-organize-image{height:47px;width:69px;flex:0 0 69px;border-radius:7px;background:linear-gradient(130deg,#132e4b,#061221);background-size:cover;background-position:center}
.v30-organize-text{min-width:0;flex:1;display:grid;gap:4px}
.v30-organize-text b{font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f3e3c7}
.v30-organize-text small{font-size:9px;color:#adc4d9}
.v30-organize-row button{border:1px solid #667e92;border-radius:7px;background:#0b1725;color:#d5eaff;min-width:28px;height:37px;font-size:17px;cursor:pointer}
.v30-organize-row button:disabled{opacity:.3}
.v30-modal-grip{font-size:21px;min-width:30px;padding:8px;color:#efd4a1;touch-action:none;cursor:grab;user-select:none;-webkit-user-select:none}
.v30-trans-duration{display:flex;flex-direction:column;gap:9px;margin:12px 0;color:#e7d4ac;font-size:13px}
.v30-trans-duration input{accent-color:#f0c37f;width:100%;height:30px}
/* No artificially pixelated person thumbnails; gradient look swatches are sharp and load instantly. */
.mode-editor .filter-swatch,.mode-photo .photo-preset>span{display:grid;place-items:center;overflow:hidden;border-radius:9px!important}
.mode-editor .filter-swatch>span{font-size:23px;text-shadow:0 2px 12px #0009;color:#fff1d2}
.mode-editor .filter-swatch canvas,.mode-photo .photo-preset canvas{display:none!important}
@media(max-width:650px){
 .chooser-page-clean .chooser-intro{margin-bottom:30px!important;padding-inline:12px!important}
 .chooser-page-clean .v13-hero-signal{margin-bottom:29px!important}
 .chooser-page-clean .mode-card{grid-template-columns:minmax(116px,36%) minmax(0,1fr)!important}
 .chooser-page-clean .mode-card .mode-info{padding:15px 11px 16px!important;gap:4px!important}
 .chooser-page-clean .mode-card .mode-info>small{margin-bottom:10px!important}
 .chooser-page-clean .mode-card .mode-info>em{margin-top:11px!important}
 .chooser-page-clean .mode-card.v30-auto-card{min-height:170px!important}
 .v30-timeline-title strong{font-size:12px}.v30-timeline-title small{font-size:9px}
 .v30-clip-wrap{min-height:105px}
 .v30-trim-bars{gap:9px}
 .mode-editor .editor-top .v24-format-host select{padding:0 22px 0 10px!important;font-size:13px!important;height:42px!important;line-height:42px!important}
 .mode-editor .editor-top .editor-actions>label,.mode-editor .editor-top .editor-actions>button{height:42px!important;min-height:42px!important}
}
@media(max-width:380px){.chooser-page-clean .mode-card{grid-template-columns:110px minmax(0,1fr)!important}.v30-clip-wrap{min-width:112px}}
/* Earlier mobile files force timeline height 43px/98px, clipping the new sequence.
   Override those constraints only in the V30 video editor. */
@media(max-width:650px){
 body .mode-editor .editor-layout>.timeline-panel{
  flex:0 0 auto!important;height:auto!important;min-height:205px!important;max-height:none!important;
  overflow:visible!important;box-sizing:border-box!important;padding:6px 7px 9px!important;
  order:1!important;border-radius:12px!important;
 }
 body .mode-editor .timeline-panel #v29-playlist{position:relative!important;display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:13px 0 0!important;padding:6px 0 2px!important;border-top:1px solid #3e5e7a77!important}
 body .mode-editor .editor-layout>.tab-row{order:3!important;flex-shrink:0!important}
 body .mode-editor .editor-layout>.properties-panel{order:4!important}
 .chooser-page-clean .mode-card.video-mode .mode-media:before{z-index:0;background-size:auto 100%;filter:blur(9px) brightness(.88) saturate(1.16)}
 .chooser-page-clean .mode-card.video-mode .mode-media img.v28-showcase-img{z-index:1}
}
/* Full cinematography photo kept inside a portrait-safe composition, no cut-off lens. */
.chooser-page-clean .mode-card.video-mode .mode-media:before{display:none!important}
.chooser-page-clean .mode-card.video-mode .mode-media img.v28-showcase-img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;transform:none!important;filter:saturate(1.06) contrast(1.04)!important}
