:root {
  color-scheme: light;
  --ink: #17231f;
  --muted: #68746f;
  --line: #dde3df;
  --soft: #f5f7f5;
  --paper: #ffffff;
  --forest: #194f3f;
  --forest-2: #246b55;
  --mint: #dff2e9;
  --gold: #b57b28;
  --gold-soft: #fff3dd;
  --red: #a03d3d;
  --red-soft: #fbe8e8;
  --shadow: 0 14px 40px rgba(29, 54, 45, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--soft); }
@supports (padding: max(0px)) {
  body { padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right); }
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.install-app-button { position: fixed; z-index: 90; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); border: 1px solid rgba(255,255,255,.32); border-radius: 999px; padding: .72rem 1rem; background: #3d302b; color: #fffaf4; box-shadow: 0 12px 32px rgba(47,35,31,.24); font-size: .78rem; font-weight: 750; }
.install-app-button:hover { background: #58443c; }
.install-app-dialog { position: fixed; z-index: 120; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(33,25,22,.58); }
.install-app-card { width: min(420px, 100%); border: 1px solid #d9d1ca; border-radius: 18px; padding: 1.5rem; background: #fffdf9; box-shadow: 0 24px 70px rgba(33,25,22,.3); text-align: center; }
.install-app-card > img { width: 72px; height: 72px; margin-bottom: 1rem; border-radius: 18px; }
.install-app-card h2 { margin-bottom: .65rem; }
.install-app-card > p:not(.eyebrow) { color: #6f625b; line-height: 1.55; }
.install-app-actions { display: flex; justify-content: center; margin-top: 1rem; }
.install-app-actions button { min-width: 130px; }
.mobile-only { display: none !important; }
.offline-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: #f7f2ec; }
.offline-card { width: min(430px, 100%); border: 1px solid #d9d1ca; border-radius: 20px; padding: 2rem; background: #fffdf9; box-shadow: 0 16px 45px rgba(59,47,42,.11); text-align: center; }
.offline-card img { width: 86px; height: 86px; margin-bottom: 1rem; border-radius: 22px; }
.offline-card p { color: #6f625b; line-height: 1.55; }
.offline-card a { display: inline-block; margin-top: .5rem; text-decoration: none; }
@media (display-mode: standalone) {
  .install-app-button { display: none !important; }
  .topbar { padding-top: env(safe-area-inset-top); }
}

.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; }
.muted { color: var(--muted); }
.error { color: var(--red); min-height: 1.3rem; margin: .5rem 0 0; }
.eyebrow { margin: 0 0 .4rem; color: var(--forest-2); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.05; margin-bottom: .35rem; letter-spacing: -.035em; }
h2 { letter-spacing: -.025em; }
.primary, .secondary { border: 0; border-radius: 10px; padding: .78rem 1rem; font-weight: 700; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: var(--forest-2); }
.secondary { background: white; color: var(--ink); border: 1px solid var(--line); }
.danger { color: var(--red) !important; }

.login-shell { min-height: 100vh; display: grid; place-items: center; padding: 2rem; background: radial-gradient(circle at 15% 10%, #dfeee8, transparent 32%), linear-gradient(145deg, #eef4f0, #f8f7f3); }
.login-card { width: min(420px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 22px; padding: 2.2rem; box-shadow: var(--shadow); }
.brand-mark { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; background: var(--forest); color: white; font-weight: 800; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.brand-mark.small { width: 38px; height: 38px; border-radius: 11px; margin: 0; font-size: .78rem; flex: 0 0 auto; }
label { display: grid; gap: .42rem; color: #34413c; font-size: .86rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #cad3ce; border-radius: 9px; background: white; padding: .74rem .8rem; color: var(--ink); outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(36, 107, 85, .13); }
.login-card label { margin-top: 1rem; }
.login-card .primary { width: 100%; margin-top: 1.2rem; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { background: #133d32; color: white; padding: 1.3rem 1rem; display: flex; flex-direction: column; min-height: 100vh; }
.brand-lockup { display: flex; gap: .75rem; align-items: center; padding: .2rem .3rem 1.4rem; }
.brand-lockup span:last-child { display: grid; gap: .1rem; }
.brand-lockup small { color: #b8d2c8; }
nav { display: grid; gap: .35rem; }
.nav-link { border: 0; background: transparent; color: #c9dbd4; text-align: left; padding: .8rem .85rem; border-radius: 9px; font-weight: 650; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: white; }
.sidebar-foot { margin-top: auto; padding: 1rem .35rem .25rem; border-top: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; align-items: center; color: #c9dbd4; font-size: .85rem; }
.text-button { border: 0; background: transparent; color: inherit; padding: .35rem; }
main { min-width: 0; padding: 1.5rem clamp(1rem, 3vw, 2.4rem) 2.5rem; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.topbar h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.stat { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 1rem; }
.stat span { color: var(--muted); font-size: .78rem; }
.stat strong { display: block; margin-top: .3rem; font-size: 1.6rem; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .85rem; }
.filter-row { display: flex; gap: .4rem; flex-wrap: wrap; }
.filter { border: 1px solid var(--line); background: white; color: #4e5d57; border-radius: 999px; padding: .48rem .72rem; font-size: .78rem; font-weight: 650; }
.filter.active { background: var(--forest); border-color: var(--forest); color: white; }
.search { width: min(280px, 100%); }
.workspace { display: grid; grid-template-columns: minmax(285px, .72fr) minmax(420px, 1.28fr); gap: .9rem; align-items: start; }
.lead-list-panel, .lead-detail { background: white; border: 1px solid var(--line); border-radius: 14px; min-height: 580px; }
.lead-list { display: grid; }
.lead-row { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: white; padding: .95rem 1rem; text-align: left; display: grid; gap: .45rem; }
.lead-row:first-child { border-radius: 14px 14px 0 0; }
.lead-row:hover, .lead-row.active { background: #f1f7f4; }
.lead-row-top, .lead-row-bottom { display: flex; justify-content: space-between; align-items: center; gap: .7rem; }
.lead-row strong { font-size: .93rem; }
.lead-row-bottom { color: var(--muted); font-size: .76rem; }
.status-pill, .route-pill { display: inline-flex; align-items: center; border-radius: 999px; padding: .28rem .55rem; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.status-pill { background: #eef1ef; color: #50605a; }
.route-Green { background: var(--mint); color: #176044; }
.route-Yellow { background: var(--gold-soft); color: #8a5917; }
.route-Red { background: var(--red-soft); color: var(--red); }
.lead-detail { padding: 1.2rem; }
.empty-state { display: grid; place-items: center; text-align: center; color: var(--muted); padding: 2rem; }
.empty-icon { font-size: 2.5rem; color: #9ab3a9; }
.detail-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.detail-head h2 { margin-bottom: .25rem; }
.detail-meta { color: var(--muted); font-size: .82rem; }
.recommendation { margin: 1rem 0; padding: 1rem; border-radius: 12px; background: #f3f8f5; border: 1px solid #d8e8e0; }
.recommendation-top { display: flex; gap: .5rem; align-items: center; margin-bottom: .7rem; }
.recommendation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.recommendation-grid div span { display: block; color: var(--muted); font-size: .72rem; margin-bottom: .22rem; }
.recommendation-grid strong { font-size: .98rem; }
.detail-section { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: #66736e; margin-bottom: .75rem; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem 1rem; }
.fact span { display: block; color: var(--muted); font-size: .72rem; }
.fact strong { font-size: .86rem; }
.flags { margin: 0; padding-left: 1.1rem; color: #71511d; }
.flags li + li { margin-top: .35rem; }
.photo-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.photo-strip img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.action-row { display: flex; gap: .45rem; flex-wrap: wrap; padding-top: 1rem; }
.action-button { border: 1px solid var(--line); background: white; border-radius: 9px; padding: .58rem .7rem; color: var(--ink); font-size: .78rem; font-weight: 700; }
.action-button:hover { background: var(--soft); }
.action-button.approve { background: var(--forest); border-color: var(--forest); color: white; }
.timeline { display: grid; gap: .7rem; }
.event { border-left: 2px solid #cddbd5; padding-left: .75rem; }
.event strong { font-size: .8rem; }
.event p { margin: .16rem 0; font-size: .78rem; color: #52605b; }
.event small { color: var(--muted); }

.intake-form { max-width: 920px; background: white; border: 1px solid var(--line); border-radius: 16px; padding: clamp(1rem, 3vw, 2rem); }
.form-heading { padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.intake-form fieldset { border: 0; padding: 1.4rem 0; margin: 0; border-bottom: 1px solid var(--line); }
.intake-form legend { font-size: 1rem; font-weight: 800; padding: 0; margin-bottom: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.wide { grid-column: 1 / -1; }
.checkbox { display: flex; align-items: flex-start; gap: .65rem; font-weight: 600; }
.checkbox input { width: auto; margin-top: .15rem; }
.field-help { color: var(--muted); font-size: .84rem; }
.upload-box { border: 1px dashed #9db4aa; background: #f7faf8; border-radius: 12px; padding: 1rem; cursor: pointer; }
.upload-box input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.upload-box span { color: var(--forest); font-weight: 800; }
.upload-box small { color: var(--muted); }
.photo-preview { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; margin-top: .75rem; }
.photo-preview img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.form-actions { display: flex; justify-content: flex-end; gap: .65rem; padding-top: 1.3rem; }
.toast { position: fixed; right: 1.2rem; bottom: 1.2rem; max-width: 360px; background: #183f34; color: white; border-radius: 11px; padding: .85rem 1rem; box-shadow: var(--shadow); z-index: 10; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .lead-list-panel { min-height: auto; max-height: 390px; overflow: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { min-height: auto; padding: .85rem; flex-direction: row; align-items: center; gap: .7rem; position: sticky; top: 0; z-index: 4; }
  .brand-lockup span:last-child, .sidebar-foot span { display: none; }
  nav { display: flex; flex: 1; }
  .nav-link { padding: .6rem .7rem; font-size: .8rem; }
  .sidebar-foot { margin: 0; padding: 0; border: 0; }
  main { padding: 1rem; }
  .topbar { align-items: flex-end; }
  .topbar .eyebrow { display: none; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search { width: 100%; }
  .recommendation-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .photo-preview, .photo-strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 440px) {
  .brand-lockup { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { flex-wrap: wrap; }
  .facts { grid-template-columns: 1fr; }
}

/* Maid In Surprise brand system */
@font-face { font-family: "MIS Garamond"; src: url("assets/eb-garamond.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "MIS Montserrat"; src: url("assets/montserrat.woff2") format("woff2"); font-display: swap; }

:root {
  --ink: #3b2f2a;
  --muted: #7b706b;
  --line: #ded6cf;
  --soft: #f4f0eb;
  --paper: #fffdf9;
  --forest: #3b2f2a;
  --forest-2: #51413b;
  --mint: #e7ede5;
  --gold: #a67b4c;
  --gold-soft: #f3e9d9;
  --red: #8c4541;
  --red-soft: #f3e3e1;
  --shadow: 0 20px 60px rgba(59, 47, 42, .10);
}

body { font-family: "MIS Montserrat", Montserrat, Arial, sans-serif; background: #f3efe9; color: var(--ink); }
h1, h2 { font-family: "MIS Garamond", "EB Garamond", Georgia, serif; font-weight: 400; letter-spacing: -.02em; }
h1 { font-size: clamp(2.15rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.25rem); }
h3 { font-family: "MIS Montserrat", Montserrat, Arial, sans-serif; }
.eyebrow { color: #8a6c54; font-size: .66rem; letter-spacing: .2em; }
.primary, .secondary { border-radius: 2px; padding: .9rem 1.2rem; text-transform: uppercase; letter-spacing: .09em; font-size: .71rem; }
.primary { background: #3b2f2a; }
.primary:hover { background: #57453e; }
.secondary { background: transparent; border-color: #bfb4ab; }

.login-shell { padding: 3rem 1.2rem; background: linear-gradient(90deg, rgba(248,245,240,.93), rgba(248,245,240,.76)), url("assets/brand-living-room.jpg") center/cover no-repeat; }
.login-card { width: min(470px, 100%); padding: 2.7rem 3rem 2.8rem; background: rgba(255, 253, 249, .96); border: 1px solid rgba(104, 85, 74, .24); border-radius: 0; box-shadow: 0 30px 80px rgba(59, 47, 42, .16); text-align: center; }
.login-logo { display: block; width: min(310px, 90%); height: auto; margin: 0 auto 1.5rem; }
.login-rule { width: 56px; border-top: 1px solid #ad9482; margin: 0 auto 1.5rem; }
.login-card h1 { margin-bottom: .55rem; }
.login-card .muted { line-height: 1.65; max-width: 350px; margin-left: auto; margin-right: auto; }
.login-card label { text-align: left; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.login-card input { background: #fbf8f4; }
.login-card .primary { margin-top: 1.45rem; }

.app-shell { grid-template-columns: 268px minmax(0, 1fr); }
.sidebar { background: #3b2f2a; padding: 0; box-shadow: 12px 0 35px rgba(59,47,42,.08); }
.brand-lockup { min-height: 176px; padding: 2rem 1.4rem 1.6rem; display: flex; flex-direction: column; justify-content: center; gap: .85rem; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand-lockup img { width: 100%; max-width: 220px; height: auto; }
.brand-lockup small { color: #d6c8bf; text-transform: uppercase; letter-spacing: .18em; font-size: .58rem; }
.sidebar nav { gap: 0; padding: 1.15rem 0; }
.nav-link { display: grid; grid-template-columns: 28px 1fr; gap: .6rem; align-items: center; border-radius: 0; padding: 1rem 1.5rem; color: #d9cec7; font-weight: 500; font-size: .77rem; letter-spacing: .04em; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.08); color: white; }
.nav-link.active { border-left: 2px solid #d9b994; padding-left: calc(1.5rem - 2px); }
.nav-number { color: #b99c87; font-family: "MIS Garamond", Georgia, serif; font-size: .9rem; }
.sidebar-foot { margin: auto 1.35rem 0; padding: 1.2rem 0 1.5rem; color: #d2c4bb; }

main { background: #f7f4ef; padding: 2.4rem clamp(1.2rem, 3vw, 3rem) 3.5rem; }
.topbar { align-items: flex-start; margin-bottom: 2.1rem; padding-bottom: 1.45rem; border-bottom: 1px solid #d8d0c9; }
.topbar h1 { margin-bottom: .3rem; color: #3b2f2a; }
.page-intro { color: #7c706a; font-family: "MIS Garamond", Georgia, serif; font-size: 1.08rem; margin: 0; }
.topbar .primary { margin-top: .3rem; }
.topbar .primary span { font-size: 1rem; margin-right: .25rem; }

.stats { grid-template-columns: repeat(4, minmax(135px, 1fr)); gap: 0; margin: 0 0 1.7rem; border: 1px solid var(--line); background: var(--paper); }
.stat { border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 1.15rem 1.25rem; background: transparent; }
.stat:last-child { border-right: 0; }
.stat span { text-transform: uppercase; letter-spacing: .11em; font-size: .62rem; color: #81746e; }
.stat strong { font-family: "MIS Garamond", Georgia, serif; font-size: 2rem; font-weight: 400; color: #3b2f2a; }

.toolbar { margin-bottom: 1.15rem; }
.filter { border-radius: 2px; padding: .52rem .72rem; background: transparent; text-transform: uppercase; letter-spacing: .06em; font-size: .61rem; }
.filter.active { background: #3b2f2a; border-color: #3b2f2a; }
input, select, textarea { border-radius: 2px; border-color: #cfc5bd; background: #fffdf9; padding: .8rem .85rem; }
input:focus, select:focus, textarea:focus { border-color: #78645a; box-shadow: 0 0 0 2px rgba(120,100,90,.12); }
.search input { background: #fffdf9; }

.workspace { gap: 1.1rem; grid-template-columns: minmax(300px, .74fr) minmax(480px, 1.26fr); }
.lead-list-panel, .lead-detail { border-radius: 0; border-color: #d9d1ca; background: #fffdf9; box-shadow: 0 12px 30px rgba(59,47,42,.045); }
.lead-row { padding: 1.15rem 1.2rem; background: #fffdf9; border-color: #e2dbd5; }
.lead-row:first-child { border-radius: 0; }
.lead-row:hover, .lead-row.active { background: #f2ede7; }
.lead-row.active { box-shadow: inset 3px 0 #8c6d58; }
.lead-row strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.2rem; font-weight: 500; }
.lead-row-bottom { font-size: .68rem; }
.status-pill, .route-pill { border-radius: 2px; padding: .3rem .52rem; text-transform: uppercase; letter-spacing: .07em; font-size: .57rem; }
.route-Green { background: #e5ebe2; color: #4d684f; }
.route-Yellow { background: #f1e6d4; color: #866137; }
.route-Red { background: #f0dfdc; color: #874743; }
.status-pill { background: #ebe7e2; color: #655b56; }
.lead-detail { padding: 1.55rem; }
.detail-head { padding-bottom: 1.25rem; }
.detail-head h2 { margin-bottom: .25rem; }
.detail-meta { line-height: 1.65; }
.recommendation { margin: 1.25rem 0; padding: 1.25rem; border-radius: 0; background: #f4efe9; border: 1px solid #dfd4ca; }
.recommendation p { font-family: "MIS Garamond", Georgia, serif; font-size: 1.08rem; line-height: 1.55; }
.recommendation-grid { border-top: 1px solid #dcd1c7; padding-top: .9rem; }
.recommendation-grid div span, .fact span { text-transform: uppercase; letter-spacing: .08em; font-size: .58rem; }
.recommendation-grid strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.15rem; font-weight: 500; }
.detail-section { padding: 1.25rem 0; border-color: #dfd8d1; }
.detail-section h3 { letter-spacing: .15em; font-size: .64rem; font-weight: 600; color: #806f65; }
.fact strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1rem; font-weight: 500; }
.flags { color: #71583d; font-family: "MIS Garamond", Georgia, serif; font-size: 1rem; line-height: 1.45; }
.photo-strip img { border-radius: 0; }
.action-row { padding-top: 1.25rem; }
.action-button { border-radius: 2px; padding: .66rem .78rem; text-transform: uppercase; letter-spacing: .055em; font-size: .59rem; }
.action-button.approve { background: #3b2f2a; border-color: #3b2f2a; }
.timeline { padding-left: .2rem; }
.event { border-left-color: #bba898; }
.event strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1rem; font-weight: 500; }

.intake-form { max-width: 980px; border-radius: 0; border-color: #d9d1ca; padding: clamp(1.2rem, 3vw, 2.5rem); background: #fffdf9; box-shadow: 0 12px 35px rgba(59,47,42,.05); }
.form-heading { padding-bottom: 1.4rem; }
.form-heading p:last-child { font-family: "MIS Garamond", Georgia, serif; color: #756963; font-size: 1.05rem; }
.intake-form fieldset { padding: 1.7rem 0; }
.intake-form legend { font-family: "MIS Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.intake-form label { text-transform: uppercase; letter-spacing: .07em; font-size: .63rem; }
.intake-form input, .intake-form select, .intake-form textarea { text-transform: none; letter-spacing: normal; font-size: .83rem; }
.upload-box { border-radius: 0; border-color: #bba99b; background: #f7f2ec; text-align: center; padding: 1.5rem; }
.upload-box span { color: #5d4940; text-transform: uppercase; letter-spacing: .1em; }
.photo-preview img { border-radius: 0; }

@media (max-width: 980px) {
  .workspace { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 720px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { background: #3b2f2a; padding: .8rem .9rem 0; display: grid; grid-template-columns: 1fr auto; gap: .65rem; align-items: center; }
  .brand-lockup { min-height: 0; padding: 0; border: 0; display: flex; align-items: flex-start; }
  .brand-lockup img { max-width: 150px; }
  .brand-lockup small { display: none; }
  .sidebar nav { grid-column: 1 / -1; grid-row: 2; padding: 0; display: grid; grid-template-columns: 1fr 1fr; }
  .nav-link { grid-template-columns: 1fr; padding: .65rem; text-align: center; }
  .nav-number { display: none; }
  .nav-link.active { border-left: 0; border-bottom: 1px solid #d9b994; padding-left: .65rem; }
  .sidebar-foot { grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
  main { padding: 1.4rem 1rem 2.5rem; }
  .page-intro { display: none; }
  .topbar { align-items: flex-end; }
  .lead-detail { padding: 1rem; }
}

@media (max-width: 500px) {
.login-card { padding: 2rem 1.3rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: .9rem; }
}

.google-login { display: flex; align-items: center; justify-content: center; gap: .7rem; width: 100%; padding: .82rem 1rem; border: 1px solid #cfc5bc; background: #fff; color: #3b2f2a; text-decoration: none; font-size: .75rem; font-weight: 650; }
.google-login span { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 50%; background: #f3eee8; font-family: Arial, sans-serif; color: #3569c8; }
.workspace-login-note { margin: .75rem 0 0; text-align: center; color: #7d7068; font-size: .68rem; line-height: 1.45; }
.login-divider { display: flex; align-items: center; gap: .7rem; margin: 1.1rem 0; color: #9a8d85; text-transform: uppercase; letter-spacing: .1em; font-size: .53rem; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; border-top: 1px solid #ded6cf; }

/* Walk-through estimator */
.file-notice { background: #ede2d5; color: #5a4438; padding: .7rem 1rem; text-align: center; font-size: .76rem; border-bottom: 1px solid #d4c2b2; }
.walkthrough-form { max-width: 1320px; margin: 0 auto; }
.walkthrough-client { display: flex; justify-content: space-between; align-items: end; gap: 1rem; padding: 1.35rem 1.5rem; margin-bottom: 1.2rem; background: #3b2f2a; color: #fffaf4; }
.walkthrough-client h2 { color: white; margin: 0; }
.walkthrough-client p { margin: .25rem 0 0; color: #ddcfc6; }
.walkthrough-client > div:last-child { text-align: right; display: grid; gap: .25rem; }
.walkthrough-client span { font-family: "MIS Garamond", Georgia, serif; font-size: 1.2rem; }
.estimator-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.assessment-column { background: #fffdf9; border: 1px solid #d9d1ca; padding: clamp(1.2rem, 3vw, 2rem); }
.assessment-section { display: grid; grid-template-columns: 48px 1fr; gap: .9rem; align-items: start; padding: 1.5rem 0 .9rem; margin-top: .8rem; border-top: 1px solid #ded6cf; }
.assessment-section:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.assessment-section h2 { margin: 0 0 .25rem; font-size: 1.7rem; }
.assessment-section p { margin: 0; color: #7b706b; font-family: "MIS Garamond", Georgia, serif; font-size: 1rem; }
.section-number { color: #a78770; font-family: "MIS Garamond", Georgia, serif; font-size: 1.2rem; border-top: 1px solid #bda996; padding-top: .25rem; }
.form-grid.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.condition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; }
.condition-grid label, .form-grid.compact label { text-transform: uppercase; letter-spacing: .07em; font-size: .62rem; }
.addon-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.addon { display: flex; gap: .6rem; align-items: center; min-height: 50px; padding: .7rem; border: 1px solid #d8cec5; background: #fbf7f2; font-size: .72rem; }
.addon input, .approval-check input { width: auto; accent-color: #3b2f2a; }
.matrix-addon { display: grid; grid-template-columns: auto 1fr 58px; }
.matrix-addon span { min-width: 0; }
.matrix-addon strong, .matrix-addon small { display: block; }
.matrix-addon small { margin-top: .2rem; color: #7b706b; font-size: .58rem; }
.matrix-addon .addon-quantity { width: 58px; padding: .45rem; }
.photo-preview figure { position: relative; margin: 0; }
.photo-preview figure img { display: block; width: 100%; }
.photo-preview figure button { position: absolute; right: .25rem; bottom: .25rem; border: 0; padding: .3rem .45rem; background: rgba(59,47,42,.9); color: white; font-size: .58rem; }
.photo-review-card { padding: 1rem; background: #f6f0e9; border: 1px solid #dbcfc4; }
.note-review-card { padding: 1rem; background: #f6f0e9; border: 1px solid #dbcfc4; }
.note-review-card { display: grid; gap: .8rem; }
.note-review-card label { display: grid; gap: .4rem; text-transform: uppercase; letter-spacing: .07em; font-size: .62rem; }
.adjustment-breakdown { display: flex; flex-wrap: wrap; gap: .45rem; margin: .7rem 0; }
.adjustment-breakdown span { padding: .35rem .5rem; background: #eee7df; font-size: .66rem; }
.risk-text { display: block; margin: .55rem 0; color: #8b2e22; }
.photo-review-card .upload-box { display: grid; gap: .35rem; }
.photo-review-button { margin-top: .8rem; }
.photo-review-result { margin-top: .8rem; padding: 1rem; background: #fffdf9; border-left: 3px solid #aa8a71; color: #655850; line-height: 1.55; }
.photo-review-result p:last-child { margin-bottom: 0; }
.photo-review-score { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; }
.photo-review-score strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.6rem; font-weight: 500; color: #3b2f2a; }
.approval-check { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; margin-top: .7rem; background: #e7ede5; border: 1px solid #c6d0c2; font-size: .76rem; font-weight: 650; }
.estimate-sticky { position: sticky; top: 1.2rem; padding: 1.5rem; background: #fffdf9; border: 1px solid #d4c9bf; box-shadow: 0 15px 40px rgba(59,47,42,.08); }
.estimate-sticky h2 { font-size: 2.8rem; margin-bottom: 1rem; }
.estimate-result { color: #6f625c; line-height: 1.5; }
.estimate-button, .estimate-link { width: 100%; display: block; margin-top: .65rem; text-align: center; text-decoration: none; }
.back-button { width: 100%; margin-top: .9rem; color: #6f625c; }
.estimate-range { padding: .8rem 0; border-top: 1px solid #ded5cd; border-bottom: 1px solid #ded5cd; }
.estimate-range strong { display: block; color: #3b2f2a; font-family: "MIS Garamond", Georgia, serif; font-size: 1.25rem; }
.estimate-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; padding: 1rem 0; }
.estimate-metrics div { padding: .65rem; background: #f5f0ea; }
.estimate-metrics span, .recurring-prices span { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; }
.estimate-metrics strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.15rem; }
.staffing-callout { margin: .9rem 0; padding: 1rem; background: #3b2f2a; color: #fffaf4; }
.staffing-callout span { display: block; color: #d7c6ba; text-transform: uppercase; letter-spacing: .1em; font-size: .57rem; }
.staffing-callout strong { display: block; margin-top: .35rem; font-family: "MIS Garamond", Georgia, serif; font-size: 1.18rem; font-weight: 500; line-height: 1.35; }
.economics-panel { margin: .9rem 0; border: 1px solid #c9c0b8; background: #fffdf9; color: #4d423c; }
.economics-head { display: grid; gap: .35rem; padding: .9rem; border-left: 4px solid #688260; background: #edf2eb; }
.economics-head span, .economics-metrics span, .capacity-strip span, .economics-visit-grid span { display: block; color: #776a63; font-size: .55rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.economics-head strong { font-size: .82rem; letter-spacing: .03em; }
.economics-head em { color: #80736c; font-size: .58rem; font-style: normal; }
.economics-yellow .economics-head { border-left-color: #b47b19; background: #f8efdb; }
.economics-red .economics-head { border-left-color: #a94434; background: #f7e8e4; }
.economics-watch .economics-head { border-left-color: #80905f; background: #f1f2e8; }
.economics-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.economics-metrics > div { padding: .72rem .8rem; border-bottom: 1px solid #e6ded7; }
.economics-metrics > div:nth-child(odd) { border-right: 1px solid #e6ded7; }
.economics-metrics strong, .capacity-strip strong, .economics-visit-grid strong { display: block; margin-top: .18rem; font-size: .82rem; }
.economics-metrics small, .economics-visit-grid small { display: block; margin-top: .18rem; color: #83766e; font-size: .56rem; line-height: 1.35; }
.capacity-strip { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: .3rem; padding: .8rem; background: #f4efe9; }
.capacity-strip > div:nth-of-type(n+4) { margin-top: .35rem; }
.capacity-strip > div:nth-of-type(4), .capacity-strip > div:nth-of-type(5) { grid-column: span 2; }
.capacity-strip b { color: #9b8e85; font-size: .7rem; }
.economics-visit-grid { display: grid; gap: .55rem; padding: .8rem; border-top: 1px solid #e6ded7; }
.economics-visit-grid > div { padding-left: .65rem; border-left: 2px solid #b8a797; }
.economics-reasons { margin: 0; padding: .7rem .9rem .8rem 1.8rem; border-top: 1px solid #e6ded7; color: #745321; font-size: .63rem; line-height: 1.45; }
.economics-red .economics-reasons { color: #8b2e22; }
.market-card { display: grid; gap: .3rem; padding: .85rem; margin-bottom: 1rem; background: #eee7df; border: 1px solid #d7cbbf; }
.market-card span { text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; color: #7c6d64; }
.market-card strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.08rem; }
.market-card em { font-style: normal; font-size: .7rem; color: #6e5d53; }
.market-comparison-card { display:grid; gap:.65rem; margin:.9rem 0; padding:1rem; border:1px solid #d8c5a6; background:#fbf1df; color:#4d423c; }
.market-comparison-head span, .market-comparison-values span { display:block; color:#876b42; font-size:.56rem; font-weight:750; letter-spacing:.09em; text-transform:uppercase; }
.market-comparison-head strong { display:block; margin-top:.2rem; font-family:"MIS Garamond",Georgia,serif; font-size:1.12rem; }
.market-comparison-values { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:.6rem; }
.market-comparison-values > div { padding:.65rem; background:#fffaf2; border:1px solid #ead9bd; }
.market-comparison-values strong { display:block; margin-top:.2rem; font-family:"MIS Garamond",Georgia,serif; font-size:1.2rem; }
.market-comparison-values small { display:block; color:#84746a; font-size:.58rem; }
.market-position { margin:0; color:#6b4f2c; font-size:.72rem; font-weight:750; }
.market-comparison-card details { border-top:1px solid #e3d2b7; padding-top:.55rem; }
.market-comparison-card summary { cursor:pointer; color:#705a40; font-size:.62rem; font-weight:750; }
.market-comparison-card ul { margin:.55rem 0 0; padding-left:1rem; }
.market-comparison-card li { font-size:.62rem; line-height:1.4; }
.market-comparison-card li + li { margin-top:.35rem; }
.market-comparison-card li strong, .market-comparison-card li span { display:block; }
.market-disclaimer { margin:0; color:#84746a; font-size:.58rem; line-height:1.45; }
.market-unavailable { background:#f4f0eb; border-color:#ddd3ca; }
.published-card { display: grid; gap: .25rem; padding: .85rem; margin-bottom: .8rem; background: #f6ead5; border: 1px solid #dcc49d; }
.published-card span { text-transform: uppercase; letter-spacing: .09em; color: #876b42; font-size: .56rem; }
.published-card strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.08rem; }
.published-card p { margin: 0; font-size: .7rem; }
.published-card em { font-style: normal; color: #80582d; font-size: .65rem; line-height: 1.4; }
.cost-card, .supplies-card { display: grid; gap: .35rem; padding: .85rem; margin-bottom: .8rem; border: 1px solid #ddd3ca; background: #fffdf9; }
.cost-card > p { margin: 0 0 .25rem; text-transform: uppercase; letter-spacing: .08em; font-size: .58rem; color: #7c6d64; }
.cost-card > div, .supplies-card > div { display: flex; justify-content: space-between; gap: .7rem; align-items: start; padding: .3rem 0; }
.cost-card > div + div { border-top: 1px solid #ebe4dd; }
.cost-card span, .supplies-card span { font-size: .7rem; }
.cost-card span small { display: block; margin-top: .15rem; color: #8b7d75; font-size: .6rem; }
.cost-card strong, .supplies-card strong { white-space: nowrap; font-family: "MIS Garamond", Georgia, serif; font-size: 1.05rem; }
.supplies-card { background: #f5f0ea; }
.supplies-card p { margin: 0; color: #786a62; font-size: .65rem; line-height: 1.45; }
.form-grid label small { color: #877a72; font-size: .58rem; line-height: 1.4; letter-spacing: normal; text-transform: none; }
.service-scope-card { margin-top: 1rem; padding: 1rem; border: 1px solid #d8cdc2; background: #f7f2ec; }
.scope-checklist, .scope-guardrails { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid #ddd2c8; }
.scope-checklist h3, .scope-guardrails h3 { margin: 0 0 .65rem; color: #725f54; text-transform: uppercase; letter-spacing: .1em; font-size: .62rem; }
.checklist-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; max-height: 440px; overflow-y: auto; padding-right: .3rem; }
.checklist-groups > section { align-self: start; border: 1px solid #ded3c8; background: #fffdf9; }
.checklist-groups h4 { margin: 0; padding: .55rem .7rem; background: #eee7df; color: #725f54; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; }
.checklist-groups ol { margin: 0; padding: .35rem .7rem .5rem 1.7rem; }
.scope-checklist li { padding: .28rem .2rem; color: #796d66; font-size: .68rem; line-height: 1.35; }
.scope-checklist li strong { color: #4c3d35; font-weight: 550; }
.scope-checklist li span { display: block; margin-top: .1rem; color: #9a7d68; text-transform: uppercase; letter-spacing: .07em; font-size: .5rem; }
.scope-guardrails ul { margin: 0; padding-left: 1.15rem; color: #655850; font-size: .68rem; line-height: 1.45; }
.scope-guardrails li + li { margin-top: .35rem; }
.scope-guardrails small { display: block; margin-top: .75rem; padding: .65rem; background: #eee7df; color: #76675e; font-size: .58rem; line-height: 1.45; }
.recurring-frequency-control { display: grid; gap: .35rem; margin-top: .8rem; color: #725f54; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; }
.recurring-frequency-control select { text-transform: none; letter-spacing: normal; }
.itemized-recurring { display: grid; gap: .2rem; margin: .8rem; padding: .8rem; background: #e9eee6; border-left: 3px solid #688260; }
.itemized-recurring span { color: #62705c; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; }
.itemized-recurring strong { color: #3f513b; font-family: "MIS Garamond", Georgia, serif; font-size: 1.15rem; }
.itemized-recurring small { color: #667061; font-size: .6rem; line-height: 1.4; }
.client-itemization { margin: .8rem 0; border: 1px solid #d8cdc2; background: #fffdf9; }
.client-itemization summary { cursor: pointer; padding: .85rem; background: #3b2f2a; color: #fffaf4; text-transform: uppercase; letter-spacing: .08em; font-size: .61rem; font-weight: 650; }
.client-itemization > p { margin: 0; padding: .8rem .8rem .35rem; color: #806f65; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; }
.itemized-row { display: flex; justify-content: space-between; gap: .7rem; padding: .65rem .8rem; border-top: 1px solid #eee7df; }
.itemized-row span { min-width: 0; }
.itemized-row strong { display: block; color: #4c3d35; font-size: .7rem; }
.itemized-row small { display: block; margin-top: .18rem; color: #8a7c73; font-size: .58rem; line-height: 1.35; }
.itemized-row b { white-space: nowrap; font-family: "MIS Garamond", Georgia, serif; font-size: 1rem; font-weight: 500; }
.itemized-total { display: flex; justify-content: space-between; padding: .7rem .8rem; background: #f3ede6; font-size: .7rem; }
.itemized-total strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.05rem; }
.itemization-disclosure { display: block; padding: .8rem; color: #766a63; font-size: .58rem; line-height: 1.45; }
.scope-heading { display: flex; justify-content: space-between; gap: 1rem; align-items: end; padding-bottom: .7rem; border-bottom: 1px solid #ddd2c8; }
.scope-heading div { display: grid; gap: .2rem; }
.scope-heading span, .scope-heading em { color: #83746b; text-transform: uppercase; letter-spacing: .08em; font-size: .56rem; font-style: normal; }
.scope-heading strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.scope-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; padding-top: .8rem; }
.scope-columns h3 { margin: 0 0 .45rem; color: #725f54; text-transform: uppercase; letter-spacing: .1em; font-size: .6rem; }
.scope-columns ul { margin: 0; padding-left: 1rem; font-family: "MIS Garamond", Georgia, serif; font-size: .92rem; line-height: 1.35; }
.scope-columns li + li { margin-top: .2rem; }
.service-scope-card > p { margin: .8rem 0 0; padding-top: .65rem; border-top: 1px solid #ddd2c8; color: #76675e; font-size: .65rem; line-height: 1.45; }
.onboarding-panel { background: #faf6f1; padding: 1rem !important; border: 1px solid #ded3c8; }
.checklist { display: grid; gap: .45rem; margin-top: .8rem; }
.checklist > div { display: grid; grid-template-columns: 24px 1fr auto; gap: .55rem; align-items: center; padding: .7rem; background: #fffdf9; border: 1px solid #ddd3ca; }
.checklist > div.complete { background: #e9eee6; border-color: #cbd5c7; }
.checklist > div > span { font-size: 1rem; color: #8b725f; }
.checklist strong small { display: block; margin-top: .2rem; color: #796d66; font-size: .58rem; font-weight: 400; }
.checklist button { border: 0; background: transparent; color: #6e5140; text-decoration: underline; font-size: .68rem; }
.version-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin: .75rem 0; }
.version-strip span { padding: .35rem .5rem; background: #eee7df; font-size: .6rem; }
.onboarding-blockers, .onboarding-ready { margin-top: .75rem; padding: .8rem; font-size: .7rem; line-height: 1.45; }
.onboarding-blockers { background: #f8e9e5; border-left: 3px solid #a84e3c; }
.onboarding-blockers ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.onboarding-ready { background: #e9eee6; border-left: 3px solid #5e7d58; }
.recurring-prices { border-top: 1px solid #ded5cd; padding-top: .9rem; }
.recurring-prices > div { display: flex; justify-content: space-between; align-items: center; padding: .35rem 0; }
.appointment-banner { display: grid; grid-template-columns: 1fr 1fr; margin: 1rem 0; border: 1px solid #ddd3ca; }
.appointment-banner > div { padding: .85rem; }
.appointment-banner > div + div { border-left: 1px solid #ddd3ca; }
.appointment-banner span { display: block; text-transform: uppercase; letter-spacing: .09em; font-size: .57rem; color: #83766f; }
.appointment-banner strong { display: block; margin-top: .25rem; font-family: "MIS Garamond", Georgia, serif; font-size: 1.05rem; }
.walkthrough-prompt, .estimate-summary-card { padding: 1.2rem; margin: 1rem 0; background: #f4eee7; border: 1px solid #dfd3c8; }
.walkthrough-prompt h3 { font-family: "MIS Garamond", Georgia, serif; font-size: 1.4rem; font-weight: 500; }
.estimate-price { font-family: "MIS Garamond", Georgia, serif; font-size: 3rem; color: #3b2f2a; }

.booking-board { border: 1px solid #d9d1ca; background: #fffdf9; box-shadow: 0 12px 30px rgba(59,47,42,.045); }
.booking-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(220px, .55fr) auto; gap: 1.2rem; align-items: end; padding: 1.15rem 1.25rem; border-bottom: 1px solid #e2dbd5; }
.booking-row:last-child { border-bottom: 0; }
.booking-summary { display: grid; gap: .22rem; }
.booking-summary > strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.booking-summary small { color: var(--muted); }
.dashboard-stage { display: grid; gap: .35rem; min-width: 15rem; padding: .72rem .9rem; border: 1px solid var(--line); background: var(--paper); }
.dashboard-stage span { color: var(--muted); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; }
.dashboard-stage strong { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.approved-action:disabled { border-color: #9caf95; background: #e8efe5; color: #38533b; opacity: 1; }
.handoff-note { margin: .75rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }
.pdf-attachment-card { margin-top: .8rem; padding: .75rem; border: 1px solid var(--line); background: var(--paper); }
.pdf-attachment-card > span { display: block; color: var(--accent); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.pdf-attachment-card .estimate-button { margin-top: .5rem; }
.pdf-attachment-card small { display: block; margin-top: .55rem; color: var(--muted); font-size: .68rem; line-height: 1.4; }
.booking-row .primary { white-space: nowrap; }

.estimator-record-details { display: grid; gap: 1rem; margin-top: 1.2rem; }
.record-detail-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; }
.record-card { background: #fffdf9; border: 1px solid #d9d1ca; padding: 1.25rem; }
.record-card > h3 { margin: 0 0 .75rem; color: #806f65; font-size: .68rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.record-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem 1rem; }
.record-facts > div { border-top: 1px solid #e2dbd5; padding-top: .6rem; }
.record-facts span { display: block; color: #83766f; font-size: .57rem; letter-spacing: .09em; text-transform: uppercase; }
.record-facts strong { display: block; margin-top: .25rem; font-family: "MIS Garamond", Georgia, serif; font-size: 1rem; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.revision-list { display: grid; gap: .55rem; max-height: 520px; overflow: auto; }
.revision-card { border: 1px solid #ddd3ca; background: #fbf8f4; }
.revision-card summary { display: flex; justify-content: space-between; gap: .8rem; padding: .75rem; cursor: pointer; }
.revision-card summary > span { display: grid; gap: .15rem; }
.revision-card summary > span:last-child { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .35rem; text-align: right; }
.revision-card summary strong, .revision-card summary b { font-family: "MIS Garamond", Georgia, serif; font-size: 1.05rem; font-weight: 550; }
.revision-card summary small { color: var(--muted); font-size: .61rem; }
.revision-card summary em { padding: .2rem .35rem; background: #e7ede5; color: #4d684f; font-size: .52rem; font-style: normal; letter-spacing: .07em; text-transform: uppercase; }
.revision-body { border-top: 1px solid #e2dbd5; padding: .75rem; }
.revision-body p { margin: 0 0 .65rem; color: #6e625c; font-size: .7rem; }
.revision-body dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.revision-body dl div { min-width: 0; }
.revision-body dt { color: #83766f; font-size: .52rem; letter-spacing: .07em; text-transform: uppercase; }
.revision-body dd { margin: .18rem 0 0; font-size: .7rem; overflow-wrap: anywhere; }
.approved-card { background: #edf2ea; border-color: #b9c9b4; }
.approved-card span { color: #587052; }
.history-compare-bar { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin:.85rem 0; padding:.75rem; border:1px solid #d9d1ca; background:#f6f0e9; }
.history-compare-bar span { color:#746862; font-size:.68rem; }
.history-compare-bar button { min-height:38px; }
.revision-compare-choice { display:flex; align-items:center; gap:.5rem; width:max-content; max-width:100%; margin:0 0 .65rem; padding:.45rem .6rem; border:1px solid #d7cdc4; background:#fffdf9; color:#604b3f; font-size:.68rem; font-weight:700; cursor:pointer; }
.revision-compare-choice input { min-height:0; width:16px; height:16px; margin:0; }
.revision-compare-choice:has(input:checked) { border-color:#9a684b; background:#f5eadf; }

@media (max-width: 1050px) {
  .estimator-layout { grid-template-columns: 1fr; }
  .estimate-sticky { position: static; }
  .condition-grid, .form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .walkthrough-client { align-items: start; flex-direction: column; }
  .walkthrough-client > div:last-child { text-align: left; }
  .condition-grid, .form-grid.compact, .addon-grid { grid-template-columns: 1fr 1fr; }
  .checklist-groups { grid-template-columns: 1fr; max-height: 520px; }
  .booking-row { grid-template-columns: 1fr; align-items: stretch; }
  .booking-row .primary { width: 100%; }
  .record-facts { grid-template-columns: 1fr; }
  .revision-body dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-compare-bar { align-items:stretch; flex-direction:column; }
}
@media (max-width: 480px) {
  .assessment-column { padding: 1rem; }
  .assessment-section { grid-template-columns: 36px 1fr; }
  .condition-grid, .form-grid.compact, .addon-grid { grid-template-columns: 1fr; }
  .appointment-banner { grid-template-columns: 1fr; }
  .appointment-banner > div + div { border-left: 0; border-top: 1px solid #ddd3ca; }
  .scope-columns { grid-template-columns: 1fr; }
}

/* Estimator interface polish */
html { scroll-behavior: smooth; }
body { line-height: 1.5; }
button, input, select, textarea { min-height: 44px; }
button { transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease; }
button:active { transform: translateY(1px); }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 2px solid #8c6d58; outline-offset: 2px; }
main > .topbar, main > section { width: min(100%, 1480px); margin-left: auto; margin-right: auto; }

.topbar { gap: 2rem; }
.topbar > div { max-width: 760px; }
.page-intro { line-height: 1.55; }
.toolbar { padding: .15rem 0; gap: 1.25rem; }
.filter-row { gap: .48rem; }
.filter { min-height: 38px; padding: .62rem .78rem; }
.search { width: min(330px, 100%); flex: 0 0 min(330px, 100%); }
.search input { min-height: 46px; }
.booking-board { border-radius: 6px; overflow: hidden; }
.booking-row { grid-template-columns: minmax(260px, 1fr) minmax(210px, .44fr) minmax(160px, auto); gap: 1.4rem; padding: 1.3rem 1.45rem; align-items: center; }
.booking-row:hover { background: #faf6f1; }
.booking-summary { gap: .28rem; }
.booking-summary > strong { font-size: 1.5rem; line-height: 1.15; }
.booking-summary small { display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .72rem; }
.booking-summary small span + span::before { content: "•"; margin-right: .9rem; color: #b39e90; }
.dashboard-stage { min-width: 0; border-radius: 4px; border-left-width: 4px; padding: .78rem 1rem; }
.dashboard-stage strong { line-height: 1.3; }
.dashboard-stage[data-stage="stage-review"], .dashboard-stage[data-stage="stage-estimate-ready"] { border-left-color: #ad7a3d; background: #fbf2e5; }
.dashboard-stage[data-stage="stage-estimate-sent"], .dashboard-stage[data-stage="stage-ready-to-schedule"], .dashboard-stage[data-stage="stage-booked"] { border-left-color: #607c58; background: #edf2ea; }
.dashboard-stage[data-stage="stage-walkthrough-scheduled"], .dashboard-stage[data-stage="stage-walkthrough-in-progress"] { border-left-color: #7d716a; background: #f4f0eb; }
.dashboard-stage[data-stage="stage-onboarding-incomplete"] { border-left-color: #9b604d; background: #f8ece7; }

.walkthrough-form { max-width: 1460px; }
.walkthrough-client { align-items: center; padding: 1.55rem 1.75rem; margin-bottom: 1.35rem; border-radius: 6px; box-shadow: 0 12px 30px rgba(59,47,42,.12); }
.walkthrough-client h2 { font-size: clamp(2rem, 3vw, 2.55rem); line-height: 1; }
.walkthrough-client .eyebrow { color: #d8b995; }
.client-identity { min-width: 0; }
.client-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .55rem; color: #e4d8d0; font-size: .78rem; }
.client-meta span { font-family: "MIS Montserrat", Montserrat, Arial, sans-serif; font-size: .78rem; }
.client-meta span + span::before { content: "•"; margin-right: 1rem; color: #bda89a; }
.appointment-time { min-width: 230px; padding-left: 1.5rem; border-left: 1px solid rgba(255,255,255,.18); }
.appointment-time small { color: #cdbdb2; font-size: .56rem; letter-spacing: .13em; text-transform: uppercase; }
.appointment-time span { margin-top: .18rem; font-size: 1.25rem; }
.appointment-time strong { color: #fff; font-size: .82rem; letter-spacing: .03em; }

.estimator-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 1.35rem; }
.assessment-column, .estimate-sticky, .record-card { border-radius: 6px; }
.assessment-column { padding: clamp(1.35rem, 2.8vw, 2.35rem); box-shadow: 0 12px 34px rgba(59,47,42,.045); }
.assessment-tabs { position: sticky; top: .7rem; z-index: 4; display: grid; grid-template-columns: repeat(6, minmax(88px, 1fr)); gap: 0; margin: calc(clamp(1.35rem, 2.8vw, 2.35rem) * -1) calc(clamp(1.35rem, 2.8vw, 2.35rem) * -1) 1.4rem; padding: .7rem; border-bottom: 1px solid #d7cdc4; border-radius: 6px 6px 0 0; background: rgba(255,253,249,.97); box-shadow: 0 8px 20px rgba(59,47,42,.07); backdrop-filter: blur(8px); }
.assessment-tabs button { min-width: 0; padding: .7rem .35rem; border: 0; border-right: 1px solid #e1d8d0; background: transparent; color: #776a63; font-size: .63rem; font-weight: 750; letter-spacing: .02em; cursor: pointer; }
.assessment-tabs button:last-child { border-right: 0; }
.assessment-tabs button span { display: block; margin-bottom: .22rem; color: #a38f81; font-size: .5rem; letter-spacing: .1em; }
.assessment-tabs button:hover { background: #f3ede7; color: #3b2f2a; }
.assessment-tabs button.active { background: #3b2f2a; color: #fffaf4; box-shadow: inset 0 -3px 0 #b79b83; }
.assessment-tabs button.active span { color: #daccc2; }
.assessment-tabs button:focus-visible { position: relative; z-index: 1; outline: 3px solid #b79b83; outline-offset: -3px; }
.assessment-tab-panel[hidden] { display: none; }
.assessment-tab-panel { animation: assessment-tab-in .16s ease-out; }
.assessment-tab-controls { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #ded6cf; }
.assessment-tab-controls button { min-width: 128px; }
.tab-finish-note { color: #7b706b; font-family: "MIS Garamond", Georgia, serif; font-size: .92rem; }
@keyframes assessment-tab-in { from { opacity: .45; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.assessment-section { grid-template-columns: 54px 1fr; gap: 1rem; padding: 2rem 0 1rem; margin-top: 1.25rem; }
.assessment-section h2 { font-size: 1.95rem; line-height: 1.05; }
.assessment-section p { max-width: 760px; font-size: 1.05rem; line-height: 1.5; }
.section-number { font-size: 1.3rem; }
.condition-grid, .form-grid.compact { gap: 1rem; }
.condition-grid label, .form-grid.compact label, .note-review-card label { gap: .5rem; font-size: .66rem; font-weight: 700; }
.condition-grid select, .form-grid.compact input, .form-grid.compact select, .form-grid.compact textarea { font-size: .78rem; }
.service-scope-card { margin-top: 1.15rem; padding: 1.15rem; border-radius: 4px; }
.scope-heading strong { font-size: 1.5rem; }
.scope-checklist h3, .scope-guardrails h3 { font-size: .66rem; }
.checklist-groups { gap: .9rem; max-height: 500px; scrollbar-color: #b9a79a #eee7df; }
.checklist-groups > section { border-radius: 3px; overflow: hidden; }
.checklist-groups h4 { padding: .68rem .8rem; font-size: .6rem; }
.scope-checklist li { padding: .34rem .25rem; font-size: .72rem; line-height: 1.45; }
.scope-guardrails ul { font-size: .72rem; line-height: 1.55; }
.scope-guardrails small { font-size: .62rem; }

.photo-review-card, .note-review-card { padding: 1.15rem; border-radius: 4px; }
.upload-box { min-height: 116px; align-content: center; }
.photo-review-result { border-radius: 3px; }
.addon-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; }
.addon { min-height: 76px; padding: .8rem; border-radius: 4px; }
.matrix-addon { grid-template-columns: auto 1fr 62px; }
.matrix-addon strong { font-size: .76rem; line-height: 1.35; }
.matrix-addon small { font-size: .61rem; line-height: 1.4; }
.addon-grid { display: block; }
.addon-picker { padding: 1rem; border: 1px solid #d8cec5; border-radius: 4px; background: #f6f0e9; }
.addon-picker > label { display: block; margin-bottom: .45rem; color: #725f54; font-size: .64rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.addon-picker > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .65rem; }
.addon-picker select { width: 100%; }
.addon-picker button { min-width: 92px; }
.addon-picker > small { display: block; margin-top: .5rem; color: #7b706b; font-size: .62rem; }
.selected-addon-list { margin-top: .8rem; border: 1px solid #d8cec5; border-radius: 4px; overflow: hidden; background: #fffdf9; }
.selected-addon-heading { display: flex; justify-content: space-between; align-items: center; padding: .65rem .8rem; background: #eee7df; color: #725f54; font-size: .6rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.selected-addon-heading strong { display: grid; min-width: 24px; min-height: 24px; place-items: center; border-radius: 50%; background: #3b2f2a; color: white; font-size: .66rem; }
.selected-addon { display: grid; grid-template-columns: minmax(0, 1fr) 72px auto; gap: .75rem; align-items: center; padding: .85rem; border-top: 1px solid #e5ddd6; }
.selected-addon > div { min-width: 0; }
.selected-addon strong, .selected-addon small { display: block; }
.selected-addon strong { font-size: .78rem; line-height: 1.35; }
.selected-addon small { margin-top: .22rem; color: #7b706b; font-size: .6rem; line-height: 1.35; }
.selected-addon label { display: grid; gap: .25rem; color: #725f54; font-size: .55rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.selected-addon .addon-quantity { width: 72px; padding: .5rem; }
.remove-addon { border: 0; background: transparent; color: #8b2e22; font-size: .65rem; font-weight: 700; cursor: pointer; }
.remove-addon:hover { text-decoration: underline; }
.empty-addon-selection { margin: 0; padding: 1rem; color: #7b706b; font-family: "MIS Garamond", Georgia, serif; }

.estimate-sticky { top: 1rem; max-height: calc(100vh - 2rem); overflow-y: auto; padding: 1.35rem; scrollbar-width: thin; scrollbar-color: #baa99c transparent; }
.estimate-sticky h2 { margin-bottom: .8rem; font-size: 3.1rem; line-height: 1; }
.estimate-result { font-size: .76rem; }
.published-card, .cost-card, .supplies-card, .pdf-attachment-card { border-radius: 4px; }
.published-card { padding: 1rem; }
.published-card strong { font-size: 1.2rem; }
.estimate-button, .estimate-link { min-height: 46px; display: grid; place-items: center; line-height: 1.35; }
.pdf-attachment-card { padding: .9rem; background: #faf7f3; }
.pdf-attachment-card > span { color: #725f54; }
.handoff-note { padding: .8rem; background: #f4eee7; border-left: 3px solid #a78770; font-size: .68rem; }

.estimator-record-details { gap: 1.2rem; margin-top: 1.35rem; }
.record-detail-grid { gap: 1.2rem; }
.record-card { padding: 1.45rem; box-shadow: 0 10px 28px rgba(59,47,42,.035); }
.record-card > h3 { font-size: .72rem; }
.record-facts { gap: 1rem 1.25rem; }
.record-facts strong { font-size: 1.08rem; }
.timeline { max-height: 620px; overflow-y: auto; padding-right: .45rem; }

@media (max-width: 1180px) {
  .estimator-layout { grid-template-columns: minmax(0, 1fr) 340px; }
  .addon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1350px) {
  .condition-grid, .form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1050px) {
  .estimator-layout { grid-template-columns: 1fr; }
  .estimate-sticky { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 720px) {
  button, input, select, textarea { min-height: 46px; }
  .topbar { gap: 1rem; }
  .toolbar { gap: .8rem; }
  .search { flex-basis: auto; width: 100%; }
  .booking-row { gap: .85rem; padding: 1.1rem; }
  .booking-summary small { display: grid; gap: .1rem; }
  .booking-summary small span + span::before { content: none; }
  .walkthrough-client { padding: 1.25rem; }
  .client-meta { display: grid; gap: .2rem; }
  .client-meta span + span::before { content: none; }
  .appointment-time { width: 100%; min-width: 0; padding: 1rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .assessment-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding: .55rem; }
  .assessment-tabs button { flex: 0 0 94px; scroll-snap-align: start; }
  .assessment-section { grid-template-columns: 42px 1fr; padding-top: 1.6rem; }
  .assessment-section h2 { font-size: 1.75rem; }
  .assessment-section p { font-size: .98rem; }
  .addon-grid { grid-template-columns: 1fr 1fr; }
  .selected-addon { grid-template-columns: minmax(0, 1fr) 64px; }
  .selected-addon .remove-addon { grid-column: 1 / -1; justify-self: start; padding: .25rem 0; min-height: 32px; }
}

@media (max-width: 480px) {
  .topbar .primary { width: 100%; }
  .walkthrough-client h2 { font-size: 2rem; }
  .assessment-column, .estimate-sticky, .record-card { border-radius: 4px; }
  .assessment-section { grid-template-columns: 34px 1fr; gap: .65rem; }
  .condition-grid, .form-grid.compact, .addon-grid { grid-template-columns: 1fr; }
  .addon-picker > div { grid-template-columns: 1fr; }
  .addon-picker button { width: 100%; }
}

/* Full estimator workflow tabs */
.booking-client-record { margin: 0 0 1rem; }
.booking-client-record .record-card { margin: 0; }
#estimator-tabs-host .assessment-tabs { position: sticky; top: .7rem; z-index: 6; grid-template-columns: repeat(7, minmax(88px, 1fr)); margin: 0 0 1rem; border: 1px solid #d7cdc4; border-radius: 6px; }
.estimator-layout, .estimator-layout.single-tab-view { grid-template-columns: minmax(0, 1fr); }
.workflow-extra-panel[hidden], .workflow-tab-panel[hidden] { display: none; }
.estimate-column { width: 100%; }
.estimate-column .estimate-sticky, .send-estimate-panel .estimate-sticky { position: static; width: min(100%, 920px); max-height: none; overflow: visible; margin: 0 auto; }
.estimate-history-tab { width: 100%; min-height: 240px; margin-top: 1.2rem; }
.onsite-review-exceptions { margin: 1.2rem 0; padding: 1.2rem 0; border-top: 1px solid #d9d1ca; border-bottom: 1px solid #d9d1ca; }
.onsite-review-exceptions .assessment-section { margin-bottom: 1rem; padding-top: 0; }
.onsite-review-exceptions .assessment-section h3 { margin: 0; font-family: "MIS Garamond", Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.onsite-review-exceptions .service-scope-card { margin-bottom: .8rem; }
.tab-activity { margin-top: 1.2rem; }
.tab-activity .timeline { max-height: 300px; }
.sales-metrics-dashboard { display: grid; gap: 1.2rem; }
.sales-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.sales-summary > div { min-width: 0; padding: 1.3rem; border: 1px solid #d9d1ca; border-radius: 6px; background: #fffdf9; box-shadow: 0 10px 28px rgba(59,47,42,.035); }
.sales-summary span, .sales-rep-breakdown span { display: block; color: #806f65; font-size: .62rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sales-summary strong { display: block; margin-top: .45rem; font-family: "MIS Garamond", Georgia, serif; font-size: 2rem; font-weight: 500; }
.sales-summary small, .sales-rep-breakdown small { display: block; margin-top: .3rem; color: #776a63; font-size: .65rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sales-rep-breakdown > div { display: grid; gap: .5rem; }
.sales-rep-breakdown > div > div { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 0; border-top: 1px solid #e2dbd5; }
.sales-rep-breakdown > div > div > strong { font-family: "MIS Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 500; }
.walkthrough-header-actions { display: flex; align-items: stretch; gap: 1rem; }
.quote-status-control { min-width: 245px; padding-left: 1rem; border-left: 1px solid rgba(255,255,255,.18); }
.quote-status-control > label { display: block; margin-bottom: .35rem; color: #d7c8bf; font-size: .58rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.quote-status-control > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.quote-status-control select { min-height: 38px; padding: .45rem .55rem; border-color: rgba(255,255,255,.25); background: #fffaf4; font-size: .68rem; }
.quote-status-control button { min-height: 38px; padding: .45rem .7rem; border: 1px solid #cbb7a9; background: transparent; color: #fffaf4; font-size: .66rem; font-weight: 700; cursor: pointer; }
.quote-status-control button:hover { background: rgba(255,255,255,.1); }

@media (max-width: 900px) {
  #estimator-tabs-host .assessment-tabs { display: flex; overflow-x: auto; scroll-snap-type: x proximity; }
  #estimator-tabs-host .assessment-tabs button { flex: 0 0 108px; scroll-snap-align: start; }
  .walkthrough-header-actions { width: 100%; flex-direction: column; }
  .quote-status-control { padding: 1rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.18); }
  .sales-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 520px) {
  .sales-summary { grid-template-columns: 1fr; }
}

/* Phone-app shell: Android may report its full display width in an installed PWA. */
@media (max-width: 720px), (display-mode: standalone) and (max-width: 1200px), (hover: none) and (pointer: coarse) {
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  html, body { max-width: 100%; overflow-x: hidden; }
  body { font-size: 18px; }
  .app-shell p, .app-shell li, .app-shell dd, .app-shell summary { font-size: 1rem; line-height: 1.5; }
  .app-shell small { font-size: .86rem; line-height: 1.45; }
  .app-shell label { font-size: .9rem; line-height: 1.4; }
  .app-shell button, .app-shell input, .app-shell select, .app-shell textarea { font-size: .95rem; }
  .app-shell { display: block; min-width: 0; min-height: 100vh; }
  .sidebar { position: fixed; z-index: 80; inset: auto 0 0; display: block; min-height: 0; padding: 0 0 env(safe-area-inset-bottom); background: #3b2f2a; box-shadow: 0 -8px 28px rgba(47,35,31,.2); }
  .brand-lockup, .sidebar-foot { display: none; }
  .sidebar nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 0; }
  .nav-link { display: flex; min-width: 0; min-height: 78px; flex-direction: column; align-items: center; justify-content: center; gap: .18rem; border: 0; border-top: 3px solid transparent; border-radius: 0; padding: .65rem .25rem .55rem; color: #d9cec7; text-align: center; font-size: .92rem; line-height: 1.2; }
  .nav-link.active { border: 0; border-top: 3px solid #d9b994; padding: .55rem .25rem .5rem; background: rgba(255,255,255,.09); }
  .nav-number { display: block; color: #cbb9ae; font-size: .68rem; letter-spacing: .1em; }
  main { width: 100%; max-width: 100%; padding: max(1rem, env(safe-area-inset-top)) .85rem calc(6.4rem + env(safe-area-inset-bottom)); overflow-x: hidden; }
  main > .topbar, main > section { width: 100%; max-width: 100%; }
  .topbar { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; }
  .topbar > div:first-child { min-width: 0; max-width: none; }
  .topbar h1 { font-size: 2.65rem; line-height: 1.05; }
  .topbar .eyebrow { display: block; font-size: .82rem; }
  .page-intro { display: block; font-size: 1.08rem; line-height: 1.5; }
  .topbar-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .65rem; }
  .topbar-actions .mobile-only { display: inline-flex !important; align-items: center; justify-content: center; }
  .topbar-actions .primary { width: 100%; margin: 0; }
  .primary, .secondary { min-height: 54px; font-size: .9rem; line-height: 1.2; }
  .toolbar { display: grid; gap: .75rem; align-items: stretch; }
  .filter-row { display: flex; flex-wrap: nowrap; gap: .45rem; overflow-x: auto; padding: 0 0 .25rem; scrollbar-width: none; scroll-snap-type: x proximity; }
  .filter-row::-webkit-scrollbar { display: none; }
  .filter { flex: 0 0 auto; min-height: 50px; padding: .72rem .9rem; scroll-snap-align: start; font-size: .82rem; }
  .search { width: 100%; }
  .search input, input, select, textarea { font-size: 1rem; }
  .booking-board { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .lead-list { display: grid; gap: .75rem; }
  .booking-row { grid-template-columns: minmax(0, 1fr); gap: .8rem; align-items: stretch; padding: 1rem; border: 1px solid #ded6cf; border-radius: 10px; background: #fffdf9; box-shadow: 0 8px 22px rgba(59,47,42,.05); }
  .booking-row:last-child { border-bottom: 1px solid #ded6cf; }
  .booking-summary .eyebrow { font-size: .8rem; }
  .booking-summary > strong { font-size: 1.9rem; line-height: 1.15; }
  .booking-summary small { display: flex; flex-wrap: wrap; gap: .3rem .7rem; font-size: .98rem; line-height: 1.45; }
  .dashboard-stage { width: 100%; min-width: 0; padding: .9rem 1rem; }
  .dashboard-stage span { font-size: .8rem; }
  .dashboard-stage strong { font-size: 1rem; line-height: 1.35; }
  .booking-row .primary { width: 100%; white-space: normal; }
  .assessment-tabs button { min-height: 60px; font-size: .86rem; }
  .assessment-tabs button span { font-size: .7rem; }
  .scope-checklist li, .scope-guardrails ul, .revision-body p, .revision-body dd, .estimate-result { font-size: .95rem; line-height: 1.5; }
  .estimate-metrics span, .recurring-prices span, .staffing-callout span, .economics-head span, .economics-metrics span, .capacity-strip span, .economics-visit-grid span, .market-card span, .published-card span, .record-facts span, .revision-body dt, .sales-summary span, .sales-rep-breakdown span { font-size: .8rem; line-height: 1.35; }
  .walkthrough-form, .estimator-layout, .assessment-column, .estimate-column, .send-estimate-panel, .record-card { min-width: 0; max-width: 100%; }
  #estimator-tabs-host .assessment-tabs { top: 0; }
  .toast { right: .85rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); left: .85rem; max-width: none; }
}
