:root{color-scheme:light;--ink:#17211d;--muted:#66736d;--paper:#fffaf3;--card:#fff;--line:#e6e0d7;--accent:#ef5b3f;--accent-dark:#c53d27;--mint:#d9f1e8;--yellow:#ffd35c;--shadow:0 18px 55px #38271414;color:var(--ink);background:var(--paper);font-synthesis:none;font-family:Inter,ui-rounded,SF Pro Rounded,Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:radial-gradient(circle at 10% 0%, #fff2dc 0, transparent 28rem), var(--paper);min-width:320px;margin:0;overflow-x:hidden}button,input,select,textarea{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline-offset:2px;outline:3px solid #22847459}a{color:inherit}.site-header{justify-content:space-between;align-items:center;gap:20px;width:min(1400px,100% - 32px);min-height:72px;margin:0 auto;display:flex}.brand{letter-spacing:-.04em;align-items:center;font-size:20px;font-weight:850;text-decoration:none;display:inline-flex}.brand i{color:#fff;background:var(--accent);border-radius:999px;margin:0 3px;padding:4px 6px;font-size:12px;font-style:normal}.site-header nav{align-items:center;gap:24px;font-size:14px;font-weight:650;display:flex}.site-header nav a{color:#44524c;text-decoration:none}.language-link{border:1px solid var(--line);background:#ffffffb3;border-radius:999px;padding:8px 13px}.tool-shell{width:min(1400px,100% - 32px);margin:46px auto 72px}.tool-heading{justify-content:space-between;align-items:flex-end;gap:32px;max-width:1180px;margin:0 auto 30px;display:flex}.tool-heading>div:first-child{max-width:850px}.eyebrow{color:#1d7f6e;text-transform:uppercase;letter-spacing:.12em;margin:0 0 10px;font-size:12px;font-weight:800}h1{letter-spacing:-.055em;margin:0;font-size:clamp(38px,5.5vw,74px);line-height:.98}.tool-heading p:last-child{max-width:720px;color:var(--muted);margin:22px 0 0;font-size:clamp(16px,2vw,20px);line-height:1.6}h2{letter-spacing:-.035em}.save-status{border-radius:999px;justify-content:center;align-items:center;min-width:180px;min-height:38px;font-size:13px;font-weight:750;display:flex}.save-status.saving{color:#765a00;background:#fff2c8}.save-status.saved{background:var(--mint);color:#166454}.save-status.error{color:#9b2819;background:#ffe1dc}.notice{color:#185e52;background:#eefaf6;border:1px solid #b8dfd6;border-radius:13px;max-width:1180px;margin:0 auto 18px;padding:13px 16px}.notice.error{color:#a03626;background:#fff1ee;border-color:#ffc9c0}.tool-layout{grid-template-columns:minmax(260px,330px) minmax(0,1fr);align-items:start;gap:18px;display:grid}.card{border:1px solid var(--line);box-shadow:var(--shadow);background:#ffffffeb;border-radius:22px}.settings-panel{gap:19px;padding:20px;display:grid;position:sticky;top:16px}.source-picker{text-align:center;gap:10px;display:grid}.source-picker img{object-fit:contain;background:#f1eee8;border-radius:14px;width:100%;max-height:210px}.source-picker small,.field-label small{color:var(--muted)}.button{appearance:none;cursor:pointer;border:0;border-radius:12px;justify-content:center;align-items:center;min-height:46px;padding:0 19px;font-weight:800;text-decoration:none;display:inline-flex}.button.primary{color:#fff;background:var(--accent);box-shadow:0 9px 24px #ef5b3f40}.button.primary:hover{background:var(--accent-dark)}.button.secondary{color:var(--ink);border:1px solid var(--line);background:#fff}.button:disabled{cursor:wait;opacity:.62}.button.wide{width:100%}.upload-button input,.upload-dropzone input,.empty-stage input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.upload-dropzone{background:#faf8f4;border:2px dashed #d8d2c8;flex-direction:column;gap:9px;min-height:190px}.upload-dropzone small{font-weight:500}.field-label{gap:9px;font-size:14px;font-weight:700;display:grid}.field-label select,.feedback-form select,.feedback-form input,.feedback-form textarea{width:100%;color:var(--ink);background:#fff;border:1px solid #d8d2c8;border-radius:11px;padding:11px 12px}input[type=range]{width:100%;accent-color:var(--accent)}.preset-row{flex-wrap:wrap;gap:7px;display:flex}.chip{border:1px solid var(--line);cursor:pointer;background:#faf8f4;border-radius:999px;min-width:48px;min-height:34px}details{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0}summary{cursor:pointer;font-weight:750}.switch-row{align-items:flex-start;gap:10px;margin-top:14px;display:flex}.switch-row input{margin-top:4px}.switch-row span{gap:4px;display:grid}.switch-row small{color:var(--muted);line-height:1.45}.stale-note{color:#8a6312;background:#fff6d9;border-radius:10px;margin:0;padding:10px 12px;font-size:13px}.text-button{color:var(--muted);cursor:pointer;background:0 0;border:0;text-decoration:underline}.processing-note{background:var(--mint);color:#166454;border-radius:10px;margin:0;padding:10px 12px;font-size:13px;font-weight:700}.crop-control{text-align:left;gap:9px;display:grid}.crop-label{justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.crop-label button{color:var(--muted);cursor:pointer;background:0 0;border:0;padding:4px;text-decoration:underline}.crop-stage{touch-action:pan-y;background:#eeeae4;border-radius:14px;width:100%;line-height:0;position:relative;overflow:hidden}.crop-stage img{object-fit:contain;user-select:none;-webkit-user-drag:none;width:100%;height:auto;max-height:none;display:block}.crop-shade{display:none}.crop-selection{cursor:default;touch-action:pan-y;border:2px solid #fff;line-height:normal;position:absolute;box-shadow:0 0 0 200vmax #0c14117a}.crop-selection:before,.crop-selection:after{content:"";pointer-events:none;background:#ffffffb8;position:absolute}.crop-selection:before{width:1px;height:100%;top:0;left:50%}.crop-selection:after{width:100%;height:1px;top:50%;left:0}.crop-handle{touch-action:none;background:#fff;border:0;border-radius:50%;width:32px;height:32px;position:absolute;box-shadow:0 1px 6px #00000052}.crop-handle.nw{cursor:nwse-resize;top:0;left:0}.crop-handle.ne{cursor:nesw-resize;top:0;right:0}.crop-handle.sw{cursor:nesw-resize;bottom:0;left:0}.crop-handle.se{cursor:nwse-resize;bottom:0;right:0}.crop-move-handle{color:#33413b;cursor:move;touch-action:none;background:#fffffff0;border:1px solid #00000029;border-radius:999px;width:44px;height:32px;font-weight:800;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);box-shadow:0 2px 10px #00000038}.pattern-panel{gap:16px;min-width:0;display:grid}.editor-layout{grid-template-columns:minmax(0,1fr);max-width:1180px;margin-inline:auto}.empty-stage{text-align:center;cursor:pointer;min-height:520px;color:var(--muted);border-style:dashed;flex-direction:column;justify-content:center;align-items:center;gap:12px;display:flex}.empty-stage strong{color:var(--ink);font-size:22px}.empty-illustration{width:74px;height:74px;color:var(--accent);background:#fff0e3;border-radius:24px;place-items:center;font-size:35px;display:grid;transform:rotate(-4deg)}.stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;min-width:0;display:grid}.stats-row span{background:var(--ink);color:#fff;border-radius:16px;gap:3px;min-width:0;padding:13px 16px;display:grid;overflow:hidden}.stats-row span:nth-child(2){background:#1d7f6e}.stats-row span:nth-child(3){background:#b64933}.stats-row small{opacity:.7;text-transform:uppercase;letter-spacing:.08em;font-size:11px}.stats-row strong{font-size:20px}.canvas-card{min-width:0;max-width:100%;overflow:hidden}.preview-heading{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:14px;min-height:54px;padding:15px 18px;display:flex}.preview-heading span{color:var(--muted);font-size:13px}.canvas-toolbar{border-bottom:1px solid var(--line);gap:9px;min-height:58px;padding:11px 12px;display:grid}.edit-context{justify-content:space-between;align-items:end;gap:14px;min-width:0;display:flex}.toolbar-history{flex:none;margin:0}.quick-color-select{min-width:0;color:var(--muted);grid-template-columns:auto 22px minmax(140px,1fr);align-items:center;gap:8px;font-size:13px;display:grid}.quick-color-select>span{font-weight:750}.quick-color-select i{border:1px solid #00000029;border-radius:7px;width:22px;height:22px}.quick-color-select select{width:100%;min-width:0;color:var(--ink);background:#fff;border:1px solid #d8d2c8;border-radius:9px;padding:8px 9px}.toolbar-color-strip{padding:2px 4px 4px}.tool-buttons{grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;width:100%;display:grid}.zoom-buttons{align-items:center;gap:5px;display:flex}.tool-buttons button,.zoom-buttons button,.history-actions button,.button-row button{white-space:nowrap;border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:10px;min-height:38px;padding:0 12px;font-weight:650}.tool-buttons button{min-width:0;padding-inline:8px}.tool-buttons button.active{background:var(--ink);border-color:var(--ink);color:#fff}.zoom-buttons span{text-align:center;min-width:46px;color:var(--muted);font-size:12px}.toolbar-footer{justify-content:space-between;align-items:center;gap:12px;min-width:0;display:flex}.tool-help{color:var(--muted);flex:1;margin:0;font-size:13px;line-height:1.45}.canvas-scroller{overscroll-behavior:contain;background:#eeeae4;width:100%;min-height:420px;max-height:72vh;padding:26px;overflow:auto}.preview-scroller{overscroll-behavior:auto;pointer-events:none;touch-action:pan-y;min-height:0;max-height:none;padding:18px;overflow:hidden}.preview-scroller .pattern-canvas{margin:0 auto}.pattern-canvas{image-rendering:auto;background:#fff;margin:auto;display:block;box-shadow:0 8px 35px #1a161226}.pattern-canvas:not(.tool-pan):not(.tool-browse):not(.pattern-preview){touch-action:none;cursor:crosshair}.pattern-canvas.tool-pan{touch-action:none;cursor:grab}.pattern-canvas.pattern-preview,.pattern-canvas.tool-browse{pointer-events:none;touch-action:pan-y;cursor:default}.editor-browse-scroller{overscroll-behavior:auto;touch-action:pan-y;min-height:0;max-height:none;overflow:hidden}.canvas-position{color:var(--muted);min-width:76px;font-size:13px}.save-status button{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;margin-left:8px;font-weight:750;text-decoration:underline}.editor-card,.export-card,.result-controls{padding:18px 20px}.editor-card h2,.export-card h2,.feedback-section h2{margin:0 0 14px;font-size:19px}.history-actions,.button-row{flex-wrap:wrap;gap:8px;margin-bottom:16px;display:flex}.history-actions.toolbar-history{margin-bottom:0}.history-actions button:disabled{opacity:.42;cursor:default}.color-strip{gap:7px;padding:10px 2px 2px;display:flex;overflow-x:auto}.color-strip button{cursor:pointer;border:3px solid #fff;border-radius:50%;flex:0 0 34px;height:34px;box-shadow:0 0 0 1px #c8c1b8}.color-strip button.active{box-shadow:0 0 0 3px var(--ink)}.materials-card{padding:0 20px 18px}.materials-card>summary{padding-top:17px}.materials-list{grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:6px 14px;max-height:none;margin:16px 0 0;padding:0;list-style:none;display:grid;overflow:visible}.materials-list li{border-bottom:1px solid #eee9e2;grid-template-columns:22px 34px 1fr auto;align-items:center;gap:7px;min-height:36px;font-size:13px;display:grid}.material-swatch{border:1px solid #0000001f;border-radius:6px;width:20px;height:20px}.material-count{font-variant-numeric:tabular-nums;color:var(--muted)}.switches{flex-wrap:wrap;gap:22px;margin-bottom:17px;display:flex}.switches label{font-weight:650}.switches input{accent-color:var(--accent)}.result-controls{grid-template-columns:minmax(260px,1fr) minmax(210px,.8fr);align-items:start;gap:20px;display:grid}.result-controls h2{margin:0 0 12px;font-size:17px}.result-controls .button-row{margin:0}.guide-switches{gap:9px;margin:0;display:grid}.result-actions{gap:10px;display:grid}.result-actions>.button{width:100%}.edit-entry{gap:7px;display:grid}.edit-entry .button{width:100%}.edit-entry small{color:var(--muted);line-height:1.45}.new-pattern-link{justify-self:center;margin:4px 0 12px}.notice{justify-content:space-between;align-items:center;gap:14px;display:flex}.notice button{color:inherit;cursor:pointer;background:0 0;border:0;flex:none;font-weight:750;text-decoration:underline}.editor-actions{margin-top:4px;padding-bottom:0}.editor-action-grid{grid-template-columns:1fr 1fr;gap:18px;padding:14px 0 4px;display:grid}.editor-action-grid section{align-content:start;gap:9px;min-width:0;display:grid}.editor-action-grid h3{margin:0;font-size:14px}.editor-action-grid h4{margin:8px 0 0;font-size:13px}.editor-action-grid small{color:var(--muted);line-height:1.45}.action-choice,.replace-form button{border:1px solid var(--line);cursor:pointer;background:#fff;border-radius:10px;min-height:40px;font-weight:700}.action-choice.active{color:#fff;background:var(--ink);border-color:var(--ink)}.replace-form{gap:8px;margin-top:5px;display:grid}.replace-form label{color:var(--muted);gap:5px;font-size:12px;font-weight:700;display:grid}.replace-form select{width:100%;min-width:0;color:var(--ink);background:#fff;border:1px solid #d8d2c8;border-radius:9px;padding:9px}.replace-form button:disabled{opacity:.45;cursor:default}.inline-action-notice{color:#166454;background:var(--mint);border-radius:9px;margin:12px 0 0;padding:9px 11px;font-size:13px;font-weight:700}.inline-undo{color:#166454;background:var(--mint);cursor:pointer;border:0;border-radius:9px;min-height:38px;font-weight:750}.feedback-section{max-width:960px;margin:50px auto 0;padding:28px}.feedback-section>p{color:var(--muted)}.feedback-form{gap:14px;margin-top:20px;display:grid}.feedback-fields{grid-template-columns:1fr 1fr;gap:12px;display:grid}.feedback-form label{gap:7px;font-size:14px;font-weight:700;display:grid}.feedback-actions{color:var(--muted);align-items:center;gap:14px;font-size:14px;display:flex}.honeypot{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.support-strip{color:#fff;background:#18231f;border-radius:20px;justify-content:space-between;align-items:center;gap:22px;width:min(960px,100% - 32px);margin:0 auto 90px;padding:24px 28px;display:flex}.support-strip>div{gap:5px;display:grid}.support-strip span{color:#afbbb5}.content-section{width:min(1120px,100% - 32px);margin:90px auto}.content-section>h2{max-width:670px;margin:0 0 36px;font-size:clamp(30px,4vw,48px)}.feature-grid{grid-template-columns:repeat(4,1fr);gap:14px;display:grid}.feature-grid article{border:1px solid var(--line);background:#fff;border-radius:18px;padding:22px}.feature-grid article>span{background:var(--mint);color:#1b6f60;border-radius:50%;place-items:center;width:38px;height:38px;font-weight:850;display:inline-grid}.feature-grid h3{margin:18px 0 8px}.feature-grid p,.faq-section p{color:var(--muted);line-height:1.65}.section-intro{max-width:850px;color:var(--muted);margin:-16px 0 30px;font-size:18px;line-height:1.7}.benefit-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.benefit-grid article{border:1px solid var(--line);background:#ffffffb3;border-radius:18px;padding:22px}.benefit-grid h3{margin:0 0 9px}.benefit-grid p{color:var(--muted);margin:0;line-height:1.65}.faq-section{max-width:820px}.faq-section details{padding:18px 0}.faq-section summary{font-size:18px}.legal-page{width:min(760px,100% - 32px);margin:70px auto 120px}.legal-page h1{font-size:clamp(38px,6vw,62px)}.legal-page h2{margin-top:38px}.legal-page p{color:var(--muted);line-height:1.75}.site-footer{border-top:1px solid var(--line);width:min(1120px,100% - 32px);color:var(--muted);justify-content:space-between;gap:24px;margin:60px auto 0;padding:30px 0 50px;font-size:13px;display:flex}@media (width<=900px){.feature-grid{grid-template-columns:1fr 1fr}.benefit-grid,.tool-layout{grid-template-columns:1fr}.settings-panel{position:static}.converter-layout .settings-panel{order:1}.converter-layout .pattern-panel{order:2}.result-controls{grid-template-columns:1fr 1fr}.result-actions{grid-column:1/-1;grid-template-columns:1fr 1fr;align-items:start}.desktop-empty-stage{display:none}}@media (width<=620px){.site-header{width:min(100% - 24px,1400px);min-height:62px}.site-header nav{gap:8px}.site-header nav a:not(.language-link){display:none}.tool-shell{width:min(100% - 20px,1400px);margin-top:24px}.tool-heading{margin-bottom:20px;display:block}.tool-heading h1{font-size:42px}.tool-heading p:last-child{margin-top:16px;font-size:16px}.save-status{width:fit-content;min-width:0;margin-top:14px;padding:0 13px}.settings-panel,.editor-card,.export-card{border-radius:17px}.tool-layout,.pattern-panel,.stats-row,.canvas-card,.canvas-toolbar,.canvas-scroller{width:100%;min-width:0;max-width:100%}.stats-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.stats-row span{border-radius:12px;padding:10px}.stats-row small{text-overflow:ellipsis;white-space:nowrap;letter-spacing:.04em;font-size:10px;overflow:hidden}.stats-row strong{font-size:16px}.canvas-toolbar{padding:10px}.edit-context{grid-template-columns:auto minmax(0,1fr);align-items:end;gap:9px;display:grid}.quick-color-select{grid-template-columns:22px minmax(0,1fr);gap:6px}.quick-color-select>span{grid-column:1/-1}.toolbar-color-strip{padding-top:4px}.tool-buttons{grid-template-columns:repeat(3,minmax(0,1fr));padding-bottom:2px}.tool-buttons button{min-height:44px}.toolbar-footer{flex-direction:column;align-items:stretch}.zoom-buttons{justify-content:space-between;width:100%}.canvas-position{margin-right:auto}.canvas-scroller{min-height:52vh;padding:14px}.preview-scroller{min-height:0;padding:10px}.result-controls{grid-template-columns:1fr;padding:16px}.editor-action-grid{grid-template-columns:1fr}.notice{flex-direction:column;align-items:flex-start}.result-actions{grid-column:auto;grid-template-columns:1fr}.materials-card{padding-inline:16px}.materials-list{grid-template-columns:1fr}.feedback-section{padding:21px}.feedback-fields{grid-template-columns:1fr}.feedback-actions,.support-strip,.site-footer{flex-direction:column;align-items:stretch}.support-strip{margin-bottom:66px}.feature-grid{grid-template-columns:1fr}.content-section{margin:65px auto}}@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
