/* Shared creator UI vocabulary. Copy unchanged to the donkey build during local preview. */
:root{color-scheme:dark;--bg:#151717;--surface:#1d2020;--raised:#272c2a;--line:#3b4440;--ink:#f3f4ef;--muted:#b9c3bd;--accent:#d5ef96;--accent-ink:#202b12;--error:#ffc2ae;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-size:16px;line-height:1.65}button,input,select,textarea,a{font:inherit}button,a,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.44}a{color:inherit;text-underline-offset:4px}button:focus-visible,a:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:4px}::selection{background:var(--accent);color:var(--accent-ink)}textarea,input{caret-color:var(--accent)}[hidden]{display:none!important}h1,h2,h3,p{margin:0}h1{font-size:28px;font-weight:700;line-height:1.4;letter-spacing:-.025em}h2{font-size:22px;line-height:1.45;letter-spacing:-.02em}svg{display:block}button,a{transition:background-color 160ms ease,color 160ms ease,border-color 160ms ease}button:active:not(:disabled),a:active{filter:brightness(.9)}
.creator-header{max-width:1080px;margin:auto;min-height:76px;padding:16px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line)}.creator-brand{display:inline-flex;align-items:center;gap:4px;min-height:44px;text-decoration:none;font-size:20px;font-weight:750;letter-spacing:-.02em}.creator-brand span{font-size:14px;color:var(--muted);font-weight:500;letter-spacing:0}.creator-back{font-size:14px;color:var(--muted);padding:10px 0;min-height:44px}.creator-steps{display:flex;gap:24px;margin-bottom:28px;border-bottom:1px solid var(--line)}.creator-steps button{border:0;border-bottom:2px solid transparent;padding:12px 0;min-height:48px;border-radius:0;background:none;color:var(--muted);font-size:14px}.creator-steps [aria-current=step]{color:var(--ink);border-bottom-color:var(--accent);font-weight:700}.creator-steps button:disabled:not([aria-current=step]){opacity:.45}.creator-heading{margin-bottom:24px}.creator-heading p{color:var(--muted);font-size:15px;margin-top:10px;max-width:48ch}.creator-details{border-top:1px solid var(--line);margin-top:22px;padding-top:4px}.creator-details>summary{cursor:pointer;min-height:48px;align-content:center;font-size:14px;color:var(--muted)}.creator-details textarea{width:100%;resize:vertical;min-height:100px;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:8px;color:var(--ink);font-size:16px;line-height:1.65}.creator-note{font-size:13px;color:var(--muted);margin-top:14px}.creator-primary,.creator-secondary{display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:50px;padding:12px 20px;border:1px solid var(--line);border-radius:10px;text-decoration:none;font-size:15px;font-weight:650}.creator-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink)}.creator-secondary{background:var(--raised);color:var(--ink)}.creator-secondary:hover:not(:disabled){background:#343d38}.creator-primary:hover:not(:disabled){background:#e1f6b2}.creator-wide{width:100%}.creator-status{font-size:14px;color:var(--muted);margin-top:18px;min-height:24px}.creator-error{font-size:14px;color:var(--error);margin-top:12px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:650px){.creator-header{padding:12px 20px;min-height:68px}.creator-steps{gap:24px;margin-bottom:24px}.creator-heading{margin-bottom:24px}h1{font-size:26px}.creator-heading p{font-size:15px}.creator-back{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* One screen: preview, one recording button, then an optional result. */
.creator-layout.creator-layout{grid-template-columns:300px minmax(0,440px);justify-content:center;gap:48px}
.creator-layout .creator-player{grid-column:1;grid-row:1;position:sticky;top:24px;min-width:0}
.creator-layout .creator-controls{grid-column:2;grid-row:1}
.creator-player .stage-frame,.creator-player .stage-wrap{position:relative;width:100%;height:auto;aspect-ratio:9/16;overflow:hidden;border-radius:14px}
.stage-play{position:absolute;z-index:2;bottom:14px;left:50%;transform:translateX(-50%);min-height:48px;padding:10px 20px;white-space:nowrap;color:#fff;background:#151717dd;border:1px solid #ffffff66;border-radius:99px;font-size:14px;font-weight:650}
.repeat-help{font-size:14px;line-height:1.6;color:var(--muted);margin:0 0 16px}
.creator-heading{margin-bottom:14px}.creator-heading h1{font-size:26px}.creator-heading p{margin-top:6px}
@media(max-width:650px){
 .creator-layout.creator-layout{display:flex;flex-direction:column;padding:16px 20px 32px;gap:20px;max-width:480px}
 .creator-layout .creator-player{order:-1;position:relative;top:auto;display:block;width:100%}
 .creator-player .stage-frame,.creator-player .stage-wrap{height:clamp(180px,34svh,310px);width:auto;max-width:100%;margin:auto;aspect-ratio:9/16}
 .creator-layout .creator-controls{width:100%}
 .creator-player .stage-caption,.creator-player .preview-note{display:none}
 .creator-heading h1{font-size:24px}.creator-heading p,.repeat-help{font-size:14px}
 .creator-heading{margin-bottom:10px}.repeat-help{margin-bottom:12px}
 body[data-step=result] .creator-layout .creator-player{display:none}
}
