.client-copy-editor,.client-copy-status{--copy-bg:var(--card,#fff);--copy-text:var(--ink,#172f3e);--copy-muted:var(--muted,#536474);--copy-border:var(--line,#d4dee5);background:var(--copy-bg);color:var(--copy-text);border:1px solid var(--copy-border);border-radius:18px;padding:22px;margin-bottom:18px;min-width:0}
.client-copy-heading h2{margin:0 0 6px;font-size:24px;line-height:1.2;color:var(--copy-text)}
.client-copy-heading p{margin:0 0 20px;color:var(--copy-muted);line-height:1.5}
.client-copy-field{display:grid;gap:7px;margin:14px 0;font-size:14px;font-weight:650;line-height:1.4;min-width:0}
.quote-location-controls{min-width:0;max-width:100%;margin:14px 0;padding:12px;border:1px solid var(--line,#d4dee5);border-radius:10px;font-size:13px}
.quote-location-controls legend{padding:0 5px;font-weight:700;font-size:13px}
.quote-location-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.quote-location-grid>div{min-width:0}.quote-location-grid .client-copy-field{margin:4px 0 10px;font-size:12px}.quote-location-other[hidden]{display:none!important}
.quote-section-location{padding:8px 14px;color:var(--ink,#172f3e);background:var(--card,#fff)}
.quote-section-location>summary{cursor:pointer;min-height:36px;display:flex;align-items:center;font-size:12px;font-weight:650}
.quote-section-location .quote-location-controls{margin:4px 0 8px}
.quote-section-location :is(input,select){box-sizing:border-box;width:100%;max-width:100%;min-width:0;min-height:44px;border:1px solid var(--line,#d4dee5);border-radius:8px;background:var(--card,#fff);color:var(--ink,#172f3e);padding:8px;font:inherit;font-size:16px}
@media(max-width:480px){.quote-location-grid{grid-template-columns:minmax(0,1fr);gap:4px}}
.client-copy-editor :is(input,textarea,select){display:block;box-sizing:border-box;width:100%;min-width:0;max-width:100%;min-height:46px;border:1px solid var(--copy-border);border-radius:10px;padding:11px 12px;background:var(--copy-bg);color:var(--copy-text);font:inherit;font-size:16px;line-height:1.5;box-shadow:none}
.client-copy-editor textarea{resize:vertical;white-space:pre-wrap}
.client-copy-editor :is(input,textarea,select):focus-visible{outline:3px solid #36a8cf;outline-offset:2px}
.client-copy-editor :is(input,textarea)::placeholder{color:var(--copy-muted);opacity:1}
.client-copy-lines{display:grid;gap:10px;margin-top:20px}
.client-copy-line{border:1px solid var(--copy-border);border-radius:12px;min-width:0;overflow:hidden}
.client-copy-line summary{display:flex;align-items:center;gap:14px;cursor:pointer;padding:14px;list-style:none;min-height:44px;outline-offset:-3px}
.client-copy-line summary::-webkit-details-marker{display:none}
.client-copy-line summary:before{content:'›';font-size:24px;line-height:1;flex:none;transform:rotate(0deg)}
.client-copy-line[open] summary:before{transform:rotate(90deg)}
.client-copy-line summary>span:first-of-type{flex:1;min-width:0}
.client-copy-line summary strong,.client-copy-line summary small{display:block;overflow-wrap:anywhere}
.client-copy-line summary strong{font-size:15px;line-height:1.4}
.client-copy-line summary small{font-size:12px;line-height:1.4;margin-top:4px;color:var(--copy-muted)}
.client-copy-line-state{display:inline-flex;flex-direction:column;align-items:flex-end;gap:3px;font-size:13px;font-weight:650;line-height:1.3;text-align:right;color:var(--copy-muted);flex:none;max-width:48%}
.client-copy-line-state small{display:block;margin:0;max-width:220px;font-size:11px;font-weight:400;color:var(--copy-muted)}
.client-copy-line-state.is-ok{color:var(--success,#15834e)}
.client-copy-line-state.is-warn{color:var(--warning,#b56813)}
.client-copy-line-state.is-error{color:var(--danger,#b3261e)}
.client-copy-line-state.is-busy{color:var(--copy-muted)}
.client-copy-check{font-weight:800}
.client-copy-line-body{padding:0 16px 16px;border-top:1px solid var(--copy-border)}
.client-service-search{min-width:0;margin:14px 0}
.client-service-search .client-copy-field{margin-bottom:6px}
.client-service-help,.client-service-count{margin:5px 0;color:var(--copy-muted);font-size:12px;line-height:1.5;font-weight:400}
.client-service-count:empty{display:none}
.client-service-results{max-height:320px;overflow-y:auto;overscroll-behavior:contain;border:1px solid var(--copy-border);border-radius:10px;margin-top:8px;background:var(--surface,var(--copy-bg));color:var(--surface-foreground,var(--copy-text))}
.client-service-results[hidden]{display:none}
html body .client-service-results button{display:grid;gap:5px;width:100%;min-height:48px;padding:12px;border:0;border-bottom:1px solid var(--copy-border);border-radius:0;background:var(--surface,var(--copy-bg))!important;color:var(--surface-foreground,var(--copy-text))!important;text-align:left;white-space:normal;overflow-wrap:anywhere;font:inherit;cursor:pointer}
.client-service-results button:last-child{border-bottom:0}
html body .client-service-results button:is(:hover,:focus-visible,[aria-selected="true"]){background:var(--surface-secondary,var(--paper,#eaf4f8))!important;color:var(--surface-secondary-foreground,var(--copy-text))!important;outline:2px solid var(--accent,#36a8cf);outline-offset:-2px}
.client-service-results strong{font-size:15px;line-height:1.4}
.client-service-results small{font-size:11px;line-height:1.5;font-weight:500;color:var(--muted,var(--copy-muted))}
.client-service-results span{font-size:13px;line-height:1.5;font-weight:400;color:inherit}
.client-copy-description{font-size:14px;font-weight:400;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--copy-muted)}
.client-copy-issues{padding-left:20px;line-height:1.5;font-size:14px;color:var(--copy-text)}
.client-copy-status{font-size:14px;line-height:1.5;padding:15px 18px;overflow-wrap:anywhere}
.client-copy-status.needs-review{border-color:#c17a23;border-left-width:4px}
.client-copy-status.has-warnings{border-color:#c17a23}
.client-copy-placeholder{padding:32px;line-height:1.6}
.client-copy-placeholder h2{font-size:22px;margin-bottom:8px}
#cust .client-quote-title{font-size:26px;line-height:1.2;letter-spacing:0;margin:0 0 22px;overflow-wrap:anywhere}
#cust .client-line-description{font-size:13px;font-weight:400;line-height:1.6;margin-top:6px;white-space:pre-wrap;overflow-wrap:anywhere}
#cust .client-quote-message{white-space:pre-wrap;background:var(--card,#f7f9fa);color:var(--ink,#172f3e);font-size:13px}
#cust table th:first-child,#cust table td:first-child{width:56%}
#cust table th:nth-child(2),#cust table td:nth-child(2){width:10%}
#cust table th:nth-child(3),#cust table td:nth-child(3){width:16%}
#cust table th:nth-child(4),#cust table td:nth-child(4){width:18%}
/* The customer document remains a readable paper preview inside either app theme. */
html body #view-customer #cust.cust{--foreground:#0e1f2c;--surface:#fff;--surface-foreground:#0e1f2c;--bb-muted-ink:#435965;--border:#e0e8ef;--separator:#edf3f6;background:#fff!important;color:#0e1f2c!important}
html body #view-customer #cust :is(.cust-body,.qt,.qt td,.qt th){background:#fff!important;color:#0e1f2c!important}
html body #view-customer #cust :is(.qt td strong,.client-quote-title,.cust-party .big,.qt-tot,.qt-tot span){color:#0e1f2c!important}
html body #view-customer #cust :is(.client-line-description,.cust-party .eyebrow,.qt th){color:#435965!important}
html body #view-customer #cust .cust-hd{background:#0e1f2c!important;color:#fff!important}
html body #view-customer #cust .cust-hd :is(.co,.meta){color:#fff!important}
html body #view-customer #cust .cust-hd .co small{color:#63cbed!important}
html body #view-customer #cust .cust-foot{background:#f7f9fa!important;color:#435965!important}
.bb-jobber-client-message{margin-top:20px;border-top:1px solid #d4dee5;padding-top:15px;min-width:0}
.bb-jobber-client-message h4{margin:0 0 8px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4}
.bb-jobber-client-message p{white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:560px){.client-copy-editor{padding:16px}.client-copy-line summary{padding:12px;gap:10px}.client-copy-line-body{padding:0 12px 12px}.client-copy-placeholder{padding:22px}#cust .client-quote-title{font-size:23px}#cust .client-line-description{font-size:12px}#cust table th:first-child,#cust table td:first-child{width:48%}#cust table th:nth-child(2),#cust table td:nth-child(2){width:10%}#cust table th:nth-child(3),#cust table td:nth-child(3){width:20%}#cust table th:nth-child(4),#cust table td:nth-child(4){width:22%}}
@media print{.client-copy-editor,.client-copy-status{display:none!important}#cust .client-quote-message{background:#fff!important;color:#172f3e!important}#cust .client-quote-title{color:#172f3e!important}#cust .client-line-description{color:#364854!important}#cust tr{break-inside:avoid}}
.client-wording-details{margin-bottom:18px;border:1px solid var(--line,#d9e2e8);border-radius:12px;background:var(--card,#fff)}
.client-wording-details>summary{padding:16px;cursor:pointer;font-weight:700;min-height:48px}
.client-wording-details .client-copy-editor{border:0;margin:0}
.client-section-heading,.client-project-heading{display:flex;justify-content:space-between;align-items:baseline;gap:20px}
.client-section-heading{border-bottom:2px solid #193c50;padding-bottom:10px;margin-top:28px}
.client-section-heading h2{font-size:19px;margin:0}
.client-section-heading>strong{font-size:20px;white-space:nowrap}
.client-project{padding:16px 0;border-bottom:1px solid #e1e7eb;break-inside:avoid}
.client-project-heading h3{font-size:15px;margin:0;overflow-wrap:anywhere}
.client-project-heading>strong{white-space:nowrap;font-size:15px}
.client-project p{margin:8px 0 0;font-size:14px;line-height:1.55}
.client-material-note{color:#506578;font-size:12px;line-height:1.55;margin:14px 0 0}
.client-work-location{margin:24px 0 0;padding:10px 12px;border-left:3px solid #193c50;background:#edf3f6;color:#193c50;font-size:14px;font-weight:700;overflow-wrap:anywhere}
.client-verification{margin-top:24px;border-top:2px solid #193c50}
.client-verification .client-project{border-bottom:0}
@media(max-width:480px){.client-project-heading{gap:12px;flex-wrap:wrap}.client-section-heading>strong{font-size:18px}}
.material-finish-control{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;flex-basis:100%;padding:12px 0;border-top:1px solid var(--line,#d9e2e8);font-size:13px}
.material-finish-control>span:first-child{font-weight:700}
.material-finish-control label{display:flex;align-items:center;gap:8px}
.material-finish-control select{min-height:44px;max-width:100%;padding:8px;border:1px solid var(--line,#d9e2e8);border-radius:8px;background:var(--card,#fff);color:var(--ink,#193c50)}
.material-finish-control small{flex-basis:100%;color:#9d432c}

/* Generated wording is the default; forms appear only for gaps or explicit edits. */
.client-copy-heading-edit{border-bottom:1px solid var(--copy-border);padding-bottom:12px}
.client-copy-heading-edit>summary{cursor:pointer;min-height:44px;display:flex;align-items:center;font-size:14px;font-weight:650}
.client-copy-line>summary{display:flex;align-items:center;gap:14px;cursor:pointer;padding:14px;list-style:none;min-height:44px;outline-offset:-3px}
.client-copy-line>summary:before{content:'›';font-size:24px;line-height:1;flex:none;transform:rotate(0deg)}
.client-copy-line[open]>summary:before{transform:rotate(90deg)}
.client-copy-facts{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin:14px 0;padding:12px;background:var(--paper,#f3f6f8);border-radius:10px;font-size:13px}
.client-copy-facts div{min-width:0}.client-copy-facts dt{color:var(--copy-muted);font-size:12px}.client-copy-facts dd{margin:3px 0 0;overflow-wrap:anywhere;font-weight:650;line-height:1.5}.client-copy-facts small{display:block;color:var(--copy-muted);font-size:11px;font-weight:400}
.client-copy-edit-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.client-copy-edit-actions button,.client-copy-status button{min-height:44px;white-space:normal}
.client-copy-edit-actions .client-copy-edit{min-height:36px;padding:6px 14px;font-size:12px;font-weight:600;background:transparent;color:var(--copy-muted);border:1px solid var(--copy-border)}
.client-copy-edit-actions .client-copy-done{font-weight:700}
.client-copy-shared-location{padding:4px 14px 12px;margin-top:16px;border:1px solid var(--copy-border);border-left:4px solid #c17a23;border-radius:10px}
.client-copy-shared-location p{margin:0;color:var(--copy-muted);font-size:13px;line-height:1.5}
.client-draft-banner{padding:12px 20px;background:#fff2d5;color:#60420d;font-size:13px;font-weight:650;line-height:1.5}
@media(max-width:560px){.client-copy-line>summary{padding:12px;gap:10px}.client-copy-facts{grid-template-columns:minmax(0,1fr)}}
