:root{--bg:#f4f3ee;--paper:#fffefb;--ink:#203d35;--muted:#64736b;--line:#dcded5;--green:#173d35;--accent:#bf512e;--soft:#eaece4;--radius:15px;--shadow:0 7px 24px #243a3010;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);font-synthesis:none;line-height:1.5;background:var(--bg)}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,select{cursor:pointer}button{touch-action:manipulation}button,a,input,select,textarea{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #bd623b}button:disabled{opacity:.5;cursor:not-allowed}button{color:inherit}button svg{width:20px;height:20px}h1,h2,h3,p{margin:0}button{border:0}input,textarea,select{border:1px solid var(--line);border-radius:8px;background:white;color:var(--ink);min-width:0;max-width:100%;min-height:44px;padding:10px 12px;transition:border-color .15s}input:focus,textarea:focus,select:focus{border-color:#637f70}input[aria-invalid="true"]{border-color:#b42424;background:#fff5f3}input::placeholder,textarea::placeholder{color:#7a8179}textarea{width:100%;resize:vertical}label{display:grid;gap:6px;font-size:12px;font-weight:600;letter-spacing:.01em}label>span{color:#59685f}label input,label select,label textarea{font-size:16px;font-weight:400;letter-spacing:0}.topbar{height:88px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(28px,calc((100vw - 1280px)/2));background:var(--paper);gap:20px}.brand{display:flex;align-items:center;gap:13px}.brand-symbol{width:44px;height:48px;background:var(--green);display:grid;place-items:center;border-radius:10px}.brand-symbol svg{width:31px;fill:none;stroke:#f5f3e9;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}.brand strong{font-size:22px;letter-spacing:-.6px;display:block;line-height:1.2}.brand div>span{font-size:9px;letter-spacing:1.6px;font-weight:700;color:var(--muted);display:block;margin-top:5px}.language select{background:transparent;font-size:13px;font-weight:700;min-height:40px;border:1px solid var(--line);width:75px}.shell{max-width:1336px;margin:auto;padding:38px 28px 16px}.intro{display:flex;justify-content:space-between;align-items:center;gap:28px;margin-bottom:29px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;color:var(--muted);display:block}.intro h1{font-size:34px;line-height:1.2;letter-spacing:-1.1px;font-weight:650;margin:8px 0 10px}.intro p{font-size:14px;color:var(--muted)}.button{min-height:46px;display:inline-flex;justify-content:center;align-items:center;gap:10px;padding:11px 18px;border-radius:8px;font-size:13px;font-weight:650;line-height:1.4;white-space:normal;text-align:center}.button.dark{background:var(--green);color:#fff}.button.primary{background:var(--accent);color:#fff}.button.outline{background:var(--paper);border:1px solid var(--line)}.button:hover{filter:brightness(.97)}.button.dark:hover,.button.primary:hover{filter:brightness(1.08)}.full{width:100%}.intro>.button{flex-shrink:0}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin-bottom:25px}.tabs button{padding:12px 0 15px;background:none;font-weight:600;font-size:14px;position:relative;color:var(--muted);display:flex;align-items:center;gap:7px}.tabs button.active{color:var(--green)}.tabs button.active:after{content:"";position:absolute;height:3px;bottom:-1px;left:0;right:0;background:var(--green)}.count{font-size:10px;background:#e6e8df;padding:1px 6px;border-radius:5px}.demo-banner{padding:14px 18px;background:#e9eee4;border:1px solid #d9e3d3;border-radius:10px;display:flex;gap:12px;align-items:center;margin-bottom:20px}.demo-banner>div{flex:1;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}.demo-banner strong{font-size:13px}.demo-banner div>span{font-size:12px;color:#5d6f5c}.demo-dot{width:7px;height:7px;background:#638664;border-radius:50%;flex-shrink:0}.text-button{background:transparent;color:var(--green);font-size:12px;font-weight:650;min-height:38px;padding:4px 0;flex-shrink:0;text-align:right}.workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}.editor-column{display:grid;gap:18px;min-width:0}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:22px 24px;box-shadow:var(--shadow);min-width:0}.section-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:19px}.section-heading h2{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:650;line-height:1.4}.step{font-size:10px;color:#6f7e72;font-weight:500;min-width:23px}.save-state{font-size:10px;color:#586e5a}.fields{display:grid;grid-template-columns:1fr 1fr;gap:15px 18px}.wide{grid-column:1/-1}.field-hint{font-size:10px;color:var(--muted);margin-top:13px}.row-heading,.line-item{display:grid;grid-template-columns:minmax(130px,1fr) 62px 65px 86px 88px 32px;gap:8px;align-items:center}.row-heading{font-size:10px;color:var(--muted);margin-bottom:6px}.row-heading>span:nth-child(5){text-align:right}.line-item{padding:12px 0;border-bottom:1px solid #ecece5}.line-item label{min-width:0}.line-item input,.line-item select{font-size:13px;width:100%;padding:8px;min-height:42px}.line-item .line-name{font-size:13px;font-weight:500}.line-item .row-total{text-align:right;font-size:13px;font-weight:650;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.line-item .icon-button{min-width:32px;min-height:42px}.line-label{display:none}.icon-button{background:transparent;min-height:44px;min-width:44px;font-size:23px;border-radius:7px;display:grid;place-items:center;color:#758075}.icon-button:hover{background:#f5e8e2;color:#9a352c}.add-row{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:17px}.add-row .button{font-size:12px;min-height:42px}.catalog-picker{flex:1;min-width:180px}.catalog-picker select{font-size:12px;background:#f7f7f2;min-height:42px}.muted{color:var(--muted);font-size:11px}.summary{background:var(--green);color:#f8f9f1;padding:28px 25px;border-radius:var(--radius);box-shadow:0 9px 26px #173d351b;position:sticky;top:22px}.summary .eyebrow{color:#c1cdbf;font-size:9px;letter-spacing:1.6px}.total-label{font-size:12px;color:#c1cdbf;margin-top:25px}.grand-total{display:block;font-size:43px;line-height:1.16;letter-spacing:-1.5px;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;margin-top:5px}.summary-project{font-size:12px;margin-top:9px;color:#c1cdbf;overflow-wrap:anywhere}.mini-lines{margin-top:25px;display:grid;gap:9px}.mini-line{display:flex;justify-content:space-between;gap:16px;font-size:11px;line-height:1.5;color:#dee6da}.mini-line span:first-child{overflow-wrap:anywhere}.mini-line span:last-child{white-space:nowrap}.summary-divider{height:1px;background:#466256;margin:22px 0}.summary-line{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px;font-size:12px}.summary-line output{font-variant-numeric:tabular-nums;white-space:nowrap}.summary label>span{color:#f5f7ee;font-weight:400}.adjustment{margin-top:16px}.percent-field{display:flex;align-items:center;background:#254d41;border:1px solid #5c7567;border-radius:6px;max-width:84px;padding-right:10px;color:#dbe4d7}.percent-field input{background:transparent;border:0;color:#fff;min-height:38px;width:58px;padding:6px 9px;font-size:16px}.summary .muted{color:#c1cdbf;font-size:11px}.deposit-box{background:#244b3f;padding:2px 14px 14px;margin:15px 0 24px;border-radius:8px}.deposit-box .summary-line:last-child{color:#c2d0c0;font-size:11px}.summary .button{min-height:50px;font-size:13px}.summary-foot{font-size:10px;line-height:1.7;text-align:center;color:#c1cdbf;margin-top:11px}.form-error{font-size:12px;background:#fff1e7;color:#9b3125;padding:12px;margin-top:12px;border-radius:8px}.app-footer{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:10px;color:#6d786d;margin:25px 0 5px}.app-footer>span:first-child{display:flex;align-items:center;gap:7px}.local-dot{height:5px;width:5px;background:#718267;border-radius:50%}.alert{padding:14px 18px;border:1px solid #c26c50;background:#fff2e9;color:#902f20;font-size:13px;border-radius:8px;margin-bottom:18px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:26px 0}.page-title h2{font-size:24px;letter-spacing:-.6px}.page-title p{font-size:13px;color:var(--muted);max-width:620px;margin-top:5px}.actions{display:flex;gap:8px;flex-wrap:wrap}.project-list{display:grid;gap:12px}.project-card{padding:20px 24px;background:var(--paper);border:1px solid var(--line);border-radius:12px;display:flex;gap:20px;align-items:center}.project-card>div:first-child{flex:1;min-width:0}.project-card h3{font-size:16px;overflow-wrap:anywhere}.project-card p{font-size:12px;color:var(--muted);margin-top:4px}.project-card strong{font-size:20px;white-space:nowrap}.project-card .actions{justify-content:flex-end}.project-card .button{font-size:12px;min-height:40px}.empty{padding:65px 24px;text-align:center;background:var(--paper);border:1px dashed #b9c2b4;border-radius:12px}.empty h3{font-size:23px}.empty p{margin-top:10px;font-size:14px;color:var(--muted)}.empty button{margin-top:22px}.catalog-note{font-size:12px;margin-bottom:14px;color:var(--muted)}.service-row{display:grid;grid-template-columns:minmax(150px,1fr) 110px 160px 44px;gap:18px;align-items:end;padding:18px 0;border-bottom:1px solid var(--line)}.service-row:first-child{padding-top:0}.service-row:last-child{border:0;padding-bottom:0}.service-row input,.service-row select{width:100%;font-size:16px}.toast{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#203f34;color:white;border:1px solid #6c816f;border-radius:9px;padding:13px 20px;max-width:calc(100% - 32px);font-size:13px;z-index:20;box-shadow:0 5px 20px #0003;pointer-events:none}dialog{padding:0;border:1px solid var(--line);border-radius:16px;width:min(800px,calc(100% - 32px));max-height:90dvh;background:#efeee8;color:var(--ink);box-shadow:0 24px 100px #132c3350}dialog::backdrop{background:#0b251a95;backdrop-filter:blur(3px)}.dialog-top,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 22px;background:var(--paper)}.dialog-top{position:sticky;top:0;border-bottom:1px solid var(--line);z-index:2}.dialog-top strong{font-size:14px}.dialog-actions{position:sticky;bottom:0;border-top:1px solid var(--line);justify-content:flex-end}.paper{margin:24px;padding:42px 40px;background:white;box-shadow:0 3px 10px #253b3210;min-height:500px}.paper-heading{display:flex;justify-content:space-between;gap:20px;padding-bottom:28px;border-bottom:2px solid var(--green)}.paper-heading .eyebrow{font-size:10px}.paper h2{font-size:32px;letter-spacing:-1px;margin-top:8px}.paper .quote-number{font-size:11px;color:var(--muted);margin-top:7px}.paper .paper-date{font-size:12px;text-align:right;white-space:nowrap}.paper-parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:26px 0;font-size:13px}.paper-parties strong{display:block;margin-top:4px;overflow-wrap:anywhere}.paper .paper-project{font-size:18px;letter-spacing:-.3px;overflow-wrap:anywhere;margin:16px 0}.paper table{width:100%;border-collapse:collapse;font-size:12px}.paper th{font-weight:600;color:var(--muted);border-bottom:1px solid var(--line);text-align:left;font-size:10px;padding:10px 4px}.paper td{padding:13px 4px;border-bottom:1px solid #e7e9e2;vertical-align:top;overflow-wrap:anywhere}.paper th:not(:first-child),.paper td:not(:first-child){text-align:right}.paper td:first-child{width:46%}.paper td small{display:block;color:var(--muted)}.paper-totals{margin:23px 0 0 auto;max-width:300px}.paper-totals>div{display:flex;justify-content:space-between;gap:16px;font-size:12px;padding:8px 0}.paper-totals .paper-total{border-top:2px solid var(--green);font-size:21px;font-weight:650;margin:8px 0}.paper-notes{margin-top:32px;padding-top:20px;border-top:1px solid var(--line);font-size:12px;white-space:pre-wrap;overflow-wrap:anywhere}.paper-notes strong{display:block;margin-bottom:6px}.paper-footer{font-size:9px;color:var(--muted);border-top:1px solid var(--line);margin-top:40px;padding-top:14px}.paper-demo{background:#f3eee1;padding:10px;font-size:11px;margin:0 0 22px}.paper-break{break-inside:avoid}#copyFallback{padding:20px;font-size:12px}#copyFallback textarea{font-size:13px;margin-top:8px}.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}[hidden]{display:none!important}
@media(min-width:1500px){.shell{padding-top:45px}.intro h1{font-size:38px}.fields{grid-template-columns:1.4fr 1.4fr .8fr .8fr}.fields .wide{grid-column:1/-1}}
@media(max-width:1100px){.workspace{grid-template-columns:minmax(0,1fr) 290px;gap:18px}.panel{padding:20px}.row-heading{display:none}.line-item{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.3fr) 34px;gap:9px}.line-item label:first-child{grid-column:1/4}.line-item>.icon-button{grid-column:4;grid-row:1}.line-item label:nth-child(2){grid-column:1}.line-item label:nth-child(3){grid-column:2}.line-item label:nth-child(4){grid-column:3/5}.line-item>.row-total{grid-column:1/-1;text-align:right}.line-label{display:block;color:var(--muted);font-size:10px}.line-item input,.line-item select,.line-item .line-name{font-size:16px;min-height:44px}.summary{padding:24px 20px}.intro h1{font-size:29px}.grand-total{font-size:37px}.project-card{flex-wrap:wrap}}
@media(max-width:760px){.topbar{height:76px;padding:0 20px}.shell{padding:24px 18px 16px}.brand strong{font-size:20px}.brand div>span{font-size:8px;letter-spacing:1.1px}.brand-symbol{width:38px;height:42px}.intro{align-items:flex-start;margin-bottom:18px;gap:15px;flex-wrap:wrap}.intro h1{font-size:29px;line-height:1.17;letter-spacing:-.8px;max-width:450px}.intro p{font-size:13px;max-width:450px}.intro .eyebrow{font-size:8px;letter-spacing:1.3px}.intro>.button{font-size:12px;min-height:42px;padding:8px 14px}.tabs{gap:24px;margin-bottom:18px}.tabs button{font-size:13px;padding-top:9px}.demo-banner{padding:12px;gap:9px;flex-wrap:wrap}.demo-banner>div{display:block;flex-basis:80%}.demo-banner strong{font-size:12px;display:block}.demo-banner div>span{font-size:11px;display:block;margin-top:3px}.demo-banner .text-button{margin-left:16px;font-size:11px;min-height:28px;text-align:left}.workspace{display:flex;flex-direction:column;gap:18px}.editor-column{width:100%;gap:16px}.summary{position:static;width:100%;padding:25px}.summary .grand-total{font-size:42px}.summary .mini-lines{margin-top:18px}.panel{padding:19px 16px;border-radius:12px}.section-heading{margin-bottom:17px}.section-heading h2{font-size:14px;gap:7px}.save-state{font-size:9px;max-width:95px;text-align:right}.fields{gap:13px 12px}.fields label:nth-child(2),.fields label:nth-child(3){grid-column:1/-1}.fields .wide{grid-column:1/-1}.step{min-width:19px}.field-hint{font-size:10px}.line-item{gap:9px;padding:15px 0}.line-item>.row-total{font-size:14px}.add-row{gap:10px}.catalog-picker{min-width:100%;flex-basis:100%}.add-row .button{min-height:44px}.catalog-picker select{min-height:44px;font-size:14px}.app-footer{margin-top:24px;display:grid;gap:9px;font-size:9px;padding-bottom:env(safe-area-inset-bottom)}.page-title{display:block;margin:21px 0}.page-title .actions,.page-title>.button{margin-top:17px}.page-title h2{font-size:23px}.page-title p{font-size:12px}.project-card{padding:18px;gap:15px}.project-card>div:first-child{flex-basis:65%}.project-card>strong{font-size:18px}.project-card .actions{justify-content:flex-start;width:100%}.service-row{grid-template-columns:1fr 1fr 44px;gap:12px}.service-row>label:first-child{grid-column:1/3}.service-row>.icon-button{grid-column:3;grid-row:1}.service-row>label:nth-child(2){grid-column:1}.service-row>label:nth-child(3){grid-column:2/4}dialog{width:calc(100% - 16px);max-height:94dvh;border-radius:12px}.dialog-top,.dialog-actions{padding:10px 14px}.paper{margin:12px;padding:24px 17px;min-height:400px}.paper h2{font-size:26px}.paper .paper-date{font-size:10px}.paper .paper-project{font-size:17px}.paper table{font-size:11px}.paper th{font-size:9px}.paper td:first-child{width:40%}.paper-parties{font-size:11px;gap:10px}.paper-totals{max-width:100%;margin-top:16px}.paper-heading{gap:10px}.paper .quote-number{font-size:10px}.dialog-actions .button{font-size:12px}}
@media(max-width:350px){.shell{padding-left:12px;padding-right:12px}.tabs{gap:17px}.tabs button{font-size:12px}.brand strong{font-size:18px}.topbar{padding:0 14px}.paper{padding:18px 12px}.paper-heading{flex-wrap:wrap}.paper .paper-date{text-align:left}}
@media(max-width:760px){.catalog-picker select,.language select,#copyFallback textarea{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
@media print{@page{size:A4;margin:16mm}body{background:white!important;color:#18362c}body>header,body>main,body>.toast{display:none!important}dialog{display:block!important;position:static!important;width:100%!important;max-width:none!important;max-height:none!important;height:auto!important;border:0!important;box-shadow:none!important;overflow:visible!important;margin:0!important;padding:0!important;background:white!important}dialog::backdrop{display:none}.dialog-top,.dialog-actions,#copyFallback{display:none!important}.paper{margin:0!important;padding:0!important;box-shadow:none!important;min-height:0!important}.paper-heading,.paper-parties,.paper-totals,.paper-notes{break-inside:avoid}.paper tr{break-inside:avoid}.paper thead{display:table-header-group}.paper table{font-size:11px}.paper-footer{margin-top:30px}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
