/* Coquina Agents: luxury remodel layer over the care-coordination shell */
.signin { background: linear-gradient(100deg, rgba(31,58,51,.92) 0%, rgba(31,58,51,.55) 55%, rgba(31,58,51,.15) 100%), url("custom/img/signin.webp") center/cover no-repeat; }
.cf-sidebar { background: linear-gradient(rgba(31,58,51,.93), rgba(23,44,38,.96)), url("custom/img/blueprint.webp") center/cover; }
@media (min-width: 761px) { .cf-cardlist.stack { display: none; } }

/* estimating agent, first screen */
.cq-est { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--border, #D9CFBF); border-radius: 16px; overflow: hidden; background: var(--surface, #FFFDF8); box-shadow: 0 16px 36px -26px rgba(30,27,22,.5); scroll-margin-top: 90px; }
.est-in { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.est-in .fld { margin: 6px 0 0; }
.est-in textarea { resize: vertical; min-height: 118px; line-height: 1.5; }
.est-in .btn { align-self: flex-start; margin-top: 6px; }
.est-title { display: flex; gap: 12px; align-items: flex-start; }
.est-title h2 { margin: 0 0 2px; }
.est-title p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted, #4F493F); }
.est-err, .co-err { color: var(--danger, #A3302C); font-size: 15px; min-height: 0; }
.est-err:empty, .co-err:empty { display: none; }
.est-out { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; background: linear-gradient(rgba(31,58,51,.92), rgba(31,58,51,.97)), url("custom/img/blueprint.webp") center/cover; color: #F5F1E9; }
.est-out-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.est-out .dim { color: #D9D1C1; }
.est-lines { display: flex; flex-direction: column; gap: 8px; }
.est-line { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 16px; padding: 10px 12px; border-radius: 9px; background: rgba(245,241,233,.08); border: 1px solid rgba(245,241,233,.16); }
.est-line strong { white-space: nowrap; }
.est-line em { font-style: normal; font-size: 15px; color: var(--muted, #4F493F); margin-left: 6px; }
.est-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-top: 4px; padding-top: 12px; border-top: 1px solid rgba(245,241,233,.3); font-size: 15px; }
.est-total strong { font-family: var(--font-head); font-size: 28px; color: #E9C77B; white-space: nowrap; }
.est-empty { font-size: 15px; line-height: 1.5; color: #E6DFD1; }
.cq-lines { display: flex; flex-direction: column; gap: 12px; }
.cq-lines .est-line { background: var(--bg, #F5F1E9); border-color: var(--border, #D9CFBF); }
.cq-lines .est-total { border-top-color: var(--border, #D9CFBF); }
.cq-lines .est-total strong { color: var(--accent-deep, #7E2814); }

.cq-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; border-radius: 16px; overflow: hidden; background: var(--sidebar, #1F3A33); color: #F5F1E9; box-shadow: 0 18px 40px -24px rgba(30,27,22,.55); }
.cq-hero-txt { padding: 34px 34px 30px; display: flex; flex-direction: column; gap: 14px; justify-content: center; background: linear-gradient(rgba(31,58,51,.9), rgba(31,58,51,.96)), url("custom/img/blueprint.webp") center/cover; }
.cq-hero-txt h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.12; margin: 0; color: #FFFDF8; }
.cq-hero-txt p { margin: 0; font-size: 16px; line-height: 1.55; color: #E6DFD1; max-width: 52ch; }
.cq-eyebrow { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: #1F3A33; background: #E9C77B; padding: 6px 12px; border-radius: 999px; }
.cq-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cq-hero-cta .btn { text-decoration: none; }
.cq-hero-cta .btn:not(.primary) { background: transparent; color: #FFFDF8; border-color: rgba(245,241,233,.55); }
.cq-hero-img { min-height: 280px; }
.cq-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.cq-roster-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cq-roster-head h2 { margin: 0; }
.cq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cq-agent { display: flex; flex-direction: column; text-decoration: none; color: inherit; background: var(--surface, #FFFDF8); border: 1px solid var(--border, #D9CFBF); border-radius: 14px; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease; }
.cq-agent:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(168,54,31,.55); }
.cq-agent-img { aspect-ratio: 3 / 2; overflow: hidden; }
.cq-agent-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cq-agent-img img[src*="ag-est"], .cq-agent-img img[src*="ag-col"] { object-position: center 18%; }
.cq-agent-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.cq-agent-top { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.cq-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft, #F6E3DC); display: grid; place-items: center; flex-shrink: 0; }
.cq-agent p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted, #4F493F); }
.cq-live { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: #1E6A47; }

.cq-thumb { width: 56px; height: 40px; object-fit: cover; border-radius: 7px; vertical-align: middle; margin-right: 12px; flex-shrink: 0; }
.tr .strong { display: flex; align-items: center; min-width: 0; }
.mini > .row > span:first-child { display: flex; align-items: center; min-width: 0; }
.cq-banner { border-radius: 14px; overflow: hidden; height: 220px; margin-bottom: 20px; box-shadow: 0 16px 34px -24px rgba(30,27,22,.6); }
.cq-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* homeowner change order */
body.cq-co-open { overflow: hidden; }
.cq-co { position: fixed; inset: 0; z-index: 200; overflow-y: auto; background: #E9E2D4 url("custom/img/blueprint.webp") center/cover; background-blend-mode: soft-light; padding: 0 16px 48px; }
.co-bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 860px; margin: 0 auto; padding: 14px 0; }
.co-bar > span { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #1F3A33; background: #F5F1E9; padding: 6px 12px; border-radius: 999px; }
.co-doc { max-width: 860px; margin: 0 auto; background: #FFFDF8; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(30,27,22,.55); padding: 0 0 26px; }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 32px; background: #1F3A33; color: #F5F1E9; }
.co-brand { display: flex; align-items: center; gap: 12px; }
.co-brand div { display: flex; flex-direction: column; }
.co-brand span:not(.co-mark), .co-id span { font-size: 15px; color: #D9D1C1; }
.co-mark { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #A8361F; color: #fff; font-weight: 800; font-size: 20px; }
.co-id { text-align: right; display: flex; flex-direction: column; }
.co-id strong { font-family: var(--font-head); font-size: 26px; color: #E9C77B; }
.co-hero { position: relative; height: 230px; }
.co-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-hero-txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 32px 20px; background: linear-gradient(transparent, rgba(20,30,26,.86)); color: #FFFDF8; }
.co-hero-txt span { font-size: 15px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #E9C77B; }
.co-hero-txt h2 { margin: 4px 0; font-size: clamp(22px, 3vw, 30px); line-height: 1.15; color: #FFFDF8; }
.co-hero-txt p { margin: 0; font-size: 15px; color: #E6DFD1; }
.co-intro { margin: 22px 32px 8px; font-size: 16px; line-height: 1.6; color: #4F493F; }
.co-table { margin: 12px 32px 0; border: 1px solid #D9CFBF; border-radius: 12px; overflow: hidden; }
.co-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-top: 1px solid #EAE3D6; }
.co-row:first-child { border-top: 0; }
.co-n { width: 28px; height: 28px; border-radius: 50%; background: #F6E3DC; color: #7E2814; display: grid; place-items: center; font-weight: 700; font-size: 15px; }
.co-d { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.co-d strong { font-size: 16px; }
.co-d span { font-size: 15px; color: #6A6357; }
.co-a { font-weight: 700; font-size: 17px; white-space: nowrap; }
.co-total { background: #F5F1E9; }
.co-total .co-a { font-family: var(--font-head); font-size: 22px; color: #7E2814; }
.co-sum { margin: 18px 32px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.co-sum div { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: #F5F1E9; border: 1px solid #EAE3D6; }
.co-sum span { font-size: 15px; color: #6A6357; }
.co-sum strong { font-size: 18px; }
.co-sum .co-new { background: #1F3A33; border-color: #1F3A33; }
.co-sum .co-new span { color: #D9D1C1; }
.co-sum .co-new strong { color: #E9C77B; font-family: var(--font-head); font-size: 22px; }
.co-sign { margin: 22px 32px 0; padding: 18px; border: 1px dashed #C9B99B; border-radius: 12px; display: flex; flex-direction: column; gap: 10px; }
.co-sign .fld { margin: 0; }
.co-sign .btn { align-self: flex-start; }
.co-signed { margin: 22px 32px 0; padding: 16px 18px; border-radius: 12px; background: #E2F0E7; color: #1E6A47; display: flex; align-items: center; gap: 12px; }
.co-signed div { display: flex; flex-direction: column; }
.co-signed span { font-size: 15px; }
.co-foot { margin: 18px 32px 0; font-size: 15px; color: #6A6357; }

@media (max-width: 1100px) { .cq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .cq-est { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .cq-hero { grid-template-columns: 1fr; }
  .cq-hero-img { min-height: 180px; order: -1; }
  .cq-hero-txt { padding: 22px 18px; }
  .cq-grid { grid-template-columns: 1fr; }
  .cq-banner { height: 160px; }
  .cq-thumb { width: 44px; height: 32px; margin-right: 10px; }
  .est-in, .est-out { padding: 18px 16px; }
  .cq-co { padding: 0 10px 32px; }
  .co-head { padding: 16px 18px; }
  .co-id strong { font-size: 22px; }
  .co-hero { height: 190px; }
  .co-hero-txt { padding: 40px 18px 16px; }
  .co-intro, .co-table, .co-sum, .co-sign, .co-signed, .co-foot { margin-left: 16px; margin-right: 16px; }
  .co-row { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 12px; gap: 10px; }
  .co-sum { grid-template-columns: 1fr 1fr; }
}
