@layer reset,base,components,responsive;
@layer reset{*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select{font:inherit}button,a,input,select,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}img,svg,canvas{display:block}button svg,a svg{flex:none}button{color:inherit}[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:24px}}
@layer base{
 :root{--paper:#fffdf6;--page:#f3f1e9;--ink:#203b33;--green:#008574;--muted:#64746a;--line:#c8cfc3;--lime:#baff52;--purple:#776cff;--coral:#ff765f;color-scheme:light;font-family:"Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--ink);font-size:14px;line-height:1.7;background:var(--page)}
 body{background:radial-gradient(ellipse at 100% 0,#e4dff399,transparent 38%),var(--page);min-width:320px}a{color:inherit}button{transition:background .18s,color .18s,border-color .18s,box-shadow .18s,transform .18s}button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 12px #203b3315}button:active:not(:disabled){transform:translateY(0)}:focus-visible{outline:3px solid var(--purple);outline-offset:4px}input[type=range]{width:100%;accent-color:var(--green);height:21px;margin:7px 0 0;cursor:pointer}input[type=text],input[type=search],select{width:100%;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);padding:11px 12px;min-height:43px;font-size:12px}select{cursor:pointer}input[type=checkbox]{accent-color:var(--green);width:15px;height:15px;flex:none}.page{width:min(1540px,calc(100% - 80px));margin:auto}.hero{padding:42px 0 36px}.eyebrow,.kicker{color:var(--green);font-size:10px;letter-spacing:.13em;font-weight:750}.eyebrow{display:flex;align-items:center;gap:13px}.hero h1{font-size:clamp(32px,4.2vw,68px);line-height:1.17;letter-spacing:0;font-weight:800;margin:24px 0}.hero h1>span{color:var(--coral)}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:25px}.lead{font-size:16px;line-height:1.85}.lead strong{color:var(--green)}h2{font-size:clamp(22px,2.1vw,31px);line-height:1.45}h3{font-size:16px;line-height:1.5}.note{font-size:11px;line-height:1.85;color:var(--muted)}.quiet,.primary,.accent{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:9px;background:var(--paper);padding:11px 16px;font-size:11px;font-weight:750;line-height:1.5}.primary{background:var(--ink);color:var(--lime);border-color:var(--ink)}.accent{background:var(--lime);color:var(--ink);border-color:var(--lime)}.text-button{padding:5px 0;border:0;background:transparent;color:var(--green);font-size:11px;font-weight:750}.text-button:hover:not(:disabled){box-shadow:none;text-decoration:underline}.chip{font-size:10px;white-space:nowrap;border:1px solid var(--line);border-radius:99px;padding:5px 10px;font-weight:750}.range{display:grid;grid-template-columns:1fr auto;font-size:11px;font-weight:650;align-items:center}.range output{color:var(--green);font-variant-numeric:tabular-nums}.range input{grid-column:1/-1}.check{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:650}.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--shader-option;background:#e8ece3;border:1px solid var(--line);padding:4px;border-radius:11px;gap:3px}.segmented::before{content:"";position:absolute;z-index:-1;border-radius:7px;background:var(--ink);position-anchor:--shader-option;top:anchor(top);left:anchor(left);width:anchor-size(width);height:anchor-size(height);transition:top .22s,left .22s,width .22s,height .22s}.segmented button{background:transparent;border:0;flex:1;min-width:0;padding:8px 11px;font-size:11px;font-weight:750;white-space:nowrap;line-height:1.5;border-radius:7px}.segmented button[aria-pressed=true]{anchor-name:--shader-option;color:var(--lime)}.segmented button:hover:not(:disabled){transform:none;box-shadow:none;background:#203b3310}.segmented button[aria-pressed=true]:hover{background:transparent}.segmented button:focus-visible{outline-offset:1px}
 @supports not(position-anchor:--shader-option){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}
}
@layer components{
 .lab{border:1px solid var(--line);border-radius:24px;background:var(--paper);overflow:clip;container:lab / inline-size}.section-heading{display:flex;align-items:center;gap:17px;padding:26px;border-bottom:1px solid var(--line)}.section-icon{display:grid;place-items:center;width:51px;height:51px;border-radius:16px;background:var(--coral);color:white;flex:none}.section-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}.section-heading .kicker{margin-bottom:4px}.preset-jump{margin-left:auto;font-size:11px;font-weight:750;text-underline-offset:4px;white-space:nowrap}.lab-grid{display:grid;grid-template-columns:282px minmax(0,1fr)}.controls{min-width:0;background:#f6f5ee;border-right:1px solid var(--line)}.control-section{padding:23px 20px;border-bottom:1px solid var(--line)}.control-section:last-child{border-bottom:0}.control-section h3{margin:7px 0 15px}.control-section .range+.range{margin-top:17px}.control-section .check{margin-top:20px}.control-section .note{margin-top:10px}.control-section select{max-width:100%}.preset-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:13px;font-size:10px;color:var(--muted)}.preset-meta .text-button{font-size:10px}.color-grid{display:grid;gap:7px}.color-item{display:grid;grid-template-columns:37px 1fr auto;align-items:center;gap:10px;padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:11px;font-weight:700}.color-item input[type=color]{border:0;padding:0;background:none;width:32px;height:30px;cursor:pointer;border-radius:6px}.color-item code{font:10px/1.5 monospace;color:var(--muted)}.palette-shuffle{margin-top:12px;width:100%;justify-content:space-between}.palette-shuffle span{font-size:18px;line-height:1}.render-size{font-size:10px;color:var(--green);margin-top:9px;font-variant-numeric:tabular-nums}.workspace{min-width:0;container:workspace / inline-size}.workspace-bar{padding:17px 22px;display:flex;align-items:center;gap:13px;border-bottom:1px solid var(--line);font-size:11px;min-height:61px}.workspace-bar .chip{margin-left:auto}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;border-radius:50%;background:#bac6b9}.window-dots i:first-child{background:var(--coral)}.settings-jump{display:none}.canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.ratio-label{display:flex;align-items:center;gap:8px;font-size:10px;font-weight:700}.ratio-label select{width:100px;min-height:36px;padding:7px 8px;font-size:10px}.stage-wrap{padding:20px;background:linear-gradient(#d6ded333 1px,transparent 1px),linear-gradient(90deg,#d6ded333 1px,transparent 1px),#e8ede4;background-size:22px 22px}.stage{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:16/10;container:stage / inline-size;background:#060e19;color:#fbfbef;border-radius:12px;box-shadow:0 8px 25px #1c302514}.stage[data-ratio=square]{aspect-ratio:1}.stage[data-ratio=portrait]{aspect-ratio:4/5;max-width:650px;margin-inline:auto}.stage[data-tone=dark]{color:#163a31}.stage canvas{position:absolute;width:100%;height:100%;inset:0;z-index:-2;pointer-events:none}.shade{position:absolute;inset:0;background:linear-gradient(90deg,#000c,#0004);z-index:-1;pointer-events:none;opacity:0.15}.foreground{height:100%;display:flex;flex-direction:column;padding:clamp(18px,4.4cqw,56px);pointer-events:none}.foreground a{pointer-events:auto}.sample-nav{display:flex;justify-content:space-between;align-items:center;font-size:clamp(7px,1cqw,11px);font-weight:750;gap:16px;letter-spacing:.04em;line-height:1.4}.sample-brand{display:flex;align-items:center;gap:8px;white-space:nowrap}.sample-brand i{width:16px;height:16px;display:block;border:1.5px solid currentColor;transform:rotate(-14deg);border-radius:3px}.sample-nav>span:last-child{opacity:.7;font-size:clamp(6px,.85cqw,9px)}.sample-hero{margin-block:auto;padding-block:30px;max-width:88%}.sample-kicker{font-size:clamp(7px,.95cqw,11px);letter-spacing:.1em;font-weight:700;margin-bottom:clamp(10px,2cqw,22px);opacity:.8}.sample-hero h3{font-size:clamp(27px,7.2cqw,82px);font-weight:650;line-height:1.08;max-width:11em;overflow-wrap:anywhere;letter-spacing:0}.live-subtitle{font-size:clamp(9px,1.5cqw,16px);line-height:1.8;margin-top:clamp(13px,2.4cqw,26px);opacity:.85;overflow-wrap:anywhere}.sample-cta{display:inline-flex;align-items:center;gap:clamp(15px,3cqw,35px);margin-top:clamp(15px,3cqw,32px);font-size:clamp(8px,1.2cqw,12px);font-weight:650;text-decoration:none;border:1px solid #ffffff70;border-radius:99px;padding:clamp(8px,1.5cqw,13px) clamp(12px,2.4cqw,23px);background:#ffffff0b;backdrop-filter:blur(6px);transition:background .2s}.sample-cta:hover{background:#ffffff25}.sample-cta svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5}.stage[data-tone=dark] .sample-cta{border-color:#163a3170;background:#ffffff20}.sample-foot{display:flex;justify-content:space-between;gap:10px;font-size:clamp(6px,.85cqw,9px);font-weight:650;opacity:.6;letter-spacing:.1em;align-items:center}.sample-foot>span:last-child{display:flex;align-items:center;gap:7px}.sample-foot i{width:5px;height:5px;border-radius:50%;background:currentColor}.sample-card{display:none;margin:auto;background:#ffffff0c;border:1px solid #ffffff50;backdrop-filter:blur(10px);border-radius:clamp(12px,2cqw,22px);width:74%;min-height:70%;padding:clamp(20px,4cqw,45px);box-shadow:0 20px 60px #0002;flex-direction:column;justify-content:space-between}.card-index{font-size:clamp(8px,1.2cqw,12px);font-weight:700;letter-spacing:.1em;margin-bottom:30px}.sample-card h3{font-size:clamp(25px,5cqw,52px);line-height:1.15;overflow-wrap:anywhere}.card-bottom{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:clamp(7px,1cqw,10px);margin-top:25px}.card-bottom svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.4}.stage[data-preview=card] :is(.sample-nav,.sample-hero,.sample-foot){display:none}.stage[data-preview=card] .sample-card{display:flex}.stage[data-preview=none] .foreground,.stage[data-preview=none] .shade{display:none}.fallback-message{position:absolute;inset:auto 12px 12px;background:#10221de8;color:#fff;padding:8px 12px;border-radius:6px;font-size:10px}.playbar{display:flex;align-items:center;gap:16px;padding:13px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.play-button{display:flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:11px;font-weight:700;min-height:37px;min-width:105px}.pause-icon{display:block;width:12px;height:14px;border-inline:3px solid currentColor}.play-icon{display:block;width:0;height:0;border-block:7px solid transparent;border-left:11px solid currentColor;margin-left:2px}.play-state{display:flex;align-items:center;gap:7px;font-size:10px;color:var(--muted)}.play-state::before{content:"";width:6px;height:6px;background:var(--green);border-radius:50%}.play-state[data-state=lost]::before,.play-state[data-state=unavailable]::before{background:var(--coral)}.expand-button{margin-left:auto;font-size:10px;padding:8px 10px}.expand-button svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.5}.motion-notice{padding:10px 20px;background:#f0ecff;border-bottom:1px solid var(--line);font-size:11px;color:#4c4688}.front-settings{padding:25px 22px;border-bottom:1px solid var(--line)}.front-settings>header,.export-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.front-settings h3,.export-section h3{margin-top:5px}.front-fields{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin:18px 0}.front-fields label{display:grid;gap:7px;font-size:11px;font-weight:650;min-width:0}.front-options{display:grid;grid-template-columns:1fr 1fr;gap:25px;align-items:center}.front-options .segmented{max-width:290px}.front-settings>.note{margin-top:16px}.export-section{padding:26px 22px}.png-size{display:flex;align-items:center;gap:8px;font-size:10px;white-space:nowrap}.png-size select{width:98px;min-height:36px;padding:7px 8px;font-size:10px}.export-section> .note{margin-top:14px}.export-actions{display:flex;flex-wrap:wrap;gap:9px;margin:20px 0}.export-actions button{flex:1;white-space:nowrap;padding-inline:12px}.export-section details{border:1px solid var(--line);border-radius:10px;overflow:hidden}.export-section summary{cursor:pointer;font-size:11px;font-weight:650;padding:13px 16px}.export-section summary span{float:right;color:var(--muted);font-weight:400;font-size:10px}pre{font-size:11px;line-height:1.8;background:#18352d;color:#c7e1c9;max-height:360px;padding:20px;overflow:auto;margin:0;tab-size:2}pre code{font:inherit;white-space:pre}.export-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;margin-top:14px;font-size:10px;color:var(--muted);flex-wrap:wrap}.error{font-size:12px;color:#b22f2e;margin-top:14px;overflow-wrap:anywhere}.preset-library{margin-top:64px;container:library / inline-size;scroll-margin-top:20px}.library-heading{display:flex;align-items:end;justify-content:space-between;gap:20px}.library-heading h2{margin-top:10px}.library-heading p:not(.kicker){font-size:13px;color:var(--muted);margin-top:12px}.search-label{display:grid;gap:7px;font-size:10px;color:var(--muted);width:245px;flex:none}.library-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:25px 0 20px}.library-toolbar label{display:flex;align-items:center;gap:12px;font-size:11px;font-weight:650}.library-toolbar select{width:185px}.library-toolbar output{font-size:11px;font-weight:650;color:var(--green)}.preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px}.preset-card{text-align:left;padding:7px;border-radius:15px;border:1px solid var(--line);background:var(--paper);min-width:0}.preset-card[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.preset-image{aspect-ratio:16/10;overflow:hidden;border-radius:9px;position:relative;background:#0a151c}.preset-image img{width:100%;height:100%;object-fit:cover}.preset-image>span{position:absolute;top:9px;right:9px;font-size:10px;color:#fff;background:#061c22b3;border:1px solid #ffffff35;padding:2px 7px;border-radius:99px}.preset-body{padding:13px 8px 9px;display:flex;align-items:center;justify-content:space-between;gap:9px}.preset-body strong{font-size:14px;display:block}.preset-body small{display:block;font-size:10px;color:var(--muted);margin-top:3px}.color-dots{display:flex;gap:3px;flex:none}.color-dots i{width:9px;height:9px;border-radius:50%;border:1px solid #203b3320;background:var(--swatch)}.preset-library>.note{margin-top:18px}.empty{font-size:13px;color:var(--muted);padding:30px;text-align:center;border:1px dashed var(--line);border-radius:12px}.guide{margin-top:70px}.small-heading h2{margin-top:10px}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:25px}.guide-grid article{border:1px solid var(--line);border-radius:20px;padding:28px;background:#fffdf65c}.guide-grid article>svg{width:38px;height:38px;fill:none;stroke:var(--green);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin:5px 0 24px}.guide-grid h3{font-size:18px}.guide-grid p{font-size:12px;color:var(--muted);margin-top:14px;line-height:1.95}.guide-notes{margin:25px 0;font-size:12px;color:var(--muted);line-height:1.95}.guide-notes p+p{margin-top:10px}.guide-notes strong{color:var(--ink)}.reference-links a{display:inline-block;color:var(--green);margin:8px 16px 0 0;text-underline-offset:3px}.page-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid var(--line);padding-block:28px;margin-top:55px;font-size:11px;color:var(--muted)}.page-footer a{font-weight:750;color:var(--green);text-decoration:none}.toast{position:fixed;left:50%;bottom:25px;max-width:calc(100% - 30px);background:#18382fec;color:#f9ffef;padding:12px 20px;box-shadow:0 8px 30px #172b2940;border-radius:12px;font-size:12px;font-weight:600;z-index:1000;opacity:0;transform:translate(-50%,15px);transition:opacity .2s,transform .2s;pointer-events:none;text-align:center;backdrop-filter:blur(8px)}.toast.show{opacity:1;transform:translate(-50%,0)}.preview-dialog{width:min(1350px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:18px;border:1px solid #52625b;border-radius:18px;background:var(--paper);color:var(--ink);overflow:auto}.preview-dialog::backdrop{background:#0a1916cc;backdrop-filter:blur(12px)}.preview-dialog>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:15px}.preview-dialog h2{font-size:16px}.preview-dialog>p{font-size:10px;color:var(--muted);margin:12px 0 0}.icon-close{position:relative;flex:none;width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.icon-close::before,.icon-close::after{content:"";position:absolute;left:9px;top:15px;width:14px;height:2px;border-radius:2px;background:currentColor;transform:rotate(45deg)}.icon-close::after{transform:rotate(-45deg)}#largeStage .stage{max-width:none;width:min(100%,calc((100dvh - 160px)*1.6));margin:auto}#largeStage .stage[data-ratio=square]{width:min(100%,calc(100dvh - 160px))}#largeStage .stage[data-ratio=portrait]{width:min(100%,calc((100dvh - 160px)*.8))}
}
@layer responsive{
 @container lab (max-width:1000px){.lab-grid{grid-template-columns:245px minmax(0,1fr)}.control-section{padding:20px 16px}.section-heading{padding:22px}.preset-jump{font-size:10px}.front-fields,.front-options{grid-template-columns:1fr}.front-options{gap:15px}.export-actions button{flex:auto}.export-actions .primary{flex-basis:100%}.play-state{order:4;flex-basis:100%}.playbar{gap:12px}.front-settings>header .chip{display:none}}
 @container lab (max-width:760px){.lab-grid{grid-template-columns:1fr}.controls{grid-row:2;display:grid;grid-template-columns:1fr 1fr;border:0;border-top:1px solid var(--line)}.control-section:nth-child(odd){border-right:1px solid var(--line)}.control-section:last-child{border-bottom:1px solid var(--line)}.workspace{grid-row:1}.settings-jump{display:block;font-size:10px;color:var(--green)}.workspace-bar .chip{display:none}.workspace-bar strong{margin-right:auto}.preset-jump{display:none}.front-fields,.front-options{grid-template-columns:1fr 1fr}.export-actions .primary{flex-basis:auto}.play-state{order:initial;flex-basis:auto}.playbar{gap:12px}.front-options{gap:16px}}
 @container lab (max-width:450px){.controls{grid-template-columns:1fr}.control-section:nth-child(odd){border-right:0}.section-heading{align-items:start;padding:20px;gap:12px;flex-wrap:wrap}.section-icon{width:43px;height:43px;border-radius:13px}.section-icon svg{width:30px}.section-heading>div{flex:1;min-width:150px}.section-heading h2{font-size:23px}.workspace-bar{padding:14px 16px}.canvas-toolbar{padding:12px;gap:9px}.canvas-toolbar .segmented{flex:1}.canvas-toolbar .segmented button{padding-inline:8px}.ratio-label{width:100%;justify-content:end}.stage-wrap{padding:10px}.stage{border-radius:8px}.playbar{padding:12px;gap:10px}.play-state{order:4;flex-basis:100%}.expand-button{font-size:10px;padding-inline:9px}.front-settings,.export-section{padding:23px 16px}.front-fields,.front-options{grid-template-columns:1fr}.front-options{gap:14px}.front-settings h3{font-size:15px}.export-section>header{flex-wrap:wrap}.export-actions{display:grid;grid-template-columns:1fr 1fr}.export-actions .primary{grid-column:1/-1}.export-actions button{font-size:11px;padding-inline:8px}.export-footer{display:grid;gap:7px}.export-footer .text-button{justify-self:start}.color-grid{grid-template-columns:1fr 1fr}.color-item{grid-template-columns:32px 1fr;gap:5px;padding:7px}.color-item code{grid-column:1/-1;text-align:right}.preset-meta{justify-content:start;gap:20px}}
 @container library (max-width:1050px){.preset-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.preset-body{display:block}.color-dots{margin-top:10px}}
 @container library (max-width:680px){.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.library-heading{align-items:start;flex-direction:column}.search-label{width:100%;max-width:330px}.preset-image>span{font-size:10px;padding:2px 5px;right:6px;top:6px}.preset-body{padding:10px 5px 7px}.preset-body strong{font-size:12px}.preset-body small{font-size:10px}.library-toolbar label{gap:7px}.library-toolbar select{width:150px}}
 @media(max-width:900px){.page{width:calc(100% - 40px)}.hero{padding-top:30px}.hero h1{font-size:clamp(32px,5vw,52px)}.lead{font-size:14px}.guide-grid{grid-template-columns:1fr}.guide-grid article{padding:24px;display:grid;grid-template-columns:40px 1fr;gap:0 20px}.guide-grid article>svg{margin:0;grid-row:1/3}.guide-grid p{margin-top:10px}.guide-grid h3{font-size:17px}}
 @media(max-width:600px){.page{width:calc(100% - 30px)}.hero{padding:24px 0 25px}.eyebrow{font-size:10px;letter-spacing:.07em;gap:9px}.hero h1{font-size:35px;margin:22px 0}.hero-bottom{align-items:start;flex-direction:column;gap:18px}.hero-bottom>.quiet{font-size:10px}.lead{font-size:13px}.lab{border-radius:20px}.preset-library,.guide{margin-top:45px}.library-heading h2,.small-heading h2{font-size:25px}.library-heading p:not(.kicker){font-size:12px}.page-footer{align-items:start;flex-direction:column;gap:10px;margin-top:35px}.guide-grid article{display:block}.guide-grid article>svg{margin-bottom:18px}.toast{bottom:15px}.preview-dialog{padding:12px;width:calc(100vw - 20px)}.preview-dialog h2{font-size:14px}.preview-dialog p{font-size:10px}}
 @media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
 @media(forced-colors:active){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:Highlight;color:HighlightText}.stage{forced-color-adjust:none}.color-item input,.preset-image,.color-dots{forced-color-adjust:none}.primary,.accent{border:1px solid ButtonText}}
}
@layer components{
 .preview-dock{container:preview / inline-size}.edit-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 20px;border-bottom:1px solid var(--line);background:#f6f7f0}.history-buttons{display:flex;gap:6px}.history-buttons button{padding:8px 11px;font-size:10px}.edit-toolbar output{font-size:10px;color:var(--muted)}
 .palette-label{display:grid;gap:6px;font-size:11px;margin-bottom:13px}.color-grid{grid-template-columns:1fr}.color-item{grid-template-columns:34px minmax(0,1fr) 28px;gap:4px 9px;padding:9px}.color-item input[type=color]{grid-column:1;grid-row:1/3}.color-item>label{font-size:10px}.color-item input.color-hex{grid-column:2;grid-row:2;font:11px/1.5 monospace;min-height:27px;padding:3px 5px;border-radius:5px}.color-item input[aria-invalid=true]{border-color:#bb3d35}.color-copy{grid-column:3;grid-row:1/3;width:28px;height:31px;padding:6px;border:1px solid var(--line);border-radius:6px;background:transparent;display:grid;place-items:center}.color-copy svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.color-error{grid-column:1/-1;color:#b22f2e;font-size:10px;line-height:1.6;font-weight:400}
 .timeline-panel{display:grid;grid-template-columns:minmax(0,1fr) 95px;align-items:center;gap:0 17px;padding:15px 20px;background:#f6f7f0;border-bottom:1px solid var(--line)}.timeline-panel>.note{grid-column:1/-1;margin-top:5px}.time-number{display:flex;align-items:center;gap:6px;font-size:10px}.time-number input{width:100%;min-width:0;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:11px;color:var(--ink);font-variant-numeric:tabular-nums}
 .export-mode{margin-top:18px;max-width:360px}.parts-export{margin-top:18px;border:1px solid var(--line);border-radius:11px;overflow:hidden;padding:14px}.parts-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.parts-heading .segmented{flex:1;max-width:230px}.parts-export pre{border-radius:8px;max-height:340px;margin-bottom:12px}.parts-export>.note{margin-top:9px}.parts-export>.accent{margin-top:15px}.copy-dialog{width:min(720px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:22px;border:1px solid var(--line);border-radius:17px;color:var(--ink);background:var(--paper)}.copy-dialog::backdrop{background:#0c211dcc;backdrop-filter:blur(8px)}.copy-dialog header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:12px}.copy-dialog h2{font-size:18px}.copy-dialog textarea{display:block;width:100%;min-height:210px;max-height:60dvh;margin-top:15px;border:1px solid var(--line);border-radius:8px;padding:13px;resize:vertical;color:var(--ink);background:var(--paper);font:11px/1.8 monospace}
 .preview-dialog{width:min(1660px,calc(100vw - 28px));container:expanded / inline-size}.large-editor{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:16px;align-items:start}.large-editor>#largeStage{min-width:0;max-height:calc(100dvh - 136px);overflow:auto;border:1px solid var(--line);border-radius:12px}.large-editor>#largeSettings{min-width:0;max-height:calc(100dvh - 136px);overflow:auto;border:1px solid var(--line);border-radius:12px;scrollbar-width:thin;overscroll-behavior:contain}.large-editor .controls{border:0;display:block}.large-editor .controls .control-section{border-right:0}.preview-dialog .expand-button{display:none}.preview-dialog .stage-wrap{padding:12px}.preview-dialog #largeStage .stage{width:min(100%,calc((100dvh - 430px)*1.6));min-width:180px;max-width:100%;margin-inline:auto}.preview-dialog #largeStage .stage[data-ratio=square]{width:min(100%,calc(100dvh - 430px))}.preview-dialog #largeStage .stage[data-ratio=portrait]{width:min(100%,calc((100dvh - 430px)*.8))}.preview-dialog .canvas-toolbar{padding:10px 12px}.preview-dialog .edit-toolbar,.preview-dialog .playbar{padding:10px 12px}.preview-dialog .timeline-panel{padding:10px 12px}
}
@layer responsive{
 @container preview (max-width:500px){.canvas-toolbar{padding:12px;gap:9px}.canvas-toolbar .segmented{flex:1}.canvas-toolbar .segmented button{padding-inline:8px}.ratio-label{width:100%;justify-content:end}.edit-toolbar{padding:10px 12px;flex-wrap:wrap}.edit-toolbar output{margin-left:auto}.timeline-panel{padding:13px 12px;gap:0 12px;grid-template-columns:minmax(0,1fr) 85px}.play-state{order:4;flex-basis:100%}.playbar{gap:10px;padding:12px}}
 @container expanded (max-width:780px){.large-editor{grid-template-columns:1fr}.large-editor>#largeStage{max-height:none;overflow:visible}.large-editor>#largeSettings{max-height:none;overflow:visible}.preview-dialog #largeStage .stage{width:100%;min-width:0}.preview-dialog #largeStage .stage[data-ratio=square]{width:min(100%,440px)}.preview-dialog #largeStage .stage[data-ratio=portrait]{width:min(100%,350px)}.large-editor .controls{display:grid;grid-template-columns:1fr 1fr}.large-editor .control-section:nth-child(odd){border-right:1px solid var(--line)}}
 @container expanded (max-width:450px){.large-editor .controls{grid-template-columns:1fr}.large-editor .control-section:nth-child(odd){border-right:0}.preview-dialog h2{font-size:14px}}
 @container lab (max-width:450px){.color-grid{grid-template-columns:1fr 1fr}.color-item{grid-template-columns:minmax(0,1fr) 28px;gap:5px}.color-item input[type=color]{grid-row:1;grid-column:1}.color-item>label{grid-column:1;grid-row:1;justify-self:end}.color-item input.color-hex{grid-column:1;grid-row:2}.color-copy{grid-column:2;grid-row:1/3;justify-self:end}.parts-export{padding:10px}.parts-heading .segmented{max-width:200px}.parts-heading{gap:8px}}
}
@layer components{
 .large-editor .front-settings{padding:20px 16px;background:#f6f5ee;border-top:1px solid var(--line)}.large-editor .front-fields,.large-editor .front-options{grid-template-columns:1fr;gap:14px}.large-editor .front-settings .chip{display:none}.large-editor .front-settings h3{font-size:15px}.large-editor .front-settings .segmented button{padding-inline:7px}
}
