@charset "UTF-8";
.consumable-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.consumable-card{border:1px solid #e3e6e4;border-radius:9px;padding:16px;background:#fafbf8}.consumable-card.selected{border-color:#d4a653;background:#fff8ec}.consumable-card>.checkbox-label{margin-bottom:16px}.consumable-card .summary-row{margin-top:14px}.container-totals{display:flex;flex-direction:column;gap:12px;justify-content:center;font-size:12px;color:#738088}.container-totals span{display:flex;justify-content:space-between;gap:12px}.container-totals strong{color:#1d3038}.logo-settings{margin-bottom:22px}.logo-controls{display:flex;align-items:center;gap:18px}.company-logo-preview{width:160px;height:85px;object-fit:contain;border:1px solid #e3e6e4;border-radius:8px;padding:10px;background:white}.logo-placeholder{border:1px dashed #c9d0cb;border-radius:8px;padding:25px 15px;min-width:150px;text-align:center;font-size:12px;color:#738088}.logo-controls input{font-size:12px;max-width:340px}.logo-controls .hint{display:block;margin-top:5px}.paper-logo{display:block;max-width:190px;max-height:85px;object-fit:contain;object-position:left center;margin-bottom:12px}.paper-area-rate{border-bottom:1px solid #e3e6e4;padding-bottom:10px!important;margin-bottom:7px}.paper-area-rate span{max-width:160px}.preview-toolbar{flex-wrap:wrap}.preview-toolbar>span{flex:1;min-width:150px}@media(max-width:600px){.consumable-cards{grid-template-columns:1fr}.logo-controls{flex-direction:column;align-items:flex-start}.paper-logo{max-width:145px;max-height:70px}}@media print{.paper-logo{max-width:155pt;max-height:65pt}.paper-area-rate{break-inside:avoid}}
:root{color-scheme:light;--navy:#172b35;--navy-2:#233c47;--ink:#1d3038;--muted:#738088;--line:#e3e6e4;--paper:#fff;--canvas:#f5f5f0;--amber:#e6b45b;--amber-pale:#fff6e5;--green:#46685c;--radius:12px;font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:14px;font-weight:400;line-height:1.5;color:var(--ink);background:var(--canvas)}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #ce9236;outline-offset:3px}a{color:inherit}svg{display:inline-block;flex-shrink:0;vertical-align:middle}button svg{width:18px;height:18px}h1,h2,h3,p{margin:0}h1{font-size:30px;font-weight:650;letter-spacing:-1px;line-height:1.2}h2{font-size:18px;font-weight:650;letter-spacing:-.35px}h3{font-size:14px;font-weight:650}small{font-size:12px}.hidden{display:none!important}.muted,.hint,.subtitle{color:var(--muted)}.hint{font-size:12px;line-height:1.55}.subtitle{margin-top:7px}.eyebrow{text-transform:uppercase;letter-spacing:1.3px;font-size:10px;font-weight:700;color:var(--muted);margin-bottom:6px}.money{font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}.app-shell{display:flex;min-height:100vh}.sidebar{width:240px;flex:0 0 240px;background:var(--navy);color:#f4f6f2;display:flex;flex-direction:column;padding:30px 18px 20px;position:fixed;inset:0 auto 0 0;z-index:10}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 30px;font-size:18px;font-weight:650;letter-spacing:-.4px}.brand small{display:block;font-size:10px;color:#a9b8bc;letter-spacing:1.2px;text-transform:uppercase;margin-top:2px;font-weight:500}.brand-mark{width:36px;height:36px;flex-shrink:0;background:var(--amber);color:var(--navy);display:flex;align-items:center;justify-content:center;border-radius:9px}.brand-mark svg{width:22px;height:22px}.sidebar button{color:inherit}.new-quote{display:flex;align-items:center;justify-content:center;gap:8px;min-height:45px;width:100%;background:var(--amber);border:0;border-radius:8px;color:var(--navy)!important;font-weight:650;margin-bottom:26px}.new-quote:hover{background:#eec071}.nav-item{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;border:0;border-radius:7px;background:transparent;text-align:left;padding:9px 11px;color:#b9c7cb!important;font-size:13px}.nav-item:hover,.nav-item.active{background:#29414b;color:white!important}.list-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:4px 9px 13px;font-size:10px;color:#9eafb5;letter-spacing:1.3px;text-transform:uppercase;font-weight:650}.list-header span:last-child{letter-spacing:0;background:#2c424c;min-width:22px;min-height:20px;border-radius:5px;text-align:center;padding:2px 5px}.search-input{width:100%;height:38px;min-height:38px!important;border:1px solid #38505b!important;background:#213741!important;color:#f5f7f5!important;border-radius:7px!important;margin-bottom:10px;padding:8px 11px!important;font-size:12px}.search-input::placeholder{color:#94a7af}.quote-list{overflow:auto;min-height:80px;flex:1;margin:0 -5px;padding:0 5px}.quote-item{display:block;position:relative;width:100%;text-align:left;border:1px solid transparent;border-radius:8px;background:transparent;padding:13px 12px;margin:3px 0;color:#c4d1d5!important}.quote-item:hover{background:#213b45}.quote-item.active{background:#2a434d;border-color:#3e5660;color:#fff!important}.quote-item.active:before{content:"";position:absolute;left:-1px;top:16px;bottom:16px;width:3px;background:var(--amber);border-radius:2px}.quote-item strong{display:block;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-bottom:3px}.quote-item small{font-size:11px;color:#99adb5;display:block}.quote-item .quote-price{font-size:12px;display:block;margin-top:7px;font-variant-numeric:tabular-nums}.sidebar-bottom{border-top:1px solid #314952;margin-top:18px;padding-top:15px}.sidebar-bottom .hint{color:#91a5ac;font-size:10px;margin:11px 9px 2px;line-height:1.6}.sidebar-bottom .button{color:#b9c7cb;background:transparent;border-color:#38515c}.main{margin-left:240px;width:calc(100% - 240px);min-width:0;padding:0 34px 48px}.topbar{min-height:80px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:16px;max-width:1450px;margin:auto}.breadcrumb{font-size:12px;color:#8a9598;display:flex;gap:10px;align-items:center}.breadcrumb strong{color:#495a61;font-weight:500}.top-actions{display:flex;align-items:center;gap:12px}.save-state{font-size:11px;color:#7e898d}.save-state:before{content:"";display:inline-block;width:5px;height:5px;background:#7da18a;border-radius:50%;margin-right:6px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:32px 0 27px;max-width:1450px;margin:auto}.page-heading>div:last-child{display:flex;align-items:center;gap:9px}.workspace{max-width:1450px;margin:auto;display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:24px;align-items:start}.content{min-width:0}.steps{display:flex;border-bottom:1px solid var(--line);gap:26px;margin-bottom:23px}.step{display:flex;gap:9px;align-items:center;min-height:47px;padding:0 3px 13px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;color:#8a9495;background:none;font-size:13px;font-weight:500}.step span:first-child{font-size:10px;letter-spacing:.5px}.step.active{color:var(--ink);border-bottom-color:var(--amber);font-weight:650}.panel{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);margin-bottom:18px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:23px 25px 19px;border-bottom:1px solid #edf0ed}.panel-head .hint{margin-top:4px}.panel-body{padding:24px 25px}.panel-body>.notice:first-child{margin-top:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field.wide{grid-column:1/-1}.field label,label.field-label{font-weight:550;font-size:12px;color:#4a5b62;display:block}.field .optional{font-weight:400;color:#929b9f;font-size:11px;margin-left:4px}input,select,textarea{width:100%;min-width:0;min-height:44px;border:1px solid #dce1df;border-radius:7px;background:#fff;color:var(--ink);padding:10px 12px;transition:border-color .15s,box-shadow .15s}input:hover,select:hover,textarea:hover{border-color:#aebdbe}input:focus,select:focus,textarea:focus{border-color:#b78c4b;outline:none;box-shadow:0 0 0 3px #e6b45b21}input::placeholder,textarea::placeholder{color:#a7afb1}input[readonly],input:disabled{background:#f4f5f1;color:#6f7f85}input[type=number]{font-variant-numeric:tabular-nums}input[type=checkbox]{width:17px;min-height:17px;accent-color:var(--navy);margin:0;flex-shrink:0}textarea{min-height:94px;resize:vertical;line-height:1.55}select{padding-right:28px}.field .hint{margin-top:0}.notice{padding:14px 16px;border-radius:8px;background:#eef3f0;border:1px solid #dce7de;color:#4e685a;font-size:12px;margin:18px 0;line-height:1.65}.notice.warning{background:var(--amber-pale);border-color:#efddba;color:#8f662e}.notice a{font-weight:600}.notice button{font-size:12px;background:none;border:0;color:inherit;text-decoration:underline}.notice ul{margin:6px 0 0;padding-left:18px}.button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #d9dfdc;border-radius:7px;background:#fff;color:var(--ink);padding:10px 15px;font-size:12px;font-weight:600;text-decoration:none;line-height:1.3}.button:hover{background:#f3f5f1;border-color:#b9c6c3}.button.primary{background:var(--navy);border-color:var(--navy);color:white}.button.primary:hover{background:#2d4855}.button.accent{background:var(--amber);border-color:var(--amber);color:#273a3f}.button.accent:hover{background:#edbf70}.button.small{min-height:34px;font-size:11px;padding:8px 11px}.button.ghost{background:transparent;border-color:transparent;color:#738188}.button.ghost:hover{background:#edf0eb;color:var(--ink)}.button.danger{color:#ac4840}.button.full{width:100%}.actions-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0}.actions-row>div{display:flex;gap:8px}.mode-switch{display:inline-flex;border:1px solid #dde3df;border-radius:8px;padding:3px;background:#f5f6f2;gap:3px}.mode-switch button{min-height:36px;border:0;border-radius:5px;background:transparent;padding:8px 15px;color:#78868a;font-size:12px;font-weight:550}.mode-switch button.active{background:white;color:var(--ink);box-shadow:0 1px 4px #203e4912}.mode-row{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.mode-row .hint{max-width:340px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}table{width:100%;border-collapse:collapse}.line-table,.task-table{font-size:12px}.line-table th,.task-table th{text-align:left;color:#819096;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.65px;padding:12px 10px;border-bottom:1px solid var(--line);background:#fafbf8;white-space:nowrap}.line-table td,.task-table td{padding:13px 10px;border-bottom:1px solid #edf0ec;vertical-align:middle}.line-table th:first-child,.line-table td:first-child,.task-table th:first-child,.task-table td:first-child{padding-left:24px}.line-table th:last-child,.line-table td:last-child,.task-table th:last-child,.task-table td:last-child{padding-right:24px}.line-table tbody tr:last-child td,.task-table tbody tr:last-child td{border-bottom:0}.line-table td:first-child{width:42%}.line-table input,.task-table input,.line-table select{min-height:38px;padding:8px 9px;border-radius:5px;font-size:12px}.line-table .line-name{border-color:transparent;background:transparent;padding-left:0;font-weight:500;min-width:155px}.line-table .line-name:hover,.line-table .line-name:focus{border-color:#dce1df;background:white;padding-left:8px}.line-table input[type=number]{width:80px;text-align:right}.line-table td.money{font-weight:650;min-width:96px}.line-table .unit{color:#919b9f;font-size:10px;margin-top:2px}.line-table .line-name+.hint{font-size:10px}.remove-line{min-width:30px;min-height:35px;background:transparent;border:0;border-radius:5px;color:#a8b1b3;padding:4px}.remove-line:hover{background:#fbefec;color:#b15c4b}.task-table{font-size:11px}.task-table th{font-size:9px;letter-spacing:.3px;white-space:normal}.task-table td:first-child{min-width:170px;width:36%}.task-table input[type=number]{width:78px;text-align:right}.task-table .money{font-weight:600}.task-table .unit{color:#8c999e;font-size:10px}.task-total{display:flex;justify-content:space-between;align-items:center;gap:10px;border-top:1px solid #dfe5e0;background:#f4f6f0;padding:13px 25px;font-size:12px;font-weight:600}.detail-costs{border-top:1px solid var(--line);background:#fafbf8}.detail-costs summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;font-weight:600;padding:16px 25px;color:#5c7079;min-height:48px}.detail-costs summary::-webkit-details-marker{display:none}.detail-costs summary:after{content:"+";font-size:18px;color:#8d9d9f;font-weight:400}.detail-costs[open] summary:after{content:"−"}.detail-costs .panel-body{padding-top:6px}.section-separator{height:1px;background:var(--line);margin:23px 0}.summary{position:sticky;top:25px;padding-top:0}.summary-card{border-radius:12px;background:var(--navy);color:#fff;padding:25px}.summary-label{text-transform:uppercase;letter-spacing:1.4px;font-size:10px;color:#b3c2c8;font-weight:600}.summary-total{font-size:35px;font-weight:600;letter-spacing:-1.3px;margin:9px 0 5px;font-variant-numeric:tabular-nums;line-height:1.15;overflow-wrap:anywhere}.summary-card>.hint{color:#91a7b1;font-size:11px}.summary-breakdown{border-top:1px solid #3c5059;margin-top:23px;padding-top:14px}.summary-row{display:flex;justify-content:space-between;gap:10px;padding:5px 0;font-size:11px;color:#b5c4ca}.summary-row strong{font-weight:500;font-variant-numeric:tabular-nums;color:#f4f5f2}.summary-row.total{border-top:1px solid #3c5059;margin-top:8px;padding-top:13px;font-weight:650;color:white}.summary-row.total strong{font-weight:650}.summary-card .button{width:100%;margin-top:20px;background:var(--amber);border-color:var(--amber);color:#22333b}.profit-box{padding:20px 5px 16px;margin:3px 0;border-bottom:1px solid var(--line)}.profit-box .eyebrow{font-size:9px;letter-spacing:1px}.profit-box .summary-row{color:#738289;font-size:12px;padding:5px 0}.profit-box .summary-row strong{color:#344f58;font-weight:600}.profit-box .hint{font-size:11px;margin-top:10px}.profit-box .profit-value{font-size:22px;font-weight:600;color:var(--green);font-variant-numeric:tabular-nums}.summary-note{font-size:11px;line-height:1.65;color:#8a969b;padding:15px 5px}.pill{display:inline-flex;align-items:center;gap:5px;padding:5px 9px;min-height:25px;border-radius:5px;background:#e8eee9;color:#5d7968;font-size:10px;font-weight:600;white-space:nowrap}.pill.draft{background:#eaece6;color:#788275}.pill.sent{background:#e9eff3;color:#52748b}.pill.accepted{background:#e5eee5;color:#527459}.empty-state{padding:28px 16px;text-align:center;font-size:12px;color:#8d9ea5;line-height:1.7}.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:1000;border-radius:9px;background:var(--navy);color:#fff;box-shadow:0 10px 30px #0b26332e;padding:14px 22px;font-size:13px;max-width:min(90vw,650px)}dialog.modal{border:1px solid #e0e5e1;border-radius:14px;padding:0;width:min(680px,calc(100vw - 32px));max-height:90vh;box-shadow:0 30px 100px #0d273336;color:var(--ink);background:white}dialog::backdrop{background:#0b202b78;backdrop-filter:blur(2px)}.modal-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:24px 28px;border-bottom:1px solid var(--line)}.modal-head h2{font-size:21px}.modal-head button{background:none;border:0;color:#829194;min-height:35px;min-width:35px;font-size:22px}.modal-body{padding:25px 28px;max-height:65vh;overflow:auto}.modal-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 28px;border-top:1px solid var(--line);background:#fafbf8}.settings-section{margin-bottom:25px}.settings-section h3{margin-bottom:15px;font-size:13px}.settings-section+.settings-section{padding-top:24px;border-top:1px solid var(--line)}.preview-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin:0 0 18px}.preview-toolbar .hint{font-size:11px}.quote-paper{background:#fff;border:1px solid var(--line);border-radius:5px;box-shadow:0 3px 15px #253c4406;padding:40px;color:#253c45;font-size:12px;line-height:1.65;min-height:730px;overflow-wrap:anywhere}.paper-head{display:flex;justify-content:space-between;align-items:start;gap:25px;padding-bottom:26px;border-bottom:2px solid var(--navy)}.paper-brand{font-size:20px;font-weight:700;letter-spacing:-.5px;max-width:55%}.paper-brand small,.paper-brand p{display:block;font-size:10px;line-height:1.7;font-weight:400;color:#7e8c91;letter-spacing:0;white-space:pre-line;margin-top:8px}.paper-title{text-align:right;font-size:22px;font-weight:650;letter-spacing:1px;text-transform:uppercase}.paper-meta{font-size:10px;font-weight:400;letter-spacing:0;text-transform:none;margin-top:5px;color:#7b898e;line-height:1.8}.paper-parties{display:grid;grid-template-columns:1fr 1fr;gap:35px;padding:25px 0 22px}.paper-parties h3{font-size:9px;letter-spacing:1.3px;text-transform:uppercase;color:#93a0a4;margin-bottom:8px}.paper-parties strong{font-size:12px}.paper-parties p{font-size:11px;color:#75858d;white-space:pre-line;margin-top:4px}.paper-project{font-size:15px;font-weight:600;margin:10px 0 18px}.paper-table{font-size:11px;margin:10px 0 22px}.paper-table th{text-align:left;background:#f2f4ef;padding:10px 9px;font-size:9px;letter-spacing:.5px;text-transform:uppercase;font-weight:600;color:#61747b;border-bottom:1px solid #dce3dd}.paper-table td{padding:12px 9px;border-bottom:1px solid #e8ece6;vertical-align:top}.paper-table th:first-child,.paper-table td:first-child{padding-left:10px}.paper-table th:not(:first-child),.paper-table td:not(:first-child){text-align:right}.paper-table td:first-child{width:55%}.paper-totals{margin-left:auto;width:min(280px,100%);font-size:11px}.paper-totals>div,.paper-totals .total-row{display:flex;justify-content:space-between;gap:20px;padding:5px 0}.paper-totals .grand-total{border-top:2px solid var(--navy);margin-top:8px;padding:12px 0;font-size:16px;font-weight:700}.paper-totals strong{font-weight:600;font-variant-numeric:tabular-nums}.paper-notes{margin-top:26px;font-size:10px;color:#65777d}.paper-notes h3{font-size:10px;text-transform:uppercase;letter-spacing:.7px;color:#3f5862;margin:16px 0 5px}.paper-notes p{white-space:pre-wrap;overflow-wrap:anywhere}.paper-foot{font-size:9px;color:#8f9b9f;border-top:1px solid #e4e9e2;padding-top:14px;margin-top:28px;white-space:pre-line}.signature{display:flex;justify-content:space-between;gap:30px;margin-top:45px;font-size:9px;color:#7d8e95}.signature>div{border-top:1px solid #bcc8c9;padding-top:7px;flex:1}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;color:#536a72}.text-link{border:0;background:none;text-decoration:underline;text-underline-offset:3px;color:#637e89;padding:5px 0;font-size:11px}.inline-fields{display:flex;gap:10px;align-items:end}.inline-fields .field{flex:1}.backup-actions{display:flex;gap:6px;margin-top:6px}.backup-actions .button{flex:1}.status-select{font-size:11px;min-height:34px;padding:7px 24px 7px 10px;max-width:130px;background:#f0f2ed;border-color:transparent}.warning-text{color:#aa7333}.internal-label{font-size:9px;letter-spacing:1px;text-transform:uppercase;font-weight:650;color:#8c999d}.button-row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
@media(min-width:1600px){.main{padding-left:50px;padding-right:50px}.workspace{gap:30px;grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1200px){.sidebar{width:212px;flex-basis:212px;padding-left:14px;padding-right:14px}.main{margin-left:212px;width:calc(100% - 212px);padding-left:24px;padding-right:24px}.workspace{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.summary-card{padding:21px}.summary-total{font-size:30px}.panel-head,.panel-body{padding-left:21px;padding-right:21px}.line-table th:first-child,.line-table td:first-child,.task-table th:first-child,.task-table td:first-child{padding-left:20px}.line-table th:last-child,.line-table td:last-child,.task-table th:last-child,.task-table td:last-child{padding-right:20px}.quote-paper{padding:28px}.top-actions{gap:7px}.topbar .save-state{font-size:10px}.line-table input[type=number]{width:65px}}
@media(max-width:1040px){.workspace{grid-template-columns:minmax(0,1fr)}.summary{position:static;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px;align-items:start}.profit-box{margin:0;padding:16px 3px}.summary-note{grid-column:1/-1;padding-top:0}.summary-card .button{margin-top:15px}.page-heading h1{font-size:27px}.paper-brand{max-width:60%}.save-state{display:none}}
@media(max-width:720px){.app-shell{display:block}.sidebar{width:auto;position:relative;inset:auto;padding:17px 18px;display:grid;grid-template-columns:1fr auto;gap:12px;min-height:0}.brand{padding:0;font-size:17px}.brand-mark{height:32px;width:32px;border-radius:7px}.brand small{font-size:8px}.new-quote{width:auto;min-height:40px;padding:8px 12px;margin:0;font-size:11px;align-self:center}.sidebar>.list-header,.sidebar>.search-input,.sidebar>.quote-list,.sidebar>.sidebar-bottom{grid-column:1/-1}.sidebar .list-header{padding:8px 1px 0}.search-input{margin-bottom:0}.quote-list{max-height:155px;min-height:0;display:flex;gap:7px;overflow-x:auto;margin:0;padding:0 0 4px}.quote-item{min-width:180px;width:180px;margin:0;padding:10px 12px}.quote-item strong{font-size:12px}.quote-item .quote-price{margin-top:4px}.sidebar-bottom{margin-top:0;padding-top:9px;display:flex;gap:8px;align-items:center;justify-content:space-between}.sidebar-bottom .nav-item{min-height:35px;font-size:11px;width:auto;padding:7px}.sidebar-bottom .hint{margin:0;font-size:8px;max-width:130px;text-align:right}.sidebar-bottom .backup-actions{margin:0}.sidebar-bottom .button{padding:6px;font-size:9px;min-height:32px}.main{margin-left:0;width:100%;padding:0 18px 30px}.topbar{min-height:55px}.breadcrumb{font-size:10px;gap:7px}.top-actions .button{font-size:10px;padding:7px 9px;min-height:35px}.page-heading{padding:24px 0 20px;align-items:flex-start}.page-heading h1{font-size:25px}.page-heading .subtitle{font-size:12px}.page-heading>div:last-child{gap:5px}.page-heading .button{padding:8px 10px;min-height:35px;font-size:10px}.steps{gap:21px;margin-bottom:18px}.step{font-size:12px;gap:7px}.workspace{gap:18px}.panel-head{padding:18px}.panel-head h2{font-size:16px}.panel-body{padding:20px 18px}.form-grid{gap:17px}.field label{font-size:11px}input,select,textarea{font-size:16px;padding:10px;min-height:44px}.mode-row{display:block}.mode-row>.hint{margin-top:12px}.mode-switch{width:100%}.mode-switch button{flex:1}.line-table,.task-table{min-width:550px}.line-table th:first-child,.line-table td:first-child,.task-table th:first-child,.task-table td:first-child{padding-left:18px}.line-table th:last-child,.line-table td:last-child,.task-table th:last-child,.task-table td:last-child{padding-right:18px}.line-table .line-name{min-width:160px}.summary{gap:15px;grid-template-columns:1fr}.profit-box{padding:3px}.summary-card{padding:24px}.summary-total{font-size:36px}.summary-note{padding:0 3px}.actions-row{margin:20px 0}.actions-row .button{font-size:11px}.preview-toolbar{align-items:flex-start}.preview-toolbar .hint{max-width:160px;font-size:10px}.quote-paper{padding:24px 18px;font-size:11px;min-height:600px}.paper-head{gap:15px;padding-bottom:20px}.paper-brand{font-size:16px;max-width:55%}.paper-title{font-size:17px;letter-spacing:.3px}.paper-meta,.paper-brand small,.paper-brand p{font-size:8px}.paper-parties{gap:20px;padding:20px 0 15px}.paper-parties strong{font-size:11px}.paper-parties p{font-size:10px}.paper-table{font-size:10px}.paper-table th{font-size:8px;padding:9px 5px}.paper-table td{padding:10px 5px}.paper-totals{width:230px;font-size:10px}.paper-notes{font-size:9px}.paper-totals .grand-total{font-size:15px}.modal-head{padding:20px}.modal-body{padding:20px}.modal-actions{padding:16px 20px}.settings-section .form-grid{gap:15px}.notice{font-size:11px}.task-total{padding:13px 18px}.detail-costs summary{padding:16px 18px}}
@media(max-width:420px){.main{padding-left:13px;padding-right:13px}.sidebar{padding-left:13px;padding-right:13px}.brand{font-size:15px;gap:8px}.new-quote{padding:8px;font-size:10px}.page-heading{display:block}.page-heading>div:last-child{margin-top:13px}.form-grid{grid-template-columns:1fr}.field.wide{grid-column:auto}.steps{justify-content:space-between;gap:8px}.step{font-size:11px}.paper-head{display:block}.paper-brand{max-width:100%;margin-bottom:16px}.paper-title{text-align:left}.paper-meta{display:flex;gap:12px;flex-wrap:wrap}.paper-parties{gap:15px}.sidebar-bottom .hint{display:none}.sidebar-bottom{flex-wrap:wrap}.preview-toolbar .button{font-size:10px;padding:8px}.paper-table{font-size:9px}.paper-table td:first-child{width:45%}}
@media print{
 @page{size:letter;margin:14mm}
 :root,body{background:#fff!important;color:#162d38!important;font-size:10pt!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
 body *{visibility:hidden!important}
 #print-document,#print-document *{visibility:visible!important}
 .sidebar,.topbar,.page-heading,.steps,.summary,.preview-toolbar,.toast,dialog,.editor-view,.actions-row{display:none!important}
 .app-shell,.main,.workspace,.content,.preview-view,.preview-view.hidden{display:block!important;position:static!important;width:auto!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;height:auto!important;min-height:0!important}
 #print-document{display:block!important;position:static!important;inset:auto!important;width:100%!important;max-width:none!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#fff!important;box-shadow:none!important;color:#162d38!important;font-size:9pt!important}
 #print-document .paper-head{break-inside:avoid;page-break-inside:avoid;border-bottom:2px solid #172b35!important;padding-bottom:17pt!important}
 #print-document .paper-brand{font-size:18pt!important;max-width:56%!important}
 #print-document .paper-brand small,#print-document .paper-brand p{font-size:8pt!important}
 #print-document .paper-title{font-size:20pt!important}
 #print-document .paper-meta{font-size:8pt!important}
 #print-document .paper-parties{display:grid!important;grid-template-columns:1fr 1fr!important;padding:17pt 0!important;break-inside:avoid;page-break-inside:avoid}
 #print-document .paper-parties h3{font-size:7pt!important}
 #print-document .paper-parties strong{font-size:10pt!important}
 #print-document .paper-parties p{font-size:8pt!important}
 #print-document .paper-table{font-size:8pt!important;width:100%!important}
 #print-document .paper-table thead{display:table-header-group}
 #print-document .paper-table th{font-size:7pt!important;background:#f1f4ef!important}
 #print-document .paper-table tr{break-inside:avoid;page-break-inside:avoid}
 #print-document .paper-table td{padding:8pt 6pt!important}
 #print-document .paper-totals{width:200pt!important;margin-left:auto!important;break-inside:avoid;page-break-inside:avoid;font-size:8pt!important}
 #print-document .paper-totals .grand-total{font-size:13pt!important}
 #print-document .paper-notes{font-size:8pt!important;line-height:1.55!important}
 #print-document .paper-notes h3{break-after:avoid;page-break-after:avoid;font-size:8pt!important}
 #print-document .paper-notes p{white-space:pre-wrap!important;overflow-wrap:anywhere!important;orphans:3;widows:3}
 #print-document .signature,#print-document .paper-foot{break-inside:avoid;page-break-inside:avoid;font-size:7pt!important}
}

/* Align the shared components with the application markup. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.panel-head{flex-direction:column;align-items:flex-start;justify-content:center;gap:3px}
.panel-head .eyebrow{margin:0}
.quote-item{display:flex;justify-content:space-between;align-items:center;gap:10px}
.quote-item>span:first-child{min-width:0}
.quote-item>span:last-child{color:#91a8b0;font-size:20px;font-weight:300}
.sidebar-bottom p{font-size:10px;line-height:1.65;color:#91a5ac;margin:15px 10px 0}
.table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;margin:4px 0 15px}
.line-table td.line-name{border:0;border-bottom:1px solid #edf0ec;padding:13px 10px 13px 24px;min-width:180px;font-weight:400}
.line-table td.line-name:hover,.line-table td.line-name:focus{border:0;border-bottom:1px solid #edf0ec;background:transparent;padding-left:24px}
.line-table td.line-name strong{font-size:12px;font-weight:550;display:block}
.line-table td.line-name small,.task-table td.line-name small{font-size:10px;line-height:1.5;display:block;color:#909da2;margin-top:3px;white-space:normal}
.line-table .line-description{width:100%;min-width:150px;border:1px solid transparent;background:transparent;padding:7px 0;font-weight:500}
.line-table .line-description:hover,.line-table .line-description:focus{border-color:#dce1df;background:#fff;padding-left:7px}
.input-unit{display:flex;align-items:center;gap:6px;color:#8c999e;font-size:11px}
.input-unit input{flex:1;min-width:0}
.hours-total{display:flex;justify-content:space-between;align-items:center;gap:15px;background:#f0f3ec;border:1px solid #e2e8de;border-radius:7px;padding:13px 15px;margin-top:17px;font-size:12px;color:#5e7375}
.hours-total strong{color:var(--ink);font-size:14px;font-variant-numeric:tabular-nums}
.summary-tax-note{font-size:11px;color:#98adb6;margin-top:8px}
.summary-subtotal{border-top:1px solid #3c5059;margin-top:8px;padding-top:12px;font-weight:600;color:#f2f5f2}
.summary-footnote{padding:17px 4px;color:#8a969b;font-size:10px;line-height:1.7}
.labor-help{align-self:center;font-size:12px;line-height:1.75;padding:8px 0 0 8px}
.paper-monogram{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:var(--amber);color:var(--navy);border-radius:6px;font-size:19px;font-weight:700;margin-bottom:11px}
.paper-brand h2{font-size:19px;line-height:1.25;letter-spacing:-.4px}
.paper-title>p{font-size:10px;letter-spacing:1.5px;color:#8b999f;margin-bottom:5px}
.paper-title h2{font-size:22px;line-height:1.25;letter-spacing:-.6px}
.paper-totals .paper-grand-total{border-top:2px solid var(--navy);margin-top:8px;padding:12px 0;font-size:16px;font-weight:700}
.paper-tax-ids{font-size:9px;color:#8a989e;border-top:1px solid #e4e9e2;padding-top:14px;margin-top:26px;line-height:1.7}
.checkbox-label{display:flex;align-items:center;gap:9px;font-size:12px;min-height:36px;color:#536a72;cursor:pointer}
.checkbox-label.wide{grid-column:1/-1}
.save-error{color:#a8663d!important}.save-error:before{background:#b6784c}
.detail-costs>.form-grid{padding:4px 0 18px}
.detail-costs>summary{padding:17px 0}
.detail-costs>summary span{margin-left:auto;font-size:10px;color:#9aa7aa;font-weight:400}
.detail-costs>p.hint{padding:4px 0 17px}
.settings-section{margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.settings-section p.hint{margin-top:14px}
.editor-view>.notice{display:flex;justify-content:space-between;align-items:center;gap:20px}
.editor-view>.notice p{margin-top:5px}
.actions-row>.muted{font-size:11px;line-height:1.6;max-width:55%}
.fee-option{border:1px solid var(--line);border-radius:8px;padding:12px 16px}
.fee-option .checkbox-label{font-weight:650}
.fee-option .field{margin-top:8px}
.fee-option input:disabled{color:#67777c;background:#f2f4f3}
.heading-actions{flex-wrap:wrap}
#delete-quote{color:#914137}
.button.danger{background:#943d32;color:white;border-color:#943d32}
.sign-tools{background:white;border:1px solid var(--line);border-radius:9px;padding:15px 18px;margin:0 0 14px}
.sign-tools h2{font-size:16px;margin-bottom:9px}
.sign-tools p{margin:8px 0}
.sign-actions{display:flex;gap:8px;flex-wrap:wrap}
.payment-amounts{align-self:center}
.paper-totals>.hint{font-size:10px;line-height:1.4;margin-top:6px}
@media print{.sign-tools{display:none!important}}
.topbar .save-state{display:inline-block;line-height:1.35}
.topbar .save-error{color:#9f3523}
.topbar .save-error::before{background:#ad492f}
.topbar #reconnect{font-size:12px;font-weight:650}
@media(max-width:720px){.topbar{flex-wrap:wrap;gap:6px;padding:8px 0}.topbar .top-actions{flex:1;flex-wrap:wrap;justify-content:flex-end}.topbar .save-state{max-width:155px}}
@media(max-width:1040px){#summary-content{display:contents}.summary-footnote{grid-column:1/-1;padding-top:0}.summary>.notice,#summary-content>.notice{grid-column:1/-1}}
@media(max-width:720px){.sidebar-bottom{flex-wrap:wrap;gap:4px}.sidebar-bottom .nav-item{flex:0 1 auto;padding:6px;min-height:35px;font-size:10px}.sidebar-bottom p{width:100%;margin:3px 6px 0;font-size:9px;line-height:1.5}.sidebar-bottom p br{display:none}.line-table td.line-name,.line-table td.line-name:hover{padding-left:18px}.editor-view>.notice{align-items:flex-start}.editor-view>.notice .button{flex-shrink:0}.paper-brand h2{font-size:16px}.paper-title h2{font-size:19px}.paper-totals .paper-grand-total{font-size:15px}.paper-tax-ids{font-size:8px}.labor-help{padding:0}.summary-footnote{padding-top:0}.actions-row{flex-wrap:wrap}.actions-row>.muted{max-width:100%;flex-basis:100%}}
@media(max-width:420px){.sidebar-bottom p{display:none}.editor-view>.notice{display:block}.editor-view>.notice .button{margin-top:12px}.checkbox-label.wide{grid-column:auto}.paper-brand h2{font-size:16px}}
@media print{.preview-view>.notice{display:none!important}.paper-monogram{background:#e6b45b!important;color:#172b35!important;width:26pt!important;height:26pt!important;font-size:17pt!important}.paper-brand h2{font-size:16pt!important}.paper-title>p{font-size:8pt!important}.paper-title h2{font-size:18pt!important}#print-document .paper-totals .paper-grand-total{font-size:13pt!important}.paper-tax-ids{font-size:7pt!important;break-inside:avoid;page-break-inside:avoid}}

/* The company workspace shares the public KH site's charcoal, concrete and amber. */
@media screen {
  :root {
    --navy: #151612;
    --navy-2: #262824;
    --ink: #20221e;
    --muted: #60675c;
    --line: #d9dcd3;
    --canvas: #f3f3ee;
    --amber: #ffa600;
    --amber-pale: #fff5df;
    --radius: 6px;
    --title-font: "Barlow Condensed", "Bahnschrift SemiCondensed", "Arial Narrow", "Segoe UI", sans-serif;
    font-family: Barlow, "Segoe UI", Arial, sans-serif;
  }
  .brand {
    gap: 11px;
    padding: 0 3px 25px;
    font-family: var(--title-font);
    font-size: 20px;
    line-height: 1.15;
  }
  .brand img { flex: none; width: 52px; height: 52px; object-fit: contain }
  .brand small { color: #ffc24a; margin-top: 5px; font-size: 9px; font-weight: 600 }
  .sidebar { border-right: 1px solid #393c34; overflow-y: auto }
  .quote-start { display: grid; gap: 6px; margin-bottom: 24px }
  .quote-start .button { width: 100%; min-height: 40px; border-radius: 3px; margin: 0 }
  .sidebar .import-kh { color: #e5e7dc; background: transparent; border: 1px solid #606456 }
  .sidebar .import-kh:hover, .sidebar .import-kh:focus-visible { background: #2a2d24; border-color: var(--amber) }
  .button.accent, .summary-card .button { color: #1b1c15; border-radius: 3px }
  .button.accent:hover, .summary-card .button:hover { background: #ffbd46; border-color: #ffbd46 }
  .button.primary { border-radius: 3px }
  .button.primary:hover { background: #34362e }
  .list-header, .quote-item small, .sidebar-bottom p, .sidebar .nav-item { color: #b7bbae !important }
  .list-header span:last-child, .quote-item:hover, .nav-item:hover { background: #2e3129 }
  .quote-item { color: #e0e3d7 !important }
  .quote-item.active { border-color: #626752; background: #32362c }
  .sidebar .intake-shortcut { background: #30291e; color: #ffcb69; border: 1px solid #9b7733 }
  .sidebar .intake-shortcut:hover, .sidebar .intake-shortcut:focus-visible { background: #443721; color: #fff0ce }
  .sidebar .intake-shortcut[hidden] { display: none }
  .quote-item.intake-pending { border-left: 3px solid var(--amber) }
  .quote-item.intake-pending small { color: #ffcd74 !important }
  .intake-details { margin-bottom: 18px; font-size: 14px }
  .intake-details summary { font-weight: 600; cursor: pointer }
  .intake-details p { padding: 10px 0; white-space: pre-wrap; overflow-wrap: anywhere }
  .quote-item>span:last-child { color: var(--amber) }
  .search-input { border-color: #515649 !important; background: #242720 !important }
  .search-input::placeholder { color: #bbc1b3 }
  .sidebar-bottom { border-top-color: #3b4035 }
  .breadcrumb, .breadcrumb a, .button.ghost { color: #646b5f }
  .breadcrumb strong { color: var(--ink) }
  .breadcrumb a { text-decoration: underline; text-underline-offset: 3px }
  .breadcrumb a:hover { color: #805000 }
  .page-heading h1, .panel-head h2, .summary-total, .kh-signin h1 { font-family: var(--title-font) }
  .page-heading h1 { font-weight: 700; line-height: 1.1 }
  .page-heading .eyebrow, .panel-head .eyebrow { color: #77520a }
  .panel, .summary-card { border-radius: 6px }
  .summary-card { border-top: 3px solid var(--amber) }
  .summary-card .summary-row, .summary-card .hint, .summary-tax-note, .summary-label { color: #c3c7ba }
  .summary-card .summary-row strong, .summary-card .summary-subtotal { color: #f1f2e9 }
  .summary-card .summary-breakdown, .summary-card .summary-subtotal { border-color: #484c41 }
  .step.active { border-bottom-width: 3px }
  .kh-signin {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-rows: auto 1fr;
    color: var(--ink);
    background: var(--canvas);
  }
  .kh-signin header { border-bottom: 3px solid var(--amber); background: var(--navy) }
  .kh-signin header>div { max-width: 1060px; margin: auto; padding: 10px 24px; display: flex; align-items: center; gap: 16px }
  .kh-signin .brand { padding: 0; color: white; text-decoration: none }
  .kh-signin .back { margin-left: auto; font-size: 13px; font-weight: 600; color: #f2f2eb; text-underline-offset: 4px }
  .kh-signin-main { display: grid; place-content: center; justify-items: start; width: min(590px,100%); margin: 0 auto; padding: 40px 24px 90px }
  .kh-signin-main h1 { font-size: clamp(40px, 6.5vw, 68px); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; margin-bottom: 20px }
  .kh-signin-main p { max-width: 450px; margin: 0 0 25px; font-size: 17px; line-height: 1.6; color: #51574c }
  .kh-signin-main .button { min-height: 48px; padding: 13px 20px; font-size: 14px }
  .kh-signin-main .customer-link { margin-top: 30px; font-size: 13px; text-underline-offset: 4px }
  .site-photos { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,128px),1fr)); gap: 12px }
  .site-photo-thumb { position: relative; overflow: hidden; display: flex; align-items: end; aspect-ratio: 4/3; border: 1px solid #51554a; border-radius: 4px; padding: 0; background: var(--navy); text-align: left; cursor: zoom-in }
  .site-photo-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover }
  .site-photo-thumb span { position: relative; width: 100%; padding: 16px 10px 8px; color: #fff; background: linear-gradient(transparent,#131410e6); font-size: 13px; font-weight: 600 }
  .site-photo-thumb:hover, .site-photo-thumb:focus-visible { border-color: #805000; outline: 2px solid var(--amber); outline-offset: 1px }
  .site-photo-view { width: min(880px,calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 24px); overflow: auto }
  .site-photo-view .modal-head, .site-photo-view .modal-actions { padding: 12px 16px }
  .site-photo-view .modal-head form { margin: 0 }
  .site-photo-view .modal-actions { justify-content: space-between }
  .site-photo-full { display: grid; place-items: center; min-height: 160px; background: var(--navy); color: #f3f3ee; text-align: center }
  .site-photo-full img { display: block; max-width: 100%; max-height: max(170px,calc(100dvh - 170px)); object-fit: contain }
  .site-photo-full [data-photo-error] { padding: 18px }
  .site-photo-full [data-photo-error] button { background: white; margin-top: 8px }
  .site-photo-full [hidden], .site-photo-view .modal-actions[hidden] { display: none }
}
/* Team additions preserve the existing quote editor and client document. */
.workspace[hidden],.heading-actions[hidden],#team-overview[hidden],#employee-empty[hidden],#team-quote-panel[hidden],[data-action][hidden]{display:none!important}
.team-main-nav{display:grid;gap:4px;margin:0 0 20px}
.team-access-ended{padding:32px;max-width:720px;margin:auto}
.team-access-ended p{margin:18px 0}
#team-overview{max-width:1450px;margin:auto}
#team-quote-panel{min-width:0}
.steps{flex-wrap:wrap;gap:12px 18px}
@media screen and (max-width:720px) {
  .team-main-nav{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin:0 0 10px}
  .team-main-nav .nav-item{justify-content:center;min-height:44px;font-size:12px;padding:8px 5px;text-align:center}
  body[data-team-role="employee"] .team-main-nav{grid-template-columns:1fr 1fr}
  .steps{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}
  .step{min-height:48px;padding:8px 3px;font-size:13px}
  .button.small{min-height:44px}
  input,select,textarea{font-size:16px}
  .heading-actions{flex-wrap:wrap}
  .sidebar { grid-template-columns: 1fr; overflow: visible }
  .brand { padding: 0; font-size: 20px }
  .brand img { width: 43px; height: 43px }
  .quote-start { grid-column: 1/-1; grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 }
  .quote-start .button { min-height: 42px; padding: 8px; font-size: 12px }
  .breadcrumb { flex-wrap: wrap }
  .kh-signin header>div { padding: 10px 16px }
}
