@font-face{font-family:Inter;src:url(inter.woff) format("woff");font-weight:100 900;font-display:swap}
@font-face{font-family:LunevSans;src:url(kr.woff) format("woff");font-weight:400;font-display:swap}
@font-face{font-family:LunevSans;src:url(kr-bold.woff) format("woff");font-weight:600 900;font-display:swap}
:root{--ink:#33273e;--muted:#74677d;--accent:#70468c;--light:#eee6f4;--line:#e3dbe9;--soft:#f6f2f8;--paper:#fcfafc;font-family:Inter,LunevSans,"Malgun Gothic",sans-serif;color:var(--ink);background:var(--paper);word-break:keep-all;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer;border:none;background:none}button:disabled{cursor:not-allowed;opacity:.5}a{text-decoration:none;color:inherit}h1,h2,h3,p,figure{margin:0}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,.stage:focus-visible{outline:3px solid #9c74b9;outline-offset:3px}img{display:block}button svg,a svg,h2 svg,.soft-icon,.prompt-icon,.glyph{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0;pointer-events:none}
.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.skip:focus{position:fixed;z-index:100;background:white;padding:10px}.app-shell{display:grid;grid-template-columns:clamp(165px,15vw,218px) minmax(0,1fr);min-height:100svh}
.rail{position:sticky;top:0;height:100svh;display:flex;flex-direction:column;border-right:1px solid #ded3e7;background:linear-gradient(153deg,#faf6fc 4%,#f0e9f5 75%,#ede5f3);padding:0 16px 20px}
.brand{display:flex;flex-direction:column;align-items:center;gap:11px;padding:46px 12px 39px}.moon-logo{width:63px;height:44px;object-fit:contain}.wordmark{width:121px;height:auto}nav{display:grid;gap:4px}nav a{height:44px;display:flex;gap:13px;align-items:center;border-radius:9px;padding:0 16px;font-size:15px;font-weight:600;color:#64556e;transition:background .15s,color .15s}nav a:hover{background:#ece4f1}nav a[aria-current]{background:#e5d7ee;color:#5b3477}nav svg{width:19px;height:19px}.rail-foot{margin-top:auto;border-top:1px solid #dcd0e4;padding-top:16px;display:grid;gap:14px}.copy-main,.primary,.secondary,.help,.mobile-copy,.inline-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:650}.copy-main,.primary{min-height:40px;border-radius:9px;background:var(--accent);color:#fff;padding:0 15px;transition:background .15s,transform .15s}.copy-main:hover,.primary:hover{background:#593570}.primary:active,.copy-main:active{transform:translateY(1px)}.copy-main svg,.primary svg{width:17px;height:17px}
main{min-width:0;display:flex;flex-direction:column}.bar{min-height:58px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 clamp(20px,3.1vw,52px);background:#fdfbfd}.app-name{display:flex;align-items:center;gap:5px;font-size:14px;font-weight:650;letter-spacing:-.025em}.app-name b{font-weight:500}.app-name img{width:25px;height:auto;margin-right:4px}.divider{height:15px;width:1px;background:#d9cfdf;margin:0 7px}.edition{color:var(--muted);font-size:13px;font-weight:500}.help{color:var(--muted);font-size:13px;min-height:36px;padding:2px 4px}.help span{font:650 12px/15px Inter;border:1.5px solid currentColor;width:17px;height:17px;border-radius:50%}.help:hover{color:var(--accent)}
.work{width:100%;max-width:1510px;margin:0 auto;padding:clamp(24px,3.1vw,48px);flex:1}.title-row,.panel-head,.list-head,.list-head>div,.monitor-foot,.monitor-foot>div,.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.title-row{margin-bottom:24px}h1{font-size:clamp(27px,2.4vw,38px);letter-spacing:-.065em;line-height:1.12;font-weight:700}h2{font-size:17px;letter-spacing:-.045em;font-weight:700;line-height:1.3}.work-grid{display:grid;grid-template-columns:minmax(0,1.94fr) minmax(265px,1fr);gap:18px;align-items:start}.panel{background:white;border:1px solid var(--line);border-radius:15px;min-width:0}.panel-head{min-height:59px;padding:12px 18px}.panel-head h2{display:flex;align-items:center;gap:9px}.panel-head h2 svg,.soft-icon{color:#8b709e;width:18px;height:18px}.switcher,.segments{display:flex;background:#f2edf5;padding:3px;border-radius:8px}.switcher button,.segments button{flex:1;min-height:29px;border-radius:6px;color:var(--muted);padding:3px 9px;white-space:nowrap;font-size:12px;font-weight:600}.switcher button[aria-pressed=true],.segments button[aria-pressed=true]{color:#66457b;background:#fff;box-shadow:0 1px 4px #48385014}
.stage-wrap{padding:0 12px}.stage{aspect-ratio:16/9;width:100%;position:relative;container-type:inline-size;overflow:hidden;border-radius:8px;isolation:isolate;touch-action:pan-y;background-color:#f7f5f9;background-image:conic-gradient(#eae6ee 25%,transparent 0 50%,#eae6ee 0 75%,transparent 0);background-size:20px 20px}.scene-bg{background:#716691 url(moonlake.webp) center/cover no-repeat}.monitor-foot{height:41px;padding:2px 15px;color:var(--muted)}.monitor-foot>div{gap:3px}.format{font-size:11px;font-weight:550;letter-spacing:.04em}.icon{width:32px;height:32px;display:inline-grid;place-items:center;border-radius:7px;color:#786386;padding:0}.icon svg{width:17px;height:17px}.icon:hover,.help:hover{background:var(--soft)}.icon.danger:hover{color:#9c4663;background:#f8edf2}.pause-bars{height:12px;width:10px;border-inline:3px solid currentColor}.play-triangle{width:0;height:0;border:6px solid transparent;border-right:0;border-left:9px solid currentColor}
.inspector .panel-head{border-bottom:1px solid #eee8f2}.inspector #inspector-body{padding:17px 18px 19px;display:grid;gap:17px}.field{padding:0;border:0;margin:0;min-width:0}.field-name{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:8px;font-size:13px;font-weight:650}.field-name small{font-size:12px;font-weight:500;color:var(--muted)}.segments button{min-height:31px;font-size:13px;padding:3px 5px}.swatches{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.swatch{display:grid;justify-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:550;padding:8px 1px 6px;background:#f9f6fa;border:1px solid transparent;border-radius:8px}.swatch[aria-pressed=true]{background:#eee3f5;color:#5f3979;border-color:#b99bcf}.swatch:hover{border-color:#c9b4d6}.swatch-img{display:flex;width:30px;height:32px;align-items:center;flex-direction:column;justify-content:center}.swatch-img svg{width:24px;height:23px;fill:#fff;stroke:none;background:#bca5cd;padding:2px;border-radius:50%}.swatch-img i{width:13px;height:4px;background:#816299;border-radius:3px;margin-top:2px}.swatch-img.mono svg,.swatch-img.minimal svg{border-radius:5px}.swatch-img.mono svg{border:1.5px solid white;outline:1px solid #463d4a}.swatch-img.mono i{background:#38313d}.swatch-img.minimal svg{border:1px solid #5a565b}.swatch-img.minimal i{height:2px;background:repeating-linear-gradient(90deg,#504759 0 2px,transparent 2px 3px)}.swatch-img.plate svg{border-radius:2px 2px 0 0}.swatch-img.plate i{width:24px;margin:0;border-radius:0 0 1px 1px;background:#353139}
.collection{margin-top:28px}.list-head{margin-bottom:12px}.list-head>div{justify-content:start;gap:8px}.list-head h2{font-size:19px}#list-count{font:600 12px Inter;color:#705483;background:#ede4f3;border-radius:5px;padding:3px 7px}.list-note{color:var(--muted);font-size:12px}.card-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(245px,100%),1fr));gap:12px}.member-card,.preset-card,.empty-list{background:white;border:1px solid var(--line);border-radius:11px;padding:15px;display:flex;gap:12px;align-items:center;min-width:0}.member-card>img{width:51px;height:51px;border-radius:12px;object-fit:cover;background:var(--light)}.member-info{flex:1;min-width:0}.member-info strong,.preset-card strong{display:block;font-size:16px}.member-info small,.preset-card small{display:block;font-size:12px;color:var(--muted);margin-top:5px}.member-info small::before,footer i{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:#63a38a;margin-right:5px;vertical-align:middle}.card-actions{display:flex;gap:1px}.empty-list{justify-content:center;color:var(--muted);font-size:14px;padding:26px}.secondary,.inline-btn{min-height:36px;border-radius:7px;padding:7px 12px;background:var(--soft);color:#614675}.secondary:hover,.inline-btn:hover{background:#e9e0ef}.inline-btn{font-size:13px}.secondary svg{width:16px;height:16px}.preset-card{flex-wrap:wrap}.preset-card>div:first-child{margin-right:auto}.note{color:var(--muted);font-size:14px;line-height:1.58}.empty-stage{position:absolute;inset:auto 12px 12px;text-align:center;color:#fff;background:#30253ac9;border-radius:5px;padding:7px;font-size:12px}.stage[data-draggable=true] .overlay-row{cursor:grab;touch-action:none;outline:1px dashed #f0d9ff99;outline-offset:3px}.stage[data-dragging=true] .overlay-row{cursor:grabbing}
input[type=range]{width:100%;accent-color:#885d9f;margin:4px 0;cursor:pointer}.anchors{display:grid;grid-template-columns:repeat(3,1fr);gap:4px}.anchor{border:1px solid var(--line);border-radius:5px;height:23px;display:grid;place-items:center}.anchor::after{content:"";width:5px;height:5px;border-radius:50%;background:#ad9ab9}.anchor[aria-pressed=true]{background:var(--light);border-color:#b798ca}.anchor[aria-pressed=true]::after{background:#744795}.color-row{display:flex;align-items:center;gap:8px}.color-row input{width:40px;height:32px;padding:1px;border:1px solid var(--line);background:white;border-radius:6px}.color-row button{min-height:31px}
footer{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);background:#f5f0f8;padding:4px clamp(20px,3.1vw,52px);font-size:11px;color:var(--muted)}footer i{margin-right:6px}.mobile-copy{display:none}
dialog{width:min(440px,calc(100% - 30px));color:var(--ink);border:1px solid #d9cce2;border-radius:16px;background:#fff;max-height:85svh;overflow:auto;padding:0;box-shadow:0 18px 70px #30223f40}dialog::backdrop{background:#2f253854}dialog[open]{animation:appear .15s ease-out}.dialog-head{padding:15px 18px;border-bottom:1px solid var(--line)}.dialog-head h2{font-size:19px}#dialog-body{padding:18px;display:grid;gap:14px}.dialog-label{display:grid;gap:7px;font-size:14px;font-weight:600}.text-input{width:100%;min-width:0;height:39px;border:1px solid #cbbbd6;border-radius:7px;padding:7px 10px;background:#fdfbfd;font-size:15px}.chooser{display:grid;gap:7px}.person{display:flex;align-items:center;gap:12px;background:#f8f5fa;border-radius:8px;padding:8px;width:100%;text-align:left}.person img{width:41px;height:41px;object-fit:cover;border-radius:9px}.person small{display:block;color:var(--muted);margin-top:3px}.person .end{margin-left:auto;color:var(--accent);font-size:13px}.candidates{position:relative;aspect-ratio:16/9;border-radius:9px;overflow:hidden;background:#766684 url(moonlake.webp) center/cover}.candidate{position:absolute;left:14%;bottom:14%;width:29%;aspect-ratio:1;padding:0;border:2px solid #e4dce6;border-radius:5px;background:#524263;color:#fff;box-shadow:0 1px 5px #31233775}.candidate:nth-child(2){left:auto;right:11%;bottom:22%;width:24%}.candidate[aria-pressed=true]{outline:2px solid #8a5fa4;border-color:#f6e4ff}.candidate img{width:100%;height:100%;object-fit:cover;border-radius:2px}.candidate .number{position:absolute;top:-8px;left:-7px;display:grid;place-items:center;min-width:20px;height:20px;background:#493854;border-radius:4px;font-weight:650;font-size:12px}.candidate-label{position:absolute;left:50%;bottom:-10px;transform:translateX(-50%);background:#4c3655;padding:3px 6px;border-radius:4px;font-size:12px;white-space:nowrap}.candidate[aria-pressed=true] .number,.candidate[aria-pressed=true] .candidate-label{background:#70458c}.summary{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;margin:0;font-size:14px}.summary dt{color:var(--muted)}.summary dd{text-align:right;margin:0;font-weight:600}.preset-card strong{overflow-wrap:anywhere}.overlay-row:focus-visible{outline:2px solid #b292c8;outline-offset:4px}.dialog-actions{display:flex;justify-content:flex-end;gap:8px}.help-list{margin:0;display:grid;gap:12px}.help-list dt{font-weight:650;margin-bottom:3px}.help-list dd{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}#toast{position:fixed;right:24px;bottom:48px;z-index:10;background:#46344f;color:#fff;border-radius:8px;font-size:14px;padding:11px 16px;pointer-events:none;opacity:0;transform:translateY(4px);transition:opacity .16s,transform .16s}#toast.visible{opacity:1;transform:none}
.overlay-row{position:absolute;display:flex;gap:2.6cqw;align-items:start}.overlay-row.col{flex-direction:column;gap:1.2cqw}.avatar{width:var(--source-size);position:relative;display:flex;align-items:center;flex-direction:column;line-height:1;--radius:50%;font-size:calc(var(--source-size) * .14 * var(--font-scale))}.avatar.rounded{--radius:17%}.avatar.square{--radius:0%}.avatar :is(img,video){width:100%;aspect-ratio:1;display:block;object-fit:cover;border-radius:var(--radius);background:#dbcce6}.avatar.mono :is(img,video){border:max(1px,.24cqw) solid #fffffff0;outline:max(1px,.15cqw) solid #302934c7}.avatar.minimal :is(img,video){border:max(1px,.15cqw) solid #39363cb8}.avatar figcaption{background:var(--badge-color,#725487);color:white;border-radius:2em;padding:.15em .56em;line-height:1.14;font-weight:650;white-space:nowrap;margin-top:.14em}.avatar.mono figcaption{background:var(--badge-color,#343236);border-radius:.23em}.avatar.minimal figcaption{background:transparent;color:var(--badge-color,#fff);padding-inline:0;text-shadow:0 1px 2px #222,-.5px 0 1px #333}.avatar.plate figcaption{background:var(--badge-color,#343038);width:100%;margin:0;text-align:center;border-radius:0}.avatar.label-hidden figcaption{display:none}.avatar.label-above figcaption{order:-1;margin:0 0 .14em}.avatar.plate.label-above figcaption{margin:0}.avatar.label-over figcaption{position:absolute;bottom:3%;margin:0}.output,.output body{width:100%;height:100%;overflow:hidden;background:transparent}.output #output{width:100%;height:100%;display:block;position:relative;container-type:inline-size}
@keyframes appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media(min-width:1600px){.work-grid{grid-template-columns:minmax(0,2.1fr) minmax(320px,.92fr)}}
@media(max-width:1100px){.app-shell{grid-template-columns:156px minmax(0,1fr)}.rail{padding-inline:10px}.brand{padding:34px 4px 28px}.wordmark{width:107px}.work{padding:25px 22px}.work-grid{grid-template-columns:minmax(0,1.55fr) minmax(238px,1fr);gap:12px}.inspector #inspector-body{padding:13px;gap:13px}.panel-head{min-height:50px;padding:10px 13px}.card-actions{flex-wrap:wrap}.member-card{padding:12px}}
@media(max-width:870px){.app-shell{grid-template-columns:132px minmax(0,1fr)}.work{padding:22px 16px}.work-grid{grid-template-columns:minmax(0,1fr)}.inspector #inspector-body{display:flex;flex-wrap:wrap;gap:14px;align-items:start}.inspector .field{flex:1 1 140px}.inspector .note{flex-basis:100%}.inspector .field:has(.swatches){flex-basis:185px}.inspector .panel-head{min-height:44px}.stage-wrap{padding:0 10px}.copy-main{font-size:12px;padding:0 6px}nav a{padding:0 10px;gap:8px}}
@media(max-width:650px){.app-shell{display:block}.rail{position:static;height:auto;display:block;padding:0 14px;border:0;border-bottom:1px solid var(--line);background:#f4eef8}.brand,.rail-foot{display:none}nav{display:flex;gap:2px;padding:5px 0}nav a{flex:1;min-width:0;justify-content:center;font-size:13px;gap:5px;height:38px;padding:0 2px}nav svg{width:16px;height:16px}.app-shell{display:flex;flex-direction:column}.bar{position:absolute;top:0;left:0;right:0;min-height:46px;height:46px;padding:0 16px}.rail{margin-top:46px}main{flex:1}.work{padding:20px 13px 26px}.title-row{margin-bottom:16px}h1{font-size:27px}.primary{min-height:37px;font-size:13px;padding:0 11px}.app-name{font-size:14px}.help{font-size:12px}.work-grid{gap:13px}.panel{border-radius:11px}.panel-head{min-height:46px}.stage-wrap{padding:0 8px}.collection{margin-top:20px}.member-card{padding:11px}.card-list{grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr))}.monitor-foot{height:34px}.list-note{font-size:11px}.mobile-copy{display:inline-flex;color:var(--accent);font-size:12px;min-height:35px}.mobile-copy svg{width:14px;height:14px}footer{padding:2px 14px}footer>span:nth-child(2){display:none}.inspector .field:has(.swatches){flex-basis:100%}.swatch{display:flex;justify-content:center;align-items:center;font-size:12px;gap:4px}.swatch-img{width:23px;height:27px}.swatch-img svg{width:19px;height:19px}.swatch-img.plate i{width:19px}.title-row,.panel-head{gap:5px}.switcher button{min-height:28px}#toast{right:12px;bottom:14px;max-width:calc(100% - 24px)}}
@media(max-width:365px){nav svg{display:none}.work{padding-inline:10px}.swatch{flex-direction:column}.inspector .field{flex-basis:120px}}
.bar-actions { display:flex; align-items:center; gap:12px; }
.bar .help-caption { width:auto; height:auto; border:0; border-radius:0; font:inherit; }
.download-link { display:inline-flex; align-items:center; min-height:34px; padding:0 13px; background:var(--accent); border-radius:9px; color:white; font-size:13px; font-weight:650; }
.download-link:hover { background:#57336f; }
@media(max-width:460px){.bar-actions{gap:6px}.bar .help-caption{display:none}.bar .help{min-width:30px}.download-link{min-height:32px;padding-inline:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}
