@font-face{font-family:Inter;src:url('assets/Inter-Regular.d080ae18.woff2');font-weight:400;font-display:swap}
@font-face{font-family:Inter;src:url('assets/Inter-Medium.242d04be.woff2');font-weight:500;font-display:swap}
@font-face{font-family:Inter;src:url('assets/Inter-SemiBold.cac2ba46.woff2');font-weight:600;font-display:swap}
:root{color-scheme:dark;--bg:#0d0d0d;--panel:#1c1c1e;--active:#2e2e30;--dim:#101012;--muted:#ffffff99;--subtle:#ffffff5c;--line:#ffffff0f;--accent:linear-gradient(120deg,#ff6432 25%,#ff0065 45%,#7b2eff 75%);font:400 14px/1.45 Inter,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:#fff}
[hidden]{display:none!important}
h1,h2,h3,p{margin:0}
button,input{font:inherit}
button{border:0;border-radius:8px;background:none;color:inherit;cursor:pointer}
button:hover{background-color:#ffffff12}
button:focus-visible,input:focus-visible{outline:2px solid #b798ff;outline-offset:2px}
button:disabled{opacity:.32;cursor:default}
img,video,canvas{display:block}
img{max-width:100%}
svg{width:20px;height:20px;flex:none;vertical-align:middle}
.welcome{position:fixed;inset:0;display:grid;place-items:center;background:#0008;backdrop-filter:blur(3px);z-index:10}
.welcome-modal{--welcome-bg:var(--panel);position:relative;width:min(1000px,calc(100vw - 16px));height:calc(100dvh - 16px);overflow:hidden;border-radius:24px;background:var(--welcome-bg);box-shadow:0 16px 32px #0000003d;outline:1px solid var(--line);outline-offset:-1px}
.welcome-scroll{height:100%;overflow:auto;overscroll-behavior:contain;scrollbar-width:none;padding-bottom:160px}
.welcome-hero{position:relative;height:max(380px,calc(100dvh - 250px));display:flex;justify-content:flex-end;flex-direction:column;padding:32px;margin-bottom:32px}
.hero-media,.hero-media::after{position:absolute;inset:0}
.hero-media video{height:100%;width:100%;object-fit:cover}
.hero-media::after{content:'';top:auto;height:60%;background:linear-gradient(transparent,var(--welcome-bg)),linear-gradient(transparent,var(--welcome-bg))}
.hero-content{z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}
.wordmark{display:flex;align-items:center;gap:12px;font-size:28px;line-height:38px;font-weight:500;letter-spacing:-1px}
.wordmark img{width:48px;height:48px}
.hero-content h1{font-size:56px;line-height:68px;font-weight:500;letter-spacing:-1.4px}
.hero-content p{font-size:18px;line-height:28px;color:var(--muted)}
.welcome-footer{position:absolute;inset:auto 0 0;display:flex;flex-direction:column;align-items:center;gap:4px;padding:20px 20px 10px;text-align:center;background:linear-gradient(transparent,var(--welcome-bg) 90%),linear-gradient(transparent,var(--welcome-bg) 90%);pointer-events:none;color:var(--subtle);font-size:11px}
.welcome-footer button{pointer-events:auto}
.welcome-footer small{font-size:11px;line-height:24px}
.start{min-width:180px;min-height:48px;margin-bottom:20px;border-radius:999px;padding:12px 26px;color:white;font-weight:500;font-size:17px;line-height:24px;letter-spacing:-.6px;background:var(--accent) 50% 100%/200%;outline:1px solid #ffffff1f;outline-offset:-1px;animation:gradient 2s linear infinite alternate;transform:translateY(-100px);transition:transform .6s,filter .2s}
.start:hover{filter:brightness(1.13)}
.is-scrolled .start{transform:translateY(0)}
@keyframes gradient{to{background-position:100% 50%}}
.welcome-section{display:flex;flex-direction:column;gap:32px;padding:32px}
.section-title{text-align:center;display:grid;justify-items:center;gap:10px;padding:64px 32px 0;margin-bottom:-8px}
.section-title h2{font-weight:500;font-size:34px;line-height:44px;letter-spacing:-1px}
.section-title p{color:var(--muted);font-weight:500;font-size:17px;line-height:24px;letter-spacing:-.6px}
.section-title .eyebrow{display:flex;align-items:center;gap:8px;font-weight:600}
.benefit-scroll{overflow-x:auto;scrollbar-width:none;margin:0 -20px}
#benefits{display:flex;align-items:flex-start;gap:12px;padding:0 20px;width:max-content}
.benefit-card{width:256px}
.benefit-card:last-child{width:480px}
.benefit-card img{width:100%;height:320px;object-fit:cover;border-radius:20px}
.benefit-card div{padding:16px 12px 0;color:var(--muted);font-size:14px}
.benefit-card h3{display:inline;color:#fff;font-size:15px;font-weight:500;margin-right:4px}
.template-section{align-items:center;overflow:hidden;gap:12px;padding-inline:0}
#template-strip{display:flex;flex-wrap:wrap;justify-content:center;gap:12px;width:160%}
#template-strip button{padding:0;overflow:hidden;border-radius:16px;height:180px}
#template-strip img{width:auto;height:100%}
.template-action{display:grid;place-items:end center;width:100%;height:180px;margin-top:-180px;background:linear-gradient(transparent,var(--welcome-bg));z-index:1;pointer-events:none}
.template-action button{pointer-events:auto;min-width:190px;border-radius:999px;background:#ffffff24;backdrop-filter:blur(8px);padding:12px 18px;font-size:17px;font-weight:500}
.cards{display:grid;grid-template-columns:minmax(0,64fr) minmax(0,36fr);gap:16px}
.cards.swap{grid-template-columns:minmax(0,36fr) minmax(0,64fr)}
.feature{min-width:0;height:600px;display:flex;flex-direction:column;position:relative;overflow:hidden;border-radius:24px;background:#17131e center/cover}
.feature.wide{grid-column:1/-1;aspect-ratio:16/9;height:auto}
.feature.reverse{flex-direction:column-reverse}
.feature.side{display:grid;grid-template-columns:1fr 1fr;align-items:center}
.feature.side.flip .feature-copy{order:2}
.feature-copy{z-index:1;text-align:center;display:grid;justify-items:center;gap:8px;padding:28px}
.feature-copy h3{font-size:24px;line-height:30px;font-weight:500;letter-spacing:-.6px}
.feature-copy p{max-width:400px;color:#fffb;font-weight:500}
.feature-copy small{border-radius:20px;background:#ffffff25;padding:2px 8px;font-weight:600;font-size:11px}
.feature-copy .chips{margin-top:4px;font-size:13px}
.feature-media{flex:1;min-height:0;display:grid;place-items:start center;overflow:hidden}
.feature-media img{max-width:none;width:var(--image-width,100%);border-radius:10px;box-shadow:0 5px 20px #0009}
.feature.reverse .feature-media{place-items:end center}
.feature.side .feature-media{place-items:center}
.editor{height:100dvh;display:flex;flex-direction:column;padding:6px;gap:3px;overflow:hidden}
.toolbar{display:grid;grid-template-columns:228px minmax(0,1fr) 228px;align-items:center;gap:8px;min-height:44px}
.brand-tools,.export{height:44px;border-radius:14px;display:flex;align-items:center;padding:4px 6px;justify-content:space-between;background:var(--panel)}
.brand-tools button,.commands button,.export{display:flex;align-items:center;gap:4px;font-weight:500}
.brand-tools button{padding:2px 4px;white-space:nowrap}
.brand-tools img{width:30px;height:30px;object-fit:contain}
.brand-tools svg{width:13px;height:13px;color:var(--muted)}
.commands{display:flex;justify-content:center;align-items:center;gap:8px}
.commands button{padding:8px}
.export{justify-content:center;gap:8px;color:#000;background:#fff}
.export:hover{background:#dedede}
.export small{margin-left:4px;color:#555;font-size:11px}
.workspace{min-height:0;flex:1;display:grid;grid-template-columns:228px minmax(0,1fr) 228px;gap:3px}
.panel{min-height:0;display:flex;flex-direction:column;background:var(--panel);border-radius:14px;overflow:hidden}
.panel-scroll{overflow:auto;scrollbar-width:thin;padding:8px;flex:1}
.panel section{padding:10px 0;border-bottom:1px solid var(--line)}
.panel h2{text-transform:lowercase;font-size:12px;color:var(--muted);font-weight:500;margin:0 0 8px}
.tabs,.segments{display:flex;gap:3px;padding:3px;background:var(--dim);border-radius:9px}
.tabs{margin:8px 8px 0}
.tabs button,.segments button{flex:1;min-width:0;padding:5px 2px;font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap}
button[aria-selected=true],button[aria-pressed=true]{background:var(--active);color:white}
.mockup-picker,.magic-preset,.upload{width:100%;background:var(--dim);min-height:42px;display:flex;align-items:center;gap:8px;padding:8px;text-align:left}
.mockup-picker img{width:36px;height:32px;object-fit:contain}
.mockup-picker span:nth-child(2){flex:1;font-size:13px;font-weight:500}
.mockup-picker small{display:block;color:var(--subtle);font-size:10px}
.magic-preset{margin-top:6px;justify-content:center;font-size:12px;color:#e7b5ff}
.upload{flex-direction:column;justify-content:center;min-height:72px;color:var(--muted);font-size:11px;border:1px dashed #ffffff24}
.option-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.option-grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}
.option-grid button{min-width:0;padding:4px 2px;color:var(--muted);font-size:9px;line-height:16px;white-space:nowrap;overflow:hidden}
.option-grid img,.swatch{width:100%;height:36px;border-radius:5px;object-fit:cover;display:block}
.option-grid [aria-pressed=true]{outline:1px solid #fff3;outline-offset:-1px}
.slider output{font-variant-numeric:tabular-nums}
.position-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:3px;background:var(--dim);padding:6px;border-radius:8px}
.position-grid button{height:26px;color:var(--subtle)}
.position-grid button::before{content:'';display:inline-block;width:6px;height:6px;background:currentColor;border-radius:50%}
.position-grid button[aria-pressed=true]{color:#fff}
.layout-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}
.layout-grid button{background:var(--dim);aspect-ratio:1;display:grid;place-items:center}
.layout-grid button[aria-pressed=true]{outline:1px solid #fff5}
.color-setting{display:flex;justify-content:space-between;align-items:center;margin-top:10px;color:var(--muted)}
#watermark{width:100%;border:1px solid var(--line);border-radius:7px;background:var(--dim);color:#fff;padding:7px}
.stage{position:relative;display:grid;place-items:center;overflow:hidden;padding:20px min(6vw,88px) 70px;min-width:0}
.stage canvas{max-width:100%;max-height:100%;height:auto;width:auto;object-fit:contain;border-radius:14px;outline:1px solid var(--line)}
.stage-upload{position:absolute;inset:0;margin:auto;width:max-content;height:max-content;color:var(--subtle);font-size:clamp(11px,1.3vw,19px);display:grid;justify-items:center;gap:8px;transform:translateY(-25px)}
.stage-upload svg{width:clamp(36px,6vw,70px);height:auto}
.stage-tools{position:absolute;bottom:12px;display:flex;align-items:center;gap:6px;border-radius:10px;background:var(--panel);padding:3px;color:var(--muted);font-size:12px}
.stage-tools button{width:28px;height:28px}
.stage.is-dragging{outline:2px dashed #b798ff;outline-offset:-3px}
.editor.preview .panel{display:none}
.editor.preview .workspace{grid-template-columns:1fr}
dialog{width:min(720px,calc(100% - 24px));max-height:85dvh;border:1px solid var(--line);border-radius:24px;background:var(--panel);color:white;padding:16px}
dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
dialog h2{font-size:22px;font-weight:500}
dialog header button{padding:6px}
.picker-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:8px}
.picker-grid button{display:grid;gap:5px;padding:6px;background:var(--dim);font-size:12px}
.picker-grid img{width:100%;aspect-ratio:1.35;object-fit:cover;border-radius:6px}
#status{position:fixed;z-index:20;bottom:18px;left:50%;transform:translateX(-50%);background:#333;border-radius:12px;padding:8px 14px;text-align:center;max-width:calc(100% - 24px)}
#status:empty{display:none}
@media(max-width:800px){
  .welcome-modal{--welcome-bg:var(--bg);width:100%;height:100dvh;border-radius:0;box-shadow:none;outline:0}
  .welcome-hero{height:max(350px,calc(100dvh - 300px));padding:16px}
  .hero-content{gap:12px}
  .hero-content h1{font-size:33px;line-height:40px;letter-spacing:-1.1px}
  .hero-content p{font-size:14.5px;line-height:20px}
  .wordmark{gap:8px;font-size:21px;line-height:28px;letter-spacing:-.75px}
  .wordmark img{width:36px;height:36px}
  .welcome-section{padding:16px}
  .section-title{margin:16px 0;padding-inline:0}
  .section-title h2{font-size:33px;line-height:40px}
  .welcome .template-section,.welcome .feature-section{display:none}
  .benefit-scroll{margin-inline:-16px}
  #benefits{padding-inline:16px}
  .toolbar{grid-template-columns:auto 1fr auto}
  .commands{gap:0}
  .commands button{padding:6px}
  .export{padding:4px 8px}
  .export small,.brand-tools button svg,.export svg{display:none}
  .workspace{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(180px,1fr) minmax(150px,42dvh)}
  .stage{grid-row:1;padding:10px 16px 38px}
  .inspector{grid-row:2}
  .layout{display:none}
  .editor.preview .workspace{grid-template-rows:1fr}
}
@media(max-width:380px){.desktop-break{display:none}.hero-content h1{font-size:30px}.brand-tools img{width:24px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
:root{--fg:#fff;--page-control:#ffffff12;--picker-surface:var(--dim);--drop-surface:#ffffff12}
@media(prefers-color-scheme:light){
  :root{color-scheme:light;--fg:#000;--bg:#d8d8d8;--panel:#eee;--active:#fff;--dim:#dedede;--muted:#0009;--subtle:#0006;--line:#0000000f;--page-control:#0000000c;--picker-surface:#fff;--drop-surface:#fff}
}
body,dialog{color:var(--fg)}
button:hover{background-color:var(--page-control)}
.start{height:52px;margin-bottom:24px}
.welcome-footer{font-size:12px}
.welcome-footer small{font-size:12px;line-height:24px}
.welcome:not(:has(.is-scrolled)) .benefits .section-title{opacity:.1}
.benefits .section-title{transition:opacity .6s}
.benefit-card h3{color:var(--fg)}
.template-action button{background:var(--page-control)}
.tabs{border-radius:24px}
.tabs button{border-radius:24px;min-height:30px;font-size:15px}
.tabs [aria-selected=true]{background:var(--active)}
button[aria-selected=true],button[aria-pressed=true],.position-grid button[aria-pressed=true]{color:var(--fg)}
.mockup-picker{background:var(--picker-surface);border-radius:12px}
.magic-preset{margin-top:18px;min-height:64px;color:var(--muted);justify-content:flex-start;padding:10px;border:1px solid var(--line);background:var(--page-control)}
.magic-preset svg{padding:3px;color:#d472c8;width:28px;height:28px}
.panel section{padding:10px 0;border:0}
.panel h2{text-transform:uppercase;font-weight:600;font-size:11px;letter-spacing:.03em;color:var(--subtle)}
.upload{background:var(--dim);border:0;height:88px;border-radius:12px}
.upload span{background:var(--drop-surface);border-radius:4px;display:grid;place-items:center;font-size:22px;width:82px;height:62px;color:var(--fg)}
.upload-caption{text-align:center;color:var(--subtle);font-size:11px;margin-top:6px}
.option-grid img{height:48px}
.option-grid button{font-size:10px;line-height:18px}
.commands .reset{background:var(--panel);border-radius:24px;padding:8px 16px}
.export{color:var(--fg);background:var(--panel)}
.export:hover{background:var(--active)}
.export small{color:var(--muted)}
.stage{padding:20px 17px 80px}
.stage canvas{width:100%;height:100%;object-fit:contain;outline:0;min-height:0}
.stage-upload{transform:translateY(-30px);font-weight:400;gap:5px}
.stage-upload strong{font-size:clamp(18px,2.65vw,38px);font-weight:500;letter-spacing:-.025em}
.stage-upload small{font-size:clamp(10px,1.25vw,18px)}
.stage-upload svg{padding:8px;border-radius:50%;background:var(--subtle);color:var(--panel);width:clamp(34px,4vw,55px);height:auto}
.animate{display:flex;align-items:center;gap:6px;position:absolute;bottom:9px;padding:9px 16px;border-radius:24px;background:var(--panel);box-shadow:0 5px 12px #0002;font-weight:500}
.animate:hover{background:var(--active)}
.stage-tools{right:16px}
.layout .panel-scroll{padding:10px}
.transform-tabs{width:max-content;margin:4px 0 8px}
.transform-tabs button{padding:2px 8px}
.layout-preview,.layout-grid button{background:linear-gradient(135deg,#ff6432,#ff0065,#7b2eff);border-radius:14px;aspect-ratio:4/3;display:grid;place-items:center}
.position-grid{width:75%;height:75%;background:var(--dim);align-items:center}
.layout-grid{grid-template-columns:1fr;gap:7px}
.layout-grid button{background:linear-gradient(135deg,#ff6432,#ff0065,#7b2eff)}
.layout-grid button[aria-pressed=true]{outline:1px solid var(--subtle);outline-offset:2px}
#watermark{color:var(--fg)}
@media(max-width:800px){
  .welcome-modal{--welcome-bg:var(--panel)}
  .section-title h2{max-width:300px}
  .stage{padding:8px 12px 45px}
  .stage-upload{transform:translateY(-15px)}
  .commands .reset{font-size:11px;padding:6px}
}
@media(max-width:800px) and (prefers-color-scheme:light){.welcome-modal{--welcome-bg:#e8e8e8}}
.stage{container-type:size}
.stage canvas{width:min(100%,calc(100cqh * var(--frame-ratio,1.333)));height:auto;max-height:none}
@media(max-width:800px){
  .welcome:not(:has(.is-scrolled)) .benefits .section-title{opacity:.55}
}
.export-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:4px;border-radius:14px;background:var(--panel);padding-right:4px}
.export-tools button:not(.export){display:grid;place-items:center;width:30px;height:32px;background:var(--page-control)}
.export-tools button:not(.export) svg{width:17px;height:17px}
#ratios{display:grid;grid-template-columns:repeat(4,1fr)}
.service-form{display:grid;gap:12px}
.service-form label{display:grid;gap:4px;color:var(--muted)}
.service-form :is(input,select),.share-url{font:inherit;color:var(--fg);background:var(--dim);border:1px solid var(--line);border-radius:8px;padding:9px;min-width:0}
.service-form button,.service-actions button,.project-list button{padding:8px 12px;background:var(--dim)}
.service-form .primary,.service-actions .primary{background:var(--fg);color:var(--panel)}
.service-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.service-message{color:var(--muted);overflow-wrap:anywhere;min-height:1.4em}
.share-url{width:100%}
.project-list{list-style:none;display:grid;gap:7px;padding:0}
.project-list li{display:flex;gap:4px;align-items:center}
.project-list li button:first-child{flex:1;text-align:left;overflow-wrap:anywhere}
@media(max-width:800px){
  .export-tools{gap:2px;padding-right:2px}
  .export-tools button:not(.export){width:26px}
}
@media(max-width:440px){
  .commands .reset{display:none}
  .brand-tools button{font-size:12px}
}
.library-trigger,.background-actions button{background:var(--dim);padding:7px 8px;font-size:11px;color:var(--fg)}
.library-trigger{display:block;width:100%;margin-top:7px}
.background-actions{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.background-actions button{flex:1}
.catalog-toolbar{position:sticky;top:0;z-index:1;background:var(--panel);padding:3px 0 10px;display:grid;gap:8px}
.catalog-toolbar input{width:100%;padding:8px 12px;border:1px solid var(--line);border-radius:9px;color:var(--fg);background:var(--dim)}
.catalog-groups{display:flex;gap:4px;overflow:auto;scrollbar-width:thin;padding-bottom:3px}
.catalog-groups button{padding:5px 9px;white-space:nowrap;background:var(--dim);font-size:12px}
.catalog-groups button[aria-pressed=true]{background:var(--fg);color:var(--panel)}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:9px}
.catalog-grid button{min-width:0;overflow:hidden;display:grid;text-align:left;align-content:start;gap:4px;background:var(--dim);padding:6px;font-size:12px}
.catalog-grid :is(canvas,img){width:100%;height:auto;aspect-ratio:1.45;object-fit:cover;border-radius:5px;background:#26232c}
.catalog-grid canvas{object-fit:contain}
.catalog-grid span,.catalog-grid small{padding-inline:3px}
.catalog-grid small,.catalog-empty{color:var(--muted)}
.copy-count{margin-top:7px}

/* Editor controls */
:root{--slider-track:#101012;--slider-fill:#2e2e30b3;--slider-handle:#2e2e30;--slider-hover:#fff9;--slider-label:#ffffff5c;--option-outline:#ffffff80}
@media(prefers-color-scheme:light){
  :root{--slider-track:#e0e0e0;--slider-fill:#ffffffb3;--slider-handle:#fff;--slider-hover:#0009;--slider-label:#0000005c;--option-outline:#0008}
}
.slider{
  --slider-height:30px;
  --slider-radius:8px;
  --slider-thumb-width:2px;
  --slider-thumb-height:18px;
  --slider-thumb-radius:2px;
  --slider-thumb-color:var(--subtle);
  --slider-thumb-shadow:none;
  position:relative;
  display:block;
  height:var(--slider-height);
  margin-top:8px;
  border-radius:var(--slider-radius);
  background:var(--slider-track);
  touch-action:none;
}
.slider.hide-rail{
  --slider-thumb-width:7px;
  --slider-thumb-height:26px;
  --slider-thumb-radius:2.5px;
  --slider-thumb-color:var(--slider-handle);
  --slider-thumb-shadow:0 1px 3px #00000026;
}
.slider-rail{
  position:absolute;
  inset:0 auto 0 0;
  width:var(--slider-progress,0%);
  border-radius:inherit;
  background:var(--slider-fill);
  box-shadow:0 1.5px 6px -3px #0006;
  pointer-events:none;
}
.slider.hide-rail .slider-rail{display:none}
.slider-labels{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 12px;
  color:var(--slider-label);
  font:400 11px/14px Inter,sans-serif;
  letter-spacing:-.2px;
  pointer-events:none;
}
.slider:is(:hover,:focus-within) .slider-labels{color:var(--slider-hover)}
.slider:not(.hide-rail):is(:hover,:focus-within){--slider-thumb-color:var(--slider-hover)}
.slider input[type=range]{
  position:absolute;
  inset:0;
  z-index:1;
  width:100%;
  height:100%;
  margin:0;
  padding:0;
  border:0;
  border-radius:inherit;
  appearance:none;
  -webkit-appearance:none;
  background:transparent;
  cursor:ew-resize;
  touch-action:none;
}
.slider input[type=range]::-webkit-slider-runnable-track{height:100%;background:transparent}
.slider input[type=range]::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:var(--slider-thumb-width);
  height:var(--slider-thumb-height);
  margin-top:calc((var(--slider-height) - var(--slider-thumb-height)) / 2);
  border:0;
  border-radius:var(--slider-thumb-radius);
  background:var(--slider-thumb-color);
  box-shadow:var(--slider-thumb-shadow);
}
.slider input[type=range]::-moz-range-track{height:100%;background:transparent}
.slider input[type=range]::-moz-range-progress{background:transparent}
.slider input[type=range]::-moz-range-thumb{
  width:var(--slider-thumb-width);
  height:var(--slider-thumb-height);
  border:0;
  border-radius:var(--slider-thumb-radius);
  background:var(--slider-thumb-color);
  box-shadow:var(--slider-thumb-shadow);
}
.slider:focus-within:has(input:focus-visible){outline:2px solid #a97cf4;outline-offset:2px}
.slider input[type=range]:focus-visible{outline:none}
.panel{border-radius:16px}
.panel-scroll{padding:8px 10px;scrollbar-width:none}
.tabs{gap:0;height:36px;min-height:36px;padding:0;background:none}
.tabs button{font-weight:500;font-size:15px;line-height:20px}
.tabs [aria-selected=true]{background:var(--slider-track)}
.mockup-picker{width:calc(100% + 4px);margin-inline:-2px;min-height:48px;padding:6px 10px}
.mockup-picker span:nth-child(2){font-size:14px}
.mockup-picker small{font-size:11px;font-weight:400}
.magic-preset{margin-top:20px}
.media-settings{position:relative}
.panel .media-settings{padding-top:22px}
.media-settings .library-trigger{
  position:absolute;
  top:19px;
  right:0;
  display:grid;
  place-items:center;
  width:23px;
  height:22px;
  margin:0;
  padding:0;
  color:var(--muted);
  background:transparent;
}
.media-settings .library-trigger:hover{background:var(--page-control)}
.media-settings .library-trigger svg{width:15px;height:15px}
.panel h2{font-weight:500;letter-spacing:.04em}
.option-grid{gap:8px}
.option-grid.four{gap:7px}
.option-grid button{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:4px;
  min-width:0;
  padding:0;
  overflow:visible;
  border-radius:11px;
  background:none;
  text-align:center;
  font:400 11px/14px Inter,sans-serif;
}
.option-preview{
  position:relative;
  display:grid;
  place-items:center;
  min-width:0;
  height:48px;
  border-radius:11px;
  background:var(--slider-track);
}
.option-preview img,.option-preview .swatch{width:100%;height:100%;border-radius:inherit;object-fit:cover}
.option-preview:after{position:absolute;inset:0;border:1px solid #64646426;border-radius:inherit;pointer-events:none;content:''}
.option-grid button:hover .option-preview:after{background:var(--page-control)}
.option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.option-grid button[aria-pressed=true]{outline:0;background:none}
.option-grid button[aria-pressed=true] .option-preview{outline:1px solid var(--option-outline);outline-offset:2px}
.option-grid button:not(:has(.option-preview)){padding:6px 3px;background:var(--slider-track);border-radius:8px}
.option-grid button[aria-pressed=true]:not(:has(.option-preview)){outline:1px solid var(--option-outline);outline-offset:-1px}
#all-styles .style-more{font-size:13px;letter-spacing:.12em}
#borders{min-height:62px;gap:3px;padding:3px;background:var(--slider-track);border-radius:12px}
#borders button{display:grid;place-items:center;align-content:center;gap:3px;padding:3px;font:400 11px/14px Inter,sans-serif;border-radius:9px}
#borders .option-preview svg{width:24px;height:24px}
#borders [aria-pressed=true]{background:var(--active);box-shadow:0 1px 3px #0002}
.mobile-copy-count{display:none}
.layout-filters{
  display:flex;
  min-height:34px;
  gap:3px;
  margin:0 0 16px;
  padding:3px;
  border-radius:12px;
  background:var(--slider-track);
}
.layout-filters button{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:3px;
  border-radius:9px;
  color:var(--subtle);
  padding:0;
}
.layout-filters button[aria-pressed=true]{background:var(--active);color:var(--fg);box-shadow:0 1px 3px #0002}
.layout-filters i{width:7px;height:13px;border-radius:2px;background:currentColor}
.layout-filters button:first-child i{width:8px;height:16px}
.layout-filters button:last-child i{width:5px;height:11px}
.transform-tabs{height:24px;margin:0 0 8px;padding:2px}
.transform-tabs button{padding:0 7px;font:400 11px/16px Inter,sans-serif}
.transform-tabs button[aria-pressed=true]{box-shadow:0 1px 3px #0002}
.layout-preview{position:relative;isolation:isolate;overflow:hidden}
.layout-preview canvas,.layout-grid canvas{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.layout-preview canvas{position:absolute;inset:0;z-index:-1;filter:brightness(.78)}
.layout-preview .position-grid{z-index:1;width:75%;height:75%;background:transparent}
.position-grid button{opacity:0;color:var(--fg)}
.position-grid button[aria-pressed=true],.position-grid:is(:hover,:focus-within) button{opacity:1}
.position-grid button[aria-pressed=true]{width:32px;height:32px;justify-self:center;border-radius:50%;background:#fffd;color:#111;box-shadow:0 1px 6px #0003}
.layout-grid button{padding:0;overflow:visible}
.layout .panel-scroll>section{padding-top:16px}
@media(max-width:800px){
  .slider{--slider-height:40px;--slider-radius:12px;--slider-thumb-width:3px;--slider-thumb-height:24px}
  .slider.hide-rail{--slider-thumb-width:10px;--slider-thumb-height:34px;--slider-thumb-radius:4px}
  .slider-rail{background:var(--slider-handle)}
  .slider-labels{color:var(--slider-hover);font-size:11px}
  .mobile-copy-count{display:flex}
}
#borders .option-preview{height:24px;background:none}
#borders .option-preview:after{display:none}
.media-settings .background-actions:not(:has(button:not([hidden]))){display:none}
.commands{gap:6px}
.commands button:not(.reset){padding:8px 7px}
.commands button svg{width:17px;height:17px}
.commands button#performance[aria-pressed=true]{background:var(--slider-track)}
.shortcut-list{display:grid;grid-template-columns:1fr auto;gap:8px 16px;margin:0}
.shortcut-list dd{margin:0;color:var(--muted)}
.stage-tools{opacity:0;transition:opacity .18s}
.stage:is(:hover,:focus-within) .stage-tools{opacity:1}
.drop-icons{position:relative;display:grid;place-items:center;min-height:clamp(36px,5vw,74px)}
.drop-icons>span{z-index:1}
.drop-icons>i{position:absolute;bottom:18%;opacity:.27}
.drop-icons>i:first-child{transform:translateX(-62%) rotate(-10deg)}
.drop-icons>i:nth-child(2){transform:translateX(62%) rotate(10deg)}
.drop-icons>i svg{width:clamp(32px,4.6vw,66px);padding:0;background:none;color:var(--subtle);border-radius:0}
@media(max-width:800px){
  .stage-tools{opacity:1}
  .commands button:not(.reset){padding:6px 4px}
  #shortcuts,#performance{display:none}
}
.option-grid button:has(.option-preview){padding-bottom:2px}

/* Reference artwork and control surfaces */
.brand-tools button{border-radius:8px;gap:2px;padding:2px 4px}
.brand-tools button svg{width:16px;height:16px}
.commands{gap:8px}
.commands button:not(.reset){width:32px;height:32px;padding:6px;border-radius:50%;justify-content:center}
.commands button svg{width:20px;height:20px}
.commands button:disabled{opacity:.26}
.export-tools button:not(.export){width:32px;height:32px;border-radius:10px;background:var(--slider-track)}
.export-tools button:not(.export):hover{background:var(--active)}
.export-tools button:not(.export) svg{width:20px;height:20px}
.export-tools .export{justify-content:flex-start;padding-left:12px;font-size:17px;letter-spacing:-.35px}
.export-tools .export small{font-size:11px;letter-spacing:0;font-weight:400;color:var(--fg)}
.export-tools .export svg{width:20px;height:20px}
.mockup-picker img{width:32px;height:32px;border-radius:4px;object-fit:cover}
.mockup-picker span:last-child svg{width:16px;height:16px;color:var(--muted)}
.magic-preset{
  display:grid;
  grid-template-columns:minmax(0,1fr) 22px 22px;
  grid-template-rows:1fr 4px;
  gap:3px;
  padding:8px 10px 10px;
  border-radius:11px;
}
.magic-preset:after{grid-column:1/-1;content:'';height:2px;border-radius:2px;background:var(--slider-track)}
.magic-preset button{display:flex;align-items:center;justify-content:center;padding:0;min-width:0;color:var(--subtle)}
.magic-preset #magic{justify-content:flex-start;gap:8px;color:var(--muted);font-size:11px;font-weight:500}
.magic-preset .magic-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--slider-track)}
.magic-preset button svg{width:12px;height:12px;padding:0;color:inherit}
.magic-preset .magic-icon svg{width:16px;height:16px}
.upload span svg{width:17px;height:17px}
.layout-filters button svg{width:20px;height:20px}
.layout-filters button i{display:none}
.drop-icons>span svg{width:clamp(31px,4.2vw,60px);height:auto;padding:0;background:none;color:var(--fg)}
.drop-icons>i svg{width:clamp(32px,4.7vw,68px);color:var(--fg)}
.drop-icons>i{opacity:.24;mask-image:linear-gradient(#000 5%,#0000 96%)}
.stage-tools button svg{width:14px;height:14px}
.animate svg{width:20px;height:20px}
.animate{border:1px solid var(--line);padding:9px 15px}
.panel-link{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;margin-top:7px;padding:6px;border-radius:8px;font-size:11px;color:var(--muted)}
.panel-link svg{width:15px;height:15px}
.visibility-control{min-height:32px;background:var(--slider-track)}
.frame-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
.frame-actions .option-preview{height:auto;aspect-ratio:2.2}
.frame-actions svg,.background-modes svg,.option-preview svg{width:20px;height:20px}
.frame-actions button[aria-expanded=true] .option-preview{outline:1px solid var(--option-outline);outline-offset:2px}
.frame-controls{margin-top:10px}
.portrait-swatch:before{width:14px;height:24px;border-radius:3px;border:1px solid var(--subtle);content:''}
.noise-swatch:before{width:38%;height:58%;border-radius:3px;background:repeating-conic-gradient(var(--subtle) 0% 25%,transparent 0% 50%) 0 0 / 3px 3px;content:'';opacity:.7;mask-image:radial-gradient(#000,#0000)}
.vfx-swatch{background:radial-gradient(ellipse at 45% 60%,#ff7fa833,#ac68f527,transparent 70%),var(--slider-track)}
#effects canvas{width:100%;height:100%;object-fit:cover;border-radius:inherit}
#scenes .option-preview{height:auto;aspect-ratio:16/9}
.background-modes .option-preview{height:auto;aspect-ratio:1}
#custom-color{position:absolute;width:24px;height:24px;opacity:0;pointer-events:none}
.background-magic{margin:12px 0 10px;padding:9px;border-radius:12px;background:var(--slider-track)}
.background-magic h3{font:500 13px/18px Inter,sans-serif}
.background-magic p{font-size:11px;line-height:15px;color:var(--muted);margin-bottom:8px}
.background-magic .option-grid{grid-template-columns:1fr 1fr}
.background-magic .option-preview{height:45px}
.panel .background-collection{padding:9px 0 1px}
.background-collection>button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;font-size:12px;padding:4px 0;color:var(--fg)}
.background-collection>button svg{width:13px;height:13px;color:var(--muted)}
.collection-previews{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
.collection-previews button{padding:0;overflow:hidden;border-radius:6px;aspect-ratio:1}
.collection-previews img{width:100%;height:100%;object-fit:cover}
.device-picker{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
.device-picker button{padding:5px;background:transparent;gap:6px;justify-items:center}
.device-picker button img{aspect-ratio:1;border-radius:11px;background:var(--slider-track)}
.device-picker button[aria-pressed=true] img{outline:1px solid var(--option-outline);outline-offset:2px}
.app-menu-actions{display:grid;gap:6px}
.app-menu-actions button{display:flex;align-items:center;gap:8px;padding:10px 12px;text-align:left;background:var(--slider-track)}
.app-menu-actions button:hover{background:var(--active)}
.app-menu-actions svg{width:17px;height:17px}
.service-form textarea{font:inherit;color:var(--fg);background:var(--dim);border:1px solid var(--line);border-radius:8px;padding:9px;min-height:96px;resize:vertical}
@media(max-width:800px){
  .commands{gap:2px}
  .commands button:not(.reset){width:24px;height:30px;padding:4px}
  #feedback{display:none}
  .export-tools .export{padding-left:6px;font-size:14px}
  .export-tools button:not(.export){width:24px}
  .export-tools button:not(.export) svg{display:block;width:17px;height:17px}
}
#scenes canvas{width:100%;height:100%;object-fit:cover;border-radius:inherit}

.motion-bar{position:absolute;bottom:9px;display:flex;align-items:center;justify-content:center;gap:5px}
.motion-bar .animate{position:static}
.motion-control{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--panel);border:1px solid var(--line);box-shadow:0 3px 8px #0002}
.motion-control svg{width:16px;height:16px}
.motion-control:hover{background:var(--active)}
.motion-picker{grid-template-columns:repeat(auto-fill,minmax(100px,1fr))}
.motion-picker button{text-align:center;overflow:hidden}
.motion-preview{display:grid;place-items:center;overflow:hidden;aspect-ratio:1.45;background:var(--accent);border-radius:8px}
.motion-preview img{width:50%;height:auto;aspect-ratio:1.25;object-fit:cover;border-radius:5px;box-shadow:0 4px 8px #0008}

/* The animation workspace uses the same canvas renderer in a frame-based player. */
.editor.editing-animation .workspace{flex:1;min-height:0}
.editor.editing-animation .stage{padding:8px 15px 53px}
.editing-animation .stage>#canvas,.editing-animation .stage-upload,.editing-animation .motion-bar,.editing-animation .stage-tools,.editing-animation .layout>.panel-scroll{display:none}
.editing-animation .inspector{position:relative}

#motion-player{display:grid;place-items:center;width:100%;height:100%;min-height:0;overflow:hidden;border-radius:14px;background:#0c0c0d;container-type:size}
#motion-player>div{max-width:100%;max-height:100%}
#motion-player .remotion-canvas{width:100%;height:100%;border-radius:0}
#animation-inspector{overflow:auto;scrollbar-width:none;padding:8px 10px}
#animation-inspector header{position:sticky;z-index:1;top:0;display:flex;justify-content:space-between;align-items:center;padding:0 0 8px;background:var(--panel)}
#animation-inspector h2{font-size:17px;font-weight:600}
#animation-done,.animation-properties button{padding:7px 12px;border-radius:20px;background:var(--slider-track)}
.animation-properties{display:flex;gap:4px;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:11px}
.animation-properties input{width:50px;margin-left:3px;border:1px solid var(--line);border-radius:6px;background:var(--dim);color:var(--fg);padding:4px}
.animation-presets{display:grid;gap:7px}
.animation-presets button{position:relative;padding:0;border-radius:11px;background:var(--dim)}
.animation-presets canvas{width:100%;height:auto;border-radius:inherit}
.animation-presets span{position:absolute;inset:auto 5px 5px;display:block;padding:3px 5px;border-radius:5px;background:#0009;color:white;text-align:left;font-size:11px}
.animation-presets [aria-pressed=true]{outline:1px solid var(--option-outline);outline-offset:2px}

dialog[data-surface]{position:fixed;margin:auto;max-height:min(84dvh,760px);padding:0;border:1px solid var(--line);border-radius:20px;box-shadow:0 20px 40px -10px #0006}
dialog[data-surface]::backdrop{background:#00000052;backdrop-filter:none;transition:opacity .16s}
dialog[data-closing]::backdrop{opacity:0}
dialog[data-surface]>header{position:sticky;top:0;z-index:3;margin:0;padding:14px 14px 12px 18px;background:var(--panel)}
dialog[data-surface]>header button{display:grid;place-items:center;width:30px;height:30px;border-radius:50%;background:var(--slider-track)}
dialog[data-surface]>header button svg{width:15px;height:15px}
dialog[data-surface] #picker-content{padding:0 14px 14px}
dialog[data-surface=gallery]{width:min(820px,calc(100vw - 16px));border-radius:24px}
dialog[data-surface=inspector]{inset:var(--anchor-y,64px) auto auto 242px;width:236px;margin:0;max-height:calc(100dvh - var(--anchor-y,64px) - 10px);border-radius:16px}
dialog[data-surface=menu]{inset:56px auto auto 6px;width:278px;margin:0;border-radius:16px}
dialog[data-surface=export]{inset:6px 6px auto auto;width:300px;margin:0;border-radius:16px}
dialog:is([data-surface=menu],[data-surface=export],[data-surface=inspector]) h2{font-size:17px}
dialog:is([data-surface=menu],[data-surface=export],[data-surface=inspector])::backdrop{background:transparent}
dialog[data-surface=inspector] .frame-controls{margin:0}
@media(max-width:800px){
  dialog[data-surface]{inset:auto 6px 6px;width:calc(100% - 12px);margin:0;max-height:78dvh;border-radius:22px}
  dialog[data-surface]::backdrop{background:#00000052}
}

.frame-cover{width:100%;height:54px;object-fit:cover;border-radius:10px;margin:0 0 10px}
.frame-subheading{font-size:11px;font-weight:500;color:var(--muted);margin:12px 0 7px}
.frame-scenes .option-preview,#shadow-overlays .option-preview,#reference-vfx .option-preview,#portrait-modes .option-preview{height:auto;aspect-ratio:16/9}
#shape-packs .option-preview,#shape-variants .option-preview{height:auto;aspect-ratio:1}
#shape-packs img,#shape-variants img{object-fit:contain}
#shape-variants{margin-top:9px}
.shadow-layer{margin-top:8px}
#animation-inspector h2{color:var(--fg);text-transform:none;letter-spacing:-.025em;font-style:italic}
#motion-player .remotion-canvas{border-radius:14px}
.animation-timeline{
  --track-label-width:108px;
  --ruler-height:28px;
  --clip-height:44px;
  --row-space:10px;
  position:relative;
  flex:none;
  padding:8px 8px 10px;
  border-radius:16px;
  background:var(--panel);
}
.editor.editing-animation .stage{padding:8px 24px 65px}
.timeline-tools{position:absolute;left:246px;right:246px;bottom:100%;height:58px;display:grid;grid-template-columns:1fr 100px 1fr;align-items:center;gap:16px}
.timeline-tool-group{display:flex;align-items:center;gap:10px;min-width:0}
.timeline-tool-left,.timeline-tool-right{justify-content:space-between}
.timeline-tools button{display:grid;place-items:center;padding:0;flex:none}
.timeline-tools button svg{width:20px;height:20px}
#add-animation{display:flex;align-items:center;gap:10px;white-space:nowrap;font:500 14px/20px Inter,sans-serif;border-radius:20px;padding-right:8px}
.add-animation-icon{display:grid;place-items:center;width:40px;aspect-ratio:3/2;border-radius:7.5px;background:linear-gradient(color-mix(in srgb,var(--active) 30%,transparent),color-mix(in srgb,var(--active) 90%,transparent));box-shadow:inset 0 0 0 1px var(--line)}
#add-animation .add-animation-icon svg{width:18px;height:18px;color:var(--muted)}
.timeline-round{width:34px;height:34px;border-radius:50%;background:var(--panel)}
.timeline-round:hover{background:var(--active)}
#timeline-play{width:100px;height:40px;border-radius:30px;color:var(--panel);background:var(--fg)}
#timeline-play:hover{filter:brightness(.88)}
#timeline-time{white-space:nowrap;font:500 14px/20px Inter,sans-serif}
#timeline-time span+span{color:var(--subtle)}
.timeline-view-controls{gap:8px}
.timeline-zoom{position:relative;display:block;width:120px;height:30px;border-radius:24px;background:var(--page-control)}
.timeline-zoom>span{position:absolute;top:7px;left:8px;color:var(--subtle);pointer-events:none}
.timeline-zoom svg{width:16px;height:16px}
.timeline-zoom input,#timeline-seek{appearance:none;-webkit-appearance:none;position:absolute;inset:0;width:100%;height:100%;margin:0;background:transparent;cursor:ew-resize}
.timeline-zoom input::-webkit-slider-thumb{appearance:none;width:7px;height:26px;border-radius:2.5px;background:var(--subtle)}
.timeline-zoom input::-moz-range-thumb{width:7px;height:26px;border:0;border-radius:2.5px;background:var(--subtle)}
.timeline-tracks{position:relative;display:grid;grid-template-columns:var(--track-label-width) minmax(0,1fr)}
.timeline-labels{display:grid;grid-template-rows:repeat(2,var(--clip-height));gap:var(--row-space);padding-top:var(--ruler-height);padding-left:10px;z-index:1}
.track-name{display:flex;gap:7px;align-items:center;color:var(--muted);font:500 12.5px/20px Inter,sans-serif;white-space:nowrap;overflow:hidden}
.track-name :is(img,svg){width:24px;height:24px;flex:none;object-fit:contain}
.timeline-viewport{min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--subtle) transparent;padding:0 8px 8px}
.timeline-sequence{position:relative;width:var(--sequence-width,1104px);min-width:110px}
.timeline-ruler{position:relative;height:var(--ruler-height);color:var(--subtle);font:500 11px/14px Inter,sans-serif}
.timeline-tick{position:absolute;top:0;bottom:8px;display:grid;justify-items:center;align-content:end;transform:translateX(-50%);pointer-events:none}
.timeline-tick span{height:15px;white-space:nowrap}
.timeline-tick i{width:2px;height:2px;background:currentColor;border-radius:50%;opacity:.55}
.timeline-tick.major i{opacity:1}
.timeline-tick:first-child{transform:none}
.timeline-tick:last-child{transform:translateX(-85%)}
.timeline-clips{display:flex;gap:3px;height:var(--clip-height);margin-bottom:var(--row-space);padding-right:1px}
.timeline-clip{
  position:relative;isolation:isolate;flex-basis:0;min-width:0;height:100%;
  display:flex;align-items:center;justify-content:center;gap:7px;padding:0 15px;border-radius:13px;
  text-align:left;background:linear-gradient(180deg,color-mix(in srgb,var(--active) 65%,var(--panel)),var(--active));
  box-shadow:inset 0 0 0 1px var(--line),inset 0 3px 12px #0002;
}
.timeline-clip:is(:hover,[aria-pressed=true],.is-trimming){background:linear-gradient(180deg,color-mix(in srgb,var(--active) 82%,var(--panel)),color-mix(in srgb,var(--fg) 24%,var(--active)))}
.timeline-clip[aria-pressed=true]::after{content:'';position:absolute;inset:-3px;border:1px solid var(--option-outline);border-radius:15px;box-shadow:inset 0 0 0 2px var(--panel);pointer-events:none}
.timeline-clip canvas{width:58px;height:39px;border-radius:8px;flex:none;object-fit:cover}
.clip-description{display:block;min-width:0;overflow:hidden;white-space:nowrap}
.clip-description small,.timeline-media-details small{display:block;color:var(--muted);font:400 11px/13px Inter,sans-serif}
.clip-badges{display:flex;gap:6px;color:var(--fg);font:500 12px/15px Inter,sans-serif}
.clip-badges>span{display:flex;align-items:center;gap:2px}
.clip-badges svg,.timeline-media-details svg{width:14px;height:14px}
.clip-handle{position:absolute;z-index:2;top:8px;bottom:8px;width:13px;display:grid;place-items:center;cursor:ew-resize;touch-action:none;opacity:0}
.clip-handle::before{content:'';width:3px;height:100%;border-radius:4px;background:var(--muted)}
.clip-handle.left{left:0}
.clip-handle.right{right:0}
.timeline-clip:is(:hover,[aria-pressed=true],.is-trimming) .clip-handle{opacity:1}
.clip-handle:hover::before{background:var(--fg)}
.timeline-media{height:var(--clip-height);display:grid;place-items:center;position:relative;border-radius:10px;overflow:hidden;background:var(--slider-track);box-shadow:inset 0 0 0 1px var(--line)}
.timeline-media::before{content:'';position:absolute;inset:0;background:var(--filmstrip-image,url(assets/screenshot.png)) left center/auto 100% repeat-x;opacity:.65}
.timeline-media-details{display:flex;align-items:center;gap:7px;position:relative;padding:4px 24px;color:white;background:linear-gradient(90deg,transparent,#0009 18%,#0009 82%,transparent);font:500 12px/15px Inter,sans-serif}
.timeline-media-details small{color:#ffffffa6}
.timeline-media-details svg{width:20px;height:20px}
.timeline-playhead,.timeline-ghost{position:absolute;top:0;bottom:0;z-index:3;width:1px;pointer-events:none}
.timeline-playhead{left:clamp(5px,calc(100% * var(--playhead,0)),calc(100% - 5px));background:linear-gradient(var(--fg),var(--subtle));box-shadow:0 0 3px #0008}
.timeline-playhead i{position:absolute;top:0;left:50%;width:11px;height:24px;transform:translateX(-50%);border:1px solid var(--fg);border-radius:9px;background:var(--panel)}
.timeline-ghost{left:calc(100% * var(--ghost,0));background:var(--subtle);opacity:0}
.timeline-sequence:hover .timeline-ghost{opacity:.65}
#timeline-seek{height:var(--ruler-height);z-index:4}
#timeline-seek::-webkit-slider-thumb{appearance:none;width:11px;height:24px;background:transparent}
#timeline-seek::-moz-range-thumb{width:11px;height:24px;border:0;background:transparent}
@media(max-width:1050px){
  .timeline-tools{left:235px;right:235px;grid-template-columns:1fr 68px 1fr;gap:8px}
  #timeline-play{width:68px}
  .timeline-zoom{width:64px}
  #add-animation{font-size:11px;gap:4px}
  .add-animation-icon{width:27px}
}
@media(max-width:800px){
  .editor.editing-animation .workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:minmax(130px,1fr) minmax(120px,29dvh)}
  .editing-animation .inspector{display:flex;grid-row:2;grid-column:1}
  .editing-animation .layout{display:flex;grid-row:2;grid-column:2}
  .editor.editing-animation .stage{grid-column:1/-1;padding:5px 10px}
  .animation-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  .animation-timeline{--track-label-width:65px;--clip-height:35px;--row-space:7px;--ruler-height:24px}
  .timeline-tools{position:static;height:36px;grid-template-columns:1fr 55px 1fr;margin-bottom:6px}
  #timeline-play{width:55px;height:30px}
  #timeline-time{font-size:10px}
  .timeline-round{width:25px;height:25px}
  .timeline-tools button svg{width:15px;height:15px}
  .timeline-zoom{display:none}
  .timeline-labels{padding-left:1px}
  .track-name{font-size:9px;gap:3px}
  .track-name :is(img,svg){width:16px;height:16px}
  .timeline-clip canvas{height:30px;width:40px}
}
.account-avatar{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--active);font-size:9px;font-weight:600}
.stage-tools .timeline-zoom{display:block;width:86px;height:24px}
.stage-tools .timeline-zoom>span{top:4px}
.stage-tools .timeline-zoom input::-webkit-slider-thumb{height:20px}
.stage-tools .timeline-zoom input::-moz-range-thumb{height:20px}

body{overflow:hidden}
.editor{transition:transform .48s cubic-bezier(.2,.75,.2,1)}
.templates-open .editor{transform:translateX(600px)}
#template-scrim{position:fixed;inset:0;z-index:9;background:linear-gradient(90deg,#000 24%,#0003 75%);backdrop-filter:blur(1.5px)}
#template-menu{position:fixed;inset:8px auto 8px 8px;z-index:10;width:min(584px,calc(100vw - 16px));border-radius:22px;overflow:hidden;background:var(--panel);box-shadow:0 20px 40px -10px #0006}
.template-menu-navbar{position:absolute;top:0;left:0;right:0;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;padding:13px 13px 56px 20px;background:linear-gradient(var(--panel),transparent);pointer-events:none}
.template-menu-navbar button,.template-menu-navbar h2{pointer-events:auto}
.template-menu-navbar h2{font:500 25px/32px Inter,sans-serif;letter-spacing:-.6px}
.template-menu-navbar button{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--slider-track)}
.template-menu-navbar button svg{width:16px;height:16px}
.template-menu-type-filters{position:absolute;z-index:3;top:64px;left:20px;display:flex;gap:2px}
.template-menu-type-filters button{display:flex;align-items:center;gap:6px;padding:8px 12px;border-radius:24px;font:500 14px/20px Inter,sans-serif}
.template-menu-type-filters button[aria-pressed=true]{background:var(--active)}
.template-menu-type-filters svg{width:17px;height:17px}
.template-menu-scroll{height:100%;overflow:auto;scrollbar-width:none;padding:132px 0 24px;display:flex;flex-direction:column;gap:24px}
.template-section{flex:none;min-width:0}
.template-section>header{display:flex;align-items:center;justify-content:space-between;padding:0 20px 9px}
.template-section h3{font:500 17px/23px Inter,sans-serif}
.template-section>header button{border-radius:20px;background:var(--slider-track);padding:4px 8px;font-size:11px}
.template-row{display:flex;overflow:auto;scrollbar-width:none;gap:12px;padding:0 20px 2px}
.template-row.grid-view{display:grid;grid-template-columns:1fr 1fr}
.template-row .template-item{position:relative;flex:0 0 288px;padding:0;border-radius:14px;overflow:hidden;background:var(--slider-track)}
.template-item :is(img,canvas){width:100%;aspect-ratio:16/9;object-fit:cover}
.template-media-tag{position:absolute;left:8px;bottom:8px;color:#fff;filter:drop-shadow(0 0 5px #0008)}
.template-media-tag svg{width:20px;height:20px}
.template-detail{height:100%;padding:85px 24px 24px;display:grid;justify-items:center;align-content:center;gap:16px}
.template-detail-art{width:100%;overflow:hidden;border-radius:16px;background:var(--slider-track)}
.template-detail-art :is(img,canvas){width:100%;max-height:55dvh;object-fit:contain}
.template-detail h3{font-weight:500;font-size:19px}
#use-template{border-radius:32px;padding:12px 22px;color:var(--panel);background:var(--fg)}
@media(max-width:800px){
  .templates-open .editor{transform:translateX(100vw)}
  #template-menu{inset:0;width:100vw;border-radius:0}
  .template-row .template-item{flex-basis:255px}
  .editing-animation .inspector .tabs{margin-inline:4px}
}
#stage-slots{position:absolute;display:grid;grid-template-columns:repeat(var(--slots,2),1fr);z-index:1;pointer-events:none}
#stage-slots button{pointer-events:auto;align-self:center;justify-self:center;display:grid;justify-items:center;gap:3px;padding:9px 6px;color:var(--subtle);font-size:clamp(9px,1.15vw,15px)}
#stage-slots button svg{width:25px;height:25px}
#stage-slots button small{font-size:.72em}
.editing-animation #stage-slots{display:none}
.media-slots{display:grid;gap:4px;margin-top:7px}
.media-slots button{display:flex;align-items:center;gap:6px;justify-content:flex-start;background:var(--slider-track);padding:5px 8px;font-size:11px}
.media-slots button svg{width:14px;height:14px}
.export-tools{background:#f0f0f0;color:#000}
.export-tools .export{background:none;color:#000}
.export-tools .export small{color:#000}
.export-tools button:not(.export){background:#0000001a;color:#000}
.export-tools button:not(.export):hover{background:#0003}
dialog[data-surface=export-settings]{inset:60px 8px auto auto;width:244px;margin:0;border-radius:16px}
dialog[data-surface=export-settings]::backdrop,dialog[data-surface=export-ready]::backdrop{background:transparent}
dialog[data-surface=export-settings]>header{position:absolute;clip-path:inset(50%);width:1px;height:1px;padding:0;overflow:hidden}
dialog[data-surface=export-settings] #picker-content{padding:12px}
.export-config{display:grid;gap:12px}
.export-config h3{margin:0 0 6px;color:var(--muted);font:500 11px/15px Inter,sans-serif;text-transform:uppercase;letter-spacing:.04em}
.export-switch{background:var(--slider-track);border-radius:12px}
.export-switch button{display:grid;place-items:center;align-content:center;gap:2px;min-height:32px;padding:4px 0;font:500 11px/14px Inter,sans-serif;border-radius:9px}
.export-switch button:has(svg){height:48px}
.export-switch button svg{width:22px;height:20px}
.export-switch button[aria-pressed=true]{background:var(--active);box-shadow:0 1px 3px #0002}
.export-details{margin:0;display:grid;grid-template-columns:1fr auto;gap:4px;font:400 11px/15px Inter,sans-serif;color:var(--muted)}
.export-details dd{margin:0;color:var(--fg)}
dialog[data-surface=export-ready]{inset:6px 6px auto auto;width:355px;margin:0;border-radius:22px}
dialog[data-surface=export-ready] h2{font-size:19px}
.export-progress{display:flex;align-items:center;justify-content:space-between;gap:10px}
.export-progress progress{width:80px;accent-color:var(--fg)}
.export-ready-preview :is(img,video){width:100%;max-height:48dvh;object-fit:contain;border-radius:12px;background:var(--slider-track)}
.export-ready-actions{display:flex;gap:8px;margin-top:12px}
.export-ready-actions button{display:flex;align-items:center;justify-content:center;gap:6px;padding:8px 12px;flex:1;border-radius:12px;background:var(--active)}
.export-ready-actions svg{width:18px;height:18px}
.export-ready-actions #download-export{background:var(--fg);color:var(--panel)}
@media(max-width:800px){
  dialog:is([data-surface=export-settings],[data-surface=export-ready]){inset:auto 6px 6px;width:calc(100% - 12px)}
}
.template-menu-navbar h2{font:500 19.5px/25px Inter,sans-serif;letter-spacing:-.5px;padding-top:3px}
.template-menu-type-filters button[aria-pressed=true]{background:var(--fg);color:var(--panel)}
#template-scrim{background:linear-gradient(90deg,#0d0d0de6 31%,#0d0d0d35 73%)}
@media(prefers-color-scheme:light){#template-scrim{background:linear-gradient(90deg,#d8d8d8f2 32%,#d8d8d840 72%)}}
.export-tools .export>span:last-child{display:flex;align-items:baseline;gap:5px;white-space:nowrap;min-width:0}
.export-tools .export small{margin-left:0}
.frame-actions .option-preview>svg,.background-modes .option-preview>svg{opacity:.8}
#frame-color .color-setting{margin:0 0 9px}
#frame-color #custom-color{position:static;opacity:1;pointer-events:auto;width:44px;height:29px}
.templates-open .editor{transform:translateX(var(--rail-width,600px))}
#template-menu[data-view=main]{width:min(364px,calc(100vw - 16px))}
#template-menu[data-view=main] .app-menu-actions{padding:62px 14px 14px}
#template-menu[data-view=main] .app-menu-actions img{width:25px;height:25px;object-fit:contain}
#frame-size-picker{margin-bottom:8px}
.frame-size-icon{width:32px;height:32px;border-radius:4px;background:var(--dim);display:grid;place-items:center;flex:none}
.frame-size-icon i{width:70%;max-height:80%;border-radius:3px;border:1px solid var(--fg);background:var(--subtle)}
dialog[data-surface=selector]{inset:var(--selector-y,110px) auto auto var(--selector-x,14px);width:var(--selector-width,440px);margin:0;border-radius:16px;max-height:min(75vh,calc(100dvh - var(--selector-y,110px) - 8px))}
dialog[data-surface=selector]::backdrop{background:transparent}
dialog[data-surface=selector] h2{font-size:17px}
@media(max-width:800px){
  .templates-open .editor{transform:translateX(100vw)}
  #template-menu[data-view=main]{width:100vw}
  dialog[data-surface=selector]{inset:auto 6px 6px;width:calc(100% - 12px);max-height:78dvh}
}
.template-row .template-item{flex-basis:320px}
#template-menu[data-view=main] .template-menu-navbar{flex-direction:row-reverse}
#template-menu[data-view=main] .template-menu-navbar h2{visibility:hidden}
@media(max-width:800px){.template-row .template-item{flex-basis:255px}}

/* Shots-inspired editor fidelity controls */
.media-settings .upload{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:center}
.media-settings .upload.has-media{background:var(--slider-track);padding:6px}
.media-thumbnail{position:absolute;inset:5px;width:calc(100% - 10px);height:calc(100% - 10px);object-fit:cover;border-radius:8px}
.media-settings .upload.has-media:hover .media-thumbnail{filter:brightness(.83)}
.media-settings .upload-caption{overflow-wrap:anywhere}
.remove-media{display:block;margin:4px auto 0;padding:4px 8px;font-size:11px;color:var(--muted);background:var(--slider-track)}
.frame-ratio-groups{display:grid;gap:13px;max-height:320px;overflow-y:auto;padding:1px 3px 5px 1px}
.frame-preset-group h3,.frame-custom-heading{font-size:11px;font-weight:600;color:var(--muted);margin:0 0 7px}
.frame-preset-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.frame-preset-grid button{min-width:0;padding:6px 3px;display:flex;align-items:center;flex-direction:column;gap:3px;border:1px solid transparent;border-radius:9px;background:var(--slider-track);font-size:10px}
.frame-preset-grid button:hover{background:var(--active)}
.frame-preset-grid button[aria-pressed=true]{border-color:var(--option-outline);background:var(--active)}
.frame-preset-shape{height:34px;width:100%;display:flex;align-items:center;justify-content:center}
.frame-preset-shape i{display:block;max-width:50px;max-height:32px;width:60%;height:auto;min-height:8px;background:var(--subtle);border:1px solid var(--muted);border-radius:3px}
.frame-preset-name{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frame-preset-grid small{font-size:9px;color:var(--subtle)}
.frame-custom{border-top:1px solid var(--line);margin-top:13px;padding-top:12px}
.frame-custom-heading{display:flex;justify-content:space-between;align-items:center}
#frame-lock{font-size:10px;background:var(--slider-track);padding:5px 8px;color:var(--fg)}
#frame-lock[aria-pressed=true]{background:var(--active)}
.frame-dimensions{display:flex;align-items:flex-end;gap:7px}
.frame-dimensions label{flex:1;min-width:0;color:var(--muted);font-size:10px}
.frame-dimensions input,.color-fields input{display:block;width:100%;margin-top:3px;padding:7px;background:var(--slider-track);border:1px solid var(--line);border-radius:7px;color:var(--fg);font-variant-numeric:tabular-nums}
.dimension-x{color:var(--muted);padding-bottom:7px}
.frame-hint{font-size:10px;line-height:1.5;color:var(--subtle);margin-top:8px}
.color-picker{display:grid;gap:12px;min-width:0}
.color-picker-head{display:flex;align-items:center;justify-content:space-between;color:var(--fg);font-size:12px}
.color-preview{width:29px;height:25px;border:1px solid var(--line);border-radius:6px}
.color-sv{--hue:0;position:relative;min-height:156px;border-radius:10px;cursor:crosshair;touch-action:none;background:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent),hsl(var(--hue),100%,50%);box-shadow:inset 0 0 0 1px var(--line)}
.color-sv-pointer{position:absolute;top:50%;left:50%;width:14px;height:14px;border:2px solid #fff;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0007,0 2px 4px #0005;pointer-events:none}
.color-channel{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}
.color-channel label{width:41px;flex:none}
.color-channel input{min-width:0;flex:1;accent-color:#ba78ff}
#color-hue{appearance:none;height:11px;border-radius:10px;background:linear-gradient(to right,red,#ff0,lime,cyan,blue,magenta,red)}
#color-hue::-webkit-slider-thumb{appearance:none;width:13px;height:17px;background:#fff;border:2px solid #ddd;border-radius:5px;box-shadow:0 1px 4px #0005;cursor:pointer}
#color-alpha-value{width:32px;text-align:right;color:var(--fg);font-size:10px}
.color-fields{display:grid;grid-template-columns:1.6fr repeat(3,1fr);gap:5px}
.color-fields label{min-width:0;color:var(--muted);font-size:10px}
.color-fields input{font-size:11px;padding:6px 4px}
.color-utilities{display:flex;align-items:center;justify-content:space-between;gap:8px}
#color-eyedropper{background:var(--slider-track);font-size:11px;padding:8px 10px}
#frame-color #custom-color{width:32px;height:30px;border:0;border-radius:7px;cursor:pointer}
.editor .workspace{transition:grid-template-columns .42s cubic-bezier(.22,.8,.25,1),grid-template-rows .42s cubic-bezier(.22,.8,.25,1)}
.editor .panel{transition:opacity .28s ease,transform .4s cubic-bezier(.2,.8,.2,1)}
.editor.preview .panel{opacity:0}
.editor.preview .stage{transition:padding .48s ease}
.editor.performance-mode .stage{box-shadow:inset 0 0 0 1px color-mix(in srgb,#a16dff 30%,transparent)}
.editor.performance-mode #performance{box-shadow:0 0 0 1px #ae7aff55,0 0 12px #ae7aff33}
@media(prefers-reduced-motion:reduce){.editor .workspace,.editor .panel,.editor.preview .stage{transition:none}}

.welcome[hidden]{display:none!important}
