@layer reset,base,components,responsive;
@layer reset{*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}svg{display:block}[hidden]{display:none!important}:where(button,input,a,pre):focus-visible{outline:3px solid #7966db;outline-offset:4px}}
@layer base{
 :root{font:16px/1.7 "Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#203d33;background:#f4f3ec;--ink:#203d33;--muted:#63766c;--line:#cdd5c9;--paper:#fffef8;--green:#007967;--lime:#c5ff80}body{min-width:320px;background:radial-gradient(ellipse at 100% 0,#e4e0f360,transparent 28%)}.page{width:min(1560px,calc(100% - 80px));margin:auto}.hero{padding:38px 0 34px}.eyebrow,.kicker{font-size:12px;font-weight:750;letter-spacing:.11em;color:var(--green)}.eyebrow{display:flex;align-items:center;gap:13px}h1{font-size:clamp(36px,4.05vw,64px);font-weight:800;line-height:1.2;letter-spacing:0;margin:24px 0}h1>span{color:#ef7761}h2{font-size:clamp(23px,2vw,29px);line-height:1.4}h3{font-size:18px;line-height:1.5}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px}.lead{font-size:16px}.lead strong{color:var(--green)}.quiet,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 15px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:14px;font-weight:750;white-space:nowrap;transition:background .18s,box-shadow .18s}.quiet:hover{background:#e8ede4;box-shadow:0 3px 10px #203d3310}.primary{background:var(--ink);color:#f6ffeb;border-color:var(--ink)}.primary:hover{background:#305b4b}.badge{font-size:11px;font-weight:750;color:var(--green);border:1px solid var(--line);border-radius:24px;padding:6px 11px;white-space:nowrap}.note{font-size:13px;line-height:1.8;color:var(--muted);margin-top:12px}.range{display:grid;grid-template-columns:1fr auto;gap:9px;font-size:14px;font-weight:650;margin-top:18px}.range output{color:var(--green);font-size:13px}.range input{grid-column:1/-1;width:100%;accent-color:var(--green);margin:0}.field{display:grid;gap:7px;font-size:14px;font-weight:650;margin-top:18px}.field input{min-width:0;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:14px}.color-field{display:flex;align-items:center;justify-content:space-between;font-size:14px;gap:14px;margin-top:18px}.color-field input{width:44px;height:34px;border:1px solid var(--line);border-radius:7px;padding:3px;background:var(--paper)}.check{display:flex;align-items:center;gap:8px;font-size:13px}.check input{width:17px;height:17px;accent-color:var(--green)}.text-button{padding:7px 0;border:0;background:none;color:var(--green);text-decoration:underline;text-underline-offset:4px;font-size:13px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.actions{display:flex;gap:10px;flex-wrap:wrap}
}
@layer components{
 .studio{border:1px solid var(--line);border-radius:24px;background:var(--paper);overflow:clip;box-shadow:0 14px 38px #203d3306}.studio-heading{display:flex;align-items:center;gap:16px;padding:25px 28px;border-bottom:1px solid var(--line)}.studio-heading>.badge{margin-left:auto}.section-icon{width:52px;height:52px;display:grid;place-items:center;flex-shrink:0;border-radius:15px;background:#ef7761;color:#fff}.section-icon svg{width:29px;height:29px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linejoin:round}.studio-grid{display:grid;grid-template-columns:280px minmax(0,1fr)}.controls{border-right:1px solid var(--line);background:#f6f5ef}.control-section{padding:22px;border-bottom:1px solid var(--line)}.control-section:last-child{border:0}.control-section h3{margin-top:6px}.effect-list{display:grid;gap:7px;margin-top:15px}.effect-button{display:flex;align-items:center;gap:12px;width:100%;text-align:left;min-height:63px;padding:9px 11px;background:var(--paper);border:1px solid var(--line);border-radius:12px;transition:background .18s}.effect-button:hover{background:#e5eddf}.effect-button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--lime)}.effect-icon{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;border-radius:8px;background:#e8eee1;color:var(--green)}.effect-icon svg{width:24px;height:24px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.effect-button[aria-pressed=true] .effect-icon{background:var(--lime);color:var(--ink)}.effect-button strong{display:block;font-size:14px;line-height:1.6}.effect-button small{display:block;font-size:11px;opacity:.75;line-height:1.6}.palettes{display:flex;gap:8px;margin-top:16px;flex-wrap:wrap}.palette{width:34px;height:34px;min-height:34px;border:3px solid var(--paper);border-radius:50%;background:var(--color);box-shadow:0 0 0 1px var(--line)}.palette[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}.palette:hover{box-shadow:0 0 0 3px #97ad9d}
 .preview-column{min-width:0;padding:20px;container-type:inline-size}.preview-sticky{position:sticky;top:20px}.preview-bar{display:flex;align-items:center;gap:12px;padding:0 0 14px}.preview-bar>span{font-size:11px;letter-spacing:.1em;font-weight:750;color:var(--muted);margin-right:auto}.preview-bar>.quiet{font-size:12px;padding:8px 11px;min-height:38px}.segmented{display:flex;position:relative;isolation:isolate;border:1px solid var(--line);border-radius:10px;background:#e8ede5;padding:4px;anchor-scope:--selected}.segmented::before{content:"";position:absolute;z-index:-1;position-anchor:--selected;left:anchor(left);top:anchor(top);width:anchor-size(width);height:anchor-size(height);background:var(--ink);border-radius:7px;pointer-events:none;transition:left .18s,top .18s,width .18s,height .18s}.segmented button{border:0;border-radius:7px;min-height:32px;padding:6px 13px;flex:1;background:transparent;font-size:12px;font-weight:750}.segmented button[aria-pressed=true],.segmented button[aria-selected=true]{anchor-name:--selected;color:var(--lime)}.segmented button:hover{box-shadow:inset 0 0 0 1px #899f8e}
 #stage{border-radius:17px;overflow:hidden;border:1px solid #283c32}.preview-info{display:grid;grid-template-columns:210px 1fr;gap:20px;align-items:start;padding:22px 0}.preview-info h3{margin-top:5px}.preview-info>p{font-size:14px;color:var(--muted)}.preview-tests{display:flex;gap:18px;flex-wrap:wrap;padding:15px;border:1px solid var(--line);border-radius:10px;background:#f5f7f0}.environment-note{font-size:13px;color:var(--green);margin-top:13px}.preview-note{font-size:12px;color:var(--muted);margin-top:12px}.preview-expanded{overflow:hidden}.preview-expanded .preview-column{position:fixed;inset:0;z-index:80;padding:18px;background:var(--paper);overflow:auto}.preview-expanded .preview-sticky{max-width:1440px;margin:auto;position:static}.preview-expanded #stage>.pi-root{min-height:min(70dvh,860px)}.preview-expanded [data-tool-directory-button]{display:none!important}
 .code-section{padding:44px 0 24px}.export-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:30px}.guide{padding:25px;border:1px solid var(--line);border-radius:16px;background:#fffef880}.guide p{font-size:14px;color:var(--muted);margin:10px 0 23px}.guide p:last-child{margin-bottom:0}.guide h3{font-size:17px}.guide code{background:#e4eadd;padding:1px 5px;border-radius:4px;color:var(--ink);overflow-wrap:anywhere}.code-panel{min-width:0;border:1px solid var(--line);border-radius:16px;background:#172a23;overflow:hidden}.code-toolbar{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:12px;background:#edf1e8}.code-toolbar .quiet{font-size:12px;min-height:38px;padding:8px 10px}pre{margin:0;overflow:auto;max-height:580px;min-height:330px;padding:22px;font:13px/1.8 ui-monospace,SFMono-Regular,monospace;color:#e0efdb;tab-size:2}.code-note{font-size:12px;color:#c3d2bd;padding:14px 20px;border-top:1px solid #ffffff18}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);max-width:min(560px,calc(100% - 32px));padding:12px 20px;border-radius:12px;background:var(--ink);color:#fff;font-size:14px;box-shadow:0 6px 24px #0002;opacity:0;visibility:hidden;transition:.2s;z-index:100}.toast.show{opacity:1;visibility:visible;transform:translate(-50%,0)}footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:26px 0 38px;color:var(--muted);font-size:12px}footer nav{display:flex;gap:22px;flex-wrap:wrap}footer a{color:var(--green);text-underline-offset:3px}
}
@layer responsive{
 .code-panel{container-type:inline-size}.segmented button{white-space:nowrap}
 @container(max-width:520px){.code-toolbar{flex-wrap:wrap}.code-toolbar .segmented{width:100%}.code-toolbar .quiet{margin-left:auto}}
 @container(max-width:440px){.preview-bar>span{flex-basis:100%}.preview-bar>.segmented{margin-right:auto}}
 @container(max-width:680px){.preview-bar{flex-wrap:wrap}.preview-info{grid-template-columns:1fr;gap:10px}.preview-tests{flex-direction:column;gap:12px}}
 @media(max-width:1000px){.studio-grid{grid-template-columns:235px minmax(0,1fr)}.control-section{padding:18px 16px}.effect-button{padding:9px;gap:9px}.effect-button strong{font-size:13px}.effect-icon{width:30px;height:30px}.preview-column{padding:16px}.export-grid{grid-template-columns:1fr 1.2fr;gap:18px}}
 @media(max-width:760px){.page{width:calc(100% - 32px)}.hero{padding:28px 0}.hero-bottom{align-items:flex-start;flex-direction:column;gap:16px}h1{font-size:clamp(34px,7vw,52px);overflow-wrap:break-word}.studio-heading{padding:20px;gap:12px}.studio-heading .badge{display:none}.studio-grid{display:flex;flex-direction:column}.controls{border-right:0;border-top:1px solid var(--line)}.preview-column{order:-1;padding:14px}.preview-sticky{position:static}.effect-list{grid-template-columns:1fr 1fr}.effect-button small{font-size:10px}.control-section{padding:20px}.export-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.preview-expanded .preview-column{padding:14px}.preview-expanded #stage>.pi-root{min-height:64dvh}}
 @media(max-width:420px){.section-icon{width:42px;height:42px;border-radius:11px}.studio-heading h2{font-size:21px}.studio-heading{padding:18px 14px}.studio-heading .kicker{font-size:10px}.effect-button{gap:7px;padding:8px}.effect-button strong{font-size:12px}.effect-icon{width:27px;height:27px}.effect-icon svg{width:21px;height:21px}.control-section{padding:18px 14px}.preview-bar{gap:8px}.preview-bar>span{font-size:10px}.preview-bar .quiet{font-size:11px}.segmented button{padding:5px 10px}.code-toolbar{gap:6px;padding:10px}.code-toolbar .quiet{font-size:11px;padding:7px}.code-toolbar .segmented button{font-size:11px;padding:5px 8px}.actions{width:100%}.actions button{flex:1;font-size:12px}.preview-info h3{font-size:17px}.guide{padding:20px}}
 @supports not(left:anchor(left)){.segmented::before{display:none}.segmented button[aria-pressed=true],.segmented button[aria-selected=true]{background:var(--ink)}}
 @media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
}
