@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Righteous&display=swap');

:root{--ink:#172322;--paper:#eef3ef;--surface:#f8fbf8;--line:#cbd7cf;--muted:#5f6f68;--forest:#195743;--green:#56be7e;--black:#232525;--crystal:#dff5f2;--accent:#f3b945;--danger:#b63b3b}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:Manrope,system-ui,sans-serif}.topbar{height:68px;display:flex;justify-content:space-between;align-items:center;padding:0 clamp(20px,5vw,76px);border-bottom:1px solid var(--line);background:#f8fbf8}.brand{color:var(--ink);text-decoration:none;font-weight:800;letter-spacing:-.04em;display:flex;align-items:center;gap:10px}.brand-mark{font-family:Righteous,sans-serif;font-weight:400;letter-spacing:-.08em;background:var(--forest);color:white;padding:6px 8px;border-radius:5px}.utility-button,.text-button,.secondary-button,.close-button{background:transparent;border:0;color:var(--forest);font:600 13px Manrope;cursor:pointer}.utility-button{border:1px solid var(--line);padding:9px 12px;border-radius:5px}.layout{max-width:1360px;margin:auto;padding:52px clamp(20px,5vw,76px) 76px}.intro{max-width:720px;margin-bottom:38px}.eyebrow{color:var(--forest);font:500 11px 'DM Mono',monospace;letter-spacing:.12em;margin:0 0 11px}.intro h1{font:400 clamp(40px,6vw,78px)/.98 Righteous,sans-serif;letter-spacing:-.045em;margin:0 0 17px}.intro>p{color:var(--muted);font-size:17px;line-height:1.55;margin:0;max-width:600px}.workspace{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);gap:28px;align-items:start}.controls,.quote-panel{background:var(--surface);border:1px solid var(--line);border-radius:8px}.controls{padding:27px}.section-heading{display:flex;gap:11px;align-items:center;margin:0 0 16px}.section-heading span{font:500 11px 'DM Mono',monospace;color:#fff;background:var(--forest);padding:5px;border-radius:4px}.section-heading h2{font-size:15px;margin:0}.layer-title{margin-top:31px}.layer-title .text-button{margin-left:auto}.field-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:15px}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:700;color:#34423b}input,select{min-width:0;border:1px solid var(--line);border-radius:5px;background:#fff;padding:11px 10px;color:var(--ink);font:500 14px Manrope}input:focus,select:focus,button:focus-visible{outline:3px solid #9edfc0;outline-offset:2px}.hint{font-size:12px;color:var(--muted);line-height:1.5;margin:-5px 0 13px}.layer-row{display:grid;grid-template-columns:1.4fr 1fr 1fr auto;gap:10px;padding:12px 0;border-bottom:1px solid #dce5de}.layer-row label{font-size:11px}.remove-layer{align-self:end;padding:10px 6px;color:var(--danger);font-size:18px}.upload-box{margin-top:28px;padding:17px;border:1px dashed #9db5a6;border-radius:7px;background:#f1f7f2;display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center}.upload-box strong{font-size:13px}.upload-box p{font-size:11px;color:var(--muted);margin:4px 0 0}.upload-action{background:var(--forest);color:#fff;border-radius:5px;padding:10px 11px;cursor:pointer;font-size:11px;text-align:center}.upload-action input{position:absolute;width:1px;height:1px;opacity:0}.upload-box output{grid-column:1/-1;font:11px 'DM Mono',monospace;color:var(--muted)}.quote-panel{overflow:hidden;position:sticky;top:18px}.plate-preview{height:390px;position:relative;background:linear-gradient(145deg,#dbe6df,#b9cec1);overflow:hidden;display:flex;align-items:center;justify-content:center}.preview-note{position:absolute;top:18px;left:18px;font:10px 'DM Mono',monospace;color:#416251;letter-spacing:.1em}.preview-layers{position:relative;width:56%;height:70%}.preview-layer{position:absolute;inset:calc(var(--depth) * 7px) calc(var(--depth) * -5px) calc(var(--depth) * -7px) calc(var(--depth) * 5px);border:1px solid rgba(20,35,30,.32);border-radius:3px;box-shadow:2px 4px 0 rgba(16,45,32,.12)}.preview-text{z-index:5;position:absolute;text-align:center;font:400 clamp(17px,2vw,27px)/1.05 Righteous,sans-serif;letter-spacing:.03em;color:#fff;text-shadow:0 1px 3px rgba(0,0,0,.6)}.preview-text small{font:500 9px 'DM Mono',monospace;letter-spacing:.15em}.estimate{padding:24px}.price{display:flex;align-items:baseline;gap:7px;margin:4px 0 22px}.price span{font:500 15px 'DM Mono',monospace;color:var(--forest)}.price strong{font:700 40px/1 Manrope;letter-spacing:-.06em}.estimate dl{border-top:1px solid var(--line);margin:0}.estimate dl div{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid var(--line);font-size:12px}.estimate dt{color:var(--muted)}.estimate dd{margin:0;font-weight:700}.estimate-note{font-size:11px;color:var(--muted);line-height:1.45;margin:17px 0}.primary-button{width:100%;background:var(--forest);color:#fff;border:0;border-radius:5px;padding:13px;font:700 13px Manrope;cursor:pointer}.primary-button:hover{background:#124634}dialog{border:1px solid var(--line);border-radius:9px;color:var(--ink);padding:25px;width:min(720px,calc(100% - 30px));box-shadow:0 30px 80px #18291f55}dialog::backdrop{background:#18291f88}.dialog-header{display:flex;justify-content:space-between;align-items:start;margin-bottom:20px}.dialog-header h2{font:400 27px Righteous,sans-serif;margin:0}.close-button{font-size:29px;line-height:.7;color:var(--ink)}.setting-row{display:grid;grid-template-columns:1fr 145px;gap:16px;align-items:end;padding:11px 0;border-bottom:1px solid var(--line)}.setting-row strong{font-size:13px}.setting-row span{font:11px 'DM Mono',monospace;color:var(--muted)}.cost-fields{margin-top:18px}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.dialog-actions .primary-button{width:auto}.secondary-button{padding:12px}pre{white-space:pre-wrap;background:#f1f6f2;padding:15px;border-radius:5px;font:12px/1.6 'DM Mono',monospace}@media(max-width:850px){.workspace{grid-template-columns:1fr}.quote-panel{position:static}.plate-preview{height:330px}}@media(max-width:560px){.layout{padding-top:32px}.controls{padding:19px}.field-grid,.layer-row{grid-template-columns:1fr}.layer-row .remove-layer{align-self:auto;text-align:right}.upload-box{grid-template-columns:1fr}.upload-action{width:fit-content}.topbar{height:60px}.utility-button{font-size:11px}}
.artwork-preview{margin-top:22px;padding-top:21px;border-top:1px solid var(--line)}.artwork-preview h3{margin:0;font-size:14px}.artwork-canvas{height:190px;margin-top:12px;border:1px solid #a5bbb0;border-radius:6px;background:#173f32;display:flex;align-items:center;justify-content:center;overflow:hidden}.artwork-canvas p{max-width:220px;text-align:center;color:#b8d1c3;font:11px/1.5 'DM Mono',monospace}.artwork-canvas svg,.artwork-canvas img{width:100%;height:100%;object-fit:contain}.artwork-canvas polyline{fill:none;stroke-width:1.5;vector-effect:non-scaling-stroke;stroke-linecap:round;stroke-linejoin:round}
.detected-layers{margin-top:21px;padding:17px;border:1px solid #b9d0bf;border-radius:7px;background:#f3faf4}.detected-layers h3{font-size:14px;margin:0}.detected-layer-row{display:grid;grid-template-columns:1.4fr .8fr 1fr .7fr;gap:8px;padding:10px 0;border-bottom:1px solid #d2e2d5;align-items:end}.detected-layer-row:last-child{border-bottom:0}.detected-layer-row label{font-size:10px}.detected-layer-name{font:500 11px 'DM Mono',monospace;word-break:break-word}.detected-length{font:600 12px 'DM Mono',monospace;white-space:nowrap}.material-choice{display:flex;gap:6px;align-items:center}.material-choice select{width:100%;padding:8px}.material-swatch{width:18px;height:18px;flex:none;border:1px solid #597162;border-radius:3px;box-shadow:inset 0 0 0 1px #ffffff80}.price-warning{margin:13px 0 0;color:#8b5315;background:#fff2d1;padding:9px;border-radius:4px;font-size:11px;line-height:1.4}@media(max-width:560px){.detected-layer-row{grid-template-columns:1fr 1fr}.detected-layer-name{grid-column:1/-1}}
.plate-preview{background:radial-gradient(circle at 50% 45%,#e6f3ea,#abc1b5);perspective:900px}.preview-layers{width:72%;height:65%;transform-style:preserve-3d;transform:rotateX(52deg) rotateZ(-13deg)}.preview-layer{left:var(--x);top:var(--y);width:var(--w);height:var(--h);inset:auto;transform:translateZ(calc(var(--z) * 8px));background-color:var(--color);background-size:cover;background-position:center;border:1px solid rgba(20,35,30,.5);box-shadow:4px 6px 0 color-mix(in srgb,var(--color) 55%,#172322),0 12px 16px rgba(16,45,32,.2)}.image-choice{position:relative;justify-content:center;min-height:34px;border:1px dashed #8eaa9a;border-radius:4px;color:var(--forest);cursor:pointer}.image-choice input{position:absolute;inset:0;opacity:0;cursor:pointer}.image-choice span{font-size:10px;text-align:center;padding:7px 3px}.detected-layer-row{grid-template-columns:1.3fr .75fr 1fr .9fr .65fr}@media(max-width:560px){.detected-layer-row{grid-template-columns:1fr 1fr}.image-choice{min-height:42px}}
.plate-preview{cursor:zoom-in;isolation:isolate}.plate-preview:before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background:radial-gradient(ellipse at 31% 16%,#ffffffaa 0 4%,transparent 34%),linear-gradient(118deg,transparent 46%,#ffffff2b 51%,transparent 57%);mix-blend-mode:screen}.plate-preview.wall-clara{background:radial-gradient(circle at 35% 20%,#fff,#d6ded9 58%,#afbbb4)}.plate-preview.wall-cimento{background:radial-gradient(circle at 30% 25%,#cdd2ce,#8e9690 70%),repeating-linear-gradient(17deg,#ffffff08 0 2px,transparent 2px 7px)}.plate-preview.wall-madeira{background:linear-gradient(90deg,#6e4932,#9a7250 35%,#6c4731 65%,#a27753),repeating-linear-gradient(8deg,#ffffff0d 0 2px,transparent 2px 14px)}.preview-layers,.preview-note,.preview-text{z-index:1}.preview-controls{position:absolute;z-index:3;right:12px;top:12px;display:flex;gap:6px;align-items:end}.preview-controls label{font-size:9px;color:#385144;text-shadow:0 1px #fff9}.preview-controls select,.preview-controls button{border:1px solid #ffffffaa;border-radius:4px;background:#f7fbf8e8;color:#254437;padding:6px;font:600 10px Manrope;cursor:pointer}.plate-preview:fullscreen{width:100vw;height:100vh;cursor:zoom-out}.plate-preview:fullscreen .preview-layers{width:min(72vw,1000px);height:min(65vh,700px)}.share-status{font-size:11px;color:var(--forest);line-height:1.4;margin:0 0 12px}
