@layer reset, base, components, responsive;
@layer reset {
  *,*::before,*::after{box-sizing:border-box}body,h1,h2,h3,p,ol{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.4}svg{display:block}button,a{touch-action:manipulation}[hidden]{display:none!important}
  :where(button,input,select,textarea,a,canvas):focus-visible{outline:3px solid #7460d2;outline-offset:3px}
}
@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:#ef5c50}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)}.local-badge,.badge{font-size:12px;font-weight:700;white-space:nowrap}.local-badge{border:1px solid var(--line);border-radius:24px;padding:7px 12px;background:var(--paper)}
  .quiet,.primary,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 14px;border:1px solid var(--line);border-radius:9px;background:var(--paper);font-size:14px;font-weight:750;transition:background .18s,box-shadow .18s}.quiet:hover:not(:disabled),.icon-button:hover:not(:disabled){background:#e8ede4;box-shadow:0 3px 10px #203d3310}.primary{background:var(--ink);color:#f6ffeb;border-color:var(--ink)}.primary:hover:not(:disabled){background:#305b4b}.quiet svg,.primary svg,.icon-button svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;fill:none}.icon-button{width:40px;min-height:40px;padding:8px;font-size:20px}.text-button{border:0;background:none;color:var(--green);font-size:13px;font-weight:700;padding:8px 0;text-decoration:underline;text-underline-offset:4px}.text-button:hover{color:var(--ink)}.danger{color:#a43830}
  .note{font-size:13px;line-height:1.8;color:var(--muted);margin-top:12px}.field{display:grid;gap:7px;font-size:14px;font-weight:650;margin-top:18px}.field-label{font-size:14px;font-weight:650;margin-bottom:7px}input[type=number],textarea,select{min-width:0;width:100%;background:var(--paper);border:1px solid var(--line);border-radius:8px;padding:9px 11px;font-size:14px}textarea{resize:vertical}select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23203d33' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 11px center}.range{display:grid;grid-template-columns:1fr auto;gap:8px;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%;margin:0;accent-color:var(--green)}.check{display:flex;align-items:center;gap:8px;font-size:14px;margin-top:14px}.check input{width:17px;height:17px;accent-color:var(--green)}.color-field{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px;margin-top:14px}input[type=color]{width:44px;height:34px;border:1px solid var(--line);border-radius:7px;padding:3px;background:var(--paper)}
}
@layer components {
  .tool-grid .tool-button{position:relative;padding-right:23px;gap:6px}.tool-grid .tool-button svg{width:21px;height:21px}.tool-button kbd{position:absolute;top:4px;right:5px;display:grid;place-items:center;min-width:15px;height:18px;border:1px solid #63766c50;border-radius:4px;font:600 10px/1.2 ui-monospace,monospace;color:var(--muted);background:#f1f3ed}.tool-button[aria-pressed=true] kbd{color:var(--lime);border-color:#c5ff8050;background:#ffffff10}.tool-button.shortcuts-off kbd{opacity:.4}.shortcut-toggle{font-size:12px}.outline-controls{min-width:0;border:0;border-top:1px solid var(--line);padding:14px 0 0;margin:20px 0 0;grid-column:1/-1}.outline-controls legend{font-size:14px;font-weight:750;padding:0 8px 0 0}.outline-controls>.color-field{margin-top:0}
  .drop-zone{position:relative;min-width:0}.drop-zone.drag-over .drop-overlay{display:flex;position:absolute;inset:10px;min-height:0;flex-direction:column;gap:8px;border:2px dashed var(--lime);border-radius:12px;background:#203d33ed;text-align:center;padding:20px;pointer-events:none}.drop-overlay strong{font-size:clamp(18px,2vw,26px)}.drop-overlay span{font-size:14px;font-weight:500}.canvas-footer #dropHint{color:var(--green);font-weight:650;margin-bottom:3px}
  .studio{background:var(--paper);border:1px solid var(--line);border-radius:24px;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>.quiet{margin-left:auto}.section-icon{width:52px;height:52px;border-radius:15px;display:grid;place-items:center;background:#ef5c50;color:white;flex-shrink:0}.section-icon svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.workspace{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-bottom:0}.control-section h3{margin-top:6px}.tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:15px}.tool-button{min-width:0;display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--paper);font-size:14px;font-weight:700;transition:background .18s}.tool-button svg{width:23px;height:23px;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.tool-button:hover{background:#e6eddf}.tool-button[aria-pressed=true]{background:var(--ink);color:var(--lime);border-color:var(--ink)}.colors{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.swatch{width:30px;height:30px;min-height:30px;border-radius:50%;border:3px solid var(--paper);box-shadow:0 0 0 1px var(--line);background:var(--swatch);transition:box-shadow .18s}.swatch[aria-pressed=true]{box-shadow:0 0 0 2px var(--ink)}.swatch:hover{box-shadow:0 0 0 3px #98a99d}.section-row{display:flex;align-items:center;justify-content:space-between;gap:10px}.layers{list-style:none;padding:0;display:grid;gap:5px;margin-top:14px;max-height:260px;overflow:auto}.layers button{display:flex;align-items:center;gap:9px;width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:var(--paper);padding:8px 10px;font-size:13px;text-align:left}.layers button[aria-pressed=true]{border-color:#7460d2;background:#eeeafa}.layer-dot{width:11px;height:11px;border-radius:3px;background:var(--swatch);border:1px solid #203d3320;flex-shrink:0}.layer-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.layer-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:14px}.layer-actions button{font-size:12px;padding:8px 10px;min-height:38px}
  .editor-column{min-width:0;container-type:inline-size}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-bottom:1px solid var(--line);flex-wrap:wrap}.history,.zoom-controls{display:flex;align-items:center;gap:6px;min-width:0}.toolbar-divider{height:20px;border-left:1px solid var(--line);margin:0 6px}.history>span:last-child{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:260px}.zoom-controls output{font-size:12px;min-width:46px;text-align:center}.zoom-controls .quiet{font-size:12px;min-height:40px}.canvas-scroll{height:560px;overflow:auto;position:relative;background-color:#e7ece4;background-image:radial-gradient(#9cac9b60 .7px,transparent .7px);background-size:14px 14px;overscroll-behavior:contain}.canvas-pad{min-height:100%;min-width:100%;display:flex;width:max-content;padding:30px}.canvas-wrap{margin:auto;position:relative;box-shadow:0 10px 28px #243e3425;background:conic-gradient(#ebede9 25%,#fff 0 50%,#ebede9 0 75%,#fff 0) 0 0/16px 16px;flex-shrink:0}canvas{display:block;max-width:none;width:100%;height:100%;touch-action:none;cursor:crosshair}.canvas-wrap[data-tool=select] canvas{cursor:default}.drop-overlay{display:none;pointer-events:none;position:sticky;inset:0;background:#203d33ee;color:var(--lime);align-items:center;justify-content:center;font-size:24px;font-weight:750;min-height:100%;z-index:3}.canvas-scroll.drag-over .drop-overlay{display:flex;position:absolute}.canvas-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 20px;border-block:1px solid var(--line);font-size:12px;color:var(--muted)}.canvas-footer p{min-width:0}.canvas-footer button{white-space:nowrap;flex-shrink:0}.selection-panel{padding:20px 24px;border-bottom:1px solid var(--line);background:#f4f0ff80}.selection-panel h3{font-size:16px}.geometry{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:14px}.geometry label{font-size:12px;display:grid;gap:4px}.sample-section{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line)}.sample-section h3{font-size:16px}.sample-buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sample-button{display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:var(--paper);padding:8px 10px;border-radius:9px;font-size:13px;font-weight:700;min-height:44px}.sample-button:hover{background:#e8ede4}.sample-button svg{width:36px;height:25px;fill:#edf2e5;stroke:var(--green);stroke-width:1.5;stroke-linecap:round}.sample-buttons .quiet{font-size:12px}.export-panel{padding:24px}.export-options{display:grid;grid-template-columns:1fr 1.4fr;align-items:end;gap:14px 22px;margin-top:18px}.export-options .field,.export-options .color-field{margin:0}.export-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.export-actions .primary{background:var(--lime);color:var(--ink);border-color:#add475}.export-actions .primary:hover{background:#b0f262}
  .segmented{position:relative;isolation:isolate;display:flex;border:1px solid var(--line);border-radius:10px;padding:4px;background:#e8ede5;anchor-scope:--choice}.segmented::before{content:"";position:absolute;z-index:-1;background:var(--ink);border-radius:7px;position-anchor:--choice;left:anchor(left);top:anchor(top);width:anchor-size(width);height:anchor-size(height);transition:left .2s,top .2s,width .2s,height .2s;pointer-events:none}.segmented button{border:0;border-radius:7px;background:transparent;min-height:36px;flex:1;font-size:13px;font-weight:750;padding:6px 14px}.segmented button[aria-pressed=true]{anchor-name:--choice;color:var(--lime)}.segmented button:hover{box-shadow:inset 0 0 0 1px #79918380}@supports not (left:anchor(left)){.segmented::before{display:none}.segmented button[aria-pressed=true]{background:var(--ink)}}
  .help-section{padding:46px 0 30px}.help-section h2{margin:8px 0 24px}.help-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.help-grid article{padding:26px;border:1px solid var(--line);border-radius:18px;background:#fffef880}.help-grid article>svg{width:36px;height:36px;fill:none;stroke:var(--green);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;margin-bottom:18px}.help-grid p{font-size:14px;color:var(--muted);margin-top:12px}.privacy-note{font-size:13px;color:var(--muted);margin-top:20px}.toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,12px);max-width:min(540px,calc(100% - 32px));padding:12px 20px;border-radius:12px;background:var(--ink);color:white;font-size:14px;box-shadow:0 6px 24px #0002;opacity:0;visibility:hidden;transition:.2s;z-index:10}.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}dialog{border:1px solid var(--line);border-radius:20px;padding:28px;width:min(470px,calc(100% - 32px));color:var(--ink);background:var(--paper);box-shadow:0 20px 90px #0003}dialog::backdrop{background:#17332988;backdrop-filter:blur(3px)}dialog h2{font-size:22px}dialog p{font-size:14px;margin:14px 0 24px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px}
}
@layer responsive {
  @container (max-width:720px){.sample-section{align-items:flex-start;flex-direction:column}.export-options{grid-template-columns:1fr 1fr}.history>span:last-child{max-width:170px}.canvas-scroll{height:460px}}
  @media(min-width:1500px){.canvas-scroll{height:620px}}
  @media(max-width:1000px){.workspace{grid-template-columns:235px minmax(0,1fr)}.control-section{padding:18px 16px}.tool-button{gap:7px;padding:8px;font-size:13px}.editor-toolbar{padding:10px 12px}.toolbar-divider{display:none}.history>span:last-child{max-width:120px}}
  @media(max-width:760px){.page{width:calc(100% - 32px)}.hero{padding:28px 0}.hero-bottom{align-items:flex-start;flex-direction:column;gap:14px}h1{font-size:clamp(34px,7vw,52px);overflow-wrap:break-word}.studio-heading{padding:20px;gap:12px}.studio-heading h2{font-size:23px}.studio-heading .quiet{font-size:12px;padding:8px 10px}.workspace{display:flex;flex-direction:column}.controls{display:grid;grid-template-columns:1fr 1fr;border-right:0;border-bottom:1px solid var(--line)}.control-section{border-bottom:0}.control-section:first-child{border-right:1px solid var(--line)}.control-section:last-child{grid-column:1/-1;border-top:1px solid var(--line)}.tool-grid{gap:6px}.tool-button{flex-direction:column;gap:4px}.layers{grid-template-columns:repeat(2,minmax(0,1fr));max-height:130px}.editor-column{order:-1;border-bottom:1px solid var(--line)}.canvas-scroll{height:400px}.canvas-pad{padding:20px}.help-grid{grid-template-columns:1fr}.help-grid article{padding:22px}.export-panel,.sample-section,.selection-panel{padding:20px}.canvas-footer{padding:10px 16px;align-items:flex-start}.geometry{gap:8px;grid-template-columns:repeat(2,1fr)}.history>span:last-child{max-width:150px}}
  @media(max-width:420px){.studio-heading{padding:16px 12px;gap:9px}.section-icon{width:40px;height:40px;border-radius:11px}.section-icon svg{width:26px;height:26px}.studio-heading .kicker{font-size:10px}.studio-heading h2{font-size:20px}.studio-heading .quiet svg{display:none}.editor-toolbar{gap:8px}.history{flex-wrap:wrap}.history>span:last-child{max-width:100px;font-size:11px}.zoom-controls{gap:3px}.zoom-controls .icon-button{width:32px;min-height:34px;padding:4px}.zoom-controls .quiet{padding:6px 8px;min-height:34px}.zoom-controls output{min-width:38px}.canvas-scroll{height:340px}.export-options{grid-template-columns:1fr}.export-panel>.section-row{align-items:flex-start;flex-direction:column}.canvas-footer{flex-direction:column;gap:0}.controls .kicker{font-size:10px}.control-section{padding:16px 12px}.control-section h3{font-size:16px}.tool-button{font-size:12px}.colors{gap:7px}.swatch{width:26px;height:26px;min-height:26px}.sample-buttons{gap:7px}.sample-button{font-size:12px}.sample-button svg{width:26px}.sample-buttons>.quiet{width:100%}.help-section{padding-top:32px}}
  @media(max-width:760px){.controls{display:contents}.controls>.control-section,.editor-column>.tool-section{border:0;border-bottom:1px solid var(--line);padding:20px}.controls>.style-section{order:2;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}.controls>.style-section>.kicker,.controls>.style-section>h3,.controls>.style-section>.note,.controls>.style-section>.check{grid-column:1/-1}.controls>.layers-section{order:3}.editor-column{order:1}.editor-column>.tool-section{background:#f6f5ef}.editor-column>.tool-section+.canvas-footer{border-top:0}.tool-grid{grid-template-columns:repeat(4,1fr)}.tool-button{flex-direction:row;justify-content:center}.tool-grid+.note{margin-top:9px}.control-section .colors{align-content:center}.control-section .color-field{margin-top:10px}.control-section .field{grid-column:1/-1}}
  @media(max-width:420px){.controls>.control-section,.editor-column>.tool-section{padding:16px}.tool-button{flex-direction:column}.tool-grid{gap:6px}.control-section .colors{gap:6px}.control-section .color-field{font-size:12px}}
  @media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
}
