@font-face{font-family:Manrope;src:url("manrope-latin.woff2") format("woff2");font-weight:200 800;font-display:swap}
:root{color-scheme:light;--site:#f6f4ef;--card:#fffefc;--ink:#252621;--muted:#5c5d56;--line:#dedfd6;--green:#314b3b;--light-green:#edf3e9;--accent:#9f4129;--accent-hover:#84351f;--soft:#efede5;--shadow:0 2px 3px #2e2e2010;font:15px/1.5 Manrope,system-ui,sans-serif}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;color:var(--ink);background:var(--site);min-width:320px}
h1,h2,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button,select{cursor:pointer}
button:disabled{cursor:default;opacity:.52}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #226b62;outline-offset:3px}
svg{width:19px;height:19px;flex:none}
a{color:inherit}
.shell{width:min(1380px,calc(100% - 80px));margin-inline:auto}
.site-header{background:#faf9f5;border-bottom:1px solid var(--line)}
.header-inner{min-height:68px;display:flex;justify-content:space-between;align-items:center}
.brand{text-decoration:none;display:inline-flex;align-items:center;gap:10px;font-size:21px;font-weight:800;letter-spacing:-.055em}
.brand-icon{background:var(--green);color:#f8f4ea;border-radius:10px;width:37px;height:37px;display:grid;place-items:center}
.brand-icon svg{width:23px;height:23px}
.brand-second{font-weight:650;color:#46594a;margin-left:4px}
.header-actions{display:flex;align-items:center;gap:10px}
.quiet{border:0;background:transparent;color:var(--muted);padding:0;display:inline-flex;align-items:center;gap:7px;font-weight:750}
.quiet:hover{color:var(--ink)}
.header-button{padding:8px 11px;border-radius:8px;font-size:13px}
.header-button:hover,.icon-button:hover{background:var(--soft)}
.page-heading{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:37px 0 26px}
.page-heading h1{font-weight:800;font-size:clamp(34px,4vw,54px);letter-spacing:-.071em;line-height:1.07}
.page-heading p{margin-top:8px;color:var(--muted)}
.workspace{display:grid;grid-template-columns:minmax(330px,.88fr) minmax(0,1.72fr);gap:19px;align-items:start}
.panel{background:var(--card);border:1px solid var(--line);border-radius:16px;min-width:0;box-shadow:var(--shadow)}
.inputs{overflow:hidden}
.mode-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f5f4ef;border-bottom:1px solid var(--line);padding:7px;gap:3px}
.mode-nav button{border:1px solid transparent;background:none;border-radius:9px;font-weight:800;font-size:12px;padding:10px 4px;display:flex;align-items:center;justify-content:center;gap:6px;line-height:1.3;color:var(--muted)}
.mode-nav button svg{width:17px;height:17px}
.mode-nav button[aria-pressed=true]{color:var(--green);border-color:var(--line);background:var(--card);box-shadow:0 1px 2px #3331}
.mode-nav button[aria-pressed=false]:hover{background:#ebeae3;color:var(--ink)}
.panel-body{padding:21px 21px 19px;display:grid;gap:17px}
h2{font-size:19px;line-height:1.25;letter-spacing:-.045em;font-weight:800}
.field-intro{font-size:13px;color:var(--muted);margin-top:5px}
.settings{padding-top:15px;border-top:1px solid #e7e6df}
.two-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.field{display:grid;gap:5px;min-width:0}
.field label{font-size:12px;font-weight:800}
input:not([type=checkbox],[type=range],[type=file]),select,textarea{width:100%;border:1px solid #d7d9d1;background:#fffefa;border-radius:8px;padding:8px 10px}
input:not([type=checkbox],[type=range],[type=file]),select{height:40px}
select{padding-right:8px}
textarea{resize:vertical;min-height:116px;margin-top:11px}
.number-field{position:relative}
.number-field input:not([type=checkbox],[type=range],[type=file]){padding-right:46px}
.number-field span{position:absolute;right:10px;top:11px;pointer-events:none;font-size:12px;color:var(--muted)}
.drop-zone{border:1.5px dashed #b5bbaa;border-radius:12px;background:#f4f5ed;transition:background .15s,border-color .15s}
.drop-zone:hover,.drop-zone.drag{background:#e9efe2;border-color:#657f62}
.drop-button{width:100%;border:0;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:151px;padding:14px;gap:6px;text-align:center;border-radius:12px}
.drop-button strong{font-weight:800;font-size:13px}
.drop-button>span:last-child{font-size:11px;color:var(--muted)}
.upload-icon{width:38px;height:38px;display:grid;place-items:center;background:#e4eadc;color:var(--green);border:1px solid #d9e2d2;border-radius:10px;margin-bottom:4px}
.upload-icon svg{width:20px;height:20px}
.panel-bottom{padding:15px 21px 17px;border-top:1px solid #e7e6df;background:#fdfcf8}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;border:1px solid transparent;border-radius:9px;padding:9px 13px;font-size:13px;font-weight:800;min-height:41px}
.button svg{width:17px;height:17px}
.button-light{background:#f8f7f2;border-color:var(--line);color:var(--green)}
.button-light:hover{background:#edece4}
.button-dark{background:var(--green);border-color:var(--green);color:#fffefa}
.button-dark:not(:disabled):hover{background:#243b2d}
.button-primary{width:100%;min-height:45px;background:var(--accent);border-color:var(--accent);color:#fffaf4;justify-content:flex-start}
.button-primary:last-of-type svg:last-child,.button-primary svg:last-child{margin-left:auto}
.button-primary:not(:disabled):hover{background:var(--accent-hover)}
.button-primary:disabled{opacity:.64}
.button-small{min-height:33px;padding:5px 8px;font-size:11px}
.button-small svg,.text-button svg{width:15px;height:15px}
.field-note{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.55}
.panel-bottom>#access-open{margin-top:8px}
.notice{font-size:12px;background:#f8eee4;padding:8px 10px;border:1px solid #eed7c6;border-radius:8px;margin-top:10px;color:#723b2d}
.notice[data-tone=success]{background:#eaf1e7;color:#314b3b;border-color:#d7e3d5}
.notice[data-tone=info]{background:#f1f0e8;color:var(--muted);border-color:var(--line)}
.row-between{display:flex;align-items:center;justify-content:space-between;gap:10px}
.output-header{padding:15px 16px 14px}
.output-header p{font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}
.output-header>div{min-width:0}
select.printer-select{width:auto;max-width:50%;height:35px;font-size:11px;font-weight:750;background:#f7f6ef}
#preview{position:relative;isolation:isolate;display:grid;min-height:360px;height:clamp(350px,calc(100vh - 445px),500px);margin:0 10px;overflow:hidden;border:1px solid #e4e1d7;border-radius:12px;background:radial-gradient(ellipse at 45% 31%,#faf8ef,#ebe8df 72%,#e3e0d5)}
#viewport{position:absolute;inset:0;display:grid;place-items:center;color:var(--muted);padding:0;text-align:center}
#viewport canvas{width:100%;height:100%;display:block;touch-action:none}
#viewport.no-webgl{padding:55px}
.view-tools{position:absolute;z-index:1;top:11px;right:11px;display:flex;gap:3px;padding:3px;background:#fdfcf7;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}
.icon-button{width:32px;height:32px;display:grid;place-items:center;flex:none;border-radius:6px}
.icon-button[aria-pressed=true]{background:#dce8da;color:var(--green)}
.viewport-note{position:absolute;pointer-events:none;bottom:11px;left:50%;transform:translateX(-50%);padding:3px 8px;background:#fdfcf3b8;border-radius:5px;font-size:10px;color:#4b5146;white-space:nowrap}
.view-axis{position:absolute;bottom:12px;left:15px;color:#395844;font-size:11px;font-weight:800;display:grid;grid-template-columns:13px 12px;gap:0 3px;pointer-events:none}
.view-axis b{grid-column:span 2;color:#454f7a}
.view-axis span{color:#9d4327}
.view-axis i{font-style:normal}
.print-details{padding:11px 16px 10px}
.summary{flex-wrap:wrap}
.size-summary{display:flex;align-items:center;gap:7px;font-size:13px;font-weight:800;font-variant-numeric:tabular-nums}
.size-summary svg{color:var(--muted)}
.mesh-status{font-size:11px;font-weight:800;padding:4px 8px;border:1px solid #d8e4d3;border-radius:7px;background:#eef3e9;color:var(--green)}
.mesh-status[data-tone=warning]{color:#723b2d;background:#f8eee4;border-color:#eed7c6}
.print-actions{display:flex;align-items:center;flex-wrap:wrap;gap:5px 14px;margin-top:6px;min-height:26px}
.text-button{font-size:11px;line-height:1.45}
.text-button:hover{text-decoration:underline;text-underline-offset:3px}
.inspect-button{margin-left:auto}
#resize-field{display:flex;gap:5px;align-items:center;font-size:11px;color:var(--muted)}
#resize-field input{height:25px;width:70px;font-size:11px;padding:2px 5px}
.output-footer{padding:11px 16px;border-top:1px solid #e7e6df;background:#fdfcf8;border-radius:0 0 16px 16px}
.output-footer p{font-size:11px;color:var(--muted)}
.export-actions{display:flex;gap:6px}
.export-actions .button{min-height:35px;padding:5px 9px;font-size:11px}
.footer{margin:14px 0 19px;font-size:11px;color:var(--muted)}
.photo-nav{margin-bottom:6px}
.photo-tabs{display:flex;gap:4px;flex:1;flex-wrap:wrap}
.photo-tabs button,.tool-grid button,.photo-segments button{border:1px solid var(--line);border-radius:7px;background:#faf9f5;color:var(--muted);font-size:11px;font-weight:800;padding:4px 7px}
.photo-tabs button[aria-pressed=true],.tool-grid button[aria-pressed=true],.photo-segments button[aria-pressed=true]{background:var(--light-green);border-color:#bfd2b9;color:var(--green)}
.photo-frame{position:relative;display:grid;place-items:center;min-height:110px;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:repeating-conic-gradient(#e6e8e0 0% 25%,#f9faf6 0% 50%) 50% / 21px 21px}
#photo-canvas{display:block;max-width:100%;max-height:230px;object-fit:contain;touch-action:pan-y}
#photo-canvas.brushing{cursor:crosshair;touch-action:none}
.photo-segments{position:absolute;bottom:5px;right:5px;display:flex;gap:3px}
.cutout-controls,.brush-controls{display:flex;align-items:center;gap:5px 10px;flex-wrap:wrap;margin-top:8px}
.brush-controls input{width:67px;accent-color:var(--green)}
.brush-controls button[aria-pressed=true]{background:var(--light-green);color:var(--green);padding:3px 5px;border-radius:4px}
.check-row{display:flex;align-items:center;gap:6px;margin-top:7px;font-size:12px;font-weight:650}
.check-row input{accent-color:var(--green);margin:2px 3px 2px 0;width:16px;height:16px}
.text-meta{font-size:11px;color:var(--muted);margin-top:5px}
.tool-grid{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}
.tool-grid button{padding:6px 8px}
.tool-intro{margin-top:9px}
#name-fields{margin-top:10px}
.active-job{margin-top:10px}
.active-job progress{accent-color:var(--green);width:100%;height:8px}
.active-job p{font-size:11px;color:var(--muted)}
dialog{width:min(500px,calc(100% - 24px));max-height:calc(100% - 24px);overflow:auto;border:1px solid var(--line);border-radius:14px;padding:0;color:var(--ink);background:var(--card);box-shadow:0 15px 60px #212b2636}
dialog::backdrop{background:#202a247d}
.dialog-header{padding:12px 16px;border-bottom:1px solid var(--line)}
.dialog-body{padding:15px 17px;display:grid;gap:10px}
.dialog-body p{font-size:13px;color:var(--muted)}
.dialog-body>.button{justify-self:start}
.inspection{margin:0;display:grid;grid-template-columns:1fr auto;gap:7px 14px;font-size:13px}
.inspection dd{margin:0;text-align:right;font-weight:800}
.job-row{width:100%;border:1px solid var(--line);background:#f7f7f1;border-radius:8px;padding:8px;font-size:13px;text-align:left}
.job-row:hover{background:var(--light-green)}
.job-row small{display:block;color:var(--muted);margin-top:4px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1080px){.shell{width:calc(100% - 44px)}.workspace{grid-template-columns:minmax(305px,.95fr) minmax(0,1.35fr)}.panel-body,.panel-bottom{padding-inline:14px}}
@media(max-width:750px){.shell{width:calc(100% - 28px)}.workspace{grid-template-columns:1fr}.page-heading{padding:25px 0 17px;align-items:start}.page-heading h1{font-size:37px}.page-heading p{font-size:13px}.header-inner{min-height:58px}.header-actions{gap:0}.header-button{padding:7px}.example-button{font-size:11px;padding:7px;min-height:34px;margin-top:2px}.example-button svg{display:none}#preview{height:390px;min-height:300px}}
@media(max-width:440px){.shell{width:calc(100% - 22px)}.header-button span{font-size:11px}.header-button svg{width:16px;height:16px}.brand{font-size:19px}.brand-icon{width:32px;height:32px}.page-heading h1{font-size:32px}.page-heading p{max-width:230px}.page-heading{gap:8px}.button{white-space:normal}#preview{min-height:280px;height:315px}.output-header,.output-footer,.print-details{padding-inline:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}
.sample-photo{margin-top:7px}
