@layer reset,base,components,responsive;
@layer reset{*,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}button,summary{cursor:pointer}button:disabled,input:disabled{opacity:.45;cursor:not-allowed}svg{display:block}[hidden]{display:none!important}:where(button,input,select,textarea,a,summary,pre):focus-visible{outline:3px solid #8978db;outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}
@layer base{
 :root{font:16px/1.7 "Avenir Next","Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif;color:#203d33;background:#f4f3ec;--ink:#203d33;--muted:#657b6e;--line:#cdd5c9;--paper:#fffef8;--green:#007967;--lime:#c5ff80}body{min-width:320px;background:radial-gradient(ellipse at 100% 0,#dbe6de80,transparent 32%)}.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:42px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:13px;font-weight:750;white-space:nowrap;transition:background .18s,box-shadow .18s}.quiet:hover{background:#e6ede2;box-shadow:0 3px 10px #203d3310}.primary{background:var(--ink);color:var(--lime);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:15px}.field :is(input,select,textarea){min-width:0;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font-size:14px;line-height:1.5}select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#657b6e 50%),linear-gradient(135deg,#657b6e 50%,transparent 50%)!important;background-position:calc(100% - 17px) 50%,calc(100% - 12px) 50%!important;background-size:5px 5px!important;background-repeat:no-repeat!important;padding-right:32px!important}.check{display:flex;align-items:center;gap:8px;font-size:13px;margin-top:14px}.check input{width:17px;height:17px;accent-color:var(--green)}.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{
 .workspace{border:1px solid var(--line);border-radius:24px;background:var(--paper);overflow:clip;box-shadow:0 14px 38px #203d3306}.workspace-heading{display:flex;align-items:center;gap:16px;padding:25px 28px;border-bottom:1px solid var(--line)}.workspace-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-linecap:round;stroke-linejoin:round}.workspace-grid{display:grid;grid-template-columns:290px 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}.type-list{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}.type-button{display:flex;align-items:center;gap:9px;width:100%;text-align:left;min-height:66px;padding:9px 8px;background:var(--paper);border:1px solid var(--line);border-radius:11px;transition:background .18s}.type-button:hover{background:#e5eddf}.type-button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:var(--lime)}.type-icon{width:28px;height:30px;display:grid;place-items:center;flex-shrink:0;border-radius:7px;background:#e8eee1;color:var(--green)}.type-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.type-button[aria-pressed=true] .type-icon{background:var(--lime);color:var(--ink)}.type-button strong{display:block;font-size:13px;line-height:1.6;white-space:nowrap}.type-button small{display:block;font-size:10px;opacity:.75;line-height:1.5}.palettes{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin-top:15px}.palette{display:flex;height:32px;border:2px solid var(--paper);padding:3px;border-radius:7px;box-shadow:0 0 0 1px var(--line);overflow:hidden}.palette i{flex:1;height:100%}.palette[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}.palette:hover{box-shadow:0 0 0 2px #8ca793}.color-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0;font-size:12px}.color-fields label{display:grid;gap:7px}.color-fields input{width:100%;height:34px;padding:3px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}.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 10px;flex:1;background:transparent;font-size:12px;font-weight:750;white-space:nowrap}.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}
 .preview-column{min-width:0;padding:22px;container-type:inline-size}.preview-sticky{position:sticky;top:18px}.preview-bar{display:flex;align-items:center;gap:10px;padding-bottom:16px}.preview-bar>span{font-size:11px;letter-spacing:.1em;font-weight:750;color:var(--muted);margin-right:auto}.preview-bar .quiet{font-size:12px;min-height:36px;padding:7px 11px}.preview-footer{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:var(--muted)}.preview-footer .check{margin:0}.data-editor{border:1px solid var(--line);border-radius:16px;margin-top:25px;background:#f7f8f1;padding:22px;container-type:inline-size}.data-editor>header{display:flex;justify-content:space-between;gap:14px;align-items:center}.data-scroll{overflow:auto;margin-top:16px}.edit-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed;min-width:380px}.edit-table th{font-size:12px;text-align:left;padding:8px;color:var(--muted)}.edit-table :is(td,th):first-child{width:34%}.edit-table :is(td,th):last-child{width:52px}.edit-table td{padding:5px}.edit-table input{width:100%;min-width:0;padding:8px;border:1px solid var(--line);border-radius:7px;background:var(--paper);font-size:13px;line-height:1.5}.edit-table input[type=number]{font-variant-numeric:tabular-nums}.remove-row{border:0;background:transparent;color:#a64935;font-size:12px;padding:7px 0}.remove-row:hover{text-decoration:underline}.data-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.data-actions button{font-size:12px;min-height:38px}.error{color:#ab382b;font-size:13px;min-height:1em;margin-top:8px}.json-editor{margin-top:17px;font-size:13px}.json-editor summary{padding:8px 0}.json-editor textarea{font:12px/1.6 ui-monospace,SFMono-Regular,monospace;resize:vertical}.json-editor button{margin-top:10px;font-size:12px}.expanded{overflow:hidden}.expanded .preview-column{position:fixed;inset:0;z-index:80;overflow:auto;padding:20px;background:var(--paper)}.expanded .preview-sticky{max-width:1300px;margin:auto;position:static}.expanded [data-tool-directory-button]{display:none!important}
 .export-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}.code-panel{min-width:0;border:1px solid var(--line);border-radius:16px;background:#172a23;overflow:hidden;container-type:inline-size}.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:680px;min-height:380px;padding:22px;font:12px/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{
 .edit-table th{position:relative}
 @container(max-width:600px){.preview-bar{flex-wrap:wrap}.preview-bar>span{flex-basis:100%}.data-editor>header{flex-wrap:wrap}.code-toolbar{flex-wrap:wrap}.code-toolbar .segmented{width:100%}.code-toolbar .quiet{margin-left:auto}}
 @container(max-width:380px){.data-actions button{flex:1}.edit-table{min-width:360px}}
 @media(max-width:1100px){.workspace-grid{grid-template-columns:260px minmax(0,1fr)}.control-section{padding:20px 15px}.type-button{gap:6px;padding:8px 6px}.type-icon{width:23px}.type-button strong{font-size:12px}.preview-column{padding:17px}.export-grid{gap:20px;grid-template-columns:1fr 1.2fr}}
 @media(max-width:800px){.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}.workspace-heading{padding:20px;gap:12px}.workspace-heading .badge{display:none}.workspace-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}.type-list{grid-template-columns:repeat(3,1fr)}.type-button{padding:9px;gap:10px}.type-icon{width:30px}.control-section{padding:22px}.export-grid{grid-template-columns:1fr}.section-heading{align-items:flex-start;flex-direction:column}.data-editor{padding:16px}.expanded .preview-column{padding:14px}}
 @media(max-width:420px){.section-icon{width:42px;height:42px;border-radius:11px}.workspace-heading h2{font-size:21px}.workspace-heading{padding:18px 14px}.workspace-heading .kicker{font-size:10px}.type-list{grid-template-columns:1fr 1fr}.type-button{gap:10px}.control-section{padding:20px 16px}.preview-bar>span{font-size:10px}.preview-bar .quiet{font-size:11px}.actions{width:100%;gap:7px}.actions button{flex:1;font-size:12px;padding:9px}.guide{padding:20px}.code-toolbar .segmented button{font-size:11px;padding:5px 8px}.code-toolbar .quiet{font-size:11px}.preview-footer{font-size:11px}}
 @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}}
}
