:root{--ink:#191919;--muted:#6e6e73;--line:#e7e7e7;--soft:#f6f6f6;--green:#087f5b;--card:#fff;color-scheme:light;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:#fff;font-size:14px;line-height:1.5}
*{box-sizing:border-box;letter-spacing:0}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit;text-decoration:none}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #191919;outline-offset:3px}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:40px;border:1px solid var(--line);border-radius:7px;padding:8px 14px;background:#fff;color:var(--ink);font-weight:500;white-space:nowrap}button:hover,.btn:hover{background:#f4f4f4}.primary{background:#191919!important;color:#fff!important;border-color:#191919!important}.primary:hover{background:#333!important}.icon-button{width:40px;padding:8px}.icon{width:18px;height:18px;flex-shrink:0}.hidden{display:none!important}.muted{color:var(--muted)}
.topbar{position:sticky;top:0;z-index:30;min-height:66px;background:#fffffff5;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:24px;padding:12px 32px}.brand{display:inline-flex;align-items:center;gap:12px;font-size:15px;font-weight:600;white-space:nowrap}.brand-logo{display:block;width:132px;height:36px;object-fit:contain;object-position:left center}.brand-product{padding-left:12px;border-left:1px solid #d8d8d8}.toolbar{display:flex;align-items:center;gap:8px;margin-left:auto}.topbar .secondary{border-color:transparent}.topbar .secondary:hover{background:var(--soft)}.wrap{max-width:1240px;margin:auto;padding:36px 32px 120px}.eyebrow{font-size:12px;color:var(--muted);margin:0 0 10px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:28px}h1{font-size:32px;line-height:1.25;font-weight:600;margin:0 0 8px}h2{font-size:18px;font-weight:600;margin:0}h3{font-size:16px;font-weight:600;margin:0}p{margin:0}.date{color:var(--muted);font-size:13px;white-space:nowrap;margin-top:8px}.type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.type-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;white-space:normal;gap:16px;padding:24px;min-height:218px;border-radius:8px}.type-card .type-icon{color:var(--muted);width:24px;height:24px;margin-bottom:8px}.type-title{font-size:20px;font-weight:600}.type-hint{color:var(--muted);font-size:14px;line-height:1.7}.type-card .icon:last-child{align-self:flex-end;margin-top:auto}.selector-foot{margin-top:24px;color:var(--muted);font-size:12px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:28px 0 16px}.section-head:first-child{margin-top:0}.section-number{color:#9b9b9b;margin-right:10px;font-size:13px;font-weight:400}.fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding-bottom:24px;border-bottom:1px solid var(--line)}.field{min-width:0}.field label{display:block;margin-bottom:8px;font-size:13px;font-weight:500}.field label span{color:var(--muted);font-size:12px;font-weight:400;margin-left:8px}input[type=text],input[type=date],textarea,select{width:100%;border:1px solid #dcdcdc;border-radius:6px;background:#fff;color:var(--ink);padding:10px 12px;min-height:42px}input::placeholder,textarea::placeholder{color:#999}textarea{resize:vertical;min-height:100px;line-height:1.6}.editor-options{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:20px 0}.template-controls{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.template-controls button{min-height:34px;font-size:13px;padding:6px 10px}.template-controls .label{color:var(--muted);margin-right:8px;font-size:13px}.discount-option{display:flex;align-items:center;gap:8px;font-size:13px;flex-wrap:wrap}.discount-option label{display:flex;align-items:center;gap:8px;cursor:pointer}.discount-option input{width:16px;height:16px;accent-color:#191919;margin:0}.discount-option small{color:var(--muted);font-size:12px}
.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;table-layout:fixed}.quote-table col.service-col{width:32%}.quote-table col.unit-col{width:14%}.quote-table col.qty-col{width:14%}.quote-table col.sub-col{width:13%}.quote-table th{font-size:12px;font-weight:500;color:var(--muted);background:#f7f7f7;text-align:right;padding:12px 10px;border-bottom:1px solid var(--line)}.quote-table th:first-child{text-align:left;padding-left:16px}.quote-table td{padding:14px 10px;border-bottom:1px solid #ededed;text-align:right;font-variant-numeric:tabular-nums}.quote-table tr:last-child td{border-bottom:none}.quote-table td:first-child{text-align:left;padding-left:16px}.quote-table .service-name{font-size:14px;font-weight:500;overflow-wrap:anywhere}.category{display:block;font-size:11px;color:var(--muted);margin-top:4px}.quote-table tr.selected{background:#fcfcfc}.quote-table .plan-head{color:#191919;font-weight:600}.price-input{width:100%;max-width:100px;min-height:38px;text-align:right;padding:7px 10px;border:1px solid #dedede;border-radius:6px;background:#fff;font-variant-numeric:tabular-nums}.price-input::-webkit-inner-spin-button,.qtybox input::-webkit-inner-spin-button{-webkit-appearance:none}.price-input,.qtybox input{-moz-appearance:textfield}.qtybox{display:inline-grid;grid-template-columns:28px 36px 28px;border:1px solid #dedede;border-radius:6px;overflow:hidden;height:36px;background:#fff}.qtybox button{padding:0;min-height:0;border:0;border-radius:0;background:transparent}.qtybox button:hover{background:#eee}.qtybox .icon{width:13px;height:13px}.qtybox input{width:36px;min-width:0;border:0;border-left:1px solid #eee;border-right:1px solid #eee;text-align:center;padding:0;font-size:13px;background:transparent}.subcell{font-weight:500}.subcell.empty{color:#b0b0b0}.mobile-label{display:none}.plan-summary{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:28px 0;padding:24px 0;border-bottom:1px solid var(--line)}.plan-summary.single{grid-template-columns:1fr}.summary-label{display:flex;justify-content:space-between;align-items:center;font-size:14px}.summary-label small{color:var(--muted);font-size:12px}.total{font-size:32px;font-weight:600;margin:8px 0 14px;font-variant-numeric:tabular-nums}.total small{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.payment-line{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted);margin-top:8px}.payment-line strong{font-weight:500;color:var(--ink)}.empty-state{padding:28px 0;color:var(--muted);text-align:center;font-size:13px}.remark-section{max-width:100%}.remark-section label{display:block;font-size:14px;font-weight:500;margin-bottom:10px}.bottom-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:24px}.toast{position:fixed;bottom:88px;left:50%;transform:translateX(-50%);z-index:10010;max-width:calc(100vw - 32px);padding:12px 18px;border:1px solid #dedede;background:#191919;color:#fff;border-radius:8px;box-shadow:0 6px 24px #0002;display:none}
.preview-toolbar{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:20px}.preview-toolbar h2{font-size:16px}.document{max-width:880px;margin:0 auto 32px;background:#fff;border:1px solid var(--line);padding:48px;color:#191919}.document-header{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;padding-bottom:28px;border-bottom:1px solid #d9d9d9}.document-brand{font-size:17px;font-weight:600;margin-bottom:24px}.document h1{font-size:32px;margin:0}.document-meta{text-align:right;font-size:12px;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}.document-client{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding:24px 0}.document-client dt{font-size:12px;color:var(--muted);margin-bottom:7px}.document-client dd{margin:0;font-size:15px;overflow-wrap:anywhere}.document h2{font-size:16px;margin:8px 0 16px}.document table{font-size:12px;table-layout:fixed}.document th{font-weight:500;color:var(--muted);border-top:1px solid #222;border-bottom:1px solid #dedede;padding:12px 8px;text-align:right;background:#fafafa}.document td{text-align:right;padding:13px 8px;border-bottom:1px solid #ededed;vertical-align:top;font-variant-numeric:tabular-nums}.document th:first-child,.document td:first-child{text-align:left;padding-left:0;width:49%;overflow-wrap:anywhere}.document th:last-child,.document td:last-child{padding-right:0}.document-total{display:flex;justify-content:space-between;align-items:baseline;gap:20px;padding:22px 0;border-bottom:1px solid #dedede}.document-total strong{font-size:28px;font-weight:600;white-space:nowrap}.document-total small{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}.document-payment{margin:24px 0}.document-payment h3,.document-remark h3{font-size:13px;margin-bottom:10px}.document-remark{border-top:1px solid var(--line);padding-top:20px}.document-remark p{font-size:12px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#555}.document-footer{border-top:1px solid #222;margin-top:32px;padding-top:12px;font-size:10px;color:var(--muted);display:flex;justify-content:space-between;gap:16px}.preview-mode #authBar{display:none!important}.history-modal{position:fixed;inset:0;z-index:3000;background:#f6f6f6;overflow:auto;padding:24px}.history-modal .preview-toolbar{position:sticky;top:-24px;z-index:1;background:#f6f6f6;padding:16px 0;max-width:880px;margin:0 auto 20px}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.home-grid .type-card{min-height:192px}.home-grid h2{font-size:22px}.home-grid p{color:var(--muted)}
/* Shared authentication surfaces use the same neutral visual system. */
body .auth-shell{background:#f7f7f7;backdrop-filter:none}body .auth-card{width:min(480px,100%);border-radius:8px;background:#fff;box-shadow:0 8px 40px #00000008;padding:32px}body .auth-head{display:block}.auth-logo{display:block;width:154px;height:auto;margin:0 0 26px}body .auth-tabs{margin-top:20px}body .auth-title{font-size:24px;font-weight:600}body .auth-sub{font-size:13px;font-weight:400;color:var(--muted)}body .auth-grid{grid-template-columns:1fr}body .auth-field input{background:#fff;border:1px solid #dedede;border-radius:6px;font-size:16px}body .auth-btn,body .auth-tab{border-radius:6px;background:#fff;border-color:#dedede;color:#333;box-shadow:none;font-weight:500;font-size:13px}body .auth-panel{background:#fff;border-radius:8px;box-shadow:0 3px 8px #0002}body .auth-row,body .auth-empty{background:#fafafa;border-radius:6px;border-color:#e5e5e5}body .auth-row-title,body .auth-section-title{font-weight:600}body .auth-row-meta{font-weight:400;overflow-wrap:anywhere}body .auth-notice{background:#f6f6f6;color:#333;border-color:#ddd;border-radius:6px;font-weight:500}body .auth-muted-link{color:#333;font-weight:500}body .quote-save-btn{background:#fff!important;color:#333!important;border-color:#dedede!important;box-shadow:none}
@media(min-width:1500px){.topbar{padding-left:max(32px,calc((100vw - 1176px)/2));padding-right:max(32px,calc((100vw - 1176px)/2))}}
@media(max-width:1000px){.topbar{gap:12px;padding:12px 20px;flex-wrap:wrap}.brand{margin-right:auto}.toolbar{gap:4px}.topbar button,.topbar .btn{padding:8px 10px}.wrap{padding:28px 20px 110px}.type-title{font-size:18px}.type-card{padding:20px}.quote-table .service-col{width:28%!important}.quote-table .unit-col{width:14%!important}.quote-table .qty-col{width:16%!important}.quote-table td,.quote-table th{padding:12px 6px;font-size:12px}.qtybox{grid-template-columns:26px 30px 26px}.qtybox input{width:30px}.quote-table .service-name{font-size:13px}.document{padding:36px}}
@media(max-width:720px){.topbar{position:sticky;padding:10px 16px;gap:8px}.brand-logo{width:106px;height:30px}.brand-product{display:none}.auth-logo{width:138px;margin-bottom:22px}.toolbar{width:100%;margin:0;justify-content:flex-end;flex-wrap:wrap}.toolbar .secondary{margin-right:auto}.topbar .btn,.topbar button{min-height:38px;font-size:12px}.wrap{padding:24px 16px 110px}h1{font-size:28px}.page-heading{gap:12px;flex-wrap:wrap;margin-bottom:24px}.date{margin:0;font-size:12px}.type-grid,.home-grid{grid-template-columns:1fr}.type-card{min-height:150px;gap:10px}.type-card .type-icon{margin:0}.type-title{font-size:20px}.fields{grid-template-columns:1fr;gap:16px}.editor-options{align-items:flex-start;gap:14px}.discount-option{align-items:flex-start}.discount-option small{width:100%;padding-left:24px}.template-controls{gap:4px}.template-controls .label{display:none}.section-head h2{font-size:16px}.section-head{margin-top:24px}.quote-table thead,.quote-table colgroup{display:none}.quote-table,.quote-table tbody{display:block}.quote-table tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:0 16px;padding:16px 0;border-bottom:1px solid #e7e7e7;background:#fff!important}.quote-table tr:last-child{border:0}.quote-table td{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 0!important;border:0;font-size:14px;min-width:0}.quote-table td:first-child{grid-column:1;align-items:flex-start;justify-content:flex-start;display:block;padding-top:0!important}.quote-table td:nth-child(2){grid-column:2;align-self:start;padding-top:0!important;justify-content:flex-end;flex-wrap:wrap}.quote-table td:nth-child(3){grid-row:2;grid-column:1}.quote-table td:nth-child(4){grid-row:3;grid-column:1;padding-top:0!important}.quote-table td:nth-child(5){grid-row:2;grid-column:2}.quote-table td:nth-child(6){grid-row:3;grid-column:2;padding-top:0!important}.quote-table .service-name{font-size:14px}.mobile-label{display:block;font-size:11px;color:var(--muted);font-weight:400}.price-input{font-size:16px;max-width:98px;height:40px}.qtybox{grid-template-columns:28px 32px 28px;height:40px}.qtybox input{width:32px;font-size:16px}.plan-summary{gap:24px;grid-template-columns:1fr}.total{font-size:28px}.document{padding:24px 18px}.document-header{gap:16px;flex-wrap:wrap}.document-brand{font-size:14px;margin-bottom:16px}.document h1{font-size:26px}.document-meta{text-align:left;font-size:11px}.document-client{grid-template-columns:1fr;gap:16px;padding:20px 0}.document-client dd{font-size:14px}.document table{font-size:11px}.document th,.document td{padding:10px 4px}.document th:first-child,.document td:first-child{width:43%}.document-total strong{font-size:23px}.document-total{font-size:13px}.document-total small{display:block;text-align:right;margin:4px 0 0}.document-footer{font-size:9px}.preview-toolbar{flex-wrap:wrap}.preview-toolbar .buttons{display:flex;gap:6px}.preview-toolbar button{font-size:12px;padding:8px 10px}.history-modal{padding:12px}.history-modal .preview-toolbar{top:-12px}body .auth-card{padding:24px}.bottom-actions button{flex:1}.field input,.field textarea,textarea{font-size:16px}}
.document th:nth-child(2){width:19%}.document th:nth-child(3){width:10%}.document th:nth-child(4){width:22%}
@media(max-width:720px){.topbar #backBtn,.topbar #previewBtn{font-size:0;width:38px;padding:8px;gap:0}.document th,.document td{padding-left:2px;padding-right:2px}.document th:first-child,.document td:first-child{width:35%}.document th:nth-child(2){width:26%}.document th:nth-child(3){width:12%;white-space:nowrap}.document th:nth-child(4){width:27%}.document td:not(:first-child){overflow-wrap:anywhere}.preview-mode .topbar .toolbar{display:none}.preview-mode .topbar{min-height:60px}}
@media print{.topbar,.auth-bar,.auth-panel,.auth-shell,.preview-toolbar,.toast,#editor,#selector{display:none!important}.wrap{padding:0}.document{border:0;margin:0;padding:24px;break-after:page}.document:last-child{break-after:auto}}
.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}
.quote-context{text-align:right}.draft-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin-top:6px;font-size:12px;color:var(--muted)}.draft-tools .icon-button{width:30px;height:30px;min-height:30px;padding:5px;border-color:transparent}
.quote-details{padding:16px 0;border-bottom:1px solid var(--line)}.quote-details summary{cursor:pointer;font-size:13px;font-weight:500}.detail-fields{display:grid;grid-template-columns:1fr 1fr 1.5fr;gap:20px;margin-top:18px}
.plan-selector{border:0;padding:0;margin:0;min-width:0}
.quote-table[data-plan-view="std"] [data-plan="steady"],.quote-table[data-plan-view="steady"] [data-plan="std"]{display:none!important}
.quote-table:not([data-plan-view="both"]) .service-col{width:44%!important}.quote-table:not([data-plan-view="both"]) .unit-col{width:18%!important}.quote-table:not([data-plan-view="both"]) .qty-col{width:20%!important}.quote-table:not([data-plan-view="both"]) .sub-col{width:18%!important}
.document-details{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid var(--line)}.document-details>div{min-width:0;max-width:100%}.document-details dt{font-size:12px;color:var(--muted)}.document-details dd{margin:5px 0 0;font-size:13px;overflow-wrap:anywhere}
.history-search{width:100%;margin:4px 0 8px}.auth-panel .history-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:720px){.quote-context{text-align:left}.draft-tools{justify-content:flex-start}.detail-fields{grid-template-columns:1fr;gap:14px}.editor-options{gap:10px}.editor-options>button{min-height:34px;font-size:12px;padding:6px 10px}.quote-table:not([data-plan-view="both"]) td[data-plan]:not(.subcell){grid-row:2;grid-column:1}.quote-table:not([data-plan-view="both"]) td.subcell{grid-row:2;grid-column:2;padding:10px 0!important}.document-details{gap:12px 20px}}
.page-navigation{display:flex;align-items:center;gap:6px;flex-shrink:0}
@media(max-width:1000px){.topbar>.page-navigation{order:-1}}
.preview-mode .topbar .toolbar{display:none}
.preview-toolbar .buttons{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
body .quote-save-btn{min-width:112px}
.quote-save-btn:disabled{cursor:default}
.quote-save-btn[aria-busy="true"]{cursor:wait}
@media(max-width:720px){
  .topbar #previewBtn{font-size:12px;width:auto;gap:6px;padding:8px 10px}
  body .quote-save-btn{min-width:98px}
  #customerPreview .preview-toolbar{align-items:flex-start}
  #previewActions{width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  #continueEditingBtn{grid-column:1/-1;justify-self:start}
  #previewActions #saveQuoteBtn,#previewDownloadBtn{min-width:0;width:100%;padding:8px}
}
.topbar .toolbar~.auth-bar{margin-left:0}
.topbar .account-trigger{position:relative;flex:0 0 38px;width:38px;height:38px;min-height:38px;padding:0;border:0;border-radius:50%;background:#f0f0f0;color:#252525;font-size:14px;font-weight:600}
.topbar .account-trigger:hover,.topbar .account-trigger[aria-expanded="true"]{background:#dedede}
.account-avatar{display:flex;align-items:center;justify-content:center;width:100%;height:100%;line-height:1}
.account-badge{position:absolute;top:-4px;right:-5px;display:inline-flex;align-items:center;justify-content:center;min-width:17px;height:17px;padding:0 4px;border-radius:10px;background:#a33b24;color:#fff;font-size:10px;font-weight:600;line-height:1}
.account-badge[hidden]{display:none}
.account-panel-head{position:sticky;top:-16px;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-16px -16px 0;padding:12px 16px;background:#fff;border-bottom:1px solid var(--line)}
.auth-panel .account-panel-head h3{margin:0;font-size:16px;font-weight:600}
.account-close{width:32px;height:32px;min-height:32px;padding:6px;border:0;background:transparent}
.account-identity{padding:16px 0;border-bottom:1px solid var(--line)}
.account-name{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:14px}
.account-name strong{min-width:0;overflow-wrap:anywhere;font-weight:600}
.account-role{flex-shrink:0;padding:3px 8px;border-radius:4px;background:#f4f4f4;color:#626262;font-size:11px}
.auth-panel .account-logout{margin-top:12px;min-height:32px;padding:6px 8px;border:0;color:#555}
.auth-panel .account-logout:hover{background:#f4f4f4;color:#191919}
.auth-panel #adminApprovals:not(:empty),.auth-panel #quoteHistory{margin-top:18px}
.auth-panel .auth-section-title{font-size:14px}
.auth-panel .auth-row{margin:0;padding:14px 0;background:#fff;border:0;border-bottom:1px solid var(--line);border-radius:0}
.auth-panel .auth-row-title{font-size:14px;line-height:1.6}
.auth-panel .auth-empty{padding:16px 0;border:0;border-radius:0;background:transparent;font-size:13px}
.auth-panel .auth-row>.auth-btn{margin-top:10px}
.account-loading{padding:16px 0;color:var(--muted);font-size:13px}
@media(max-width:1000px){.topbar .auth-bar{order:2;margin-left:0}.topbar>.brand{order:0;margin-right:auto}.topbar>.btn{order:1}.topbar>.toolbar{order:3;width:100%;flex-basis:100%;margin-left:0;justify-content:flex-end}.topbar>.toolbar:not(:has(button:not(.hidden))){display:none}}
.application-option.application-option{cursor:default}.application-choice{display:inline-flex;align-items:center;gap:10px;cursor:pointer}.application-choice strong{font-size:15px;font-weight:500}.application-choice input[type="radio"]{margin:0}.service-fee-control{display:inline-flex;align-items:center;gap:8px;max-width:100%;font-size:18px;font-weight:500}.service-fee-control small{font-size:11px;font-weight:400;color:var(--muted)}.application-option .service-fee-input{width:156px;max-width:100%;height:44px;margin:0;padding:8px 10px;text-align:right;font-size:16px;font-weight:500;font-variant-numeric:tabular-nums;flex:0 1 156px}@media(max-width:720px){.application-option .service-fee-control{margin-top:12px}.application-option .service-fee-input{width:156px}}
@media(max-width:720px){.application-option .application-option-heading{display:flex;flex-direction:column;align-items:flex-start;gap:0}}
.provider{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px;line-height:1.6}
.scope-selector,.application-options{border:0;padding:0;margin:0;min-width:0}.scope-selector{padding:24px 0;border-bottom:1px solid var(--line)}.scope-selector legend{float:left;width:100%;font-size:13px;font-weight:500;margin-bottom:12px}.scope-options{display:flex;gap:8px;flex-wrap:wrap;clear:both}.scope-options label{cursor:pointer;position:relative}.scope-options input{position:absolute;opacity:0;width:1px;height:1px}.scope-options span{display:block;padding:9px 14px;border:1px solid var(--line);border-radius:6px;font-size:13px}.scope-options input:checked+span{background:#191919;color:#fff;border-color:#191919}.scope-options input:focus-visible+span{outline:2px solid #191919;outline-offset:3px}
.application-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin-bottom:28px}.application-option{display:flex;align-items:flex-start;gap:12px;padding:20px;border:1px solid var(--line);border-radius:6px;cursor:pointer}.application-option.active{border-color:#858585}.application-option input{flex:0 0 auto;accent-color:#191919;margin:6px 0 0;width:16px;height:16px}.application-option-content{display:block;min-width:0;flex:1}.application-option-heading{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:10px 20px}.application-option-heading>strong{font-size:15px;font-weight:500}.service-fee{font-size:23px;font-weight:600;white-space:nowrap}.service-fee small{font-size:11px;color:var(--muted);margin-left:8px;font-weight:400}.service-terms{display:block;margin-top:20px}.service-terms>span{display:flex;justify-content:space-between;gap:12px;color:var(--muted);font-size:13px;margin-top:8px}.service-terms b{font-weight:500;color:var(--ink);white-space:nowrap}.refund-note{display:block;margin-top:16px;font-size:12px;line-height:1.8;color:#575757}.summary-service{padding:18px 0;border-bottom:1px solid var(--line)}.summary-label{gap:14px;align-items:flex-start}.summary-label>strong{font-weight:500;text-align:right;white-space:nowrap}.summary-label small.provider{display:block}.plan-summary{margin-top:0;padding-top:8px}.plan-summary.single{max-width:800px;margin-left:auto}.plan-summary h3{font-size:15px}.payment-line strong{white-space:nowrap}.package-total{display:flex;justify-content:space-between;align-items:baseline;gap:16px;padding:20px 0;border-bottom:1px solid var(--line)}.package-total>span{flex-shrink:0;font-size:14px}.package-total>div{min-width:0;text-align:right}.package-total strong{display:block;font-size:26px;font-weight:600;overflow-wrap:anywhere}.package-total small{font-size:11px;color:var(--muted);font-weight:400;margin-left:8px}.currency-note{font-size:11px;color:var(--muted);line-height:1.7;margin-top:8px}.document .package-total{margin-bottom:26px}.document h1{font-size:28px}.document-brand{font-size:15px}.document-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:28px 0 16px}.document-section-head h3{font-size:15px}.document-section-head .currency-note{margin:0;flex-shrink:0}.section-subtotal{display:flex;justify-content:space-between;gap:16px;padding:14px 0;font-size:12px}.section-subtotal strong{font-weight:500;white-space:nowrap}.document-payment{margin:16px 0}.document h4{font-size:12px;font-weight:500;margin:0 0 10px}.document-refund{margin:16px 0 24px}.document-refund p{font-size:12px;color:#555;line-height:1.8}.document-service+.document-service{border-top:1px solid var(--line)}
@media(max-width:720px){.scope-options{gap:6px}.scope-options span{padding:9px 10px;font-size:12px}.scope-selector{padding:20px 0}.application-options{grid-template-columns:1fr}.application-option{padding:16px;gap:10px}.application-option-heading{display:block}.service-fee{display:block;margin-top:10px}.service-terms>span{font-size:12px}.package-total strong{font-size:23px}.package-total small{display:block;margin:2px 0 0}.summary-label{font-size:13px}.summary-label>strong{font-size:13px}.document h1{font-size:24px}.document-brand{font-size:13px}.document-section-head{flex-wrap:wrap}.document-section-head h3{font-size:14px}.document-section-head .provider{font-size:11px}.document-refund p{font-size:11px}.section-subtotal{font-size:11px}.document-footer{flex-wrap:wrap}.section-head .muted{font-size:11px;text-align:right}.plan-summary.single{max-width:none}}

.project-filter{border:0;padding:0;margin:0 0 26px}
.type-grid[data-project-group=o1a]{grid-template-columns:repeat(2,minmax(0,1fr))}
.type-grid[data-project-group=eb1a]{grid-template-columns:repeat(2,minmax(0,1fr))}
.type-grid[data-project-group=o1b]{grid-template-columns:minmax(0,560px)}
@media(max-width:720px){.type-grid[data-project-group=o1a],.type-grid[data-project-group=o1b],.type-grid[data-project-group=eb1a]{grid-template-columns:1fr}}
.legacy-project-choice{margin:0 0 28px;padding:20px 0;border:0;border-bottom:1px solid var(--line)}
.legacy-project-choice legend{font-size:18px;font-weight:600}
.legacy-project-choice p{margin:8px 0 16px;color:var(--muted)}
.legacy-project-choice .buttons{display:flex;gap:8px}
.actual-cost-row b{font-size:13px;font-weight:500;white-space:nowrap;color:var(--muted)}
.history-mode main.wrap:not(.quote-history-view),.history-mode .topbar>.toolbar,.history-mode #priceListToolbar{display:none!important}
.history-mode #authBar{display:flex!important}
.history-mode .topbar .auth-bar{margin-left:auto!important}
.history-mode #priceListBtn{display:inline-flex!important}
.history-mode #quoteHistoryBtn{background:var(--soft)}
.quote-history-view #quoteHistoryHeading{outline:none}
.quote-history-view .history-search{max-width:560px;margin:20px 0 12px;min-height:44px;padding:10px 14px;font-size:15px;border:1px solid var(--line);border-radius:6px}
.quote-history-view .auth-row{position:relative;border:0!important;border-bottom:1px solid var(--line)!important;background:none!important;border-radius:0!important;padding:24px 230px 24px 0!important;margin:0!important}
.quote-history-view .auth-row-title{font-size:17px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.quote-history-view .auth-row-meta{font-size:13px!important;color:var(--muted)!important}
.quote-history-view .history-actions{position:absolute;right:0;top:24px;display:flex;gap:8px}
.quote-history-view .auth-empty{padding:32px 0!important;border:0!important;background:none!important}
@media(max-width:1000px){.topbar #quoteHistoryBtn{order:1}}
@media(max-width:720px){.topbar #quoteHistoryBtn{font-size:12px;padding:8px 6px;gap:4px}.topbar #quoteHistoryBtn .icon{width:16px}.quote-history-view .auth-row{padding:20px 0!important}.quote-history-view .history-actions{position:static;margin-top:14px;flex-wrap:wrap}.quote-history-view .history-search{font-size:16px}}
@media(max-width:420px){body .topbar #priceListBtn,body .topbar #quoteHistoryBtn{order:3}.topbar .auth-bar{margin-left:auto}.topbar:has(#quoteHistoryBtn:not(.hidden))::after{content:"";flex-basis:100%;height:0;order:2}.topbar:has(#quoteHistoryBtn:not(.hidden)){row-gap:4px}.topbar>.toolbar{order:4}}
.project-filter legend{font-size:13px;font-weight:500;margin-bottom:10px}
.project-filter .scope-options span{min-width:110px;text-align:center}
.petitioner-select{display:block;font-size:12px;color:var(--muted);padding:10px 0 14px}
.petitioner-select select{margin-top:8px;font-size:13px}
.lawyer-option{padding:16px 0 20px;border-bottom:1px solid var(--line)}
.lawyer-toggle{border-top:0}
.lawyer-toggle input{width:18px;height:18px;accent-color:var(--ink);flex-shrink:0}
.pending-note{font-size:12px;color:#8b4d17;line-height:1.7;margin:12px 0}
.price-input::placeholder{color:#686868;font-size:11px}
@media(max-width:720px){.project-filter .scope-options span{min-width:0}.project-filter .scope-options label{flex:1}.petitioner-select select{font-size:16px}.lawyer-option .refund-note{font-size:12px}}

/* Third-party pass-through costs stay visually separate from company service fees. */
#thirdPartyEditor{margin-top:34px;padding-top:2px;border-top:1px solid var(--line)}
.third-party-title{margin-bottom:14px}
.include-toggle{display:inline-flex;align-items:center;gap:9px;cursor:pointer;color:#444;font-size:13px;white-space:nowrap}
.include-toggle input,.third-party-check input{width:17px;height:17px;margin:0;accent-color:#191919;flex:0 0 auto}
.third-party-route{border:0;margin:0;padding:0 0 20px;border-bottom:1px solid var(--line)}
.third-party-route legend{float:left;width:100%;margin-bottom:12px;font-size:13px;font-weight:500}
.third-party-groups{display:grid;grid-template-columns:1fr 1fr;column-gap:36px}
.third-party-group{min-width:0;padding:24px 0 10px;border-bottom:1px solid var(--line)}
.third-party-group-wide{grid-column:1/-1}
.third-party-group-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}
.third-party-group-head h3{margin:0;font-size:15px;font-weight:600}
.third-party-group-head p{margin:5px 0 0;color:var(--muted);font-size:11px;line-height:1.5}
.third-party-group-head>strong{font-size:17px;font-weight:600;white-space:nowrap}
.third-party-row,.third-party-input-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:58px;border-top:1px solid #ededed;font-size:13px}
.third-party-row>span,.third-party-input-row>span:first-child{min-width:0}
.third-party-row strong,.third-party-input-row strong{display:block;font-weight:500;line-height:1.45}
.third-party-row small,.third-party-input-row>span:first-child small{display:block;margin-top:4px;color:var(--muted);font-size:11px;font-weight:400;line-height:1.5}
.third-party-row>b{font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}
.third-party-check{cursor:pointer}
.third-party-fields-grid{display:grid;grid-template-columns:1fr 1fr;column-gap:36px}
.third-party-input-wrap{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 1 210px;min-width:130px;color:var(--muted)}
.third-party-input-wrap i{font-style:normal;color:#555}
.third-party-input-wrap input{width:128px;min-width:0;min-height:38px;padding:7px 9px;text-align:right;font-size:14px;font-variant-numeric:tabular-nums}
.third-party-input-wrap>small{margin:0!important;white-space:nowrap;color:var(--muted);font-size:11px}
.third-party-other{padding:18px 0;border-bottom:1px solid var(--line)}
.third-party-other summary{cursor:pointer;font-size:13px;font-weight:500}
.third-party-other .third-party-fields-grid{margin-top:14px}
.third-party-note{grid-column:1/-1}
.third-party-note>input{width:min(100%,360px);min-height:38px;font-size:14px}
.third-party-estimate{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-top:24px;padding:20px;background:#f7f7f7;border-top:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}
.third-party-estimate>span strong{display:block;font-size:14px}
.third-party-estimate>span small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.5}
.third-party-estimate>div{text-align:right}
.third-party-estimate b{display:block;font-size:20px;font-weight:600;font-variant-numeric:tabular-nums}
.third-party-estimate b small{margin-left:7px;color:var(--muted);font-size:10px;font-weight:400}
.third-party-disclaimer,.third-party-disabled,.third-party-error{margin:12px 0 0;color:var(--muted);font-size:11px;line-height:1.7}
.third-party-error{color:#a33b24}
.third-party-disabled{padding:12px 0 20px;border-bottom:1px solid var(--line)}
.package-total.third-party-total{padding-top:14px;padding-bottom:14px;color:#555}
.package-total.third-party-total strong{font-size:20px}
.package-total.estimated-total{margin-top:2px;padding:18px 14px;background:#f7f7f7;border-bottom:0}
.package-total.estimated-total>span{font-weight:600}
.document-third-party{margin-top:32px;padding-top:2px;border-top:1px solid #222}
.third-party-document-group{margin-top:22px}
.third-party-document-group h4{margin-bottom:9px}
.document-third-party table th:first-child,.document-third-party table td:first-child{width:38%}
.document-third-party table th:nth-child(2),.document-third-party table td:nth-child(2){width:40%;text-align:left;color:#666}
.document-third-party table th:nth-child(3),.document-third-party table td:nth-child(3){width:22%;text-align:right}
.third-party-document-note{margin:16px 0 0;color:#666;font-size:11px;line-height:1.7}
@media(max-width:720px){
  #thirdPartyEditor{margin-top:28px}
  .third-party-title{align-items:flex-start}
  .include-toggle{padding-top:2px}
  .third-party-groups,.third-party-fields-grid{grid-template-columns:1fr;column-gap:0}
  .third-party-group-wide,.third-party-note{grid-column:auto}
  .third-party-group{padding-top:20px}
  .third-party-row,.third-party-input-row{gap:12px;min-height:64px}
  .third-party-input-wrap{flex-basis:152px;min-width:118px}
  .third-party-input-wrap input{width:96px;font-size:16px}
  .third-party-note{display:block;padding:14px 0}
  .third-party-note>input{margin-top:10px;font-size:16px}
  .third-party-estimate{padding:16px;gap:14px}
  .third-party-estimate b{font-size:18px}
  .package-total.estimated-total{padding:16px 12px}
  .document-third-party table th:first-child,.document-third-party table td:first-child{width:34%}
  .document-third-party table th:nth-child(2),.document-third-party table td:nth-child(2){width:39%}
  .document-third-party table th:nth-child(3),.document-third-party table td:nth-child(3){width:27%}
}
.field-wide,.document-project{grid-column:1 / -1}
