@layer reset,base,components,responsive;
@layer reset{*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:not-allowed;opacity:.45}img,svg,canvas{display:block}[hidden]{display:none!important}html{scroll-behavior:smooth;scroll-padding-top:24px}}
@layer base{
:root{--page:#f3f1e9;--paper:#fffdf6;--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{min-width:320px;background:radial-gradient(ellipse at 100% 0,#e4dff388,transparent 35%),var(--page)}a{color:inherit}h1{letter-spacing:0}h2{font-size:clamp(22px,2.1vw,31px);line-height:1.5}h3{font-size:16px;line-height:1.6}.page{width:min(1540px,calc(100% - 80px));margin:auto}.hero{padding:42px 0 32px}.eyebrow,.kicker{font-size:10px;letter-spacing:.13em;font-weight:750;color:var(--green)}.eyebrow{display:flex;align-items:center;gap:13px}.hero h1{font-size:clamp(32px,4.2vw,68px);line-height:1.17;font-weight:800;margin:24px 0}.hero h1>span{color:var(--coral)}.hero-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px}.lead{font-size:16px;line-height:1.85}.lead strong{color:var(--green)}.note{font-size:11px;line-height:1.85;color:var(--muted)}button,a{transition:background .18s,color .18s,box-shadow .18s,transform .18s}button:not(:disabled):hover{transform:translateY(-2px);box-shadow:0 5px 12px #203b3315}button:not(:disabled):active{transform:translateY(0)}:focus-visible{outline:3px solid var(--purple);outline-offset:4px}.quiet,.primary,.accent{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 15px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:11px;font-weight:750;min-height:40px;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{background:transparent;border:0;padding:5px 0;color:var(--green);font-size:11px;font-weight:750}.text-button:hover:not(:disabled){box-shadow:none;text-decoration:underline}.badge{font-size:10px;white-space:nowrap;border:1px solid var(--line);border-radius:99px;padding:4px 10px;font-weight:750}.range{display:grid;grid-template-columns:1fr auto;align-items:center;font-size:11px;font-weight:650;gap:4px}.range output{color:var(--green);font-variant-numeric:tabular-nums}.range input{grid-column:1/-1;width:100%;accent-color:var(--green);height:22px;cursor:pointer}.field{display:grid;gap:7px;font-size:11px;font-weight:650;margin-top:15px}input[type=text],input[type=search],textarea,select{width:100%;background:var(--paper);color:var(--ink);padding:11px 12px;min-height:42px;border:1px solid var(--line);border-radius:9px;font-size:12px}textarea{resize:vertical}select{cursor:pointer}.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--hic-option;padding:4px;gap:3px;border:1px solid var(--line);border-radius:11px;background:#e8ece3}.segmented::before{content:"";position:absolute;z-index:-1;background:var(--ink);border-radius:7px;position-anchor:--hic-option;top:anchor(top);left:anchor(left);width:anchor-size(width);height:anchor-size(height);transition:top .2s,left .2s,width .2s,height .2s}.segmented button{background:none;border:0;flex:1;min-width:0;padding:8px 12px;font-size:11px;font-weight:750;white-space:nowrap;border-radius:7px;line-height:1.5}.segmented button[aria-pressed=true]{anchor-name:--hic-option;color:var(--lime)}.segmented button:hover:not(:disabled){transform:none;box-shadow:none;background:#203b3310}.segmented button[aria-pressed=true]:hover{background:transparent}@supports not(position-anchor:--hic-option){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}
}
@layer components{
.support-banner{display:flex;gap:14px;align-items:start;background:#f7f9ef;border:1px solid var(--line);border-radius:15px;padding:19px 22px;margin-bottom:24px}.support-banner>div:nth-child(2){flex:1;min-width:0}.support-banner h2{font-size:14px}.support-banner p{font-size:11px;line-height:1.85;color:var(--muted);margin-top:4px}.support-dot{width:9px;height:9px;border-radius:50%;background:#d2a04b;margin-top:7px;flex:none}.support-dot.native{background:#008574;box-shadow:0 0 0 4px #00857412}.support-banner details{font-size:11px;margin-top:8px}.support-banner summary{cursor:pointer;font-weight:700;color:var(--green)}.support-banner .text-button{overflow-wrap:anywhere;text-align:left}.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;flex:none;border-radius:16px;background:var(--coral);color:white}.section-icon svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.section-heading .kicker{margin-bottom:4px}.jump{margin-left:auto;white-space:nowrap;font-size:11px;font-weight:750;text-underline-offset:4px}.lab-grid{display:grid;grid-template-columns:280px 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:0}.control-section h3{margin:6px 0 14px}.control-section .note{margin-top:10px}.range+.range{margin-top:17px}.effect-list{display:grid;gap:7px}.effect-button{display:flex;align-items:center;gap:12px;background:var(--paper);text-align:left;border:1px solid var(--line);padding:10px 12px;border-radius:11px;min-width:0}.effect-icon{width:34px;height:34px;flex:none;display:grid;place-items:center;background:#e6ece1;border-radius:9px}.effect-icon svg{width:23px;height:23px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.effect-button>span:nth-child(2){display:grid;font-size:12px;font-weight:750;line-height:1.6}.effect-button small{font-size:9px;font-weight:500;color:var(--muted)}.effect-button[aria-pressed=true]{background:var(--ink);color:white;border-color:var(--ink)}.effect-button[aria-pressed=true] .effect-icon{background:var(--lime);color:var(--ink)}.effect-button[aria-pressed=true] small{color:#c9d6c8}.limit-note{font-size:10px;color:#886236;line-height:1.8;padding:9px 10px;background:#f6edda;border-radius:7px;margin-top:10px}.color-row{display:flex;gap:10px}.color-row label{display:grid;gap:8px;font-size:10px;flex:1}.color-row input{width:100%;height:35px;border:1px solid var(--line);border-radius:7px;background:var(--paper);padding:4px;cursor:pointer}.swatches{display:flex;gap:8px;margin-top:12px}.swatches button{width:29px;height:29px;border:2px solid white;border-radius:50%;box-shadow:0 0 0 1px var(--line);background:linear-gradient(135deg,var(--a) 50%,var(--b) 50%)}.swatches button[aria-pressed=true]{box-shadow:0 0 0 2px var(--green)}.workspace{min-width:0;container:workspace / inline-size}.workspace-bar{padding:17px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:13px;font-size:11px;min-height:60px}.workspace-bar .badge{margin-left:auto}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;background:#bac6b9;border-radius:50%}.window-dots i:first-child{background:var(--coral)}.canvas-toolbar{display:flex;align-items:center;gap:12px;padding:13px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap}.expand{margin-left:auto}.expand svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8}.stage{position:relative;aspect-ratio:1.35;min-height:530px;width:100%;background:#101f1b;overflow:hidden}.surface{position:absolute;inset:0}.stage-label,.stage-hint{position:absolute;font-size:9px;font-weight:650;letter-spacing:.1em;color:#e5f2dc9c;pointer-events:none;z-index:2}.stage-label{top:19px;left:22px}.stage-hint{bottom:17px;left:22px;right:22px;letter-spacing:.02em;text-align:center;font-size:10px}.playbar{display:flex;align-items:center;gap:15px;padding:15px 20px;border-bottom:1px solid var(--line);flex-wrap:wrap;font-size:10px;color:var(--muted)}.history{margin-left:auto;display:flex;gap:6px}.history button{font-size:18px;padding:4px 12px;min-height:35px}.interaction-log{display:flex;align-items:center;gap:13px;padding:15px 22px;background:#f2f6eb;border-bottom:1px solid var(--line);font-size:11px;min-height:58px;flex-wrap:wrap}.interaction-log>span:first-child{color:var(--green);font-size:9px;letter-spacing:.1em;font-weight:750}.interaction-log output{font-weight:650;overflow-wrap:anywhere}.native-note{font-size:10px;color:var(--muted);margin-left:auto}.export{padding:26px}.export h3{font-size:20px;margin:7px 0 10px}.export-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:18px}.export>.note{margin-top:10px}.export details{margin-top:20px;font-size:12px}.export summary{cursor:pointer;font-weight:700}pre{max-height:300px;background:#182b26;color:#dbedce;overflow:auto;padding:20px;border-radius:12px;margin:12px 0 0;font:11px/1.8 monospace;white-space:pre}.preset-library{margin-top:58px}.library-heading{display:flex;align-items:end;justify-content:space-between;gap:25px;margin-bottom:22px}.library-heading h2{margin-top:8px}.search{width:245px}.preset-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.preset-card{border:1px solid var(--line);border-radius:17px;background:var(--paper);text-align:left;padding:0;overflow:hidden;min-width:0}.recipe-art{height:185px;background:var(--bg);display:grid;place-items:center;position:relative;overflow:hidden}.recipe-mini{width:125px;height:140px;border-radius:13px;background:#fcfff6;box-shadow:12px 15px 25px #0003;padding:13px;transform:perspective(500px) rotateY(-15deg) rotateX(8deg)}.recipe-mini i{display:block;background:var(--ac);border-radius:6px;height:59px;margin-bottom:12px}.recipe-mini b,.recipe-mini em{display:block;height:5px;background:#a4b49b;border-radius:3px;margin-top:7px;width:80%}.recipe-mini em{width:55%;background:#d4dfcc}.recipe-mini span{display:block;background:var(--ac);height:15px;border-radius:4px;margin-top:12px}.recipe-art svg{position:absolute;right:18px;bottom:16px;width:29px;height:29px;fill:none;stroke:var(--ac);stroke-width:1.5}.preset-card>strong{display:block;padding:14px 16px 1px;font-size:13px}.preset-card>small{display:block;padding:0 16px 15px;font-size:10px;color:var(--muted)}.preset-card[aria-pressed=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.guide{margin-top:60px}.guide h2{margin:9px 0 26px}.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.guide-grid article{padding:27px;border:1px solid var(--line);border-radius:20px;background:#fffdf680}.guide-grid svg{width:39px;height:39px;margin-bottom:22px;stroke:var(--green);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;fill:none}.guide-grid h3{font-size:18px;margin-bottom:12px}.guide-grid p,.guide-notes{font-size:12px;line-height:1.95;color:var(--muted)}.guide-notes{margin-top:25px}.guide-notes p+p{margin-top:10px}.reference-links a{display:inline-block;color:var(--green);margin:8px 18px 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:#18382ff2;color:#f9ffef;padding:12px 20px;box-shadow:0 8px 30px #172b2940;border-radius:12px;font-size:12px;z-index:1000;opacity:0;transform:translate(-50%,15px);transition:opacity .2s,transform .2s;pointer-events:none;text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}dialog{padding:18px;background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:18px;max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px)}dialog::backdrop{background:#0b1c16cc;backdrop-filter:blur(10px)}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}dialog h2{font-size:17px}.icon-close{position:relative;flex:none;width:36px;height:36px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.icon-close::before,.icon-close::after{content:"";position:absolute;left:9px;top:16px;width:16px;height:2px;background:currentColor;transform:rotate(45deg);border-radius:2px}.icon-close::after{transform:rotate(-45deg)}.preview-dialog{width:1250px}.preview-dialog .stage{height:min(75dvh,850px);aspect-ratio:auto;min-height:300px}.copy-dialog{width:800px}.copy-dialog textarea{margin-top:15px;height:55dvh;font:11px/1.7 monospace}
}
@layer responsive{
.recipe-art>img{display:block;width:100%;height:100%;object-fit:cover}
.effect-button small,.interaction-log>span:first-child{font-size:10px}
@container lab (max-width:1000px){.lab-grid{grid-template-columns:245px minmax(0,1fr)}.control-section{padding:20px 16px}.canvas-toolbar{padding:12px}.canvas-toolbar .expand{padding:9px}.stage{min-height:490px}.jump{font-size:10px}}
@container lab (max-width:740px){.lab-grid{display:flex;flex-direction:column}.workspace{order:-1}.controls{border-right:0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.control-section{border-right:1px solid var(--line)}.effect-list{grid-template-columns:1fr 1fr;gap:5px}.effect-button{padding:8px;gap:7px}.effect-button small{display:none}.effect-button>span:nth-child(2){font-size:10px}.effect-icon{width:27px;height:27px}.effect-icon svg{width:20px;height:20px}.section-heading{padding:20px;gap:12px}.section-heading h2{font-size:22px}.jump{display:none}.stage{aspect-ratio:1.3;min-height:510px}.export{padding:22px}.canvas-toolbar{gap:8px}.canvas-toolbar .segmented{flex:1}.expand{margin-left:0}.interaction-log{padding:13px 18px}}
@container workspace (max-width:430px){.canvas-toolbar{gap:8px}.segmented button{padding:8px 10px;font-size:10px}.expand{padding:10px;min-height:36px}.expand>span{display:none}.expand svg{width:18px;height:18px}.workspace-bar{padding:14px 16px;gap:8px}.workspace-bar .window-dots{display:none}.workspace-bar .badge{font-size:10px}.stage{min-height:500px}.export-actions>.primary,.export-actions>.accent{flex:1}.export-actions>.text-button{flex-basis:100%;text-align:left}.stage-label{left:16px;font-size:8px}.playbar{gap:10px;padding:12px 16px}}
@media(max-width:800px){.page{width:calc(100% - 36px)}.hero{padding-top:28px}.hero h1{font-size:clamp(32px,6vw,52px)}.hero-bottom{align-items:start;flex-direction:column;gap:14px}.lead{font-size:14px}.support-banner{padding:16px;gap:10px}.support-banner>.badge{display:none}.preset-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.guide-grid{grid-template-columns:1fr}.guide-grid article{padding:23px}.guide-grid svg{margin-bottom:15px}.library-heading{align-items:start;flex-direction:column;gap:15px}.search{width:100%}.page-footer{align-items:start;flex-direction:column;gap:9px}}
@media(max-width:440px){.page{width:calc(100% - 24px)}.hero h1{font-size:34px}.controls{grid-template-columns:1fr}.control-section{border-right:0}.effect-list{grid-template-columns:1fr 1fr}.recipe-art{height:155px}.recipe-mini{transform:scale(.85) perspective(500px) rotateY(-15deg) rotateX(8deg)}.preset-card>strong{font-size:11px;padding:12px 12px 1px}.preset-card>small{padding:0 12px 12px;font-size:10px}.section-heading{padding:18px 14px}.section-icon{width:41px;height:41px;border-radius:12px}.section-icon svg{width:28px;height:28px}.section-heading h2{font-size:19px}.section-heading .kicker{font-size:9px}}
@media(max-width:740px){.workspace-bar .badge,.section-heading .kicker{font-size:10px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}
}
