@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Libre+Caslon+Display&display=swap');
:root{--paper:#f6f5f0;--ink:#303a31;--muted:#84877c;--line:#e5e5db;--green:#455740;--orange:#cc744e}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input{font:inherit}button,a,input{outline-offset:4px}button{cursor:pointer;color:inherit}button{border:0;background:transparent}button:hover{filter:brightness(.94)}button:focus-visible,a:focus-visible{outline:2px solid var(--orange)}.sidebar{width:218px;position:fixed;height:100vh;border-right:1px solid var(--line);padding:35px 21px;background:#eeefe7;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none;font-family:'Libre Caslon Display',Georgia,serif;font-size:32px;line-height:1}.brand-mark{height:40px;width:37px;background:var(--green);color:#faf7eb;border-radius:12px 12px 18px 5px;text-align:center;font:36px Georgia;position:relative}.brand-mark span{position:absolute;font:22px Georgia;color:#e7ae72;right:3px;top:-4px}.brand-small{font:9px 'DM Sans',sans-serif;letter-spacing:4px;display:block;margin:7px 0 0 2px}.workspace-label{font-size:9px;letter-spacing:1.5px;color:#919688;margin:62px 12px 18px}nav{display:flex;flex-direction:column;gap:7px}nav button{padding:14px 12px;display:flex;gap:12px;align-items:center;border-radius:7px;color:#737b6c;text-align:left;font-size:12px}nav button>span:first-child{font-size:20px;line-height:18px;width:19px}nav button.active{background:#dfe5d6;color:#354b32;font-weight:600}.nav-key{margin-left:auto;font-size:9px;color:#8e9a83}.side-bottom{margin-top:auto;padding:24px 11px 5px}.privacy-dot,.status-dot{display:inline-block;background:#8a9b71;width:6px;height:6px;border-radius:50%;margin-right:7px}.side-bottom>.privacy-dot{display:block;margin-bottom:17px}.side-bottom strong{font:20px/1.2 'Libre Caslon Display',Georgia,serif}.side-bottom p{font-size:11px;color:var(--muted);line-height:1.8}.text-button{font-size:11px;padding:0;color:#68785d}.side-bottom button{font-size:10px;margin-top:10px}.app{margin-left:218px}.topbar{height:93px;border-bottom:1px solid var(--line);padding:0 40px;display:flex;justify-content:space-between;align-items:center;gap:20px}.project{display:flex;gap:14px;align-items:center}.project-icon{border:1px solid #dddeda;padding:9px;border-radius:8px;font-size:21px;color:#7f886f}.project input{display:block;background:transparent;border:0;color:var(--ink);font-size:13px;font-weight:550;width:230px}.project #saveState{font-size:10px;color:#8a8d81;margin:6px 0 0 2px}.top-actions{display:flex;gap:10px;align-items:center}.plain{font-size:11px;padding:11px 12px}.primary{background:var(--green);color:#fff;padding:13px 18px;border-radius:6px;font-size:11px}.primary span{margin-left:20px}main{max-width:1600px;margin:auto;padding:38px 40px 0}.heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:29px}.eyebrow{font-size:8px;letter-spacing:1.8px;color:#8b927f}h1{font:43px/1.1 'Libre Caslon Display',Georgia,serif;font-weight:400;margin:13px 0 9px;letter-spacing:-1px}.heading p{font-size:11px;color:#85897b;margin:0}.upload-button{border:1px solid #d7dacf;border-radius:5px;font-size:11px;padding:12px 14px;white-space:nowrap}.upload-button span{font-size:16px;margin-right:8px}.workbench{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:24px}.canvas-panel{border:1px solid #dedfd4;border-radius:8px;overflow:hidden;background:#fdfcf9;min-width:0}.canvas-toolbar{height:52px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;border-bottom:1px solid var(--line);gap:8px}.study-label{font-size:8px;letter-spacing:1.2px;display:flex;align-items:center}.canvas-actions{display:flex;gap:5px}.canvas-actions button{font-size:10px;color:#7b8372;padding:7px}.canvas-actions button[aria-pressed=true]{background:#dfe5d6;border-radius:4px}.canvas-stage{height:clamp(350px,48vw,630px);padding:30px;display:flex;align-items:center;justify-content:center;position:relative;background:#e9e8df;background-image:radial-gradient(#b9bcac55 .65px,transparent .65px);background-size:7px 7px;overflow:hidden}canvas{display:block;max-height:100%;max-width:100%;object-fit:contain;box-shadow:0 6px 25px #35402d13;cursor:crosshair;touch-action:manipulation}.stage-tag{position:absolute;bottom:12px;left:18px;color:#777c6c;font-size:8px;letter-spacing:1.5px;background:#f6f5f0dd;padding:5px 8px;border-radius:3px}.canvas-footer{height:41px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;color:#898d7f;font-size:9px;gap:15px}.inspector{border:1px solid #dedfd4;border-radius:8px;background:#fbfaf6;padding:21px 20px;align-self:start}.panel-kicker{font-size:8px;letter-spacing:1.5px;color:#8c927f;border-bottom:1px solid var(--line);padding-bottom:18px;display:flex;justify-content:space-between}.panel-kicker>span{color:var(--orange);font-size:16px;line-height:9px}h2{font-size:11px;font-weight:550;margin:0}.section-title{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:13px}.section-title>span{font-size:7px;color:#949987;letter-spacing:.6px}.color-section{margin-top:23px}.picked-color{height:87px;border-radius:5px;background:#a5a77b;display:flex;align-items:flex-end;justify-content:space-between;padding:12px;color:#fff;font-size:10px;letter-spacing:.8px}.picked-color button{font-size:18px;line-height:16px;color:inherit}.color-meta{display:flex;justify-content:space-between;color:#7e8575;font-size:8px;margin-top:9px}.micro{font-size:9px;line-height:1.7;color:#919684}.palette-section{margin-top:23px;padding-top:21px;border-top:1px solid var(--line)}.palette{display:grid;grid-template-columns:repeat(6,1fr);gap:5px;margin-bottom:12px}.swatch{height:45px;border-radius:4px;position:relative;border:1px solid #00000008}.swatch:hover{transform:translateY(-3px)}.palette-section>.text-button{font-size:9px;display:flex;justify-content:space-between;width:100%;text-align:left}.studio-note{display:flex;gap:12px;background:#f0eee3;padding:14px 12px;margin-top:25px;border-radius:5px}.studio-note>span{color:#b3834e;font-size:20px}.studio-note strong{font:18px 'Libre Caslon Display',Georgia,serif}.studio-note p{font-size:9px;color:#8a8c7a;line-height:1.8;margin:7px 0 0}.below{display:flex;gap:22px;align-items:center;padding:17px 0 25px;font-size:9px;color:#8c9280}.below>span{margin-right:auto}.below button{font-size:9px}footer{margin:0 40px;padding:22px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;font-size:8px;letter-spacing:1.6px;color:#959a89}footer span:first-child{font:14px 'Libre Caslon Display',Georgia,serif;letter-spacing:0;color:#8e9582}footer span:last-child{font-size:7px}.control-box{padding-top:20px}.control-box p{font-size:10px;line-height:1.8;color:#868e7a}.control-box h2{margin-bottom:12px}.control-box label{font-size:10px;display:flex;align-items:center;justify-content:space-between;margin-top:14px}.control-box input[type=range]{width:100%;accent-color:#5d7250;margin:11px 0 3px}.control-box input[type=checkbox]{accent-color:#5d7250}.control-box select{width:100%;padding:8px;background:#f5f4ee;border:1px solid var(--line);border-radius:4px;color:var(--ink);font-size:10px;margin-top:8px}.control-box .quick{display:flex;gap:6px;margin-top:13px}.quick button{background:#eeeee5;border:1px solid var(--line);font-size:9px;padding:7px 9px;border-radius:4px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#toast{position:fixed;bottom:27px;left:50%;transform:translateX(-50%);background:#34442e;color:white;padding:12px 20px;border-radius:7px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .2s;z-index:10}#toast.show{opacity:1}dialog{border:1px solid var(--line);border-radius:12px;background:#fbfaf5;color:var(--ink);max-width:490px;padding:40px;box-shadow:0 20px 120px #0003}dialog::backdrop{background:#26362466;backdrop-filter:blur(3px)}dialog h2{font:32px 'Libre Caslon Display',Georgia,serif;margin-top:18px}dialog p{font-size:12px;line-height:1.8;color:#74806b}dialog a{color:#45603c;font-size:12px}#closeAbout{position:absolute;right:15px;top:10px;font-size:24px}@media(min-width:1600px){.canvas-stage{height:650px}}@media(max-width:1150px){.sidebar{width:180px;padding:30px 15px}.app{margin-left:180px}.topbar{padding:0 25px}.top-actions{gap:0}.project input{width:180px}main{padding:30px 25px 0}.workbench{gap:16px;grid-template-columns:minmax(0,1fr) 250px}.inspector{padding:20px 15px}h1{font-size:37px}.canvas-stage{padding:20px;height:480px}.canvas-toolbar{padding:0 10px}.study-label{font-size:7px;letter-spacing:.4px}.canvas-footer{padding:0 10px}footer{margin:0 25px}}@media(max-width:900px){.sidebar{position:relative;width:100%;height:auto;padding:16px 22px;display:block;border-bottom:1px solid var(--line);border-right:0}.brand{font-size:26px}.brand-mark{height:34px;width:32px;font-size:31px}.brand-small{font-size:7px;margin-top:5px}.workspace-label,.side-bottom{display:none}nav{flex-direction:row;margin-top:20px;overflow:auto;gap:5px}nav button{padding:10px 12px;white-space:nowrap}.nav-key{display:none}.app{margin-left:0}.topbar{height:80px}.workbench{grid-template-columns:minmax(0,1fr) 260px}.canvas-stage{height:450px}.heading .eyebrow{font-size:7px}.canvas-footer #dimensions{display:none}.heading p{max-width:380px;line-height:1.6}.primary{padding:11px}.primary span{margin-left:10px}}@media(max-width:650px){.sidebar{padding:15px 16px}nav button{font-size:10px;padding:9px}.topbar{padding:14px 17px;gap:7px;height:auto;align-items:flex-start}.project-icon{display:none}.project input{width:145px;font-size:11px}.project #saveState{font-size:8px;max-width:135px;line-height:1.5}.top-actions{flex-wrap:wrap;justify-content:flex-end}.plain{font-size:9px;padding:5px 8px}.primary{font-size:9px;padding:9px}.top-actions .primary{width:100%;margin-top:5px}main{padding:25px 16px 0}.heading{display:block;margin-bottom:20px}h1{font-size:37px}.upload-button{margin-top:20px}.workbench{grid-template-columns:1fr}.canvas-stage{height:420px;padding:20px}.inspector{padding:22px}.color-section{margin-top:20px}.picked-color{height:75px}.palette{gap:9px}.swatch{height:50px}.below{flex-wrap:wrap;gap:15px}.below>span{width:100%;font-size:8px}footer{margin:0 16px;font-size:7px;gap:10px}footer span:first-child{display:none}.canvas-footer{font-size:8px}dialog{margin:20px;padding:30px}}
/* Keep the entire reference in view on typical laptop displays. */
@media(min-width:901px){.canvas-stage{height:clamp(330px,calc(100vh - 330px),620px)}}
.canvas-footer{font-size:10px}.control-box p,.micro{font-size:11px}.section-title h2{font-size:12px}.color-meta{font-size:9px}.studio-note p{font-size:10px}.study-label{font-size:9px}.eyebrow{font-size:9px}.canvas-actions button{font-size:11px}

.brand-small{font-size:7px;letter-spacing:1.3px}.brand-mark{font-style:italic}
/* Studio edition: focused tools, project library, and reference navigation. */
[hidden]{display:none!important}.sidebar{overflow-y:auto}.workspace-label{margin-top:28px;margin-bottom:12px}nav{gap:3px}nav button{padding-top:10px;padding-bottom:10px}.library-button{margin:0 0 12px;text-align:left;padding:11px 12px;border:1px solid #d9ddce;border-radius:6px;color:#53664b;font-size:12px}.side-bottom{padding-top:26px}.side-bottom strong{font-size:19px}.reference-tools{display:flex;align-items:center;flex-wrap:wrap;gap:3px;padding:10px 12px;border-top:1px solid var(--line);background:#faf9f4}.reference-tools button{font-size:10px;padding:6px 7px;border-radius:4px}.reference-tools button[aria-pressed=true]{background:#dfe5d6}.reference-tools button:disabled{opacity:.35;cursor:default}.reference-tools output{min-width:33px;text-align:center;font-size:10px;color:#7b856e}.pair-toggle{display:flex;align-items:center;gap:4px;font-size:10px;margin-left:auto}.pair-toggle input{accent-color:#455740}.canvas-stage{touch-action:pan-y}.canvas-stage.panning{touch-action:none;cursor:grab}.canvas-stage.panning canvas{cursor:grab}#imagePair{width:100%;height:100%;display:flex;align-items:center;justify-content:center;gap:18px;transform-origin:center;will-change:transform}#studyPane,#referencePane{display:flex;align-items:center;justify-content:center;position:relative;height:100%;width:100%;min-width:0}#imagePair canvas{max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain}#imagePair.paired #studyPane,#imagePair.paired #referencePane{width:calc(50% - 9px)}#referencePane>span,#studyCaption{position:absolute;bottom:0;left:50%;transform:translateX(-50%);font-size:8px;letter-spacing:1px;background:#f6f5f0e6;padding:4px 7px;white-space:nowrap}.project-notes{margin-top:22px;display:grid;grid-template-columns:110px 1fr;align-items:start;gap:8px 20px}.project-notes>label{font-size:9px;letter-spacing:1.3px;color:#828b76;padding-top:11px}.project-notes textarea{width:100%;resize:vertical;min-height:70px;border:1px solid var(--line);border-radius:5px;padding:12px;background:#fbfaf6;color:#43533c;font:12px/1.7 'DM Sans',sans-serif}.project-notes>span{grid-column:2;font-size:9px;color:#8e967f}.secondary{border:1px solid #d7ddce;border-radius:5px;padding:10px 12px;font-size:11px;background:#f0f2e8}.full{width:100%;margin:9px 0}.wide-dialog{width:min(900px,94vw);max-width:900px;max-height:88vh;padding:30px}.dialog-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.dialog-head h2{margin:0}.dialog-head .eyebrow{margin-bottom:10px}.dialog-head>button{font-size:25px}.dialog-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}dialog input[type=search]{margin-left:auto;border:1px solid var(--line);padding:10px;border-radius:5px;background:#f6f5f0;max-width:100%}.project-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px;margin-top:20px}.project-card{border:1px solid var(--line);border-radius:7px;padding:11px;background:#f6f5ed;min-width:0}.project-card img{height:155px;width:100%;object-fit:cover;border-radius:4px}.project-card h3{font-size:13px;font-weight:550;margin:12px 0 6px;overflow-wrap:anywhere}.project-card>p{font-size:10px;margin:0 0 10px}.card-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.card-actions .text-button{font-size:10px}.archive-toggle{display:flex;align-items:center;gap:8px;font-size:10px;color:#7e8871;margin-top:15px}.archive-toggle input{accent-color:#526949}.empty-small{padding:18px;border:1px dashed #dce0d2;color:#7e8871;font-size:11px;line-height:1.8;border-radius:5px;margin-top:15px}.control-box details{border-block:1px solid var(--line);padding:15px 0;margin-top:17px}.control-box summary{font-size:11px;cursor:pointer;color:#57674e}.control-box h3{font-size:12px;font-weight:550;margin-top:22px}.regions{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;margin-top:12px}.region-cell{text-align:center;padding:13px 3px;border-radius:3px;font-size:9px;line-height:1.3;min-width:0}.paint-list{margin:14px 0}.paint-row{display:flex;align-items:center;gap:7px;padding:12px 0;border-bottom:1px solid var(--line)}.paint-row input{accent-color:#526949;width:13px}.paint-chip{width:23px;height:30px;border-radius:3px;flex-shrink:0}.paint-row>div{flex:1;min-width:0}.paint-row strong{font-size:10px;font-weight:550;display:block;overflow-wrap:anywhere}.paint-row small{font-size:8px;color:#87907b;display:block;margin-top:4px}.paint-row button{font-size:8px}.mix-section{border-top:1px solid var(--line);margin-top:20px}.estimate-label{font-size:8px!important;letter-spacing:1px;color:#a37a54!important}.mix-card{padding:12px;border:1px solid #e2e4d8;border-radius:5px;margin-bottom:10px}.mix-preview{height:30px;border-radius:3px}.mix-card p{font-size:10px;line-height:1.6}.mix-card button{font-size:10px}.recipe-card{border-top:1px solid var(--line);padding:12px 0}.recipe-card strong{font-size:10px;line-height:1.7;display:block;font-weight:500}.recipe-card textarea{width:100%;padding:8px;background:#f4f4eb;border:1px solid var(--line);border-radius:4px;font:10px/1.7 'DM Sans',sans-serif;margin-top:9px;resize:vertical}.inspector .micro{line-height:1.8}#cropDialog{max-height:90vh;overflow:auto;width:470px;padding:25px}#cropPreview{width:auto;height:auto;max-height:210px;max-width:100%;margin:15px auto;box-shadow:none}#cropDialog label,#paintForm label{font-size:11px;display:flex;justify-content:space-between;align-items:center;margin-top:12px}#cropDialog select,#paintForm input:not([type=color]){width:100%;border:1px solid var(--line);border-radius:4px;padding:10px;background:#f5f4ed;color:var(--ink);font-size:12px;margin-top:7px}#cropDialog input[type=range]{width:100%;accent-color:#536949;margin-top:6px}#cropDialog .primary{margin-top:17px}#paintDialog{max-height:90vh;overflow:auto;width:450px;padding:28px}#paintForm input[type=color]{margin-top:9px;width:100%;height:45px;border:1px solid var(--line);padding:3px;background:transparent;border-radius:4px}#paintForm .primary{margin-top:20px;width:100%}.canvas-footer{height:auto;min-height:41px;padding-block:10px;line-height:1.6}#resetEdit{color:#9a724b}
@media(min-width:901px){.canvas-stage{height:clamp(330px,calc(100vh - 390px),620px)}}
@media(max-height:850px) and (min-width:901px){.side-bottom p{display:none}.side-bottom{padding-top:20px}.workspace-label{margin-top:25px}.brand{font-size:29px}nav button{padding-block:9px}.side-bottom>.privacy-dot{margin-bottom:8px}}
@media(max-width:900px){.library-button{position:absolute;right:22px;top:17px;font-size:11px}.sidebar{overflow:visible}nav{margin-top:20px}.workspace-label{display:none}.canvas-stage{height:420px}.project-notes{grid-template-columns:90px 1fr}.reference-tools{gap:3px}.pair-toggle{margin-left:0}}
@media(max-width:650px){.library-button{right:16px;padding:9px}.canvas-stage{height:350px;padding:15px}#imagePair{gap:8px}#imagePair.paired #studyPane,#imagePair.paired #referencePane{width:calc(50% - 4px)}.reference-tools button{font-size:10px;padding:7px}.project-notes{grid-template-columns:1fr;gap:8px}.project-notes>span{grid-column:1}.project-list{grid-template-columns:1fr}.wide-dialog{padding:20px}.dialog-actions input[type=search]{width:100%;margin-left:0}.canvas-toolbar{padding:0 10px}.study-label{font-size:8px}.canvas-actions button{font-size:10px}#referencePane>span,#studyCaption{font-size:6px;letter-spacing:.3px}.region-cell{font-size:11px}.paint-row strong{font-size:12px}.paint-row small{font-size:10px}.paint-row button{font-size:10px}}
.canvas-panel{align-self:start}@media(min-width:901px){.canvas-panel{position:sticky;top:18px}}
.recipe-card label{display:block;font-size:9px;color:#7e8871;margin-top:10px}.recipe-card input{display:block;width:100%;border:1px solid var(--line);border-radius:4px;padding:8px;background:#f4f4eb;color:#43533c;font:11px monospace;margin-top:6px}.recorded{background:#eaf0e2}.recorded p:first-of-type{font-size:8px;letter-spacing:.5px;color:#59724b}
