@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../public/fonts/dm-sans-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../public/fonts/dm-sans-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('../public/fonts/manrope-latin.woff2') format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'Manrope';font-style:normal;font-weight:400 800;font-display:swap;src:url('../public/fonts/manrope-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}

:root {
  color-scheme: dark;
  --font: 'DM Sans', 'Segoe UI', sans-serif;
  --accent: #b81cfc;
  --accent-rgb: 184, 28, 252;
  --accent-hover: #a215e3;
  --accent-text: #d982ff;
  --accent-ink: #fff;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --accent-border: color-mix(in srgb, var(--accent) 38%, transparent);
  --accent-surface: color-mix(in srgb, var(--accent) 12%, #15121c);
}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:var(--bg);color:var(--text);font:12px var(--font);-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button{color:inherit;border:0;background:none}button:disabled{opacity:.32;cursor:default}input,select{color:inherit}input{min-width:0}button,input,select,a{outline:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--accent);outline-offset:3px}button:hover:not(:disabled){filter:brightness(1.08)}button,select{transition:background .15s,color .15s,border-color .15s}h1,h2,p{margin:0}h1,h2{font-family:'Manrope','Segoe UI',sans-serif}svg.icon{width:18px;height:18px;stroke:currentColor;stroke-width:1.65;fill:none;stroke-linecap:round;stroke-linejoin:round;display:block;flex-shrink:0}[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}[hidden]{display:none!important}kbd{font-family:var(--font);font-size:10px;line-height:18px;white-space:nowrap;border:1px solid #393a40;border-radius:4px;padding:0 5px;color:#96979f;background:#24252a;font-weight:400}input[type=range]{appearance:none;background:transparent;height:20px;cursor:pointer;accent-color:var(--accent)}input[type=range]::-webkit-slider-runnable-track{background:#3a3b42;height:3px;border-radius:3px}input[type=range]::-webkit-slider-thumb{appearance:none;width:9px;height:9px;border-radius:50%;background:#c8c8ce;margin-top:-3px}input[type=range]::-moz-range-track{background:#3a3b42;height:3px;border-radius:3px}input[type=range]::-moz-range-thumb{width:9px;height:9px;border:0;background:#c8c8ce;border-radius:50%}
dialog{background:#1d1e23;color:var(--text);border:1px solid #3b3c45;border-radius:14px;width:450px;max-width:calc(100vw - 40px);padding:26px;box-shadow:0 25px 100px #0008}dialog::backdrop{background:#07080bbf;backdrop-filter:blur(5px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.dialog-heading h2{font-size:21px;font-weight:650;letter-spacing:-.7px;margin-top:8px}.dialog-heading .eyebrow{color:var(--accent-text);font-size:8px}.shortcut-list>div{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #303139;padding:9px 0;color:#afb0bc;font-size:11px}.shortcut-list kbd{font-size:9px}.dialog-note{font-size:11px;color:#838592;line-height:1.8;margin-top:21px}.dialog-actions{display:flex;justify-content:flex-end;gap:9px;margin-top:25px}.export-summary{display:flex;gap:13px;align-items:center;background:#26272d;border:1px solid #35363f;border-radius:7px;padding:17px;margin-bottom:22px}.export-summary>.icon{color:var(--accent-text);width:26px;height:26px}.export-summary strong{display:block;font-size:12px;font-weight:500}.export-summary span:not([data-icon]){display:block;font-size:10px;color:#828592;margin-top:6px}.export-label{display:block;font-size:11px;color:#adaebb;margin-bottom:9px}#export-resolution{width:100%;background:#28292f;border:1px solid #3f4049;padding:10px;border-radius:5px;color:#c8c9d5;font-size:11px}.progress-bar{height:5px;background:#36383f;border-radius:5px;margin-top:20px;overflow:hidden}.progress-bar span{display:block;height:100%;width:0;background:var(--accent);transition:width .2s}#export-progress-text{font-size:10px;color:#b6a7c6;margin-top:8px}.missing-media{max-height:220px;overflow:auto;margin-top:15px}.missing-media>div{padding:9px 0;border-bottom:1px solid #35363c;display:flex;justify-content:space-between;font-size:10px;color:#b9bac4;gap:10px}.missing-media>div span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.missing-media small{color:#e5b66d;flex-shrink:0}.drop-overlay{position:fixed;inset:10px;z-index:100;border:2px dashed color-mix(in srgb, var(--accent) 61.2%, transparent);border-radius:16px;background:#121512ed;backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;pointer-events:none;text-align:center}.drop-overlay .icon{width:47px;height:47px;color: var(--accent-text);margin-bottom:23px}.drop-overlay h2{font-size:30px;font-weight:600;letter-spacing:-1px}.drop-overlay p{color:#b6a7c6;margin-top:12px}.toast-container{position:fixed;bottom:48px;left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;z-index:200;pointer-events:none;max-width:calc(100vw - 32px)}.toast{display:flex;align-items:center;gap:10px;padding:12px 17px;background:#2b2d30;border:1px solid #4b4e42;border-radius:8px;box-shadow:0 5px 25px #0006;color:#d6d9ce;font-size:11px;animation:toast-in .2s ease;max-width:650px;line-height:1.6;pointer-events:auto}.toast .icon{color: var(--accent-text);width:16px;height:16px}.toast.error{border-color:#754d4d}.toast.error .icon{color:#e69696}.toast.info{border-color:#4c4668}.toast.info .icon{color:var(--accent-text)}@keyframes toast-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}::-webkit-scrollbar{width:5px;height:6px}::-webkit-scrollbar-track{background:#18191d}::-webkit-scrollbar-thumb{background:#3b3d47;border-radius:6px}::-webkit-scrollbar-thumb:hover{background:#555866}.preview-frame:fullscreen{width:100vw;height:100vh;border-radius:0;max-width:none;display:flex;align-items:center;justify-content:center}.preview-frame:fullscreen canvas{object-fit:contain}.app.is-exporting .editor-top,.app.is-exporting .timeline,.app.is-exporting .app-header{pointer-events:none}.audio-placeholder{color:var(--accent-text)}
/* White labels remain readable on fluorescent controls, including on hover. */
.home-signup:hover:not(:disabled), .account-submit:hover:not(:disabled), .image-generate:hover:not(:disabled), .image-promo > button:not(.image-promo-close):hover:not(:disabled), .seedance-generate:hover:not(:disabled), .reference-link-actions button[type="submit"]:hover:not(:disabled), .primary:hover:not(:disabled), .preview-import:hover:not(:disabled), .play-button:hover:not(:disabled) { background: var(--accent-hover); filter: none; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Keep time zero flush with the tracks, with a fully visible drag handle. */
.playhead::before{content:'';position:absolute;top:0;bottom:0;left:-8px;width:17px;cursor:ew-resize}
.playhead.at-start .playhead-head{left:0;clip-path:polygon(0 0,100% 0,100% 65%,0 100%)}
