.quotes-page{min-height:100vh;background:radial-gradient(circle at 90% 8%,rgba(255,90,79,.08),transparent 28%),var(--md-cream)}
.quotes-nav{margin-left:auto;display:flex;align-items:center;gap:20px;font-size:.86rem;font-weight:800;color:var(--md-muted)}
.quotes-nav a.active{color:var(--md-coral-dark)}
.quotes-main{padding:58px 0 90px}.quotes-shell{width:min(1120px,calc(100% - 32px));margin:0 auto}
.quotes-hero{max-width:780px;margin-bottom:34px}.quotes-kicker{display:inline-flex;padding:8px 12px;border-radius:999px;background:var(--md-coral-soft);color:var(--md-coral-dark);font-size:.76rem;font-weight:900;margin-bottom:16px}
.quotes-hero h1{margin:0;font-size:clamp(3.2rem,6vw,5.3rem);line-height:.94;letter-spacing:-.065em}.quotes-hero h1 span{color:var(--md-coral)}.quotes-hero p{max-width:700px;margin:19px 0 0;color:var(--md-muted);font-size:1rem;line-height:1.6}
.quotes-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:28px}.quotes-summary article{padding:20px 22px;border:1px solid var(--md-line);border-radius:18px;background:#fff}.quotes-summary span{display:block;color:var(--md-muted);font-size:.76rem;font-weight:800;margin-bottom:7px}.quotes-summary strong{font-size:1.8rem;letter-spacing:-.04em}
.quotes-loading,.quotes-empty{padding:50px;text-align:center;border:1px solid var(--md-line);border-radius:24px;background:#fff;color:var(--md-muted)}
.quotes-list{display:grid;gap:16px}.customer-offer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:center;padding:24px 26px;border:1px solid var(--md-line);border-radius:22px;background:#fff;box-shadow:0 12px 34px rgba(50,37,24,.05)}
.offer-top{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.offer-top strong{font-size:1.12rem}.offer-service{color:var(--md-coral-dark);font-size:.76rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.offer-meta{margin-top:7px;color:var(--md-muted);font-size:.84rem;line-height:1.55}.offer-inclusions{margin-top:13px;color:#4f565b;font-size:.84rem;line-height:1.5;max-width:700px}
.offer-side{text-align:right;min-width:180px}.offer-price small{display:block;color:var(--md-muted);font-size:.72rem}.offer-price strong{display:block;font-size:2rem;letter-spacing:-.05em;margin:2px 0 12px}.offer-side .button{min-width:160px;display:inline-flex;justify-content:center;align-items:center}
.offer-status{display:inline-flex;padding:5px 9px;border-radius:999px;background:#f4efea;color:var(--md-muted);font-size:.7rem;font-weight:900}.offer-status.accepted{background:var(--md-green-soft);color:var(--md-green)}.offer-status.viewed{background:#fff0ed;color:var(--md-coral-dark)}.offer-status.declined,.offer-status.not_selected{background:#f3f1ef;color:#777}
.customer-quote-modal[hidden]{display:none}.customer-quote-modal{position:fixed;inset:0;z-index:800;display:grid;place-items:center;padding:24px}.customer-quote-backdrop{position:absolute;inset:0;background:rgba(28,27,25,.42);backdrop-filter:blur(5px)}.customer-quote-card{position:relative;z-index:1;width:min(720px,100%);max-height:min(88vh,900px);overflow:auto;padding:32px;border-radius:26px;background:#fff;box-shadow:0 30px 90px rgba(0,0,0,.22)}.customer-quote-close{position:absolute;right:16px;top:13px;width:36px;height:36px;border:0;border-radius:50%;background:#f5f1ed;font-size:1.4rem}
.customer-quote-kicker{color:var(--md-coral-dark);font-size:.75rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.customer-quote-card h2{margin:8px 40px 8px 0;font-size:2rem;letter-spacing:-.05em}.customer-quote-price{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:22px 0;padding:20px;border-radius:18px;background:var(--md-coral-soft)}.customer-quote-price strong{font-size:2.4rem;letter-spacing:-.06em}.customer-quote-price span{color:var(--md-muted);font-size:.82rem;text-align:right}
.offer-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.offer-detail{padding:15px;border:1px solid var(--md-line);border-radius:14px}.offer-detail small{display:block;color:var(--md-muted);font-size:.7rem;margin-bottom:5px}.offer-detail strong{font-size:.88rem}.offer-copy-block{padding:17px 0;border-top:1px solid var(--md-line)}.offer-copy-block strong{display:block;margin-bottom:6px;font-size:.86rem}.offer-copy-block p{margin:0;color:var(--md-muted);font-size:.84rem;line-height:1.55;white-space:pre-wrap}
.customer-quote-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.customer-quote-actions .button{display:inline-flex;align-items:center;justify-content:center}.customer-quote-actions .decline-offer{color:#a73b34}
.customer-conversation{margin-top:28px;padding-top:24px;border-top:1px solid var(--md-line)}.customer-conversation-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.customer-message-list{display:grid;gap:9px;max-height:240px;overflow:auto}.customer-message{max-width:85%;padding:11px 13px;border-radius:14px;background:#f5f1ed}.customer-message.mine{margin-left:auto;background:var(--md-coral-soft)}.customer-message small{display:block;color:var(--md-muted);font-size:.66rem;margin-bottom:4px}.customer-message p{margin:0;font-size:.8rem;line-height:1.45;white-space:pre-wrap}.customer-message-form{display:grid;grid-template-columns:1fr auto;gap:9px;margin-top:12px}.customer-message-form textarea{resize:vertical;min-height:50px;padding:12px;border:1px solid var(--md-line);border-radius:12px;font:inherit}.customer-message-form button{align-self:stretch}
@media(max-width:700px){.quotes-main{padding-top:34px}.quotes-shell{width:calc(100% - 22px)}.quotes-nav{gap:12px}.quotes-summary{grid-template-columns:1fr}.customer-offer{grid-template-columns:1fr;gap:18px;padding:20px}.offer-side{text-align:left}.offer-side .button{width:100%}.customer-quote-card{padding:24px 20px}.offer-detail-grid{grid-template-columns:1fr}.customer-quote-price{align-items:flex-start;flex-direction:column}.customer-quote-price span{text-align:left}.customer-message-form{grid-template-columns:1fr}}

/* =========================================================
   UPDATE 012 — PRICING CLARITY + MESSAGE NOTIFICATIONS
   ========================================================= */
.quotes-unread-nav{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;margin-left:4px;border-radius:999px;background:var(--md-coral);color:#fff;font-size:.62rem;font-weight:900;vertical-align:middle}
.customer-new-reply{display:inline-flex;align-items:center;gap:7px;padding:5px 8px;border-radius:999px;background:#fff3e6;color:#a85c12;font-size:.68rem;font-weight:900}.customer-new-reply i{width:7px;height:7px;border-radius:50%;background:#ff8a24;box-shadow:0 0 0 4px rgba(255,138,36,.12)}
.pricing-basis-card{display:flex;flex-direction:column;gap:5px;margin:-4px 0 20px;padding:15px 17px;border:1px solid var(--md-line);border-radius:14px;background:#fffdf9}.pricing-basis-card strong{font-size:.82rem}.pricing-basis-card span{color:var(--md-muted);font-size:.78rem;line-height:1.5}.pricing-basis-card.estimate{background:#fff8ef;border-color:#f1d7b4}.pricing-basis-card.estimate strong{color:#9a5b18}.pricing-basis-card.from{background:#fff3ef;border-color:#f1cabe}.pricing-basis-card.from strong{color:#a64936}.pricing-basis-card.fixed{background:var(--md-green-soft);border-color:rgba(43,166,106,.2)}.pricing-basis-card.fixed strong{color:var(--md-green)}
.offer-price small{text-transform:none;font-weight:800}
@media(max-width:700px){.quotes-unread-nav{min-width:18px;height:18px;font-size:.58rem}.customer-new-reply{width:100%;justify-content:flex-start}}

/* =========================================================
   UPDATE 013 — CUSTOMER COMMERCIAL TERMS
   ========================================================= */
.offer-price em{display:block;margin-top:4px;color:var(--md-muted);font-style:normal;font-size:.64rem;line-height:1.35;text-align:right}.offer-commercial-terms{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0}.offer-commercial-terms>div{padding:13px 14px;border:1px solid var(--md-line);border-radius:13px;background:#fffdf9}.offer-commercial-terms small{display:block;margin-bottom:4px;color:var(--md-muted);font-size:.66rem;font-weight:750}.offer-commercial-terms strong{font-size:.78rem;line-height:1.4}.invoices-unread-nav{display:inline-grid;place-items:center;min-width:19px;height:19px;padding:0 5px;margin-left:4px;border-radius:999px;background:var(--md-coral);color:#fff;font-size:.6rem;font-weight:900}
@media(max-width:620px){.offer-commercial-terms{grid-template-columns:1fr}.offer-price em{text-align:left}}

/* =========================================================
   UPDATE 014 — CUSTOMER DEPOSIT PAYMENT
   ========================================================= */
.customer-deposit-card{display:grid;gap:14px;margin:18px 0;padding:18px;border:1px solid #eadfce;border-radius:16px;background:#fffaf0}.customer-deposit-head{display:flex;align-items:center;justify-content:space-between;gap:16px}.customer-deposit-head>div{display:flex;flex-direction:column;gap:2px}.customer-deposit-head small{color:var(--md-muted);font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.customer-deposit-head strong{font-size:1.45rem;letter-spacing:-.035em}.customer-deposit-head>span{padding:6px 9px;border-radius:999px;background:#fff0cf;color:#8e5b09;font-size:.69rem;font-weight:900}.customer-payment-instructions{padding:14px;border-radius:13px;background:#fff;border:1px solid var(--md-line)}.customer-payment-instructions strong{display:block;margin-bottom:7px;font-size:.79rem}.customer-payment-instructions pre{margin:0;color:#555c62;font:inherit;font-size:.78rem;line-height:1.6;white-space:pre-wrap}.customer-deposit-copy{margin:0;color:var(--md-muted);font-size:.78rem;line-height:1.5}.customer-deposit-card.customer_reported_paid{background:var(--md-coral-soft);border-color:rgba(255,90,79,.2)}.customer-deposit-card.customer_reported_paid .customer-deposit-head>span{background:#fff;color:var(--md-coral-dark)}.customer-deposit-card.paid{background:var(--md-green-soft);border-color:rgba(43,166,106,.2)}.customer-deposit-card.paid .customer-deposit-head>span{background:#fff;color:#176f48}.customer-deposit-card.waived{background:#f5f2ef;border-color:var(--md-line)}
.customer-payment-link{display:inline-flex;align-items:center;min-height:38px;margin:3px 0;padding:0 12px;border-radius:10px;background:var(--md-coral);color:#fff!important;font-weight:850;text-decoration:none}

/* Stripe-connected supplier payments */
.stripe-customer-pay{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:14px 0;padding:16px;border:1px solid rgba(99,91,255,.18);border-radius:15px;background:#f8f7ff}.stripe-customer-pay>div{display:grid;gap:4px}.stripe-customer-pay strong{font-size:.86rem;color:var(--md-ink)}.stripe-customer-pay span{color:var(--md-muted);font-size:.74rem;line-height:1.45}.stripe-pay-button{background:#635bff;color:#fff;border:0;min-height:44px;padding:0 16px;box-shadow:0 8px 20px rgba(99,91,255,.16);white-space:nowrap}.stripe-pay-button:hover{background:#5149e8}.stripe-pay-button:disabled{opacity:.7}@media(max-width:620px){.stripe-customer-pay{align-items:stretch;flex-direction:column}.stripe-pay-button{width:100%}}


/* =========================================================
   Update 019 — accepted-job service address
   ========================================================= */
.customer-service-address{display:grid;gap:12px;margin:18px 0;padding:16px 17px;border:1px solid rgba(43,166,106,.17);border-radius:15px;background:var(--md-green-soft)}.customer-service-address>div{display:grid;gap:3px}.customer-service-address small{color:#176f48;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em}.customer-service-address strong{font-size:.85rem}.customer-service-address span{color:var(--md-muted);font-size:.74rem;line-height:1.45}.service-address-form{display:grid;grid-template-columns:2fr 1.2fr .7fr .8fr auto;gap:8px;align-items:center}.service-address-form input{min-width:0;min-height:42px;border:1px solid #d8ddd9;border-radius:10px;background:#fff;padding:0 10px;font:inherit;font-size:.74rem}.service-address-form input:focus{outline:0;border-color:var(--md-green);box-shadow:0 0 0 3px rgba(43,166,106,.08)}.service-address-form .button{min-height:42px;white-space:nowrap}
@media(max-width:700px){.service-address-form{grid-template-columns:1fr 1fr}.service-address-form input:first-child{grid-column:1/-1}.service-address-form .button{grid-column:1/-1;width:100%}}
