@layer reset,base,components,responsive;
@layer reset{*{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}[hidden]{display:none!important}svg,img{display:block}html{scroll-behavior:smooth;scroll-padding-top:24px}}
@layer base{:root{--page:#f3f1e8;--paper:#fffdf5;--ink:#203e35;--muted:#61776b;--line:#ccd3c5;--green:#007c69;--lime:#c1ff72;--purple:#8b85ee;--coral:#f17a61;font:14px/1.75 "Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:var(--ink);background:var(--page)}body{min-width:320px;background:radial-gradient(ellipse at 90% 0,#e4e0f39c,transparent 30%),var(--page)}.page{width:min(1540px,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:.11em}.hero h1{font-size:clamp(32px,3.8vw,60px);font-weight:800;line-height:1.22;letter-spacing:0;margin:22px 0}.hero h1 span{color:var(--coral)}.hero-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px}.lead{font-size:16px;line-height:1.9}.lead strong{color:var(--green)}h2{font-size:clamp(21px,2vw,29px);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;color:var(--muted);line-height:1.9}.space{margin-top:17px}.quiet,.primary,.accent{display:inline-flex;justify-content:center;align-items:center;gap:8px;min-height:40px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:11px;font-weight:750;line-height:1.5}.primary{background:var(--ink);border-color:var(--ink);color:#e8ffd5}.accent{background:var(--lime);border-color:#b1e96a}button,a{transition:background .18s,transform .18s,box-shadow .18s}button:hover:not(:disabled):not([aria-disabled=true]){transform:translateY(-2px);box-shadow:0 5px 14px #244b351a}button:active:not(:disabled){transform:translateY(0)}:focus-visible{outline:3px solid var(--purple);outline-offset:4px}.field{display:grid;gap:7px;font-size:11px;font-weight:650}.field input,.field select{width:100%;min-width:0;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:12px}.range{display:grid;grid-template-columns:1fr auto;gap:5px;align-items:center;font-size:11px;font-weight:650}.range input{grid-column:1/-1;width:100%;height:21px;accent-color:var(--green);cursor:pointer}.range output{color:var(--green);font-variant-numeric:tabular-nums}.range+.range{margin-top:15px}.check{display:flex;align-items:center;gap:8px;font-size:11px}.check input{width:16px;height:16px;accent-color:var(--green)}.segmented{display:flex;position:relative;isolation:isolate;anchor-scope:--cg-option;gap:3px;padding:4px;border:1px solid var(--line);border-radius:10px;background:#e8ede2}.segmented::before{content:"";position:absolute;z-index:-1;position-anchor:--cg-option;top:anchor(top);left:anchor(left);width:anchor-size(width);height:anchor-size(height);border-radius:6px;background:var(--ink);transition:top .18s,left .18s,width .18s,height .18s}.segmented button{display:flex;align-items:center;justify-content:center;flex:1;min-width:0;border:0;border-radius:6px;padding:7px 10px;background:none;font-size:10px;line-height:1.5;font-weight:750}.segmented button[aria-pressed=true]{anchor-name:--cg-option;color:var(--lime)}.segmented button:hover:not(:disabled){transform:none;box-shadow:none;background:#25463212}.segmented button[aria-pressed=true]:hover{background:none}@supports not(position-anchor:--cg-option){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}}
@layer components{.studio{container:studio / inline-size;border:1px solid var(--line);border-radius:24px;overflow:clip;background:var(--paper)}.section-heading{display:flex;align-items:center;gap:17px;padding:24px 26px;border-bottom:1px solid var(--line)}.section-heading h2{margin-top:4px}.symbol{display:grid;place-items:center;width:51px;height:51px;flex:none;color:var(--paper);background:var(--purple);border-radius:15px}.symbol svg{width:34px;height:34px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.badge{margin-left:auto;border:1px solid var(--line);border-radius:99px;padding:4px 10px;font-size:10px;font-weight:750;white-space:nowrap}.studio-grid{display:grid;grid-template-columns:270px minmax(0,1fr)}.controls{min-width:0;background:#f6f5ed;border-right:1px solid var(--line)}.control-section{padding:23px 19px;border-bottom:1px solid var(--line)}.control-section h3{margin:6px 0 16px}.control-section>.note{margin-top:13px}.preset-list{display:grid;gap:8px}.preset{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:12px 10px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.preset-icon{display:grid;place-items:center;flex:none;width:34px;height:34px;border-radius:8px;background:#e5ecdf;color:var(--green)}.preset-icon svg{width:25px;height:25px;stroke:currentColor;stroke-width:1.5;fill:none;stroke-linecap:round;stroke-linejoin:round}.preset strong{font-size:12px}.preset small{display:block;font-size:10px;color:var(--muted);line-height:1.7;margin-top:3px}.preset[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.preset[aria-pressed=true] small{color:#d3e0cd}.preset[aria-pressed=true] .preset-icon{background:var(--lime);color:var(--ink)}.workspace{min-width:0;container:workspace / inline-size}.workspace-bar{display:flex;align-items:center;gap:12px;min-height:60px;padding:13px 18px;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;border-radius:50%;background:#b5c6b4}.window-dots i:first-child{background:var(--coral)}.icon-button{display:grid;place-items:center;flex:none;width:34px;height:34px;padding:7px;margin-left:auto;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;stroke-linecap:round;stroke-linejoin:round}.preview-status{padding:16px 20px;border-bottom:1px solid var(--line)}.photos-section{padding:24px}.section-mini-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.section-mini-head h3{margin-top:5px}.upload{display:grid;justify-items:center;gap:5px;position:relative;padding:19px 12px;border:1px dashed #9cb3a0;border-radius:10px;background:var(--paper);font-size:12px;font-weight:750;text-align:center;cursor:pointer;margin-bottom:12px}.upload input{position:absolute;width:1px;height:1px;opacity:0}.upload svg{width:24px;height:24px;fill:none;stroke:var(--green);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.upload small{font-size:10px;font-weight:400;color:var(--muted)}.upload:focus-within{outline:3px solid var(--purple);outline-offset:4px}.upload.drag{background:#dfeecf;border-color:var(--green)}.source-status{margin-top:12px;font-size:11px;color:var(--green)}.source-status[data-error=true]{color:#a34235}.photo-list{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:18px 0}.photo-row{display:flex;align-items:center;gap:8px;min-width:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.photo-row[data-selected=true]{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.photo-pick{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0;border:0;background:none;text-align:left}.photo-pick img{width:55px;height:48px;object-fit:cover;border-radius:5px;flex:none}.photo-pick span{font-size:11px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.photo-actions{display:flex;gap:3px}.photo-actions button{display:grid;place-items:center;width:26px;height:30px;padding:5px;border:1px solid var(--line);border-radius:6px;background:#f4f5ec}.photo-actions button[aria-disabled=true]{opacity:.35;cursor:default}.photo-actions svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.6;fill:none;stroke-linecap:round;stroke-linejoin:round}.photo-editor{padding-top:18px;border-top:1px solid var(--line)}.photo-editor summary{font-size:14px;font-weight:750;cursor:pointer}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px;margin-top:18px}.editor-grid .range+.range{margin-top:0}.export-section{margin-top:48px;padding:30px;border:1px solid var(--line);border-radius:20px;background:var(--paper)}.export-section h2{margin:8px 0 18px}.export-section>p:not(.kicker):not(.note){font-size:13px;color:var(--muted)}.export-actions{display:flex;flex-wrap:wrap;gap:10px;margin:22px 0}.install-field{max-width:500px;margin:20px 0 12px}.export-notes{display:grid;gap:10px;padding-left:20px;margin-top:20px;font-size:12px;line-height:1.9;color:var(--muted)}.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}.toast{position:fixed;z-index:5000;left:50%;bottom:24px;max-width:calc(100% - 30px);padding:12px 20px;background:#234938f5;color:#fff5dd;border-radius:10px;box-shadow:0 8px 25px #16332430;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)}dialog{padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);width:1400px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px)}dialog::backdrop{background:#10271ee0;backdrop-filter:blur(9px)}dialog>header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:14px}dialog h2{font-size:17px}.icon-close{position:relative;width:36px;height:36px;flex:none;border:1px solid var(--line);border-radius:8px;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)}.icon-close::after{transform:rotate(-45deg)}#copyDialog{width:720px}#copyText{width:100%;height:220px;resize:vertical;padding:12px;margin-top:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:11px/1.7 monospace}}
@layer responsive{@container studio (max-width:1100px){.studio-grid{grid-template-columns:240px minmax(0,1fr)}.control-section{padding:21px 16px}.section-heading{padding:22px}}@container studio (max-width:790px){.studio-grid{display:flex;flex-direction:column}.workspace{order:-1}.controls{border-right:0;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr}.control-section{border-right:1px solid var(--line)}}@container workspace (max-width:650px){.photo-list{grid-template-columns:1fr}}@container workspace (max-width:460px){.workspace-bar{padding:12px}.window-dots{display:none}.photos-section{padding:20px 15px}.editor-grid{grid-template-columns:1fr}}@media(max-width:800px){.page{width:calc(100% - 36px)}.hero{padding-top:28px}.hero-bottom{flex-direction:column;align-items:start;gap:14px}.hero h1{font-size:clamp(32px,5.8vw,48px)}.lead{font-size:14px}.page-footer{flex-direction:column;gap:8px}}@media(max-width:440px){.page{width:calc(100% - 24px)}.hero h1{font-size:34px}.eyebrow{letter-spacing:.025em}.section-heading{padding:18px 14px;gap:12px}.section-heading h2{font-size:19px}.symbol{width:40px;height:40px;border-radius:11px}.section-heading .badge{display:none}.controls{grid-template-columns:1fr}.control-section{border-right:0}.export-section{padding:22px 18px}.export-actions>*{flex:1;flex-basis:100%}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}}
