@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{--ink:#203b31;--muted:#68776e;--line:#dce2d7;--cream:#f5f5ef;--lime:#d7e8ab;--white:#fffefb}*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:14px/1.55 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button,a,label.file-button{touch-action:manipulation}a{color:inherit}button{cursor:pointer;border:0;border-radius:6px;padding:12px 16px;background:var(--ink);color:white;font-size:12px;font-weight:600}button:hover{filter:brightness(1.12)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #779c40;outline-offset:3px}button:disabled{opacity:.5;cursor:default}button.secondary,.file-button{background:var(--white);color:var(--ink);border:1px solid #bdcbb8}.text-button{padding:4px;background:none;color:var(--muted);text-decoration:underline}.full{width:100%}.compact{margin-bottom:20px}.topbar{height:88px;display:flex;gap:30px;align-items:center;border-bottom:1px solid var(--line);padding:0 max(4vw,22px);background:var(--white)}.brand{font:800 24px 'Manrope',sans-serif;letter-spacing:-1px;text-decoration:none}.brand span{color:#80a34f}.product{border-left:1px solid var(--line);padding-left:30px;font-size:10px;letter-spacing:.14em}.product b{display:inline-block;font-size:9px;letter-spacing:0;background:#e8eedf;padding:4px 8px;margin-left:12px;border-radius:20px}.back{margin-left:auto;font-size:12px;text-decoration:none}.workspace{width:min(1440px,92%);margin:auto}.workspace-title{display:flex;justify-content:space-between;align-items:center;gap:35px;padding:45px 0 28px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:.15em;margin:0 0 16px}h1,h2,h3{font-family:'Manrope',sans-serif;font-weight:500;letter-spacing:-.04em;line-height:1.12;margin:0}h1{font-size:46px}h1 em{font-family:Georgia,serif;color:#63804f;font-weight:400}.workspace-title p:not(.eyebrow){color:var(--muted)}.actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center}.workspace-title .actions{max-width:380px;justify-content:flex-end}.file-button{font-size:12px;font-weight:600;padding:11px 14px;border-radius:6px;cursor:pointer;margin:0}.file-button input{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}.file-button:focus-within{outline:3px solid #779c40}.local-note{background:#e7ecdf;border-radius:7px;padding:14px 18px;color:#52634e;font-size:11px;margin-bottom:25px}.local-note span{font-weight:700;margin-left:8px}.work-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:30px;align-items:start}.panel{background:var(--white);border:1px solid var(--line);border-radius:9px;margin-bottom:15px;overflow:hidden}.panel summary{padding:20px;display:flex;gap:13px;align-items:center;cursor:pointer;font-weight:600;list-style:none}.panel summary span{font-size:10px;color:#749353}.panel summary small{font-size:10px;font-weight:400;color:var(--muted);margin-left:auto}.panel summary:after{content:'+';margin-left:5px}.panel[open] summary:after{content:'−'}.panel-body{padding:0 20px 22px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:13px 17px}.fields .wide{grid-column:1/-1}label{display:block;font-size:11px;font-weight:600;margin-bottom:8px}input,select,textarea{display:block;width:100%;color:var(--ink);background:#f9faf5;border:1px solid #cbd5c4;border-radius:5px;padding:10px 11px;margin-top:5px;font-size:13px;min-width:0}textarea{min-height:80px;resize:vertical}.check{display:flex;align-items:flex-start;gap:9px;font-weight:400;font-size:12px}.check input{width:16px;height:16px;margin:1px 0 0;flex:none;accent-color:var(--ink)}.logo-row{display:flex;align-items:center;gap:15px;margin-top:18px}.logo-row label{flex:1}.logo-row input{font-size:10px}.help{font-size:10px;color:var(--muted);margin:10px 0 0;line-height:1.6}.catalog-head{display:grid;grid-template-columns:1fr 1fr;gap:10px}.catalog-head input,.catalog-head select{font-size:11px}.example-note{font-size:11px;color:#80602e;background:#faf0da;padding:12px;border-radius:5px}.catalog{max-height:250px;overflow:auto;overscroll-behavior:contain;border-bottom:1px solid var(--line)}.catalog-item{display:flex;gap:12px;align-items:center;border-top:1px solid var(--line);padding:12px 0}.catalog-item>div{flex:1}.catalog-item strong{display:block;font-size:12px;font-weight:500}.catalog-item small{display:block;font-size:9px;color:var(--muted)}.catalog-item button{padding:7px 10px}.line-actions{display:flex;justify-content:space-between;align-items:center;margin:18px 0;font-size:10px}.line-card{border:1px solid var(--line);border-radius:6px;background:#f8f9f2;padding:14px;margin:12px 0}.line-top{display:flex;justify-content:space-between;align-items:center;font-size:9px;letter-spacing:.08em;color:var(--muted)}.line-top button{font-size:10px;padding:3px 7px;background:transparent;color:#7f5642}.line-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.line-card textarea{min-height:55px}.line-card input,.line-card textarea,.line-card select{background:var(--white)}.line-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:10px}.line-bottom button{font-size:10px}.line-bottom strong{font-size:15px}.validation{padding:22px}.validation h2{font-size:21px;margin-bottom:18px}.validation ul{font-size:11px;color:#8b5836;padding-left:18px}.validation .primary{margin-top:20px}.preview-column{position:sticky;top:20px}.preview-toolbar{display:flex;align-items:center;justify-content:space-between;font-size:9px;letter-spacing:.1em;margin:2px 0 15px}.preview-toolbar strong{letter-spacing:0;color:#825c34;background:#f0e5cf;border-radius:30px;padding:5px 10px}.preview-toolbar strong.ready{background:#e0edce;color:#3f6234}.paper{background:white;color:#25352d;box-shadow:0 8px 35px #132d2410;padding:35px;font-family:Arial,sans-serif;font-size:10px;line-height:1.5;overflow-wrap:anywhere;border:1px solid #e4e7df;min-height:720px}.paper-head{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #244d3b;padding-bottom:22px}.paper-logo{width:115px;height:65px;object-fit:contain;object-position:left center;margin-bottom:12px}.paper-brand{font-size:19px;font-weight:bold;line-height:1.3}.paper p{margin:5px 0;white-space:pre-line}.paper-meta{text-align:right;flex:none}.paper-meta h2{font-size:24px;font-family:Arial,sans-serif;margin-bottom:9px;letter-spacing:.05em}.draft-mark{color:#906834;font-size:8px;background:#fff3d9;padding:5px 8px;margin-top:8px;max-width:180px}.parties{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:23px 0}.paper .caption{font-size:8px;color:#78837b;font-weight:bold;letter-spacing:.1em;margin-bottom:7px}.paper h3{font-size:13px;font-family:Arial,sans-serif;letter-spacing:0;margin:12px 0 6px}.quote-table{width:100%;border-collapse:collapse;font-size:9px;margin-top:20px;table-layout:fixed}.quote-table th{font-size:8px;text-align:right;color:#fff;background:#244d3b;padding:8px 4px;font-weight:normal}.quote-table th:first-child{text-align:left;width:39%}.quote-table th:nth-child(2){width:7%}.quote-table th:nth-child(3){width:8%}.quote-table th:nth-child(4){width:15%}.quote-table th:nth-child(5){width:8%}.quote-table th:nth-child(6){width:8%}.quote-table th:nth-child(7){width:15%}.quote-table td{text-align:right;border-bottom:1px solid #e2e7df;padding:10px 4px;vertical-align:top;overflow-wrap:anywhere}.quote-table td:first-child{text-align:left}.quote-table td small{display:block;font-size:8px;color:#69736d;white-space:pre-line;margin-top:3px}.totals{width:58%;margin:22px 0 25px auto}.total-row{display:flex;justify-content:space-between;gap:12px;padding:4px 0;font-size:10px}.total-row.final{font-size:15px;border-top:1px solid #a0b496;padding:9px 0;font-weight:bold}.total-row.subtle{color:#6c766f;font-size:9px}.paper-conditions{border-top:1px solid #d5ded0;padding-top:14px;font-size:9px}.condition-block{margin-bottom:12px}.signatures{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:22px}.signature{border:1px solid #cbd7c4;padding:10px;min-height:88px;font-size:8px}.paper-footer{margin-top:25px;border-top:1px solid #dce4d5;padding-top:10px;font-size:8px;color:#76816e}.summary-bar{background:var(--ink);color:#f5f5ef;display:flex;justify-content:space-between;padding:18px 24px;border-radius:0 0 7px 7px;font-size:10px}.summary-bar strong{display:block;font-size:21px;font-weight:500}.request-banner{padding:18px;background:#dcecc8;margin-bottom:25px;border-radius:7px;display:flex;justify-content:space-between;gap:20px;align-items:center}.request-banner p{font-size:12px;margin:4px 0}footer{display:flex;justify-content:space-between;font-size:10px;color:var(--muted);padding:30px 0 40px}dialog{border:0;border-radius:12px;background:var(--cream);color:var(--ink);padding:32px;width:min(520px,92vw)}dialog::backdrop{background:#13271c99}dialog h2{font-size:25px;margin-bottom:16px}dialog p{font-size:12px;color:var(--muted)}dialog .close{position:absolute;top:10px;right:10px;background:none;color:var(--ink);font-size:23px;padding:4px 9px}#toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#213b30;color:white;padding:12px 20px;border-radius:7px;font-size:12px;z-index:10;max-width:90vw;display:none}#toast.visible{display:block}#print-mount{display:none}[hidden]{display:none!important}
@media(max-width:1050px){.work-grid{grid-template-columns:1fr}.preview-column{position:static;max-width:800px;width:100%;margin:auto}.workspace-title .actions{max-width:270px}.paper{font-size:12px}.quote-table{font-size:11px}.quote-table th,.quote-table td small{font-size:10px}.product b{display:none}}
@media(max-width:600px){.topbar{height:auto;min-height:78px;flex-wrap:wrap;padding:16px 5%;gap:12px}.brand{font-size:21px}.product{padding-left:12px;font-size:8px}.back{font-size:10px}.workspace-title{display:block;padding-top:30px}h1{font-size:38px}.workspace-title .actions{max-width:none;justify-content:flex-start;margin-top:20px}.workspace-title .actions button,.file-button{font-size:10px;padding:10px}.panel summary{padding:16px;font-size:13px}.panel summary small{display:none}.panel-body{padding:0 15px 18px}.fields{grid-template-columns:1fr}.catalog-head{grid-template-columns:1fr}.paper{padding:17px 12px;font-size:9px;min-height:600px}.paper-brand{font-size:16px}.paper-meta h2{font-size:20px}.paper-logo{max-width:95px}.quote-table{font-size:8px}.quote-table th,.quote-table td small{font-size:7px}.quote-table td,.quote-table th{padding:7px 2px}.paper-meta{font-size:8px}.parties{gap:12px}.totals{width:75%}.request-banner{display:block}.request-banner button{margin-top:12px}.line-values{grid-template-columns:repeat(2,minmax(0,1fr))}footer{display:block}footer span{display:block;margin-top:7px}.logo-row{display:block}}
@page{size:A4;margin:14mm}
@media print{body{background:white}.app-chrome,dialog,#toast{display:none!important}#print-mount{display:block!important}#print-mount .paper{border:0;box-shadow:none;padding:0;min-height:0;font-size:10pt}.paper h3{font-size:11pt}.paper-head{break-inside:avoid}.quote-table{font-size:9pt}.quote-table th,.quote-table td small{font-size:8pt}.quote-table thead{display:table-header-group}.quote-table tr,.condition-block,.signatures,.totals{break-inside:avoid}.quote-table th{background:#e7eee2!important;color:#203c2b!important;print-color-adjust:exact}.paper-conditions{font-size:9pt}.total-row{font-size:10pt}.total-row.final{font-size:14pt}.signature{min-height:24mm;font-size:9pt}.draft-mark{font-size:9pt}.paper-footer{font-size:8pt}}

.history{font-size:11px;max-width:500px;margin:0 0 25px}.history select{background:var(--white)}.validation .ok{color:#426339}

.installed-profile{display:flex;align-items:center;flex-wrap:wrap;gap:24px;background:#fffefb;border:1px solid #c8d5bd;border-radius:10px;padding:24px;margin:0 0 26px}.installed-profile>img{width:170px;height:72px;object-fit:contain}.installed-profile h2{font-size:25px}.installed-profile .eyebrow{font-size:8px;margin-bottom:8px}.installed-profile p{margin:8px 0;font-size:12px;color:var(--muted)}.installed-profile small{font-size:10px;color:var(--muted)}.profile-badge{font-size:11px;line-height:2;color:#476c3c;margin-left:auto}.profile-cta{font-size:11px;width:100%;border-top:1px solid var(--line);padding-top:14px}.catalog-item .catalog-price{flex:0 0 90px}.catalog-price label{font-size:8px;margin:0}.catalog-price input{padding:6px;font-size:12px;margin-top:2px;background:white}.catalog-price .text-button{font-size:9px;padding:2px 0}.catalog-item>button{flex:none}.line-values input[data-prop="price"]{border:2px solid #86a36b;background:#f4fae8;font-weight:700}.catalog{max-height:330px}.paper-logo{width:150px;height:60px}.profile-cta:hover{text-decoration:underline}@media(max-width:600px){.installed-profile{padding:18px;gap:15px}.installed-profile>img{width:140px}.profile-badge{margin-left:0}.catalog-item{gap:8px}.catalog-item strong{font-size:11px}.catalog-item .catalog-price{flex-basis:74px}}

.profile-mode .workspace-title{padding-top:28px;padding-bottom:18px}.profile-mode h1{font-size:38px}.profile-mode .local-note{margin-bottom:15px}.profile-mode .history{margin-bottom:16px}.profile-mode #client-panel summary small{max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile-mode .installed-profile{padding:20px;margin-bottom:20px}
