:root{--ink:#202925;--muted:#69716b;--paper:#f5f4ef;--line:#e0e3dc;--brass:#d7b47a;--danger:#974b3e;font-family:'Segoe UI',-apple-system,BlinkMacSystemFont,sans-serif;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}button,input,textarea,select{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #b78b4b;outline-offset:3px}a{color:inherit}h1,h2,p{margin:0}h2{font-size:21px;line-height:1.3;letter-spacing:-.45px;font-weight:650}[hidden]{display:none!important}
.topbar{min-height:96px;background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:16px max(32px,calc((100vw - 1220px)/2));padding-top:max(16px,env(safe-area-inset-top));gap:20px}.wordmark{display:flex;align-items:center;gap:12px;font-size:24px;font-weight:650;letter-spacing:-1px;text-decoration:none;white-space:nowrap}.brand-mark{display:grid;place-items:center;border:1px solid #ffffff40;border-radius:8px;width:39px;height:44px;font-size:25px;position:relative;font-weight:400}.brand-mark>span{position:absolute;left:16px;top:8px;color:var(--brass);font-size:25px}.field-tag{color:var(--brass);font-size:11px;letter-spacing:2px;margin-left:12px;font-weight:700}.company-switch{display:flex;align-items:center;gap:12px;background:#ffffff08;color:inherit;border:1px solid #ffffff20;border-radius:10px;padding:9px 13px;text-align:left;max-width:330px;min-height:48px}.company-avatar{width:44px;height:40px;border-radius:5px;background:white;display:grid;place-items:center;flex-shrink:0;overflow:hidden;color:var(--ink);font-size:24px}.company-avatar img{max-width:100%;max-height:100%;object-fit:contain;padding:3px}.company-copy{min-width:0}.company-copy>span{font-weight:600;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:215px}.company-copy small{display:block;font-size:12px;color:#c0c8bf}.edit-mark{margin-left:6px;color:var(--brass);font-size:20px}
main{max-width:1284px;margin:auto;padding:36px 32px max(28px,env(safe-area-inset-bottom))}.workspace-meta{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding-bottom:18px;gap:12px}.eyebrow{font-size:11px;font-weight:700;letter-spacing:1.8px;color:var(--muted)}.device-note{font-size:13px;color:var(--muted)}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:32px 0}h1{font-size:clamp(32px,3.3vw,46px);line-height:1.12;letter-spacing:-1.7px;font-weight:650}.page-heading p{color:var(--muted);margin-top:12px;font-size:16px}.mobile-break{display:none}.heading-actions{display:flex;align-items:center;gap:18px;flex-shrink:0}.quiet{padding:10px 0;background:none;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:5px;min-height:44px}.secondary{border:1px solid #c9cec6;border-radius:7px;padding:11px 16px;background:#fff;color:var(--ink);font-size:14px;font-weight:600;min-height:44px}.workspace-grid{display:grid;grid-template-columns:minmax(0,1fr) 370px;gap:24px;align-items:start}.editor-stack{display:grid;gap:18px;min-width:0}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:25px 28px;box-shadow:0 2px 3px #18241902}.panel-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:21px}.panel-heading h2{margin-top:5px}.panel-symbol{font-size:25px;color:#a0aaa0;font-weight:300}.unit-chip{font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:700;padding:5px 8px;border:1px solid var(--line);border-radius:4px;white-space:nowrap}.pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:20px}label{display:block;font-size:14px;font-weight:600;margin:0 0 17px;min-width:0}label:last-child{margin-bottom:0}input,textarea,select{display:block;width:100%;min-width:0;background:#fff;color:var(--ink);border:1px solid #ced4cb;border-radius:6px;padding:12px 13px;margin-top:7px;font-size:16px;font-weight:400;line-height:1.4;transition:border-color .15s,box-shadow .15s}input:hover,textarea:hover,select:hover{border-color:#a2aea0}input:focus,textarea:focus,select:focus{border-color:#8b9b8b;box-shadow:0 0 0 3px #eaf0e6}input::placeholder,textarea::placeholder{color:#7b8478}textarea{min-height:128px;resize:vertical}.optional{color:var(--muted);font-weight:400;font-size:12px;margin-left:7px}.field-unit{font-size:12px;color:var(--muted);font-weight:400;margin-left:5px}.field-help{font-size:13px;line-height:1.6;color:var(--muted);margin-top:4px}
.summary-stack{min-width:0;position:sticky;top:20px;display:grid;gap:18px}.estimate-card{background:var(--ink);color:#fff;border-radius:12px;padding:27px 26px;box-shadow:0 8px 24px #19251c0a;overflow:hidden}.estimate-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:28px}.estimate-heading .eyebrow{color:#c0c8bf;font-size:10px;letter-spacing:1.5px}.draft-tag{border:1px solid #ffffff30;color:var(--brass);font-size:9px;letter-spacing:1px;border-radius:4px;padding:4px 7px;flex-shrink:0}.estimate-card h2{font-size:15px;font-weight:500;color:#dce1d8;letter-spacing:0}output{display:block;font-size:clamp(27px,3.6vw,48px);font-variant-numeric:tabular-nums;letter-spacing:-1.8px;line-height:1.25;margin:9px 0 4px;font-weight:550;overflow-wrap:anywhere}.tax-note{font-size:12px;color:#adb9ae}.cost-lines{margin:24px 0 23px;padding:19px 0;border-top:1px solid #ffffff24;border-bottom:1px solid #ffffff24;font-size:14px}.cost-lines>div{display:flex;justify-content:space-between;gap:12px;margin:10px 0}.cost-lines dt{color:#c2cdc1}.cost-lines dd{margin:0;overflow-wrap:anywhere;text-align:right;font-variant-numeric:tabular-nums}.primary{display:flex;align-items:center;justify-content:space-between;width:100%;background:var(--brass);color:#263025;padding:14px 17px;border-radius:6px;font-weight:650;font-size:15px;min-height:48px}.primary:hover{background:#e3c38f}.document-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:12px}.document-actions button{border:1px solid #ffffff30;border-radius:6px;color:#e2e8df;background:transparent;padding:11px 7px;font-size:12px;min-height:44px}.document-actions button:hover{background:#ffffff0b}#status{font-size:13px;color:#e2c28f;line-height:1.6;margin-top:16px;overflow-wrap:anywhere}#status:empty{display:none}.approval-note{color:#a8b6a9;font-size:12px;line-height:1.7;margin-top:20px}.saved-panel{padding:22px 23px}.saved-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.saved-heading h2{font-size:17px}.saved-heading .unit-chip{font-size:9px;padding:4px 6px}.saved-label{font-size:12px;color:var(--muted)}select{font-size:14px;text-overflow:ellipsis;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' stroke='%2369716b' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}.text-button{display:inline-block;background:none;padding:8px 0;font-size:13px;text-align:left;min-height:44px}.danger{color:var(--danger)}.saved-panel .text-button{margin-top:10px}.feedback{color:var(--muted);text-align:center;margin-top:-7px}
.settings-panel{margin-top:32px;border-top:1px solid #d5dad1;border-bottom:1px solid #d5dad1;padding:19px 0}summary{cursor:pointer;font-size:14px;font-weight:600;list-style:none;display:flex;align-items:center;justify-content:space-between;min-height:36px}summary:after{content:'＋';font-size:20px;color:var(--muted)}details[open]>summary:after{content:'−'}.settings-content{display:grid;grid-template-columns:1fr 1fr;gap:48px;padding:26px 0 10px;max-width:1000px}.settings-content h2{font-size:17px;margin-bottom:12px}.settings-content p{font-size:14px;color:var(--muted);margin:10px 0 18px;line-height:1.65}.settings-content label{font-size:13px;margin-top:20px}.settings-content .secondary{margin:0 0 8px}.settings-content input[type=file]{font-size:13px}.checkbox-label{display:flex;align-items:start;gap:9px}.checkbox-label input{width:auto;margin:3px 0 0;box-shadow:none}.footer-links{display:flex;gap:18px;flex-wrap:wrap}.footer-links a{color:var(--ink);text-underline-offset:3px}.app-footer{display:flex;justify-content:space-between;gap:12px;color:#697364;font-size:12px;padding-top:24px}.footer-separator{color:#b7bbae;margin:0 8px}
dialog{border:1px solid var(--line);border-radius:16px;padding:30px;max-width:480px;width:calc(100% - 32px);color:var(--ink);box-shadow:0 24px 100px #14221840;max-height:90dvh;overflow:auto}dialog::backdrop{background:#14201888;backdrop-filter:blur(3px)}.dialog-heading{display:flex;align-items:start;gap:20px;justify-content:space-between}.dialog-heading h2{margin-top:7px;font-size:26px;letter-spacing:-.8px}.close-button{background:none;font-size:28px;line-height:1;padding:0 3px;color:var(--muted);min-width:32px;min-height:32px}.dialog-intro{color:var(--muted);font-size:14px;line-height:1.65;margin:16px 0 25px}.logo-upload-zone{border:1px dashed #bec8b9;border-radius:9px;padding:22px;text-align:center;background:#f8f9f5;display:grid;justify-items:center;gap:12px}.logo-upload-zone img{max-height:100px;max-width:100%;object-fit:contain}.logo-upload-zone>span{font-size:30px;color:#7d8975}.logo-upload-zone p{font-size:12px;color:var(--muted)}.upload-label{margin:0;font-size:14px;text-decoration:underline;text-underline-offset:4px;cursor:pointer}.upload-label input{font-size:12px;margin-top:12px;max-width:100%;background:#fff}#branding-status{font-size:13px;line-height:1.6;color:#795a29;margin:6px 0 10px}.branding-privacy{font-size:12px;line-height:1.7;color:var(--muted);margin:12px 0 20px}#paper{display:none}.lines{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1000px){.workspace-grid{grid-template-columns:minmax(0,1fr) 330px;gap:18px}.panel{padding:23px}.estimate-card{padding:25px 22px}.page-heading{align-items:flex-start}.heading-actions{gap:12px;flex-direction:column;align-items:flex-end}.estimate-heading .eyebrow{font-size:9px}.field-unit{display:block;margin:1px 0 0}}
@media(max-width:760px){.topbar{min-height:84px;padding:14px 20px;padding-top:max(14px,env(safe-area-inset-top))}.wordmark{font-size:21px;gap:9px}.brand-mark{width:32px;height:37px;font-size:21px}.brand-mark>span{font-size:21px;left:13px;top:7px}.field-tag{display:block;font-size:9px;letter-spacing:2px;margin:0}.company-switch{max-width:180px;border:0;padding:0;background:none;gap:8px}.company-avatar{width:36px;height:34px}.company-copy>span{font-size:12px;max-width:100px}.company-copy small{font-size:10px}.edit-mark{display:none}main{padding:25px 18px max(24px,env(safe-area-inset-bottom))}.workspace-meta{padding-bottom:15px}.workspace-meta .eyebrow{font-size:9px;letter-spacing:1.2px}.device-note{font-size:10px}.page-heading{margin:25px 0;display:block}h1{font-size:38px;letter-spacing:-1.5px}.page-heading p{font-size:14px;line-height:1.7;max-width:290px;margin-top:12px}.heading-actions{margin-top:20px;flex-direction:row;align-items:center;justify-content:space-between;gap:12px}.quiet{font-size:13px}.secondary{font-size:13px;padding:10px 13px}.workspace-grid{grid-template-columns:minmax(0,1fr);gap:18px}.editor-stack{gap:14px}.summary-stack{position:static;gap:15px}.panel{padding:23px 20px;border-radius:10px}.panel-heading{margin-bottom:20px}.panel-heading .eyebrow{font-size:9px}.panel-heading h2{font-size:20px;margin-top:5px}.pair{column-gap:14px}label{font-size:13px}.field-unit{font-size:11px;display:block;margin:1px 0 0}input,textarea{padding:12px 11px}.optional{font-size:11px}.estimate-card{padding:25px}.estimate-heading .eyebrow{font-size:10px}.estimate-heading{margin-bottom:24px}output{font-size:47px}.document-actions button{font-size:13px}.saved-panel{padding:22px}.settings-panel{margin-top:25px}.settings-content{grid-template-columns:1fr;gap:24px;padding-top:24px}.app-footer{font-size:10px;line-height:1.8;padding-top:19px}.app-footer>span:first-child{max-width:205px}dialog{padding:24px}.dialog-heading h2{font-size:24px}.mobile-break{display:block}}
@media(max-width:360px){.company-copy small{display:none}.company-switch{max-width:140px}.company-copy>span{max-width:80px}.topbar{padding:14px}.pair{grid-template-columns:1fr;gap:0}.field-unit{display:inline}.device-note{display:none}output{font-size:38px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media print{body{background:white;color:#202925;font-size:11pt}main,.topbar,dialog{display:none!important}#paper{display:block;border:0;margin:8mm 10mm;padding:0;box-shadow:none}.paper-masthead{display:flex;justify-content:space-between;align-items:center;gap:24px;border-bottom:2px solid #202925;padding-bottom:22px;margin-bottom:25px}.paper-masthead>div{min-width:0;max-width:52%}.paper-masthead>div:last-child{text-align:right}#paper-logo{display:block;max-width:180px;max-height:75px;object-fit:contain;object-position:left;margin-bottom:10px}#paper-company{font-weight:650;font-size:15pt;overflow-wrap:anywhere}#paper h1{font-size:28pt;letter-spacing:-1.2px;margin-top:7px}.paper-masthead .eyebrow{font-size:7pt;letter-spacing:1px}.lines{line-height:1.9}.paper-footer{border-top:1px solid #d5dad1;margin-top:28px;padding-top:12px;color:#69716b;font-size:8pt}}

/* Readability and control contrast from the design playbook. */
input,textarea,select{border-color:#8b9688}input::placeholder,textarea::placeholder{color:#697364}.saved-label{font-size:14px}.document-actions button{font-size:14px}.close-button{min-width:44px;min-height:44px}.upload-label{min-height:44px}summary{min-height:44px}
@media(max-width:760px){label{font-size:14px}.field-unit,.optional{font-size:12px}.company-copy small{font-size:12px}.app-footer{font-size:12px}.app-footer>span:first-child{max-width:220px}}

.company-avatar{width:80px}.company-switch{max-width:360px}
@media(max-width:760px){.company-avatar{width:56px}.company-switch{max-width:190px}}
@media(max-width:360px){.company-avatar{width:36px}.company-switch{max-width:140px}}

@media(max-width:360px){.topbar{gap:12px}.wordmark{font-size:20px}}

.pro-card{display:grid;gap:14px}.pro-card h2{font-size:24px;letter-spacing:-.6px;line-height:1.2}.pro-card p{color:var(--muted);font-size:14px;line-height:1.65}.pro-card ul{margin:0;padding-left:20px;font-size:14px;line-height:1.8}.pro-card .primary{justify-content:center}.pro-restore summary{cursor:pointer;font-size:14px;text-decoration:underline;text-underline-offset:4px;min-height:44px;display:flex;align-items:center}.pro-restore label{margin:10px 0}.pro-msg{min-height:1.2em;color:#795a29!important}.pro-msg:empty{display:none}.pro-fine{font-size:12px!important}.pro-card .quiet{justify-self:center}
.pro-settings{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;border:1px solid var(--line);border-radius:10px;padding:16px 18px;margin-top:18px;background:#fff;font-size:14px}.pro-settings span{color:var(--muted)}.pro-settings button{margin-left:auto}
@media print{#pro-dialog,.pro-settings{display:none!important}}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;padding:0 6px}.checkbox-label{min-height:44px;align-items:center}.checkbox-label input{width:22px;height:22px;margin:0;flex-shrink:0}
