:root{--ink:#173330;--deep:#123c38;--deep-2:#0c2d2a;--cream:#f7f1e7;--paper:#fffdf8;--orange:#f6b65c;--orange-2:#e69a35;--mint:#dcebe5;--line:#d8ddd7;--muted:#65736f;--shadow:0 24px 60px rgba(20,47,43,.12);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:linear-gradient(180deg,#f4eee3 0,#faf7f0 44rem,#f4eee3 100%);min-width:320px}button,input,select{font:inherit}button,a{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid rgba(230,154,53,.5);outline-offset:3px}.site-header{height:76px;display:flex;align-items:center;justify-content:space-between;max-width:1240px;margin:auto;padding:0 28px}.brand{display:inline-flex;align-items:center;gap:11px;color:var(--deep);font-weight:800;text-decoration:none;letter-spacing:-.02em}.brand-mark{display:grid;grid-template-columns:repeat(2,10px);gap:3px;transform:rotate(45deg)}.brand-mark i{width:10px;height:10px;background:var(--orange);border-radius:2px}.brand-mark i:nth-child(2),.brand-mark i:nth-child(3){background:var(--deep)}nav{display:flex;align-items:center;gap:28px}nav a{color:#39534f;text-decoration:none;font-size:.93rem;font-weight:600}.quiet-button,.primary-button,.secondary-button,.regenerate-button{border:0;border-radius:12px;font-weight:750;cursor:pointer;transition:transform .18s ease,background .18s ease,box-shadow .18s ease}.quiet-button{background:var(--deep);color:white;padding:11px 17px}.quiet-button:hover,.primary-button:hover,.regenerate-button:hover{background:var(--deep-2);transform:translateY(-1px)}main{overflow:hidden}.intro{max-width:1240px;margin:22px auto 34px;padding:34px 28px 28px;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.65fr);gap:64px;align-items:center}.intro-copy{padding:22px 0}.eyebrow,.step-label{text-transform:uppercase;letter-spacing:.14em;color:#be7025;font-size:.75rem;font-weight:850;margin:0 0 12px}.intro h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2.8rem,5.8vw,5.2rem);font-weight:500;line-height:.98;letter-spacing:-.055em;margin:0;max-width:830px}.lede{font-size:1.13rem;line-height:1.65;color:#52645f;max-width:660px;margin:26px 0 20px}.trust-list{display:flex;gap:22px;list-style:none;padding:0;margin:0;color:#435c57;font-size:.88rem;font-weight:700}.trust-list li::before{content:"✓";color:#b96b23;margin-right:7px}.sample-card{background:var(--deep);border-radius:120px 120px 20px 20px;padding:11px 11px 18px;box-shadow:var(--shadow);transform:rotate(1.7deg);max-width:390px;justify-self:end}.sample-card img{display:block;width:100%;aspect-ratio:1/1.08;object-fit:cover;border-radius:108px 108px 14px 14px;filter:saturate(.9)}.sample-card span{display:block;color:#f8ead8;text-align:center;padding:13px 8px 3px;font-family:Georgia,serif;font-style:italic}.studio{max-width:1440px;margin:0 auto;padding:34px 28px 54px}.studio-head{display:flex;justify-content:space-between;align-items:end;margin:0 auto 18px;max-width:1240px}.studio-head h2,.process h2,.faq h2{font-family:Georgia,"Times New Roman",serif;font-size:clamp(2rem,4vw,3.3rem);font-weight:500;letter-spacing:-.035em;margin:0}.studio-head>p{color:var(--muted);font-size:.86rem;margin:0 0 8px}.studio-grid{display:grid;grid-template-columns:270px minmax(400px,1fr) 260px;gap:1px;background:#ced7d1;border:1px solid #ced7d1;border-radius:24px;overflow:hidden;box-shadow:var(--shadow);min-height:650px}.controls,.palette-panel,.workspace{background:var(--paper)}.controls,.palette-panel{padding:24px}.upload-box{border:1.5px dashed #aebdb7;border-radius:18px;min-height:260px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:22px;transition:background .2s,border-color .2s}.upload-box.dragging{background:var(--mint);border-color:var(--deep)}.upload-icon{width:46px;height:46px;border-radius:50%;display:grid;place-items:center;background:var(--mint);color:var(--deep);font-size:1.5rem;margin-bottom:15px}.upload-box strong{font-family:Georgia,serif;font-size:1.1rem}.upload-box span{font-size:.76rem;color:var(--muted);margin:7px 0 16px}.primary-button,.regenerate-button{background:var(--deep);color:white;padding:12px 18px}.upload-box .primary-button{width:100%}.text-button{border:0;background:none;color:#ad611f;text-decoration:underline;text-underline-offset:3px;font-size:.82rem;margin-top:12px;cursor:pointer}.settings{margin-top:26px;display:grid;gap:25px;opacity:.48;pointer-events:none}.settings.ready{opacity:1;pointer-events:auto}.field-title{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:11px}.field-title label,.field-group.compact label{font-size:.83rem;font-weight:800}.field-title output{font-size:.76rem;color:var(--muted)}input[type="range"]{width:100%;accent-color:var(--deep)}.range-labels{display:flex;justify-content:space-between;font-size:.68rem;color:#80908b;margin-top:5px}.compact{display:flex;align-items:center;justify-content:space-between}.compact select{border:1px solid var(--line);background:white;border-radius:9px;padding:8px 10px;color:var(--ink)}.regenerate-button{width:100%}.workspace{padding:20px;display:flex;flex-direction:column;min-width:0}.view-tabs{display:flex;gap:4px;background:#f0f1ed;border-radius:11px;padding:4px;margin:0 auto 18px}.tab{border:0;background:transparent;border-radius:8px;padding:8px 13px;color:#65736f;font-size:.78rem;font-weight:750;cursor:pointer}.tab.active{background:white;color:var(--deep);box-shadow:0 2px 8px rgba(20,47,43,.08)}.canvas-frame{position:relative;flex:1;min-height:430px;background:#e9ede8;border-radius:15px;overflow:auto;display:grid;place-items:center;padding:18px;background-image:linear-gradient(45deg,rgba(18,60,56,.035) 25%,transparent 25%),linear-gradient(-45deg,rgba(18,60,56,.035) 25%,transparent 25%),linear-gradient(45deg,transparent 75%,rgba(18,60,56,.035) 75%),linear-gradient(-45deg,transparent 75%,rgba(18,60,56,.035) 75%);background-size:26px 26px;background-position:0 0,0 13px,13px -13px,-13px 0}canvas{display:block;max-width:100%;height:auto;background:white;box-shadow:0 10px 30px rgba(22,51,48,.11)}.empty-state{text-align:center;max-width:310px;color:#697873}.empty-state strong{display:block;font-family:Georgia,serif;font-size:1.25rem;color:var(--ink);margin:12px}.empty-state p{font-size:.84rem;line-height:1.55;margin:0}.stitched-paw{display:inline-block;color:#b96b23;font-weight:900;font-size:1.2rem;line-height:.7;transform:rotate(-6deg)}.busy{position:absolute;inset:0;background:rgba(247,241,231,.86);display:flex;align-items:center;justify-content:center;gap:10px;font-weight:750}.busy[hidden]{display:none}.busy span{width:18px;height:18px;border:3px solid #c6d3ce;border-top-color:var(--deep);border-radius:50%;animation:spin .75s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.result-bar{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:14px}.result-bar div{border-right:1px solid var(--line);padding:3px 10px}.result-bar div:last-child{border:0}.result-bar span{display:block;font-size:.68rem;color:var(--muted);margin-bottom:3px}.result-bar strong{font-size:.82rem}.actions{display:flex;justify-content:flex-end;gap:9px;margin-top:13px}.secondary-button{padding:10px 15px;background:white;border:1px solid #bfc9c4;color:var(--deep)}.secondary-button:hover{background:#eef4f1}.actions .primary-button{padding:10px 15px}.panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);padding-bottom:17px}.panel-title h3{font-family:Georgia,serif;margin:0;font-size:1.35rem}.panel-title>span{font-size:.7rem;color:var(--muted);white-space:nowrap;margin-top:3px}.palette-list{margin-top:15px;display:grid;gap:5px;max-height:550px;overflow:auto}.palette-empty{font-size:.82rem;color:var(--muted);line-height:1.55}.swatch-row{display:grid;grid-template-columns:24px 1fr auto;align-items:center;gap:9px;padding:7px 3px;border-bottom:1px solid #edf0ec}.swatch{width:23px;height:23px;border-radius:6px;border:1px solid rgba(0,0,0,.12)}.swatch-info{min-width:0}.swatch-info strong,.swatch-info span{display:block}.swatch-info strong{font-size:.75rem}.swatch-info span{font-size:.66rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.swatch-count{font-size:.68rem;color:var(--muted)}.process{max-width:1180px;margin:88px auto;padding:0 28px}.process>h2{max-width:650px}.process-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:38px}.process article{border-top:1px solid #bfc8c1;padding:23px 15px 0 0}.process article>span{color:#bb6a24;font-size:.75rem;font-weight:850}.process h3{font-family:Georgia,serif;font-size:1.4rem;font-weight:500;margin:16px 0 8px}.process article p{color:#5e6f6a;line-height:1.6;font-size:.9rem}.faq{max-width:1180px;margin:120px auto 100px;padding:0 28px;display:grid;grid-template-columns:.7fr 1fr;gap:80px}.faq-list{border-top:1px solid #bfc8c1}.faq details{border-bottom:1px solid #bfc8c1;padding:19px 0}.faq summary{font-weight:750;cursor:pointer;list-style:none;padding-right:30px;position:relative}.faq summary::after{content:"+";position:absolute;right:2px;font-size:1.3rem;font-weight:400}.faq details[open] summary::after{content:"−"}.faq details p{color:#5e6f6a;line-height:1.65;font-size:.9rem;margin:12px 38px 0 0}footer{background:var(--deep);color:#dce8e3;padding:34px max(28px,calc((100vw - 1184px)/2));display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:20px;font-size:.78rem}footer p:last-child{text-align:right}.footer-brand{color:white}.footer-brand .brand-mark i:nth-child(2),.footer-brand .brand-mark i:nth-child(3){background:#dcebe5}.toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,30px);background:#102b28;color:white;padding:11px 17px;border-radius:10px;box-shadow:0 8px 24px rgba(0,0,0,.2);opacity:0;pointer-events:none;transition:.25s;z-index:20;font-size:.84rem}.toast.show{opacity:1;transform:translate(-50%,0)}@media(max-width:1050px){.studio-grid{grid-template-columns:240px 1fr}.palette-panel{grid-column:1/-1}.palette-list{grid-template-columns:repeat(3,1fr);max-height:230px}.intro{gap:34px}.sample-card{max-width:330px}}@media(max-width:760px){.site-header{padding:0 18px;height:66px}.site-header nav a{display:none}.site-header nav{gap:0}.quiet-button{padding:9px 12px}.intro{grid-template-columns:1fr;padding:15px 18px 24px;gap:24px}.intro h1{font-size:clamp(2.65rem,13vw,4rem)}.sample-card{justify-self:center;max-width:320px;transform:none}.trust-list{flex-wrap:wrap;gap:8px 16px}.studio{padding:28px 12px 40px}.studio-head{padding:0 7px;align-items:start}.studio-head>p{display:none}.studio-grid{grid-template-columns:1fr;border-radius:18px}.controls{padding:18px}.upload-box{min-height:220px}.workspace{min-height:620px;padding:13px}.canvas-frame{min-height:400px;padding:10px}.result-bar{grid-template-columns:repeat(2,1fr)}.result-bar div:nth-child(2){border:0}.palette-panel{padding:20px}.palette-list{grid-template-columns:repeat(2,1fr)}.process{margin:70px auto;padding:0 20px}.process-grid{grid-template-columns:1fr;gap:28px}.faq{grid-template-columns:1fr;gap:30px;margin:80px auto 70px;padding:0 20px}footer{grid-template-columns:1fr;text-align:left}footer p,footer p:last-child{text-align:left;margin:0}}@media(max-width:420px){.view-tabs{width:100%;overflow:auto}.tab{white-space:nowrap;padding:8px 10px}.palette-list{grid-template-columns:1fr}.actions{display:grid;grid-template-columns:1fr 1fr}.sample-card{max-width:270px}}
@media print{body{background:white}.site-header,.intro,.controls,.process,.faq,footer,.studio-head,.view-tabs,.editor-toolbar,.editor-hint,.actions,.toast{display:none!important}.studio{padding:0}.studio-grid{display:grid;grid-template-columns:1fr 240px;border:0;box-shadow:none}.workspace,.palette-panel{padding:12px}.canvas-frame{background:white;padding:0;overflow:visible}.result-bar{display:grid!important}.palette-list{max-height:none}.palette-panel{display:block!important}canvas{max-width:100%;box-shadow:none}}

/* Photo preparation and grid editing */
.photo-tools-button{width:100%;margin-top:14px;border:1px solid #c7d3cd;background:#f6faf8;color:var(--deep);border-radius:13px;padding:12px;display:flex;align-items:center;gap:10px;text-align:left;cursor:pointer}.photo-tools-button>span:first-child{width:32px;height:32px;display:grid;place-items:center;border-radius:9px;background:var(--mint);font-size:1.1rem}.photo-tools-button strong,.photo-tools-button small{display:block}.photo-tools-button strong{font-size:.76rem}.photo-tools-button small{font-size:.65rem;color:var(--muted);margin-top:2px}.photo-tools-button:disabled{opacity:.45;cursor:not-allowed}.editor-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:-7px 0 12px;padding:8px;background:#edf2ee;border:1px solid #d7e0db;border-radius:11px}.editor-toolbar[hidden]{display:none}.tool-group{display:flex;gap:4px}.editor-toolbar button{border:1px solid transparent;background:transparent;color:#52645f;border-radius:8px;padding:7px 9px;font-size:.72rem;font-weight:750;cursor:pointer}.editor-toolbar button:hover:not(:disabled){background:white}.editor-toolbar button.active{background:var(--deep);color:white}.editor-toolbar button:disabled{opacity:.35;cursor:not-allowed}.selected-thread{display:flex;align-items:center;gap:7px;min-width:0;font-size:.7rem;color:var(--muted)}.selected-thread span{width:19px;height:19px;border-radius:5px;border:1px solid rgba(0,0,0,.15);background:linear-gradient(135deg,#eee 50%,#ddd 50%);flex:0 0 auto}.selected-thread strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.canvas-frame.editing canvas{cursor:crosshair;touch-action:none}.swatch-row{cursor:pointer;border-radius:7px}.swatch-row:hover{background:#f1f5f2}.swatch-row.selected{background:#dcebe5;box-shadow:inset 0 0 0 1px #9fbbb0}.swatch-row button{display:contents;color:inherit;text-align:left;border:0}.photo-dialog{width:min(1040px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:0;border-radius:22px;background:var(--paper);color:var(--ink);box-shadow:0 28px 90px rgba(7,30,27,.35)}.photo-dialog::backdrop{background:rgba(7,30,27,.72);backdrop-filter:blur(4px)}.dialog-shell{padding:24px}.dialog-head{display:flex;align-items:start;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:16px}.dialog-head h2{font-family:Georgia,serif;font-size:2rem;font-weight:500;margin:0}.dialog-close{border:0;background:#edf2ee;color:var(--deep);width:38px;height:38px;border-radius:50%;font-size:1.5rem;cursor:pointer}.photo-prep-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:22px;margin-top:20px}.prep-canvas-wrap{background:#dfe5df;background-image:linear-gradient(45deg,#eef2ee 25%,transparent 25%),linear-gradient(-45deg,#eef2ee 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#eef2ee 75%),linear-gradient(-45deg,transparent 75%,#eef2ee 75%);background-size:24px 24px;background-position:0 0,0 12px,12px -12px,-12px 0;border-radius:15px;padding:13px;display:grid;place-items:center;min-height:490px}.prep-canvas-wrap canvas{width:min(100%,560px);aspect-ratio:1;box-shadow:0 8px 30px rgba(20,47,43,.18);touch-action:none;cursor:grab}.prep-canvas-wrap canvas.brush-active{cursor:crosshair}.prep-canvas-wrap>p{font-size:.72rem;color:#52645f;text-align:center;margin:10px 0 0}.prep-controls{display:flex;flex-direction:column;gap:25px;padding:6px}.field-help{font-size:.7rem;color:var(--muted);line-height:1.45;margin:8px 0 0}.brush-section>span{font-size:.76rem;font-weight:800}.brush-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin:10px 0 16px}.brush-tools button{border:1px solid #c7d3cd;background:white;color:#52645f;padding:8px 5px;border-radius:8px;font-size:.7rem;font-weight:750;cursor:pointer}.brush-tools button.active{background:var(--deep);border-color:var(--deep);color:white}.brush-size-row{margin-top:0}.prep-note{margin-top:auto;background:#f7eddd;border-radius:12px;padding:13px}.prep-note strong{font-size:.72rem;color:#a75e1f}.prep-note p{font-size:.72rem;line-height:1.45;margin:5px 0 0;color:#5b655f}.dialog-actions{border-top:1px solid var(--line);margin-top:20px;padding-top:16px;display:flex;justify-content:space-between}.dialog-actions>div{display:flex;gap:9px}@media(max-width:760px){.photo-dialog{width:100vw;max-width:none;max-height:100vh;height:100vh;border-radius:0}.dialog-shell{padding:16px}.photo-prep-grid{grid-template-columns:1fr;gap:12px}.prep-canvas-wrap{min-height:auto;padding:9px}.prep-canvas-wrap canvas{max-height:48vh}.prep-controls{display:grid;grid-template-columns:1fr 1fr;padding:2px;gap:14px}.brush-section,.prep-note{grid-column:1/-1}.prep-note{display:none}.dialog-actions{position:sticky;bottom:0;background:var(--paper);padding-bottom:4px}.editor-toolbar{flex-wrap:wrap}.selected-thread{order:3;width:100%}.history-tools{margin-left:auto}}

.hero-button{margin-top:26px;border:0;border-radius:12px;background:var(--deep);color:white;padding:14px 18px;font-weight:800;cursor:pointer;box-shadow:0 10px 24px rgba(18,60,56,.14)}.hero-button span{display:inline-block;margin-left:8px;transition:transform .18s}.hero-button:hover span{transform:translateX(3px)}.editor-hint{margin:-4px 2px 10px;color:var(--muted);font-size:.72rem;line-height:1.4}.editor-hint[hidden]{display:none}

@media(max-width:520px){.site-header{gap:12px}.site-header .brand{font-size:.94rem}.site-header .quiet-button{font-size:.78rem;white-space:nowrap}.intro{padding-top:28px}.intro h1{font-size:clamp(2.45rem,12vw,3.35rem);line-height:1.02;overflow-wrap:anywhere}.lede{font-size:1rem;line-height:1.55;margin:20px 0 16px}.trust-list{display:grid;gap:7px}.hero-button{width:100%;margin-top:20px}.sample-card{display:none}.studio{padding-top:18px}.view-tabs{display:grid;grid-template-columns:repeat(3,1fr)}.tab{padding:8px 5px;font-size:.7rem}.actions{grid-template-columns:1fr}.actions button{width:100%}}

@media(min-width:761px){.intro{grid-template-columns:minmax(0,1fr) 390px;gap:54px;align-items:start;margin-top:8px;padding-top:24px;padding-bottom:34px}.intro-copy{padding:48px 0 0}.intro h1{font-size:clamp(3.2rem,5vw,4.65rem);max-width:760px}.lede{margin-top:22px}.sample-card{position:relative;width:360px;max-width:100%;height:466px;border-radius:108px 108px 20px 20px;transform:rotate(1deg)}.sample-card>img{width:338px;height:398px;aspect-ratio:auto;object-fit:cover;object-position:center 36%;border-radius:98px 98px 14px 14px}.sample-card>.sample-caption{padding:12px 8px 0}.pattern-peek{position:absolute;left:-72px;bottom:38px;width:186px;padding:8px;background:#fffdf8;border:1px solid #d8ddd7;border-radius:16px;box-shadow:0 16px 36px rgba(20,47,43,.2);transform:rotate(-4deg)}.peek-image{height:105px;border-radius:10px;background-image:linear-gradient(rgba(255,255,255,.13) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.13) 1px,transparent 1px),url('./assets/sample-cat.jpg');background-size:9px 9px,9px 9px,cover;background-position:center;image-rendering:pixelated}.pattern-peek p{margin:8px 5px 3px}.pattern-peek strong,.pattern-peek span{display:block;text-align:left;padding:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-style:normal}.pattern-peek strong{font-size:.72rem;color:var(--deep)}.pattern-peek span{font-size:.64rem;color:var(--muted);margin-top:2px}}

@media(min-width:761px) and (max-width:1050px){.intro{grid-template-columns:minmax(0,1fr) 320px;gap:32px}.intro-copy{padding-top:32px}.sample-card{width:310px;height:420px}.sample-card>img{width:288px;height:352px}.pattern-peek{left:-42px;transform:rotate(-3deg)}}
