.editor-page{--editor-ink:var(--ink);--editor-muted:var(--muted);--editor-line:var(--line);color:var(--editor-ink);padding-block:clamp(18px,2.5vw,30px) 76px}.editor-page .back-link{align-items:center;color:var(--editor-muted);display:inline-flex;gap:6px;margin-bottom:6px;min-height:36px}.editor-page .back-link:hover{color:var(--editor-ink)}.editor-heading{align-items:flex-end;display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;margin:0 0 18px}.editor-heading h1{font-family:var(--display-font);font-size:clamp(1.9rem,3.6vw,2.85rem);font-weight:740;letter-spacing:-.034em;line-height:1.06;margin:0 0 6px;text-wrap:balance}.editor-heading .page-intro{color:var(--editor-muted);font-size:.96rem;line-height:1.5;margin:0;max-width:62ch}.editor-page .workspace{gap:clamp(16px,2vw,22px);grid-template-columns:minmax(0,1fr) minmax(320px,370px)}.editor-page .controls,.editor-page .stage{border:1px solid var(--editor-line);border-radius:18px;min-width:0;scroll-margin-block-start:calc(var(--header-height) + 16px)}.editor-page .stage{background:var(--paper);box-shadow:var(--card-shadow);overflow:hidden}.editor-page .stage-bar{background:var(--paper);border-bottom:1px solid var(--editor-line);gap:8px 12px;padding:10px 16px}.editor-page .stage-bar .secondary{border-radius:9px;font-size:.83rem;min-height:36px;padding:6px 12px}.stage-playback{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.stage-meta{align-items:baseline;display:flex;flex-wrap:wrap;gap:6px 10px;min-width:0}.stage-meta h2{font:700 .96rem/1.2 var(--display-font);letter-spacing:-.015em;margin:0}.stage-meta p{background:var(--panel-muted);border-radius:999px;color:var(--editor-muted);font-size:.78rem;font-variant-numeric:tabular-nums;font-weight:600;margin:0;padding:2px 8px}.editor-page .stage-surface{--preview-height:clamp(15rem,52svh,33rem);background:radial-gradient(ellipse 80% 70% at 50% 0,rgba(143,87,245,.08),transparent 72%),#f1eef7;min-height:clamp(10rem,28svh,17rem);padding:clamp(14px,2vw,24px)}.editor-page .stage-surface :is(.motion-canvas,.library-preview,.library-fallback){border-radius:10px;box-shadow:0 12px 32px #110d1b24;display:block;height:auto;max-height:none;width:min(100%,calc(var(--preview-height)*var(--preview-ratio)))}.editor-page .controls{background:var(--paper);box-shadow:var(--card-shadow);padding:clamp(16px,1.8vw,20px)}.editor-page .panel-title{font:720 1.15rem/1.2 var(--display-font);letter-spacing:-.02em;margin:0 0 2px}.editor-page .controls label{color:var(--editor-ink);font-size:.83rem;font-weight:650;margin:11px 0 5px}.editor-page .controls :is(input,select,textarea){background:var(--paper);border:1px solid var(--control-border);border-radius:10px;color:var(--editor-ink);font-size:.93rem;min-height:40px;min-width:0;padding:8px 11px;transition:border-color .15s ease,box-shadow .15s ease}.editor-page .controls :is(input,select,textarea):focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px #8f57f529;outline:none}.editor-page .controls textarea{line-height:1.48}.editor-page .controls input[type=file]{font-size:.84rem;padding:6px}.editor-page .controls .field-help{color:var(--editor-muted);font-size:.78rem}.editor-page .control-pair{gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}.editor-output{border-top:1px solid var(--editor-line);margin-top:16px;padding-top:14px}.editor-output .export-button{border-radius:12px;gap:8px;justify-content:center;margin-top:0;min-height:46px}.editor-output a.export-button{background:var(--ink);color:#fff}.editor-output a.export-button:hover{background:var(--accent)}.editor-output>:is(.field-help:first-child,.error:first-child,.export-progress:first-child){margin-top:0}.editor-output>:is(.field-help,.error):not(.export-note){margin-bottom:10px}.editor-output .export-note{margin-top:8px;text-align:center}.editor-output .progress-caption{flex-wrap:wrap}.editor-output .progress-caption button{min-height:36px}.editor-page .editor-fallback{background:var(--panel-muted);border:1px solid var(--editor-line);border-radius:18px;display:grid;margin:0;min-height:15rem;place-items:center}@media(min-width:901px){.editor-page .workspace .stage{position:sticky;top:calc(var(--header-height, 68px) + 16px)}}@media(max-width:900px){.editor-page .workspace{grid-template-columns:minmax(0,1fr)}}@media(max-width:600px){.editor-page{padding-bottom:48px}.editor-heading{margin-bottom:14px}.editor-page .stage-bar{flex-wrap:wrap;padding-inline:12px}.editor-page .stage-surface{--preview-height:min(46svh,25rem);padding:12px}.editor-page .controls,.editor-page .stage{scroll-margin-block-start:12px}.editor-page .editor-fallback{min-height:9rem}}@media(prefers-reduced-motion:reduce){.editor-page :is(input,select,textarea){transition:none}}
