@font-face{font-family:Bangers;src:url('vendor/fonts/bangers/Bangers-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:Caveat;src:url('vendor/fonts/caveat/Caveat[wght].ttf') format('truetype');font-weight:400 700;font-display:swap}
@font-face{font-family:'Permanent Marker';src:url('vendor/fonts/permanentmarker/PermanentMarker-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Abril Fatface';src:url('vendor/fonts/abrilfatface/AbrilFatface-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:'Bebas Neue';src:url('vendor/fonts/bebasneue/BebasNeue-Regular.ttf') format('truetype');font-display:swap}
@font-face{font-family:Satisfy;src:url('vendor/fonts/satisfy/Satisfy-Regular.ttf') format('truetype');font-display:swap}
:root{--line:#343640;--panel:#202127;--surface:#292b33}
.topbar{background:linear-gradient(180deg,#22232a,#18191e);box-shadow:0 3px 16px #0004;position:relative;z-index:4}.brand-mark{background:linear-gradient(145deg,#63acfa,#2189f8 60%,#0a6ed9);box-shadow:inset 0 1px 0 #ffffff70,0 4px 14px #2189f825}.export-button{background:linear-gradient(180deg,#499ef9,#2189f8);box-shadow:inset 0 1px 0 #bbdbfd,0 4px 12px #0005}.desktop-rail{background:linear-gradient(90deg,#17181d,#1d1e25)}.tool-button{transition:background .18s,box-shadow .18s,color .18s}.tool-button.active{background:linear-gradient(150deg,#3996f929,#2189f809);box-shadow:inset 0 0 0 1px #3996f928}.viewer-section{background:radial-gradient(ellipse at 50% 40%,#2b2c35,#131419 75%)}.stage{box-shadow:0 18px 50px #0009,0 0 0 1px #ffffff0c}.inspector{background:linear-gradient(160deg,#26272e,#1b1c22);box-shadow:-12px 0 35px #0003}.panel-header{border-bottom:1px solid #ffffff0b}.panel-body{scrollbar-width:thin;scrollbar-color:#585967 transparent}.transport{background:linear-gradient(180deg,#1b1c2200,#13141980)}.timeline-clip{box-shadow:0 3px 6px #0004;transition:box-shadow .15s}.timeline-clip.selected{box-shadow:0 0 0 1px #90c4fc,0 4px 12px #0006}.trim-handle{background:#ffffff2b}.track-header{box-shadow:4px 0 9px #0002}.clip-action,.wide-button{border:1px solid #ffffff0e;background:linear-gradient(180deg,#30323b,#25262d);box-shadow:inset 0 1px 0 #ffffff06,0 2px 4px #0002}.clip-action.primary,.wide-button.accent{background:linear-gradient(180deg,#4ca0f9,#2189f8);color:#141418}.wide-button:active,.clip-action:active,.export-button:active{transform:translateY(1px);box-shadow:inset 0 2px 5px #0003}.preset{transition:border-color .18s,background .18s,box-shadow .18s}.preset:hover{box-shadow:0 5px 15px #0004}.field input,.field select,.field textarea{background:#121318;box-shadow:inset 0 2px 5px #0003;border:1px solid #3e404a}.section-title{margin:20px 0 12px}.field-help{font-size:12px;line-height:1.55;color:var(--muted)}
.aspect-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:6px;margin-bottom:16px}.aspect-choice{min-height:68px;border:1px solid #42444e;background:#1b1c22;border-radius:9px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font-size:12px}.aspect-choice.selected{border-color:#52a3fa;color:#81bcfb;background:#2189f814}.aspect-symbol{display:block;max-height:24px;max-width:26px;height:24px;border:1.5px solid currentColor;border-radius:2px}.font-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:12px 0 20px}.font-card{padding:15px 6px;border:1px solid #3e404a;border-radius:11px;background:#191a1f}.font-card>span{display:block;font-size:25px;min-height:40px}.font-card small{color:var(--muted);font-size:12px}.font-card.selected{border-color:var(--accent)}.motion-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:14px 0}.motion-grid .wide-button{font-size:12px;margin:0;min-height:44px;text-transform:capitalize}.text-card{border:1px solid #41414a;border-radius:12px;padding:5px 5px 10px;background:linear-gradient(145deg,#282930,#1e1f25);overflow:hidden}.text-card>span{display:block;font-size:12px;color:#c5c5ce;margin-top:9px}.text-swatch{height:112px;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:13px;border-radius:7px;background:radial-gradient(ellipse,#303038,#1c1c22);font-size:26px}.text-design{display:inline-block;white-space:pre-wrap;line-height:1.05;max-width:100%;overflow-wrap:anywhere}.stage-text.text-custom{padding:0;max-width:90%;font-weight:400}.stage-text.text-custom.selected{outline-offset:7px}.text-swatch .text-design{max-width:100%;font-weight:400}.tpl-comic{-webkit-text-stroke:.035em #242024;text-shadow:.06em .06em #479df8;transform:rotate(-5deg)}.tpl-street{background:#eee9dc;padding:.16em .2em;text-shadow:.045em .045em #121218;-webkit-text-stroke:.015em #121218;box-shadow:.05em .05em 0 #b0aca3;transform:rotate(-3deg)}.tpl-paper{background:#dfe9f3;padding:.18em .27em;box-shadow:.08em .09em #b8b1a4;transform:rotate(-4deg)}.tpl-editorial{font-style:italic;letter-spacing:-.035em;border-bottom:.025em solid;padding-bottom:.09em}.tpl-badge{border:.08em solid #5eaafa;border-radius:50%;padding:.23em .25em;background:#52b5a2;text-shadow:.04em .04em #202024;-webkit-text-stroke:.02em #202024;box-shadow:0 0 0 .025em #16161c}.tpl-pinknote{background:#f8a9ca;padding:.35em .25em;box-shadow:.08em .1em .2em #0006;transform:rotate(5deg)}.tpl-marker{transform:rotate(-5deg);text-shadow:.03em .03em #24242a}.tpl-film{letter-spacing:.06em;text-shadow:0 .04em .08em #000;border-block:.025em solid #88b6e744;padding:.12em .2em}.tpl-summer{font-style:italic;text-shadow:.025em .025em #4b749f}.tpl-heavy{text-shadow:.05em .06em .02em #000b;letter-spacing:.01em}.tpl-journal{font-size:1.12em;transform:rotate(-3deg)}.tpl-poplabel{border:.065em solid #211f26;background:#ef76b4;padding:.18em .32em;box-shadow:0 0 0 .04em #ffe563,.1em .11em #ffe563;transform:rotate(-4deg);-webkit-text-stroke:.02em #25202a}.tpl-coffee{background:#50a2fa;padding:.1em .2em;box-shadow:.09em .05em #50a2fa;transform:rotate(-5deg)}.tpl-neonnights{text-shadow:0 0 .08em #fff,0 0 .3em #ff37b0,.045em .025em #674aff;letter-spacing:.035em}.tpl-signature{border-bottom:.025em solid;padding:0 .2em .09em;transform:rotate(-5deg)}.tpl-minimal{letter-spacing:.02em;text-shadow:.025em .025em #0008}
@media(max-width:800px){.inspector{border:1px solid #ffffff13;box-shadow:0 -18px 55px #0009;border-radius:22px 22px 0 0}.panel-header{padding-top:18px}.bottom-tools{background:linear-gradient(180deg,#26272e,#191a20);box-shadow:0 -4px 14px #0004}.clip-action{min-height:38px;border-radius:9px}.text-swatch{height:108px}.text-preset-grid{gap:9px}.photo-presets .preset>span{font-size:12px}.topbar{box-shadow:0 4px 15px #0003}}
@media(prefers-reduced-motion:reduce){.tool-button,.preset{transition:none}.text-design.animate__animated{animation:none!important}}
.speed-value{display:flex;flex-direction:column;align-items:center;gap:8px;padding:25px 10px;background:radial-gradient(ellipse at top,#2189f818,transparent);border:1px solid #2189f826;border-radius:14px;margin:16px 0}.speed-value strong{font-size:40px;font-family:'Space Grotesk',sans-serif;color:#71b4fb}.speed-value span{font-size:13px;color:var(--muted)}.speed-slider{width:100%;accent-color:var(--accent);height:40px}.speed-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0 20px}.speed-presets button{padding:12px 6px;border:1px solid #454650;border-radius:9px;background:#212229}.speed-presets button.selected{border-color:var(--accent);color:#77b7fb;background:#2189f814}.pitch-toggle{display:flex;align-items:center;gap:9px;margin:20px 0;font-size:14px}.pitch-toggle input{accent-color:var(--accent);width:18px;height:18px}
/* More generous touch spacing, while retaining the icon-and-label toolbar. */
.bottom-tools .tool-button .icon{stroke-width:2.25;width:24px;height:24px;filter:drop-shadow(0 1px 1px #0005)}.bottom-tools .tool-button{font-weight:600}.clip-actions{height:51px;padding-top:3px;padding-bottom:3px;gap:7px}.export-button{font-weight:800;border:1px solid #8ec3fb}.export-button .icon{stroke-width:2.2}.track-row{height:57px;border-bottom:1px solid #ffffff09}.timeline-clip{height:44px;top:6px;border-width:1.5px;border-radius:7px;box-shadow:inset 0 1px 0 #ffffff22,0 3px 7px #0005}.clip-face{border-radius:5px}.clip-label{padding-top:3px}.track-empty{top:9px;min-height:37px;padding:7px 17px;font-size:12px;font-weight:600;border:1px dashed #6b7590;color:#c8d2e7;border-radius:9px;background:linear-gradient(145deg,#638cff18,#282d3910);box-shadow:inset 0 1px 0 #ffffff08}.playhead{width:3px;transform:translateX(-1px);pointer-events:auto;cursor:ew-resize;touch-action:none;box-shadow:0 0 4px #0008}.playhead:before{left:-6px;width:15px;height:15px}.playhead:after{content:'';position:absolute;top:0;bottom:0;left:-11px;width:25px;background:transparent}.playhead:focus-visible{outline:1px solid #78b7fb}.timeline-scroll{touch-action:pan-x pan-y}.preview-manipulator{position:absolute;z-index:8;border:1.5px solid #8ec3fb;pointer-events:none;box-shadow:0 0 0 1px #0004}.preview-manipulator button{pointer-events:auto;position:absolute;right:-15px;bottom:-15px;width:30px;height:30px;border:2px solid #d5e9fe;background:#2189f8;color:#121218;border-radius:50%;font-size:18px;touch-action:none;box-shadow:0 3px 8px #0006}.preview-manipulator .preview-reset{right:auto;left:-14px;top:-14px;bottom:auto;width:28px;height:28px;font-size:16px}.visual-layer{pointer-events:auto;touch-action:none;cursor:move}#stage{touch-action:none}.preview-gesture-hint{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);z-index:9;border-radius:6px;background:#08090bd9;color:#eee;padding:5px 9px;font-size:11px;pointer-events:none;white-space:nowrap}.toast{z-index:10000;bottom:150px;background:#30323b;box-shadow:0 6px 22px #0008}
@media(max-width:800px){.clip-actions{height:51px;padding-top:3px;padding-bottom:3px}.track-row{height:57px}.timeline-clip{height:44px}.bottom-tools{height:72px;padding-top:5px;padding-bottom:max(5px,env(safe-area-inset-bottom))}.bottom-tools .tool-button{gap:7px}.timeline-section{min-height:255px}.transport{padding-top:4px;padding-bottom:4px}}
[hidden]{display:none!important}.track-lane,.ruler{touch-action:none}.export-resolution-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:22px 0 16px}.export-resolution{display:flex;flex-direction:column;align-items:center;gap:7px;padding:17px 5px;border:1px solid #494d59;border-radius:12px;background:linear-gradient(145deg,#30333d,#23252c)}.export-resolution strong{font-size:20px}.export-resolution span{font-size:11px;color:#d5d9e1}.export-resolution small{font-size:10px;color:#b0b9c9}.export-resolution.selected{border-color:#55a5fa;background:linear-gradient(145deg,#1e487555,#36271b);box-shadow:inset 0 1px 0 #93c6fc33}.export-note{font-size:12px!important}.export-issues{padding:14px;border-radius:10px;border:1px solid #487bb144;background:#174f8b15}.export-issues li{font-size:12px}#export-progress{width:100%;accent-color:#3694f9;margin:12px 0}#export-download a{text-decoration:none;justify-content:center}.preview-manipulator button{min-width:30px}.timeline-section{flex-shrink:0}
.add-media-button{padding:8px 10px;color:#95c7fc;background:#268cf81a;border:1px solid #3c97f950;border-radius:8px;font-size:12px;font-weight:700;white-space:nowrap}.track-empty{position:sticky;left:110px;margin-left:12px;margin-top:9px;top:auto;z-index:5;width:max-content;display:inline-flex}.track-lane{min-height:57px}.stage{clip-path:inset(0)}.topbar{padding-top:env(safe-area-inset-top)}@media(display-mode:standalone){#app{height:100dvh;padding-bottom:env(safe-area-inset-bottom)}.topbar{height:calc(65px + env(safe-area-inset-top))}}@media(max-width:760px){.timeline-actions .add-track-button{padding:6px;min-width:32px}.timeline-actions .add-track-button span:last-child{display:none}.timeline-actions .add-media-button{font-size:11px;padding:7px}.timeline-toolbar{padding-inline:8px}.timecode{font-size:10px}.timeline-actions{gap:2px}}
.curve-presets{display:flex;gap:7px;flex-wrap:wrap}.curve-presets button,.keyframe-list button{border:1px solid #545563;background:#292b35;border-radius:8px;padding:8px;font-size:12px}.speed-graph{width:100%;height:110px;margin:12px 0;background:#101116;border-radius:10px}.curve-sliders{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-bottom:15px}.curve-sliders label{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:11px}.curve-sliders input{width:100%;accent-color:#459cf9}.keyframe-list{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0}.curve-presets button:active,.keyframe-list button:active{background:#268cf8;color:#111}
#stage img,#stage video{-webkit-user-drag:none;user-select:none;-webkit-user-select:none}#stage{user-select:none;-webkit-user-select:none}

/* Track boundaries stay visible in the sticky header as the timeline scrolls. */
.track-row{border-bottom:1px solid #ffffff16;background:linear-gradient(180deg,#ffffff02,transparent)}
.track-header{border-right:1px solid #ffffff1c;box-shadow:4px 0 9px #0003,inset 0 -1px #ffffff07}
.track-header:after{content:'';position:absolute;bottom:0;left:8px;right:8px;height:1px;background:linear-gradient(90deg,transparent,#ffffff16,transparent);pointer-events:none}
.track-options{background:none;border:0;padding:5px 0;min-height:40px;text-align:left;color:#bcc0cb;cursor:pointer;font:inherit;font-size:11px;line-height:1.3}
.track-options small{display:block;color:#8f96a8;letter-spacing:2px;font-size:13px;line-height:9px}
.track-options:hover,.track-options:focus-visible{color:#fff}
.track-options:focus-visible{outline:1px solid #74b5fb;border-radius:4px}
.delete-track-button{color:#ffb0a9;border-color:#84befb30}
.track-empty-slot{position:sticky;left:100px;height:100%;min-height:57px;display:flex;align-items:center;justify-content:center;padding:6px 12px;z-index:5;pointer-events:none}
.track-empty-slot .track-empty{position:static;margin:0;display:inline-flex;align-items:center;justify-content:center;min-height:37px;max-width:100%;text-align:center;pointer-events:auto;line-height:1.3}
#timeline-scroll{touch-action:none;overscroll-behavior:contain;user-select:none;-webkit-user-select:none}
#timeline-scroll .timeline-clip{touch-action:none}
.transport-left,.transport-center,.transport-right{gap:7px}
.transport .preview-quality{border:1px solid #ffffff1b;border-radius:7px;padding:7px 9px;background:linear-gradient(180deg,#ffffff05,#ffffff01)}
.transport-center{padding-inline:9px;border-inline:1px solid #ffffff12}
.transport .icon-button{border-radius:7px;background:#ffffff03;box-shadow:inset 0 1px #ffffff05}
.transport .icon-button:hover{background:#ffffff09}
.transport .icon-button:active{background:#ffffff10}
@media(max-width:800px){.transport-left,.transport-center,.transport-right{gap:4px}.transport-center{padding-inline:5px}.transport .preview-quality{padding:6px 8px}}

/* Reclaim the preview heading and one quarter of preview space for track editing. */
.timeline-section{height:calc(25% + 249px);max-height:62%;min-height:190px}
.viewer-section{min-height:120px}
.stage-wrap{width:75%;align-self:center}
.stage.landscape{width:min(100%,518px)}
.top-actions .project-settings-button{width:40px;height:40px;flex:0 0 40px;margin-right:3px;border:1px solid #ffffff25;border-radius:9px;background:linear-gradient(180deg,#353741,#25262e);box-shadow:inset 0 1px 0 #ffffff12,0 2px 5px #0004;color:#d2d5df}
.top-actions .project-settings-button:hover{border-color:#6fb3fb80;color:#fff}
.top-actions .project-settings-button:active{transform:translateY(1px);background:#343640}
#stage{touch-action:none;-webkit-touch-callout:none}
#timeline-scroll{-webkit-touch-callout:none}
@media(min-width:1450px){.timeline-section{height:calc(25% + 272px)}}
@media(max-width:1050px){.timeline-section{height:calc(25% + 234px)}}
@media(max-width:760px){.timeline-section{height:calc(25% + 204px);max-height:62%;min-height:190px}.top-actions .project-settings-button{width:36px;height:36px;flex-basis:36px}.viewer-section{min-height:100px}}
@media(max-height:650px) and (max-width:760px){.timeline-section{height:calc(25% + 160px);min-height:170px;max-height:60%}}

.track-grabbed{position:relative;z-index:6;outline:1px solid #74b5fb;outline-offset:-1px;background:#3694f914;box-shadow:0 5px 14px #0005}
.track-grabbed .track-header{background:#453024;color:#b2d6fd}
.track-grabbed .track-options{color:#b2d6fd;cursor:grabbing}
.track-order-buttons{display:flex;gap:8px}.track-order-buttons .wide-button{flex:1;justify-content:center}
.track-header{-webkit-touch-callout:none;touch-action:none}
/* Selection and options are distinct touch targets. */
.track-selected .track-header{background:#242b39;box-shadow:inset 3px 0 #449cf9,4px 0 9px #0003}
.track-header .track-name{min-height:44px;width:40px;white-space:nowrap}
.track-header .lock-track{position:absolute;right:5px;top:3px;width:25px;height:25px}
.track-more{position:absolute;right:5px;bottom:3px;width:25px;height:24px;border-radius:5px;font-size:17px;line-height:16px;background:#ffffff06;color:#b9c2d4}
.track-more:hover{background:#ffffff15;color:#fff}
.clip-effect-overlay{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
.visual-layer::before{opacity:var(--look-before,1)}.visual-layer::after{opacity:var(--look-after,1)}
.visual-adjust-bar{position:sticky;bottom:0;z-index:15;padding:15px 4px 4px;margin-top:14px;background:#22242cf5;border-top:1px solid #ffffff26;box-shadow:0 -9px 20px #0004}
.adjust-value{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:7px}.adjust-value output{color:#74b5fb;font-weight:700}
#visual-strength,#visual-duration{width:100%;height:32px;accent-color:#449cf9;touch-action:pan-y}
#visual-strength{appearance:none;-webkit-appearance:none;background:transparent;cursor:pointer}
#visual-strength::-webkit-slider-runnable-track{height:5px;border-radius:4px;background:linear-gradient(90deg,#449cf9 var(--amount),#555761 var(--amount))}
#visual-strength::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:21px;height:21px;margin-top:-8px;border-radius:50%;background:#fff;border:2px solid #b6d8fd;box-shadow:0 2px 5px #0005}
#visual-strength::-moz-range-track{height:5px;border-radius:4px;background:#555761}#visual-strength::-moz-range-progress{height:5px;background:#449cf9}#visual-strength::-moz-range-thumb{width:19px;height:19px;border:1px solid #b6d8fd;background:#fff;border-radius:50%}
.adjust-buttons{display:flex;gap:10px}.adjust-buttons .wide-button{flex:1;justify-content:center;min-height:40px;margin:7px 0}.adjust-hint{position:sticky;bottom:0;background:#22242cf5;padding:12px 0;font-size:12px;color:#bfc5d0}
.transition-length{display:block;font-size:12px;margin-top:8px}.transition-length output{float:right;color:#74b5fb}
.preset.selected{outline:2px solid #82bdfb;outline-offset:-2px;background:#449cf917}.preset.selected .library-art{box-shadow:inset 0 0 0 2px #82bdfb}.effect-presets .library-art canvas{width:100%;height:100%;display:block;object-fit:cover}
.timeline-actions .add-track-button{display:flex;align-items:center;justify-content:center;gap:5px;min-height:34px;padding:7px 10px;border:1px solid #737d9255;border-radius:9px;background:linear-gradient(180deg,#414652,#2e323d);box-shadow:inset 0 1px #ffffff15,0 2px 5px #0003;font-size:11px;font-weight:650;color:#e8edf7}
.timeline-actions .add-track-button span:last-child{display:inline}.timeline-actions .add-track-button .icon{width:16px;height:16px}
.transport .icon-button{color:#d9dfe9;background:linear-gradient(180deg,#2c303a,#21242c);border:1px solid #59617466;box-shadow:inset 0 1px #ffffff10,0 2px 5px #0003}.transport .icon-button .icon{stroke-width:2.2}.transport .icon-button:hover{border-color:#77b7fb55;color:#fff}
@media(max-width:380px){.timeline-actions{gap:0}.timeline-actions .add-track-button{padding:7px 6px}.timecode{font-size:9px}}

.panel-body.visual-panel{display:flex;flex-direction:column;overflow:hidden;min-height:0}.visual-panel>.photo-presets{flex:1;min-height:90px;overflow-y:auto;align-content:start;padding:3px}.visual-panel>.intro,.visual-panel>.visual-adjust-bar,.visual-panel>.adjust-hint,.visual-panel>.wide-button,.visual-panel>.library-credit{flex-shrink:0}.visual-panel>.visual-adjust-bar{position:static}.visual-panel>.adjust-hint{position:static;margin-bottom:0}.visual-panel>.library-credit{font-size:10px;margin:5px 0}.visual-panel>.wide-button{min-height:30px;padding:6px;margin-block:3px}
/* Compact add controls stay next to the labels while the timeline scrolls. */
.track-empty-slot{justify-content:flex-start!important;padding:6px 9px!important}
.track-empty{min-height:29px!important;min-width:0!important;padding:5px 10px!important;font-size:10px!important;line-height:17px!important;border:1px solid #e7ebf36b!important;border-radius:8px!important;color:#20242c!important;background:linear-gradient(#eef1f8,#cdd4e0)!important;box-shadow:0 2px 6px #0003,inset 0 1px #fff9!important;white-space:nowrap}
.track-empty:hover{background:#fff!important}
.look-row{display:flex;height:29px;min-height:29px;position:relative;border-bottom:1px solid #ffffff08;--look-color:#70b3fb}
.look-filter{--look-color:#c4b2ff}
.look-header{position:sticky;left:0;z-index:9;flex:0 0 100px;width:100px;box-sizing:border-box;background:#1c1d24;display:flex;align-items:center;justify-content:space-between;padding:0 9px 0 14px;color:var(--look-color);font-size:10px;font-weight:750;letter-spacing:.8px;border-right:1px solid #ffffff14}
.look-header button{width:25px;height:25px;border:0;border-radius:6px;background:#ffffff0c;color:inherit;font-size:18px;line-height:1}
.look-strip{position:absolute;top:3px;height:23px;border:1px solid color-mix(in srgb,var(--look-color),transparent 45%);border-radius:5px;background:color-mix(in srgb,var(--look-color) 18%,#191a21);color:#f7f4fa;display:flex;align-items:center;gap:8px;justify-content:space-between;padding:0 6px;font-size:10px;overflow:hidden;white-space:nowrap;box-shadow:inset 0 1px #ffffff12,0 1px 3px #0003;text-align:left}
.look-strip span{overflow:hidden;text-overflow:ellipsis}.look-strip small{font-size:9px;opacity:.7}.look-strip.selected{border-color:#fff;box-shadow:0 0 0 1px var(--look-color)}
.look-range{display:flex;gap:12px;margin:7px 0}.look-range label{display:flex;align-items:center;gap:5px;font-size:11px;color:#c6c7d0}.look-range input{width:68px;background:#17181e;border:1px solid #ffffff25;border-radius:6px;color:white;padding:5px;font-size:12px}
.look-target{font-size:10px;color:#a6a7b2;margin:3px 0 7px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.remove-look{border:0;background:transparent;color:#a7d0fc;font-size:11px;padding:5px 0;margin:0 0 5px}
.photo-presets{gap:14px!important;padding:3px 2px 12px}.photo-presets .preset{background:linear-gradient(145deg,#30313b,#202129);border:1px solid #ffffff12;border-radius:13px!important;padding:6px 6px 10px!important;box-shadow:inset 0 1px #ffffff10,0 5px 10px #0004;transition:box-shadow .2s,border-color .2s,background .2s}
.photo-presets .preset.selected{background:linear-gradient(145deg,#514031,#29232a);border-color:#70b3fb;box-shadow:0 0 0 2px #52a3fa,0 5px 14px #0005}
.library-art{aspect-ratio:1!important;border-radius:8px}.library-art .filter-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover;object-position:50% 0;max-width:100%!important}
.gpu-effect-base{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.gpu-effect-base[hidden]{display:none}.clip-effect-overlay{z-index:2}
.visual-panel .visual-adjust-bar{padding-top:8px}.visual-panel .intro{margin-bottom:8px}
@media(prefers-reduced-motion:reduce){.photo-presets .preset{transition:none}}
.look-row .track-lane{min-height:29px;height:29px}

/* Stable square swatches: the gallery scrolls; its rows never collapse to fit. */
.panel-body.visual-panel{gap:8px;padding:12px;min-height:0}
.visual-panel>.photo-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:max-content;align-items:start;align-content:start;flex:1 1 0;min-height:110px;overflow:auto;overscroll-behavior:contain;gap:9px!important;padding:3px 3px 12px}
.photo-presets .preset{display:block;align-self:start;min-height:max-content;flex-shrink:0;padding:4px!important;border-radius:10px!important;box-shadow:inset 0 1px #ffffff10,0 3px 7px #0003}
.photo-presets .library-art{position:relative;width:100%;height:auto;aspect-ratio:1!important;flex-shrink:0;border-radius:6px}
.photo-presets .library-art canvas,.photo-presets .library-art img{position:absolute;inset:0;width:100%;height:100%;display:block}
.photo-presets .preset>span{display:block;min-height:28px;margin:6px 1px 2px;font-size:12px!important;line-height:14px;color:#dce0e9;overflow-wrap:anywhere;text-align:center}
.photo-presets .preset.selected>span{color:#94c6fc;font-weight:650}
.photo-presets .motion-badge{width:15px;height:15px;bottom:4px;right:4px;font-size:7px}
.visual-panel>.intro{font-size:12px;line-height:1.4;margin:0 0 3px}
.visual-panel>.visual-adjust-bar{margin:0;padding:8px 3px 0;background:#23252d;border-radius:9px;box-shadow:0 -6px 16px #0002}
.visual-panel>.adjust-hint{margin:0;padding:8px 3px;font-size:12px;line-height:1.4}
.visual-panel .adjust-value{font-size:13px}.visual-panel .look-target{font-size:12px}
.visual-panel .wide-button{font-size:12px;min-height:36px}
.visual-panel .adjust-buttons .wide-button{min-height:40px}
.photo-presets .preset:focus-visible,.look-strip:focus-visible{outline:2px solid #fff;outline-offset:1px}
.timeline-clip{border-color:color-mix(in srgb,var(--clip-color) 85%,#eee);box-shadow:inset 0 1px #ffffff50,0 3px 6px #0008}
.timeline-clip.selected{border-color:#92c5fc;box-shadow:0 0 0 1px #439bf9,inset 0 1px #c7e1fd,0 4px 10px #0007}
.clip-label{font-size:12px;font-weight:650;line-height:16px;padding:2px 6px;background:linear-gradient(180deg,#08090dcc,#08090d66,transparent);text-shadow:0 1px 3px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.film-strip{background:#263042;opacity:1;display:flex;overflow:hidden}
.film-strip img{height:100%;object-fit:cover;flex-shrink:0;border-right:1px solid #08090d55;pointer-events:none}
.clip-overlay .film-strip{background:#333047}
.timeline-wave{inset:auto 0 2px;height:23px;width:100%;color:#89e4c8}
.clip-video .timeline-wave,.clip-overlay .timeline-wave{height:13px;bottom:0;background:#0a172bcc;color:#a8d5ff}
.wave-status{position:absolute;bottom:5px;left:7px;font-size:10px;color:#b9c7d4;white-space:nowrap}
.clip-actions:empty{display:none}.clip-actions{border-top:1px solid #ffffff18;gap:7px;padding-block:6px;height:55px}
.track-empty-slot .track-empty{font-size:11px!important;min-height:30px!important;padding:5px 9px!important;box-shadow:inset 0 1px #fff,0 2px 4px #0005!important}
.look-header .look-layer-picker{width:auto;max-width:57px;padding:0 4px;font-size:11px;white-space:nowrap;letter-spacing:0}
.look-layers-menu .wide-button{justify-content:space-between;gap:12px;text-align:left}.look-layers-menu small{color:#bfc7d8;font-size:12px}
.look-header{padding-left:9px}.look-strip small{font-size:10px;opacity:.85}
@media(max-width:800px){.visual-panel>.photo-presets{grid-template-columns:repeat(4,minmax(0,1fr))}.panel-body.visual-panel{padding:12px}.transport{gap:8px}.bottom-tools .tool-button{color:#bfc6d2}.bottom-tools .tool-button.active{color:#58a6fa}.track-header .track-name{font-size:12px}.timeline-toolbar{border-block:1px solid #ffffff0b}}
@media(max-width:360px){.visual-panel>.photo-presets{grid-template-columns:repeat(3,minmax(0,1fr))}}
.look-timing{font-size:12px;color:#c9ced9;margin:3px 0 6px}.look-timing summary{cursor:pointer;padding:6px 0}.look-timing[open] .look-range{padding-bottom:3px}
.transition-options{display:flex;flex-shrink:0;gap:8px;position:relative;align-items:center}.transition-options>.wide-button{flex:1;margin:0;justify-content:center}.transition-options summary{cursor:pointer;border:1px solid #ffffff20;border-radius:8px;padding:9px 13px;font-size:12px;list-style:none}.transition-options details>div{position:absolute;bottom:42px;right:0;z-index:25;background:#282b35;border:1px solid #6d7385;border-radius:10px;padding:8px;box-shadow:0 5px 15px #0008}.transition-options details>div .wide-button{min-height:42px}
.stage-wrap{overflow:hidden}.stage{transform:scale(var(--preview-zoom,1));transform-origin:center}
.media-missing{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:12px;text-align:center;background:#181c25;border:1px dashed #737c91;color:#d2d7e1;font-size:12px}.media-missing button{border:1px solid #7fbbfb;color:#94c6fc;background:#4d3527;padding:8px;border-radius:7px;font-size:12px;pointer-events:auto}
.track-row{height:58px}.track-row .track-lane{min-height:58px}
@media(max-width:800px){.inspector:has(.visual-panel){height:min(63dvh,600px);bottom:72px}.panel-heading{flex-shrink:0}}

/* Preview workspace: the source canvas crops media; its sibling controls stay reachable. */
.stage-wrap{position:relative;width:100%;padding:20px;touch-action:none;user-select:none;-webkit-user-select:none}
.stage{flex:none;max-width:none;max-height:none}
.stage-wrap>.preview-manipulator{position:absolute;z-index:14;inset:auto;border:1.5px solid #72b4fb;box-sizing:border-box;pointer-events:none;box-shadow:0 0 0 1px #0005}
.stage-wrap>.preview-manipulator[hidden]{display:none!important}
.stage-wrap>.preview-manipulator button{position:absolute;inset:auto;width:36px;height:36px;min-width:36px;padding:0;border:2px solid #e6f2fe;border-radius:50%;display:grid;place-items:center;background:linear-gradient(#55a5fa,#1d87f8);color:#0c1621;font-size:20px;line-height:1;box-shadow:0 2px 8px #0008;pointer-events:auto;touch-action:none;cursor:nwse-resize}
.stage-wrap>.preview-manipulator [data-preview-reset]{cursor:pointer;font-size:23px}
.stage-wrap>.preview-manipulator.is-locked{border-color:#9296a1}
.stage-wrap>.preview-manipulator.is-locked button{background:#444853;color:#e1e4ed}
.stage-wrap>.preview-manipulator button:focus-visible{outline:3px solid white;outline-offset:3px}
.stage-text{width:max-content}
.stage-text.selected{outline:none}
.stage-text.selected:after{display:none}
.preview-grabbed,.preview-grabbed .stage-text,.preview-grabbed .visual-layer{cursor:grabbing}
.sheet-scrim{pointer-events:none!important;background:transparent!important}
.viewer-section{min-height:0}
.preview-divider{height:20px;flex:0 0 20px;display:flex;align-items:center;justify-content:center;touch-action:none;cursor:row-resize;background:#14151a;border-top:1px solid #ffffff09;border-bottom:1px solid #0005;position:relative;z-index:2;outline:none}
.preview-divider span{width:46px;height:4px;display:block;border-radius:8px;background:#626671;box-shadow:0 1px 0 #fff1;transition:background .15s,width .15s}
.preview-divider:hover span,.preview-divider:focus-visible span,.preview-divider.is-dragging span{width:62px;background:#429bf9}
.viewer-section.preview-expanded,.viewer-section:fullscreen{position:fixed;inset:0;width:100%;height:100%;height:100dvh;margin:0;z-index:9000;display:flex;flex-direction:column;background:#101114;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left)}
.viewer-section.preview-expanded .stage-wrap,.viewer-section:fullscreen .stage-wrap{width:100%;flex:1;min-height:0}
.viewer-section.preview-expanded .transport,.viewer-section:fullscreen .transport{flex:0 0 58px;height:58px;background:#191b21;border-top:1px solid #ffffff14}
.transport [data-action="fullscreen-preview"].active{color:#68affa;border-color:#5ca8fa}
@media(max-height:500px){.preview-divider{height:16px;flex-basis:16px}.stage-wrap{padding:20px}}

/* Alignment aids belong to the workspace, never to the exported frame. */
.preview-snap-guides{position:absolute;pointer-events:none;z-index:7;box-sizing:border-box;color:#7bb9fb}
.preview-snap-guides i{position:absolute;display:block;pointer-events:none;filter:drop-shadow(0 0 2px #000)}
.preview-snap-guides .snap-axis-x{top:0;height:100%;border-left:1px dashed #aed4fc}
.preview-snap-guides .snap-axis-y{left:0;width:100%;border-top:1px dashed #aed4fc}
.preview-snap-guides.snapped-width{border-left:1.5px solid #aed4fc;border-right:1.5px solid #aed4fc}
.preview-snap-guides.snapped-height{border-top:1.5px solid #aed4fc;border-bottom:1.5px solid #aed4fc}
.preview-snap-guides .snap-label{position:absolute;left:50%;top:8px;transform:translateX(-50%);padding:4px 8px;border:1px solid #8bc1fb66;border-radius:5px;background:#201810e8;color:#c3dffd;box-shadow:0 2px 8px #0005;font-size:10px;font-weight:650;white-space:nowrap}

/* A little breathing room, with the restored workspace layout intact. */
.clip-actions{height:59px;padding-block:8px;gap:8px}
.range-field{margin:20px 0}
.range-title{gap:12px;min-height:24px}
.range-title output,.adjust-value output,.eq-band output{font-variant-numeric:tabular-nums;min-width:36px;text-align:center;padding:3px 6px;border-radius:6px;background:#ffffff07;transition:color .14s,background .14s}
.range-adjusting .range-title output,.range-adjusting.adjust-value output,.range-adjusting.visual-adjust-bar .adjust-value output,.range-adjusting.eq-band output,.range-adjusting.transition-length output{color:#96c7fc;background:#429bf91c}
.range-field>input{margin:7px 0 0}
input[type=range]:not([data-eq]){height:30px;background:transparent;border:0;box-shadow:none;cursor:ew-resize}
input[type=range]:not([data-eq])::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:#454955}
input[type=range]:not([data-eq])::-moz-range-track{height:4px;border-radius:4px;background:#454955}
input[type=range]:not([data-eq])::-webkit-slider-thumb{width:16px;height:16px;margin-top:-6px;box-shadow:0 1px 4px #0006;transition:box-shadow .14s}
input[type=range]:not([data-eq])::-moz-range-thumb{width:13px;height:13px;box-shadow:0 1px 4px #0006;transition:box-shadow .14s}
input[type=range].range-adjusting::-webkit-slider-thumb,input[type=range]:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 5px #3996f925,0 1px 5px #0006}
input[type=range].range-adjusting::-moz-range-thumb,input[type=range]:focus-visible::-moz-range-thumb{box-shadow:0 0 0 5px #3996f925,0 1px 5px #0006}
#visual-strength.range-adjusting::-webkit-slider-thumb,#visual-strength:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 5px #3996f925,0 1px 5px #0006}
#visual-strength.range-adjusting::-moz-range-thumb,#visual-strength:focus-visible::-moz-range-thumb{box-shadow:0 0 0 5px #3996f925,0 1px 5px #0006}
.visual-panel>.visual-adjust-bar{padding:10px 6px 2px}
.adjust-buttons{gap:12px}

.install-app-summary{display:flex;align-items:center;gap:12px;margin-top:16px}.install-app-summary img{flex:none;border-radius:12px}.install-app-summary p{margin:0}
.install-steps{padding-left:22px}.install-steps li{padding:5px 0 5px 3px}
.install-link-label{display:block;font-size:12px;color:#b9c0ce;margin-bottom:7px}.install-editor-link{width:100%;min-width:0;padding:11px;border:1px solid #454b58;border-radius:8px;background:#14161c;color:#e5e9f0;font-size:12px}
html[data-installed="true"] [data-action="install-app"]{display:none}
@media(display-mode:standalone){#app{padding-bottom:0}}
@media(max-width:800px){
 .bottom-tools{height:calc(72px + env(safe-area-inset-bottom));padding-bottom:calc(5px + env(safe-area-inset-bottom))}
 .inspector,.inspector:has(.visual-panel){bottom:calc(72px + env(safe-area-inset-bottom))}
}

/* Compact finishing controls reuse the existing editor surfaces. */
.finishing-controls{flex-shrink:0;border:1px solid #ffffff1c;border-radius:12px;padding:12px;margin:8px 0 14px;background:#ffffff03}
.finishing-controls summary{cursor:pointer;font-size:14px;font-weight:600;padding:4px 0}
.finishing-controls[open] summary{margin-bottom:14px}
.finishing-controls .field-help,.finishing-controls #audio-level-report{font-size:13px;line-height:1.5}

.voice-studio audio{display:block;width:100%;margin:12px 0}.voice-studio .wide-button{margin-top:10px}#voice-recording-bar{position:fixed;z-index:10000;bottom:calc(90px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:12px;padding:12px 16px;border:1px solid #66aefa;border-radius:16px;background:#28232b;box-shadow:0 8px 30px #0008;max-width:96vw;box-sizing:border-box;font-size:14px}#voice-recording-bar span{color:#74b5fb;white-space:nowrap}#voice-recording-bar button{padding:10px;border-radius:9px;background:#393b46;color:white;border:1px solid #666;font:inherit;min-height:44px}.export-mode{margin:12px 0}.export-mode select{width:100%;padding:10px;font:inherit;background:#252831;color:#fff;border:1px solid #5b5e69;border-radius:10px}

/* Blue workspace polish. Equal side columns keep Play and the divider aligned. */
:root{--accent:#49adff;--accent-soft:#91cdff}
.topbar{background:linear-gradient(180deg,#202630,#161b23)}
.brand-mark,.export-button,.clip-action.primary,.wide-button.accent{background:linear-gradient(180deg,#79caff,#3d9ff5);color:#071b2e;border-color:#a6daff;box-shadow:inset 0 1px #ffffff70,0 3px 10px #0004}
.brand small{color:#91cdff}.bottom-tools .tool-button.active{color:#91cdff}
.viewer-section{background:radial-gradient(ellipse at 50% 40%,#242c38,#11161d 75%)}
.transport{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:6px}
.transport-left{justify-self:start;display:flex;align-items:center;min-width:0}
.transport-center{justify-self:center;display:flex;align-items:center}
.transport-right{justify-self:end;display:flex;align-items:center;min-width:0}
.preview-divider span{background:#6b9fcb;width:46px}
.preview-divider:hover span,.preview-divider:focus-visible span,.preview-divider.is-dragging span{background:var(--accent)}
.timeline-clip.selected{outline-color:var(--accent);box-shadow:0 0 0 1px #a6daff,0 3px 10px #0006}
@media(max-width:360px){.transport{padding-inline:8px;column-gap:3px}.transport-left,.transport-center,.transport-right{gap:2px}.transport-center{padding-inline:3px}.transport .preview-quality{padding-inline:5px}.transport .icon-button{width:28px}}
.export-settings{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.export-settings .export-mode{margin:0}
.export-bitrate{grid-column:1/-1;background:#111923;border:1px solid #344457;border-radius:10px;padding:12px}
.export-bitrate .range-title{font-size:14px}.export-bitrate input[type=range]{width:100%;margin:8px 0 0}
.export-bitrate .toggle-row{margin:0 0 8px;font-size:14px}.export-bitrate input[type=checkbox]{accent-color:var(--accent);width:18px;height:18px}
.export-settings select{width:100%;min-width:0}.export-summary{padding:10px 12px;border:1px solid #49adff30;background:#49adff0a;border-radius:9px}
.export-resolution-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.export-resolution strong{font-size:19px}.export-resolution{padding:12px 8px}.export-resolution small{font-size:12px}
@media(min-width:480px){.export-resolution-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}

.export-help{margin:14px 0;color:#aebccd;font-size:13px;line-height:1.5}.export-help summary{cursor:pointer}.export-help[open] summary{color:var(--accent-soft)}

/* v21: compact export copy, generous touch targets, no overflowing grid labels. */
.export-settings{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:17px;row-gap:17px}
.export-settings .export-mode{min-width:0;display:flex;flex-direction:column;gap:5px;white-space:nowrap;font-size:14px}
.export-settings select{box-sizing:border-box;font-size:14px;min-height:44px}
.export-resolution-grid{gap:13px}.export-resolution.selected{background:linear-gradient(135deg,#203b52,#242830)}
.export-summary{font-size:clamp(12px,3.25vw,14px);white-space:nowrap;line-height:1.5;padding:10px 8px;letter-spacing:-.2px}
.export-bitrate .field-help{white-space:nowrap;font-size:12px;line-height:1.5;margin-top:8px}
.export-bitrate .toggle-row{font-size:13px;gap:8px}.export-bitrate .range-title{font-size:14px}
.export-bitrate input[type=checkbox]{flex-shrink:0}.export-help{margin-block:16px}
.export-help summary{font-size:13px;white-space:nowrap}

.sound-library-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:12px 0;font-size:14px}
.sound-library-heading a{color:#91cdff;font-size:12px}.sound-library-filter{display:flex;gap:12px;align-items:center;font-size:13px}
.sound-library-filter select{min-height:40px;flex:1;min-width:0}.sound-library-list{display:grid;gap:9px}
.sound-card{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #3a4351;border-radius:12px;background:linear-gradient(135deg,#252d39,#20242c);min-width:0}
.sound-card.auditioning{border-color:#49adff;background:#233849}.sound-play{width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;color:#badeff;background:#314359}
.sound-play svg{width:21px;height:21px}.sound-info{min-width:0;flex:1;display:grid;gap:3px}.sound-info strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sound-info small{font-size:11px;color:#b3becb}.sound-add{min-height:44px;flex-shrink:0;padding:0 9px;border-radius:9px;background:#34485c;color:#e0f1ff;font-size:12px}
.finishing-controls .field select{display:block;width:100%;margin-block:7px 12px;min-height:44px}

.export-resolution strong{font-size:clamp(14px,4vw,19px);white-space:nowrap;letter-spacing:-.3px}

/* v22: readable snapping control and discoverable trim grips. */
.timeline-actions #snap-button{width:auto;min-width:56px;padding:6px;gap:4px;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:650;border:1px solid #64748b66;border-radius:8px;min-height:34px}
.timeline-actions #snap-button .icon{width:17px;height:17px}
.timeline-actions #snap-button.active{color:#8dd2ff;background:#1879c52b;border-color:#58b5ff80}
.clip-video .trim-handle,.clip-overlay .trim-handle,.clip-audio .trim-handle{opacity:1;width:14px;max-width:30%;top:2px;bottom:2px;background:#101c2b85;border:1px solid #b9d9f799;cursor:ew-resize;box-sizing:border-box}
.clip-video .trim-handle.left,.clip-overlay .trim-handle.left,.clip-audio .trim-handle.left{left:0;border-radius:5px 2px 2px 5px}
.clip-video .trim-handle.right,.clip-overlay .trim-handle.right,.clip-audio .trim-handle.right{right:0;border-radius:2px 5px 5px 2px}
.clip-video .trim-handle:after,.clip-overlay .trim-handle:after,.clip-audio .trim-handle:after{width:2px;height:18px;max-height:60%;left:50%;top:50%;transform:translate(-50%,-50%);background:#e7f4ff;border-radius:2px;pointer-events:none}
.timeline-clip.selected:is(.clip-video,.clip-overlay,.clip-audio) .trim-handle{background:#489ed4;border-color:#bde7ff;box-shadow:0 0 0 1px #15354d80}
.timeline-clip:is(.clip-video,.clip-overlay,.clip-audio) .clip-label{padding-inline:18px}
.timeline-clip .fade-handle{top:-7px}
@media(max-width:380px){.timeline-toolbar{gap:4px;padding-inline:6px}.timeline-actions #snap-button{min-width:51px;padding-inline:4px;gap:2px}.timeline-toolbar .timecode{font-size:10px;gap:4px}}

/* Appending keeps a sequence on its chosen lane. */
.track-append{position:absolute;top:50%;transform:translateY(-50%);height:30px;padding:0 10px;border-radius:8px;border:1px solid #a9c3d76b;background:#e5eef7;color:#172839;font-size:11px;font-weight:650;white-space:nowrap;z-index:2}
.track-append:hover{background:#fff}
.sound-library-filter{display:grid;grid-template-columns:44px minmax(0,1fr);gap:8px;margin-block:6px}
.sound-library-filter select{width:100%;padding:7px 9px;border:1px solid #63758980;border-radius:8px;background:#202d3a;color:#e7eff8;font:inherit}

/* v24: mobile look pickers must never clip controls behind the navigation. */
@media(max-width:800px){
 .inspector:has(.visual-panel){bottom:calc(80px + env(safe-area-inset-bottom));height:min(72dvh,640px);max-height:calc(100dvh - 150px - env(safe-area-inset-bottom));overflow:hidden}
 .inspector:has(.visual-panel) .panel-heading{min-height:48px;padding:12px 16px}
 .panel-body.visual-panel{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;gap:8px;padding:10px 12px 14px;scroll-padding-bottom:14px}
 .visual-panel>.photo-presets{flex:0 0 auto;grid-template-columns:repeat(4,minmax(0,1fr));height:clamp(120px,19dvh,154px);min-height:120px;padding:3px 3px 10px;gap:8px!important}
 .visual-panel .photo-presets .library-art{max-width:72px;margin-inline:auto}
 .visual-panel .photo-presets .preset>span{font-size:11px!important;line-height:13px;min-height:26px;margin:4px 0 0}
 .visual-panel>.intro{font-size:11px;line-height:1.4;margin:0}
 .visual-panel>.visual-adjust-bar{padding:8px;border:1px solid #ffffff12;box-shadow:none}
 .visual-panel #visual-strength{height:28px;margin:4px 0}
 .visual-panel .transition-length{margin-top:4px;font-size:11px}
 .visual-panel .transition-length input{height:26px;margin:3px 0}
 .visual-panel .adjust-buttons{gap:8px}
 .visual-panel .adjust-buttons .wide-button{min-height:36px;margin:5px 0 0;padding:7px}
 .visual-panel>.transition-options{min-height:38px;padding-bottom:2px;margin:0}
 .visual-panel .transition-options>.wide-button{min-height:36px;padding:7px;margin:0}
 .visual-panel .transition-options summary{padding:8px 12px}
}
@media(max-width:800px) and (max-height:700px){
 .inspector:has(.visual-panel){height:calc(100dvh - 144px - env(safe-area-inset-bottom));max-height:calc(100dvh - 144px - env(safe-area-inset-bottom))}
 .inspector:has(.visual-panel) .panel-heading{min-height:42px;padding:8px 14px}
 .panel-body.visual-panel{gap:6px;padding:8px 10px 10px}
 .visual-panel>.photo-presets{height:112px;min-height:112px}
}

/* v25: taller video strips, centered cut controls and turquoise accents. */
:root{--accent:#0bc5d4;--accent-soft:#8aebef;--green:#22c7cb}
.track-row:is([data-track-kind="video"],[data-track-kind="overlay"]){height:70px}
.track-row:is([data-track-kind="video"],[data-track-kind="overlay"]) .track-lane{min-height:70px}
.timeline-clip:is(.clip-video,.clip-overlay){height:56px;top:50%;transform:translateY(-50%)}
.transition-node{top:50%;transform:translate(-50%,-50%);width:30px;height:30px;border-radius:6px;background:#f7fafb;border:1px solid #fff;color:#243238;box-shadow:0 2px 6px #0007,0 0 0 1px #18242b66;z-index:5}
.transition-node .icon{width:17px;height:17px;stroke-width:2}
.transition-node.active{background:#c9f6f5;border-color:#1ccbd5;color:#07535a;box-shadow:0 0 0 2px #10bac77a,0 2px 6px #0006}
.brand-mark,.export-button,.clip-action.primary,.wide-button.accent{background:linear-gradient(180deg,#63e5e8,#0dbbcd);border-color:#9af4f2;color:#06252b}
.brand small,.bottom-tools .tool-button.active,.tool-button.active{color:#87e9ed}
.tool-button.active{background:linear-gradient(145deg,#13c4ce24,#13c4ce08);box-shadow:inset 0 0 0 1px #38d5dc35}
.timeline-actions #snap-button.active{color:#8aebef;background:#0bb9c624;border-color:#34d4de80}
.preview-divider span{background:#62c9d0}
.timeline-clip.selected{border-color:#e4fffe;box-shadow:0 0 0 1px #17c8d2,inset 0 1px #e4fffe,0 3px 8px #0006}
.clip-audio{background:#16484e;border-color:#309ba5}
.clip-audio .timeline-wave{color:#22d3dd}
.clip-audio .clip-label{color:#e2ffff}
.timeline-clip.selected:is(.clip-video,.clip-overlay,.clip-audio) .trim-handle{background:#27b6c0;border-color:#d3fffc}

/* v26: compact cut marker; the invisible touch margin remains easy to hit. */
.transition-node{width:23px;height:23px;border-radius:5px}
.transition-node .icon{width:14px;height:14px}
.transition-node::before{content:"";position:absolute;inset:-7px}
.brand .brand-mark{padding:0;background:#101820;border:0;box-shadow:none;overflow:hidden;border-radius:10px}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.statusbar a{color:inherit}

/* v28: a compact, grouped project panel with clear file actions. */
.panel-body.project-panel{display:flex;flex-direction:column;gap:14px;padding:16px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-block:16px}
.project-panel>*{flex-shrink:0;min-width:0}
.project-overview{padding:16px;border:1px solid #73dfe529;border-radius:16px;background:linear-gradient(135deg,#153037,#202a32 65%)}
.project-caption{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;letter-spacing:.7px;color:#a0e3e6;margin-bottom:15px}
.project-local-dot{width:6px;height:6px;border-radius:50%;background:#54ded1;box-shadow:0 0 0 3px #54ded118}
.project-name-label{display:block;font-size:11px;color:#b1c2cd;margin-bottom:7px}
.project-panel #project-title{display:block;width:100%;min-width:0;min-height:44px;border:1px solid #73899660;border-radius:10px;padding:10px 12px;background:#121b24;color:#f6fbff;font-size:16px;font-weight:550;line-height:1.3}
.project-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}
.project-facts>span{display:grid;grid-template-columns:18px 1fr;column-gap:8px;row-gap:2px;align-items:center}
.project-facts .icon{width:16px;height:16px;color:#8abcc7;grid-row:1/3}
.project-facts strong{font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.project-facts small{font-size:10px;color:#a3b4c2}
.project-card{padding:14px;border:1px solid #ffffff12;border-radius:14px;background:#20252e}
.project-card h3{margin:0 0 12px;font-size:12px;letter-spacing:.2px;font-weight:650;color:#f0f4f8}
.project-setting{display:grid;grid-template-columns:minmax(0,1fr) minmax(132px,1.1fr);gap:10px;align-items:center;margin-top:10px}
.project-setting label{font-size:12px;color:#c0cbd6;line-height:1.4}
.project-setting select{width:100%;min-width:0;min-height:44px;padding:9px 10px;background:#161d26;border:1px solid #56657980;border-radius:9px;color:#f4f7fa;font-size:12px;line-height:1.4}
.project-setting.project-guides{display:flex;justify-content:space-between;min-height:44px;margin-top:6px}
.project-guides .toggle{position:relative;flex-shrink:0}.project-guides .toggle:after{content:"";position:absolute;inset:-12px -4px}
.project-panel .project-help{margin:8px 0 0;color:#9fadb9;font-size:11px;line-height:1.5;overflow-wrap:break-word}
.project-panel .wide-button{min-height:44px;margin:0;padding:10px 9px;border:1px solid #53607166;border-radius:10px;background:#2c3440;box-shadow:0 1px 2px #0002;font-size:12px;line-height:1.4;gap:7px;font-weight:550;white-space:normal}
.project-panel .wide-button .icon{width:17px;height:17px}
.project-panel .wide-button.accent{background:linear-gradient(180deg,#66e6e8,#13c0cf);color:#06272e;border-color:#8ceff0;font-weight:700}
.project-button-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.project-more{border-top:1px solid #ffffff12;margin-top:14px;padding-top:4px}
.project-more summary{display:flex;align-items:center;justify-content:space-between;min-height:44px;cursor:pointer;list-style:none;font-size:12px;color:#b7c7d3}
.project-more summary::-webkit-details-marker{display:none}.project-more summary .icon{width:15px;height:15px;transition:transform .18s}.project-more[open] summary .icon{transform:rotate(180deg)}
.project-secondary-actions{display:grid;gap:8px;padding-top:3px}.project-secondary-actions .wide-button{justify-content:flex-start;background:#252d38}
.project-utilities{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-bottom:4px}
.project-utilities .wide-button{background:transparent;border-color:#47536366;color:#c0cdd8;font-size:11px}
.project-more summary:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:6px}
@media(max-width:800px){
 .inspector:has(.project-panel){bottom:calc(80px + env(safe-area-inset-bottom));height:min(62dvh,610px);max-height:calc(100dvh - 154px - env(safe-area-inset-bottom));overflow:hidden}
 .inspector:has(.project-panel) .panel-heading{min-height:48px;padding:10px 16px;flex-shrink:0;background:#20242d;border-bottom:1px solid #ffffff12}
 .inspector:has(.project-panel) .panel-heading h2{font-size:17px}
 .panel-body.project-panel{padding:12px 14px 18px;gap:12px;min-height:0}
 .project-overview{padding:14px}.project-caption{margin-bottom:12px}
}
@media(min-width:801px) and (max-width:1100px){.project-setting{grid-template-columns:1fr}.project-utilities{grid-template-columns:1fr}.project-button-pair{grid-template-columns:1fr}}

/* v29: lane controls below the cursor; sticky track names cover transitions. */
.track-header{z-index:20}
.playhead{z-index:10}
.playhead:after{top:0;bottom:auto;height:27px}

/* v31 — contrasting fade envelopes and direct clip gain. */
.audio-fade-shape{position:absolute;inset:3px 0 0;width:100%;height:calc(100% - 3px);pointer-events:none;overflow:hidden;z-index:2}
.audio-fade-shape path{fill:#ffb34712;stroke:#ffb347;stroke-width:1.5;vector-effect:non-scaling-stroke}
.timeline-clip .fade-handle{background:#ffb347;border-color:#38270f;box-shadow:0 0 0 1px #ffe1aa;z-index:7}
.fade-handle:after{content:'';position:absolute;inset:-6px}
.fade-handle .fade-label{background:#ffb347;color:#241604;pointer-events:none}
.fade-handle[data-fade="out"] .fade-label{right:0}
.volume-handle{position:absolute;left:50%;top:55%;transform:translate(-50%,-50%);height:28px;min-width:28px;display:flex;align-items:center;justify-content:center;gap:3px;z-index:6;cursor:ns-resize;touch-action:none;border-radius:12px;background:#241530df;padding:4px}
.volume-dot{width:11px;height:11px;flex-shrink:0;border-radius:50%;background:#d3a0ff;border:1px solid #f6ddff;pointer-events:none}
.volume-label{font-size:9px;color:#f0d9ff;white-space:nowrap;pointer-events:none}
.volume-handle:focus-visible,.fade-handle:focus-visible{outline:2px solid white;outline-offset:3px}

.volume-handle{width:26px;min-width:0;max-width:100%;height:26px;padding:3px}
.volume-label{display:none;position:absolute;bottom:29px;left:50%;transform:translateX(-50%);background:#d3a0ff;color:#28133b;padding:4px 6px;border-radius:5px;font-size:10px}
.volume-handle:is(:hover,:focus-visible,.adjusting) .volume-label{display:block}

/* v32 — bottom-centered gain grip inside the audio clip. */
.volume-handle{top:auto;bottom:0;transform:translateX(-50%);width:32px;height:22px;padding:0 4px;background:transparent;border-radius:5px}
.volume-dot{width:24px;max-width:100%;height:5px;flex-shrink:1;border:0;border-radius:3px;background:#d3a0ff;box-shadow:0 0 0 1px #301b40,0 1px 3px #0008}
.volume-label{bottom:25px}

/* v33 — let transitions use the available panel height, with controls below. */
.panel-body.visual-panel.transitions-panel{min-height:0;overflow-y:auto;overflow-x:hidden}
.panel-body.transitions-panel>.photo-presets{flex:1 1 0;height:auto;min-height:100px;overflow-y:auto;overscroll-behavior:contain}
.transitions-panel>.intro{flex:0 0 auto;margin:0;font-size:12px;line-height:1.4}
.transitions-panel>.adjust-hint,.transitions-panel>.visual-adjust-bar,.transitions-panel>.transition-options{flex:0 0 auto;margin:0}
