@layer reset,base,components,responsive;
@layer responsive{.position-bar>div{flex-wrap:wrap}}
@layer responsive{@container workspace (max-width:450px){.preview-tag{display:none}.preview-bar .icon-button{margin-left:auto}}}
@layer reset{*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:default;opacity:.5}a{color:inherit}svg{display:block}button:focus-visible,input:focus-visible,select:focus-visible,a:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #8a81f3;outline-offset:4px}[hidden]{display:none!important}}
@layer base{:root{--ink:#203c33;--muted:#5f766b;--page:#f3f1e8;--paper:#fffdf5;--line:#ccd3c5;--green:#007b67;--lime:#c3ff7b;--purple:#8a81f3;--coral:#f07860;background:var(--page);color:var(--ink);font:14px/1.75 "Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}body{min-width:320px;background:radial-gradient(ellipse at 90% 0,#dcdceb8c,transparent 28%),var(--page)}.page{width:min(1660px,calc(100% - 80px));margin:auto}.hero{padding:38px 0 32px}.eyebrow{display:flex;align-items:center;gap:12px;color:var(--green);font-size:10px;font-weight:750;letter-spacing:.1em}.hero h1{font-size:clamp(32px,3.6vw,60px);line-height:1.22;letter-spacing:0;font-weight:800;margin:23px 0}.hero h1 span{color:var(--coral)}.hero-bottom{display:flex;justify-content:space-between;align-items:center;gap:24px}.lead{font-size:16px;line-height:1.9}.lead strong{color:var(--green)}h2{font-size:clamp(21px,2vw,28px);line-height:1.5}h3{font-size:16px;line-height:1.6}.kicker{font-size:10px;font-weight:750;letter-spacing:.12em;color:var(--green)}.note{font-size:11px;line-height:1.9;color:var(--muted)}.quiet,.primary,.accent{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid var(--line);padding:10px 15px;border-radius:8px;font-size:11px;font-weight:750;background:var(--paper);white-space:nowrap}.primary{background:var(--ink);color:#eeffda;border-color:var(--ink)}.accent{background:var(--lime);border-color:#b4e87a}button,a{transition:background .18s,transform .18s,box-shadow .18s}button:hover:not(:disabled){translate:0 -2px;box-shadow:0 5px 14px #23452c17}button:active:not(:disabled){translate:0 0}.field{display:grid;gap:8px;font-size:12px;font-weight:650}.field select{width:100%;min-width:0;min-height:42px;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px}.range{display:grid;grid-template-columns:1fr auto;gap:6px;font-size:11px;font-weight:650;margin-top:18px}.range:first-of-type{margin-top:16px}.range output{color:var(--green);font-variant-numeric:tabular-nums}.range input{grid-column:1/-1;width:100%;height:22px;accent-color:var(--green);cursor:pointer}.check{display:flex;align-items:center;gap:8px;font-size:11px;line-height:1.6;margin-top:18px}.check input{flex:none;width:16px;height:16px;accent-color:var(--green)}.control-section .note{margin-top:12px}.no-js{padding:20px;background:#fff5c9}}
@layer components{.studio{container:studio / inline-size;border:1px solid var(--line);border-radius:23px;background:var(--paper);overflow:clip}.studio-heading{display:flex;align-items:center;gap:16px;padding:24px 26px;border-bottom:1px solid var(--line)}.studio-heading h2{margin-top:4px}.section-icon{display:grid;place-items:center;width:51px;height:51px;flex:none;background:var(--purple);color:var(--paper);border-radius:13px}.section-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round;stroke-linecap:round}.badge{margin-left:auto;padding:6px 9px;border:1px solid var(--line);border-radius:30px;font-size:10px;font-weight:700;white-space:nowrap}.studio-grid{display:grid;grid-template-columns:270px minmax(0,1fr)}.controls{border-right:1px solid var(--line);background:#f6f5ed}.control-section{padding:23px 19px;border-bottom:1px solid var(--line)}.control-section h3{margin:6px 0 16px}.presets{display:grid;gap:8px}.preset{display:flex;align-items:center;gap:12px;width:100%;border:1px solid var(--line);border-radius:10px;padding:13px 10px;background:var(--paper);text-align:left}.preset-icon{display:grid;place-items:center;flex:none;width:35px;height:35px;background:#e6ecdf;color:var(--green);border-radius:8px}.preset-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}.preset strong{font-size:12px}.preset small{display:block;font-size:10px;line-height:1.7;color:var(--muted);margin-top:3px}.preset[aria-pressed=true]{color:#f6f9ee;background:var(--ink);border-color:var(--ink)}.preset[aria-pressed=true] small{color:#cfdfc9}.preset[aria-pressed=true] .preset-icon{color:var(--ink);background:var(--lime)}.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--ss-option;padding:4px;gap:3px;background:#e6ecdf;border:1px solid var(--line);border-radius:10px}.segmented::before{content:'';position:absolute;z-index:-1;position-anchor:--ss-option;top:anchor(top);left:anchor(left);width:anchor-size(width);height:anchor-size(height);background:var(--ink);border-radius:6px;transition:top .18s,left .18s,width .18s,height .18s}.segmented button{flex:1;border:0;padding:9px 5px;min-width:0;background:none;border-radius:6px;font-size:11px;font-weight:700}.segmented button[aria-pressed=true]{anchor-name:--ss-option;color:var(--lime)}.segmented button:hover{translate:0 0;box-shadow:none}.segmented button:not([aria-pressed=true]):hover{background:#203c3310}@supports not(position-anchor:--ss-option){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}.workspace{min-width:0;container:workspace / inline-size}.preview-bar{display:flex;align-items:center;gap:13px;padding:13px 18px;min-height:60px;border-bottom:1px solid var(--line);font-size:11px;font-weight:650}.window-dots{display:flex;gap:5px}.window-dots i{width:7px;height:7px;background:#b5c6b4;border-radius:50%}.window-dots i:first-child{background:var(--coral)}.preview-tag{font-size:10px;color:var(--green);margin-left:auto;border:1px solid var(--line);border-radius:20px;padding:4px 8px}.icon-button{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:7px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}.icon-button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}.position-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 21px;border-bottom:1px solid var(--line)}.position-bar>p{font-size:11px;color:var(--muted);max-width:500px;line-height:1.8}.position-bar>div{display:flex;gap:5px;flex:none}.position-bar button{min-width:45px;min-height:34px;padding:6px 10px;border:1px solid var(--line);border-radius:6px;background:var(--paper);font-size:11px;font-weight:650}.scene-info{padding:26px}.scene-info h3{margin:6px 0 12px}.scene-info>p:not(.kicker){font-size:13px;line-height:1.9;color:var(--muted);max-width:700px}.layer-legend{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center;margin-top:24px;border-top:1px solid var(--line);padding-top:18px;font-size:11px;color:var(--muted)}.layer-legend span{display:flex;align-items:center;gap:7px}.layer-legend i{width:22px;height:7px;background:#98b2a0;border-radius:3px}.layer-legend span:nth-child(2) i{background:#557f69}.layer-legend span:nth-child(3) i{background:#203c33}.layer-legend small{font-size:10px}.export-section{margin-top:44px;border:1px solid var(--line);border-radius:20px;padding:30px;background:var(--paper)}.export-section h2{margin:7px 0 16px}.export-section>p:not(.kicker){font-size:13px;color:var(--muted)}.export-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin:28px 0}.export-grid .note{margin-top:13px}.export-grid .field{max-width:500px}.export-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:20px}.implementation{border-left:1px solid var(--line);padding-left:30px}.implementation h3{font-size:14px;margin-bottom:12px}.implementation p{font-size:12px;color:var(--muted);line-height:1.9}.implementation p+p{margin-top:10px}code{font-family:ui-monospace,SFMono-Regular,monospace;font-size:.95em}.code-details{border-top:1px solid var(--line);padding:18px 0}.code-details summary{font-size:13px;font-weight:700;cursor:pointer}.code-details pre{overflow:auto;max-height:400px;padding:20px;margin:18px 0 0;color:#d7edbf;background:#203c33;border-radius:10px;font-size:12px;line-height:1.8}.page-footer{display:flex;justify-content:space-between;gap:20px;padding:24px 0;margin-top:48px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.page-footer a{color:var(--green);text-underline-offset:3px}dialog{width:1440px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border:1px solid var(--line);border-radius:16px;padding:18px;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#102b23e8;backdrop-filter:blur(9px)}dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:15px}dialog h2{font-size:17px}.close{position:relative;flex:none;width:36px;height:36px;background:var(--paper);border:1px solid var(--line);border-radius:8px}.close::before,.close::after{content:'';position:absolute;left:9px;top:16px;width:16px;height:2px;background:currentColor;transform:rotate(45deg)}.close::after{transform:rotate(-45deg)}#copyDialog{width:720px}#copyDialog p{font-size:12px;color:var(--muted)}#copyText{width:100%;height:260px;resize:vertical;padding:12px;margin-top:15px;border:1px solid var(--line);border-radius:8px;font:11px/1.7 monospace;background:var(--paper)}.toast{position:fixed;z-index:5000;left:50%;bottom:24px;max-width:calc(100% - 30px);padding:12px 20px;color:#fff5db;background:#214735f5;border-radius:9px;box-shadow:0 8px 25px #122e2330;text-align:center;font-size:12px;opacity:0;transform:translate(-50%,12px);pointer-events:none;transition:opacity .2s,transform .2s}.toast.show{opacity:1;transform:translate(-50%,0)}}
@layer responsive{@container studio (max-width:1000px){.studio-grid{grid-template-columns:235px minmax(0,1fr)}.control-section{padding:20px 15px}.preset{gap:9px}.position-bar{flex-wrap:wrap}}@container studio (max-width:760px){.studio-grid{display:flex;flex-direction:column}.workspace{order:-1}.controls{display:grid;grid-template-columns:1fr 1fr;border-right:0}.control-section:first-child{grid-column:1/-1}.presets{grid-template-columns:repeat(3,minmax(0,1fr))}.preset{display:grid;justify-items:start;align-content:start}.control-section{border-top:1px solid var(--line)}.control-section:nth-child(2){border-right:1px solid var(--line)}}@media(max-width:850px){.page{width:calc(100% - 40px)}.hero-bottom{align-items:start;flex-direction:column;gap:17px}.export-grid{grid-template-columns:1fr;gap:26px}.implementation{border-left:0;border-top:1px solid var(--line);padding:22px 0 0}.studio-heading>.badge{display:none}.page-footer{flex-direction:column;gap:10px}}@media(max-width:500px){.page{width:calc(100% - 24px)}.hero{padding:28px 0 30px}.hero h1{font-size:32px}.lead{font-size:14px}.studio-heading{padding:21px 16px;gap:12px}.section-icon{width:43px;height:43px;border-radius:11px}.studio-heading h2{font-size:20px}.preview-bar{padding:12px 15px}.position-bar{padding:16px}.position-bar>div{width:100%;justify-content:flex-end}.scene-info{padding:22px 18px}.controls{grid-template-columns:1fr}.control-section:nth-child(2){border-right:0}.presets{gap:6px}.preset{padding:11px 8px}.preset strong{font-size:11px}.preset small{font-size:10px}.export-section{padding:23px 18px}.export-actions{display:grid;grid-template-columns:1fr 1fr}.export-actions .primary{grid-column:1/-1}.badge{font-size:10px}.preview-tag{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}}
