:root{--green:#193e32;--dark:#252e27;--paper:#f5f2e9;--line:#d8d6c8;--muted:#556055;font:16px/1.5 "DM Sans",system-ui,sans-serif;color:var(--dark);background:var(--paper)}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,select,summary{cursor:pointer}a{color:inherit}header{background:var(--green);color:white}nav,main,footer{max-width:1280px;margin:auto}nav{height:70px;display:flex;justify-content:space-between;align-items:center;padding:0 4%}nav>a:last-child{font-size:.94rem;text-underline-offset:4px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;font-size:1.48rem;font-weight:800;letter-spacing:-.055em}.brand i{width:31px;height:31px;display:inline-block;background:linear-gradient(90deg,#e0b977 0 46%,transparent 46% 54%,#e0b977 54%) center/100% 100%;clip-path:polygon(0 0,100% 0,100% 43%,55% 43%,55% 52%,100% 52%,100% 100%,0 100%)}main{padding:0 4% 48px}.intro{display:flex;justify-content:space-between;align-items:end;margin:35px 0 26px}.intro p,h1,h2,h3{margin:0}.intro p{color:var(--muted);margin-top:5px}h1,h2,h3,.price{letter-spacing:-.045em}h1{font-size:clamp(2.3rem,5.1vw,4rem);font-family:"DM Serif Text",Georgia,serif;line-height:1.05;font-weight:500}.unit,.measure{color:var(--muted);font: .82rem ui-monospace,monospace}.desk{display:grid;grid-template-columns:minmax(340px,.93fr) minmax(0,1.38fr);gap:18px;align-items:start}.panel{border-radius:16px;background:#fffefa;border:1px solid var(--line);overflow:hidden;box-shadow:0 3px 12px #25402508}.editor{padding:23px}.panel h2{font-size:1.35rem}.panel h3{font-size:1.08rem}.field,.fields label,.rowfields label,.namefield{display:flex;flex-direction:column;gap:4px;font-size:.84rem;font-weight:600;color:#3a483c}.project{margin:16px 0 21px}.fields,.rowfields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:7px}.editor input:not([type=checkbox]),select{border:1px solid #c5c9bd;background:white;border-radius:6px;padding:7px 8px;min-width:0;width:100%;color:var(--dark);font-size:1rem;line-height:1.25}.editor input:focus,select:focus,button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #079175;outline-offset:2px}.sectionbar,.resulttitle,.sheetbar,.toprow,.export,.bottomrow{display:flex;align-items:center;justify-content:space-between;gap:12px}.sectionbar{margin-top:22px}.textbutton,.remove{background:none;border:0;color:#28593b}.textbutton{font-size:.9rem;font-weight:700;text-decoration:underline;text-underline-offset:3px}.hint,.export p,#ajuda p{color:var(--muted);font-size:.91rem}.hint{margin:4px 0 12px}.piece{border-top:1px solid var(--line);padding:12px 0}.namefield{flex:1}.toprow{align-items:end}.remove{font-size:.87rem;padding:8px 0}.rotate{font-size:.83rem;display:flex;align-items:center;gap:6px;margin-top:7px}.rotate input{accent-color:var(--green);width:16px;height:16px}.primary,#buy{background:var(--green);color:#fff;border:0;border-radius:7px;font-weight:700;padding:11px 18px}.primary{width:100%;margin-top:8px}button:disabled{cursor:not-allowed;opacity:.55}.alert{margin:0;color:#8e2e24}.result{padding:23px}.resulttitle{margin-bottom:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);background:var(--green);color:white;border-radius:11px;padding:16px 0}.stats div{padding:0 14px;border-left:1px solid #ffffff3a}.stats div:first-child{border:0}.stats strong,.stats span{display:block}.stats strong{font:600 clamp(1.5rem,3vw,2.3rem)/1.05 Georgia,serif}.stats span{font-size:.79rem;margin-top:5px;color:#e5ecdf}.sheetbar{margin:16px 0 8px}.sheetbar label{font-weight:700}.sheetbar select{width:auto;font-size:.9rem}.drawing{padding:14px;min-height:180px;display:grid;place-items:center;background-color:#eef0e8;background-image:radial-gradient(#bbc2ad 1px,transparent 1px);background-size:10px 10px;border-radius:9px;border:1px solid #d2d6c8}.drawing svg{width:100%;height:clamp(200px,27vw,345px)}#status{margin:8px 0}.legend{display:flex;flex-wrap:wrap;gap:5px 14px;font-size:.87rem}.legend span{display:inline-flex;align-items:center;gap:5px}.legend i{width:10px;height:10px;border:1px solid #484f3e;border-radius:2px}.export{background:#f1eedf;border-radius:9px;margin-top:19px;padding:16px}.export p{margin:2px 0 5px}.price{font-weight:800}.price small{font-size:.78rem;letter-spacing:0;font-weight:500}.export button{white-space:nowrap}#ajuda{max-width:720px;margin:37px auto 0}#ajuda h2{font-size:1.55rem}details{border-bottom:1px solid var(--line);padding:12px 0}summary{font-weight:650}details p{margin:8px 0}footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--line);padding:18px 4% 65px;color:var(--muted);font-size:.9rem}#printout{display:none}@media(max-width:800px){.desk{grid-template-columns:1fr}.intro{align-items:start;gap:6px}.unit{display:none}.editor,.result{padding:17px}.intro{margin:25px 0 17px}.result{scroll-margin-top:10px}}@media(max-width:440px){.stats div{padding:0 9px}.export{align-items:start;flex-direction:column}.export button{width:100%}.drawing{padding:8px}.stats span{font-size:.75rem}}
@page{size:A4 portrait;margin:13mm}@media print{body>*{display:none!important}body.printready #printout{display:block!important}html,body{background:white;color:black}#printout section{break-before:page;font:12pt/1.4 system-ui,sans-serif}#printout section:first-child{break-before:auto}#printout h2{font-size:18pt}#printout svg{width:100%;height:160mm}#printout table{border-collapse:collapse;width:100%;font-size:9pt}#printout th,#printout td{padding:4px;text-align:left;border-bottom:1px solid #bbb}#printout tr{break-inside:avoid}#printout thead{display:table-header-group}#printout *{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
.policy{max-width:790px;margin:40px auto}.policy h1{margin-bottom:24px}.policy h2{font-size:1.35rem;margin:24px 0 5px}.policy p{margin:8px 0;line-height:1.65}

.projects{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin-top:16px}
.projects .textbutton{padding:8px 0}

#history{margin:12px 0 0;padding:4px 0}
