:root{--bg:#f4f6f8;--panel:#fff;--ink:#17212b;--muted:#697583;--line:#dde3e8;--navy:#19324a;--accent:#147a67;--accent-soft:#e7f3f0;--warn:#a15c00;--warn-soft:#fff1d9;--bad:#a13a3a;--bad-soft:#fbe9e9;--shadow:0 10px 30px rgba(23,33,43,.06)}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.topbar{height:68px;background:#101a24;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 32px}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--accent);font-weight:800}.brand strong,.brand small{display:block}.brand small{font-size:11px;color:#94a1ae;letter-spacing:.06em;text-transform:uppercase}.topbar-note{color:#93a0ad;font-size:12px}main{max-width:1600px;margin:0 auto;padding:28px 32px 56px}.page-head,.detail-head{display:flex;justify-content:space-between;gap:24px;align-items:flex-end;margin-bottom:22px}.page-head h1,.detail-head h1{font-size:30px;letter-spacing:-.025em;margin:3px 0 6px}.page-head p,.detail-head p{margin:0;color:var(--muted);max-width:760px}.eyebrow{font-size:11px;letter-spacing:.11em;font-weight:800;color:#74808c}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.metric{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:16px 18px;text-decoration:none;color:inherit;box-shadow:var(--shadow)}.metric span{display:block;color:var(--muted);font-size:12px}.metric strong{display:block;font-size:28px;margin-top:2px}.metric.good{border-top:3px solid var(--accent)}.metric.warn{border-top:3px solid #cc7a12}.filter-panel,.panel,.table-shell{background:var(--panel);border:1px solid var(--line);border-radius:15px;box-shadow:var(--shadow)}.filter-panel{padding:14px;margin-bottom:18px}.filters{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:10px;align-items:end}.filters label,.field{display:block}.filters label span,.field>span{display:block;color:var(--muted);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;margin:0 0 5px 2px}input,select,textarea{width:100%;border:1px solid #cad2d9;border-radius:9px;background:#fff;color:var(--ink);padding:9px 10px;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#6a9f95;box-shadow:0 0 0 3px rgba(20,122,103,.1)}.button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 13px;border:1px solid #c9d1d8;border-radius:9px;background:#fff;color:#24313d;text-decoration:none;font-weight:700;cursor:pointer}.button.primary{background:var(--accent);border-color:var(--accent);color:#fff}.button.full{width:100%}.table-summary{padding:12px 16px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}.table-summary strong{color:var(--ink)}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:#71808e;background:#f8fafb;padding:10px 14px;border-bottom:1px solid var(--line)}td{padding:13px 14px;border-bottom:1px solid #e7ebee;vertical-align:middle}tbody tr:last-child td{border-bottom:0}.click-row{cursor:pointer}.click-row:hover{background:#f8fbfa}td strong,td small{display:block}td small{color:var(--muted);margin-top:2px;max-width:360px}.score{display:grid;place-items:center;width:38px;height:30px;border-radius:8px;font-weight:800}.score.high{background:var(--accent-soft);color:#106655}.score.low{background:var(--warn-soft);color:#8a520a}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}.badge.good{background:var(--accent-soft);color:#106655}.badge.warn{background:var(--warn-soft);color:#88510b}.badge.bad{background:var(--bad-soft);color:#913333}.badge.neutral{background:#eef1f3;color:#65717d}.badge.large{font-size:11px;padding:7px 10px}.back{display:inline-block;color:#536271;text-decoration:none;margin-bottom:10px}.detail-actions{display:flex;gap:10px;align-items:center}.detail-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(360px,.75fr);gap:18px;align-items:start}.detail-main,.detail-side{display:grid;gap:18px}.panel{padding:18px}.section-title{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:14px}.section-title h2{font-size:18px;margin:2px 0}.confidence{color:var(--muted);font-size:11px}.confidence strong{display:block;color:var(--ink);font-size:22px;text-align:right}.chain{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;gap:10px;align-items:center}.chain-node{border:1px solid var(--line);border-radius:10px;padding:12px;background:#fafbfc;min-height:72px}.chain-node.accent{border-color:#82b6aa;background:var(--accent-soft)}.chain-node span,.manager-line span,.contact-grid span,.property-stats span,.callout span{display:block;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.055em;margin-bottom:4px}.arrow{color:#9ba5ae;font-size:18px}.manager-line{display:flex;justify-content:space-between;margin-top:10px;border-top:1px solid var(--line);padding-top:10px}.reason,.prose{color:#53616e;margin:14px 0 0}.contact-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.contact-grid>div{padding:10px 0;border-bottom:1px solid var(--line)}.callout{margin-top:14px;padding:12px 14px;background:#f5f8f7;border-left:3px solid var(--accent);border-radius:8px}.callout p{margin:3px 0 0;color:#5a6874}.source-list{display:grid;gap:8px}.source-list a{display:grid;grid-template-columns:28px 1fr auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:9px;color:inherit;text-decoration:none}.source-list a>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef2f4;font-weight:800}.source-list strong{display:block;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:700px}.source-list small{display:block;color:var(--muted)}details{margin-top:12px;border-top:1px solid var(--line);padding-top:10px}summary{cursor:pointer;font-weight:700}.history-list{display:grid;gap:9px}.history-item{display:grid;grid-template-columns:1.4fr 1fr;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.history-item>div>strong,.history-item small{display:block}.history-item small{color:var(--muted);margin-top:3px}.facility-tabs{display:grid;gap:7px;max-height:200px;overflow:auto;margin-bottom:12px}.facility-tab{display:flex;justify-content:space-between;gap:12px;padding:9px 10px;border:1px solid var(--line);border-radius:9px;text-decoration:none;color:inherit}.facility-tab strong,.facility-tab small{display:block}.facility-tab small{color:var(--muted)}.facility-tab.active{border-color:#78aa9f;background:var(--accent-soft)}.map-frame{height:350px;border-radius:11px;overflow:hidden;background:#e9eef0;border:1px solid var(--line)}.map-frame iframe{border:0;width:100%;height:100%}.map-placeholder{position:relative;height:100%;display:grid;place-items:center;text-align:center;padding:34px;overflow:hidden}.map-placeholder>*{position:relative;z-index:1}.map-placeholder p{max-width:300px;color:var(--muted);margin-top:-70px}.map-grid{position:absolute;inset:-30px;background-image:linear-gradient(#cbd6d8 1px,transparent 1px),linear-gradient(90deg,#cbd6d8 1px,transparent 1px);background-size:24px 24px;transform:rotate(14deg);opacity:.8}.property-title{display:flex;justify-content:space-between;gap:12px;margin-top:12px}.property-title span{color:var(--muted)}.property-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}.property-stats>div{background:#f7f9fa;border-radius:8px;padding:9px}.map-actions{display:flex;gap:8px}.parcel-list{display:grid;gap:8px}.parcel{border-bottom:1px solid var(--line);padding:0 0 9px}.parcel:last-child{border-bottom:0}.parcel>div{display:flex;justify-content:space-between;gap:8px}.parcel small{display:block;color:var(--muted)}.parcel a{font-size:12px;color:var(--accent)}.verdict-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:7px;margin-bottom:12px}.verdict-grid label{position:relative}.verdict-grid input{position:absolute;opacity:0;pointer-events:none}.verdict-grid span{display:block;border:1px solid var(--line);border-radius:8px;padding:8px;text-align:center;cursor:pointer;font-weight:700}.verdict-grid input:checked+span{border-color:#5f9f91;background:var(--accent-soft);color:#0f6755}.field{margin-top:10px}.review-history{padding:9px 0;border-bottom:1px solid var(--line)}.review-history strong,.review-history small{display:block}.review-history small{color:var(--muted)}.review-history p{margin:4px 0}.empty{color:var(--muted);padding:20px;text-align:center}.muted{color:var(--muted)}code{background:#eef1f2;padding:2px 4px;border-radius:4px}@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,1fr)}.filters{grid-template-columns:repeat(3,1fr)}.search-field{grid-column:span 2}.detail-grid{grid-template-columns:1fr}}@media(max-width:700px){.topbar{padding:0 16px}.topbar-note{display:none}main{padding:20px 14px}.metrics{grid-template-columns:1fr 1fr}.filters{grid-template-columns:1fr}.search-field{grid-column:auto}.page-head,.detail-head{display:block}.detail-actions{margin-top:12px}.chain{grid-template-columns:1fr}.arrow{transform:rotate(90deg);justify-self:center}.contact-grid{grid-template-columns:1fr}.history-item{grid-template-columns:1fr}.map-frame{height:300px}.table-shell{border-radius:10px}.property-title{display:block}.verdict-grid{grid-template-columns:1fr 1fr}}
.topnav{display:flex;gap:6px;align-items:center}.topnav a{color:#a9b5c0;text-decoration:none;font-weight:800;padding:8px 11px;border-radius:8px}.topnav a:hover,.topnav a.active{color:#fff;background:rgba(255,255,255,.08)}.research-head{align-items:flex-start}.research-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}.workflow-card{display:flex;flex-direction:column}.workflow-kicker{font-size:11px;font-weight:900;letter-spacing:.1em;color:var(--accent)}.workflow-number{font-size:44px;line-height:1;font-weight:850;letter-spacing:-.04em;margin:8px 0 4px}.workflow-card h2{margin:0 0 5px}.workflow-card>p{color:var(--muted);margin:0 0 14px}.workflow-form{margin-top:auto;display:grid;gap:9px;padding-top:10px}.workflow-form small,.import-actions span{color:var(--muted);font-size:12px}.mini-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:3px 0 12px}.mini-stats>div{background:#f7f9fa;border:1px solid var(--line);border-radius:9px;padding:9px}.mini-stats span,.mini-stats strong{display:block}.mini-stats span{font-size:10px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}.mini-stats strong{font-size:20px;margin-top:1px}.notice{display:flex;gap:12px;align-items:flex-start;border-radius:12px;padding:12px 14px;margin-bottom:16px;border:1px solid}.notice strong,.notice span{display:block}.notice.good{background:var(--accent-soft);border-color:#a8d2c8;color:#105f51}.notice.bad{background:var(--bad-soft);border-color:#e3b2b2;color:#853131}.import-panel{margin-bottom:18px}.prose.tight{margin-top:-4px;margin-bottom:12px}.import-controls{display:grid;grid-template-columns:minmax(250px,440px);gap:10px}.csv-paste,.prompt-text{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.5}.csv-paste{min-height:230px}.import-actions{display:flex;align-items:center;gap:12px;margin-top:10px}.button.small{min-height:31px;padding:5px 9px;font-size:12px}.prompt-history{margin-top:18px}.prompt-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,.45fr);gap:18px;align-items:start}.prompt-text{width:100%;height:66vh;min-height:500px;resize:vertical;background:#fbfcfd}.copy-status{height:22px;padding-top:5px;color:var(--accent);font-size:12px}.run-owner-list{display:grid;gap:7px}.run-owner-list a{display:grid;grid-template-columns:28px 1fr;gap:9px;align-items:center;padding:9px;border:1px solid var(--line);border-radius:9px;text-decoration:none;color:inherit}.run-owner-list a>span{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#eef2f4;font-weight:800}.run-owner-list strong,.run-owner-list small{display:block}.run-owner-list small{color:var(--muted);margin-top:2px}.run-owner-list a:hover{border-color:#8cb9af;background:var(--accent-soft)}@media(max-width:950px){.research-grid,.prompt-layout{grid-template-columns:1fr}.prompt-text{height:55vh}}@media(max-width:700px){.topbar{height:auto;min-height:68px;padding:10px 16px;gap:10px}.topnav{gap:2px}.topnav a{padding:7px 8px}.research-grid{grid-template-columns:1fr}.mini-stats{grid-template-columns:1fr 1fr 1fr}.import-actions{display:grid}.prompt-text{min-height:420px}}
.scope-pill{min-width:210px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:#f7f9fa}.scope-pill span,.scope-pill strong{display:block}.scope-pill span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}.scope-pill strong{margin-top:3px}.geo-filters{grid-template-columns:2fr repeat(7,minmax(120px,1fr)) auto}.territory-panel{margin-bottom:18px}.territory-filters{grid-template-columns:repeat(3,minmax(170px,1fr)) auto}.market-line{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.table-wrap td small{display:block;color:var(--muted);margin-top:3px}@media(max-width:1200px){.geo-filters{grid-template-columns:repeat(4,1fr)}.geo-filters .search-field{grid-column:span 2}}@media(max-width:800px){.territory-filters{grid-template-columns:1fr 1fr}.scope-pill{margin-top:12px}.geo-filters{grid-template-columns:1fr 1fr}}@media(max-width:560px){.geo-filters,.territory-filters{grid-template-columns:1fr}.geo-filters .search-field{grid-column:auto}}
.geo-filters{grid-template-columns:2fr repeat(7,minmax(112px,1fr))}.filter-actions{display:flex;gap:7px;align-items:end;grid-column:span 2}.contact-line{font-size:11px}.contact-flags{display:flex;flex-wrap:wrap;gap:4px;margin-top:7px}.contact-flag{display:inline-flex!important;width:auto;max-width:none!important;margin:0!important;padding:2px 5px;border-radius:5px;background:#eef1f3;color:#8a949d!important;font-size:9px!important;font-weight:800;text-transform:uppercase;letter-spacing:.03em}.contact-flag.on{background:var(--accent-soft);color:#106655!important}.contact-flag.generic{background:var(--warn-soft);color:#88510b!important}.badge.contactability.high{background:var(--accent-soft);color:#106655}.badge.contactability.medium{background:#edf2f7;color:#39536b}.badge.contactability.low{background:var(--warn-soft);color:#88510b}.badge.contactability.none{background:var(--bad-soft);color:#913333}.field-note{display:block;color:var(--muted);font-size:11px;margin-top:3px}.warn-text{color:#88510b}.contact-grid a{color:var(--accent);text-decoration:none}@media(max-width:1350px){.geo-filters{grid-template-columns:repeat(5,1fr)}.geo-filters .search-field{grid-column:span 2}.filter-actions{grid-column:span 2}}@media(max-width:900px){.geo-filters{grid-template-columns:repeat(3,1fr)}}@media(max-width:560px){.geo-filters{grid-template-columns:1fr}.filter-actions{grid-column:auto;display:grid}}

/* v5 research-run quality review */
.run-quality-strip{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:18px}.run-quality-stat{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:12px 14px;box-shadow:var(--shadow)}.run-quality-stat span,.run-quality-stat strong,.run-quality-stat small{display:block}.run-quality-stat span{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:var(--muted);font-weight:800}.run-quality-stat strong{font-size:24px;margin-top:2px}.run-quality-stat small{color:var(--muted);font-size:10px;margin-top:1px}.prompt-layout-results{grid-template-columns:minmax(0,1.3fr) minmax(420px,.7fr)}.run-quality-note{margin:-4px 0 12px;color:var(--muted);font-size:11px}.run-owner-results{gap:9px}.run-owner-list .run-owner-result{grid-template-columns:30px minmax(0,1fr);align-items:start;padding:11px}.run-owner-result .run-owner-seq{margin-top:1px}.run-owner-body{min-width:0}.run-owner-heading{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.run-owner-heading>div{min-width:0}.run-owner-heading strong{overflow:hidden;text-overflow:ellipsis}.run-owner-heading .badge{flex:0 0 auto}.run-owner-flags{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.run-owner-scores{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:8px}.run-owner-scores>div{display:flex;justify-content:space-between;align-items:center;gap:8px;background:#f7f9fa;border-radius:8px;padding:6px 8px}.run-owner-scores>div>span{color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.04em;font-weight:800}.run-owner-scores .score{width:34px;height:26px;font-size:12px}.run-owner-detail{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.run-owner-body>.run-owner-detail:first-of-type{margin-top:7px}@media(max-width:1200px){.run-quality-strip{grid-template-columns:repeat(3,1fr)}.prompt-layout-results{grid-template-columns:minmax(0,1fr) minmax(360px,.75fr)}}@media(max-width:950px){.prompt-layout-results{grid-template-columns:1fr}.run-quality-strip{grid-template-columns:repeat(3,1fr)}}@media(max-width:620px){.run-quality-strip{grid-template-columns:repeat(2,1fr)}.run-owner-scores{grid-template-columns:1fr}}

/* ========================================================================== 
   Bridger Pavement Intelligence brand theme — v6
   Palette derived from the supplied Bridger brand board.
   ========================================================================== */
:root{
  --bg:#f4f0e9;
  --panel:#fbfaf7;
  --panel-strong:#ffffff;
  --ink:#22282d;
  --muted:#6f716d;
  --line:#d9d1c6;
  --line-strong:#c9bca9;
  --navy:#22282d;
  --charcoal:#22282d;
  --charcoal-2:#2b3236;
  --charcoal-3:#3c4344;
  --gold:#b08c52;
  --gold-deep:#91713f;
  --gold-soft:#f1e8d8;
  --sage:#5f6b61;
  --sage-soft:#e6ebe5;
  --accent:#b08c52;
  --accent-soft:#f1e8d8;
  --warn:#a27638;
  --warn-soft:#f4e7cf;
  --bad:#9b4d43;
  --bad-soft:#f3e2df;
  --shadow:0 14px 34px rgba(34,40,45,.075);
}

body{
  background:
    radial-gradient(circle at 8% 0%, rgba(176,140,82,.075), transparent 28rem),
    linear-gradient(180deg,#f8f5f0 0,#f4f0e9 320px,#f4f0e9 100%);
  color:var(--ink);
  font-family:"Avenir Next","Segoe UI",Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,sans-serif;
  letter-spacing:.003em;
}

.topbar{
  min-height:82px;
  height:auto;
  padding:0 34px;
  background:linear-gradient(135deg,#1f252a 0%,#252d31 62%,#20262b 100%);
  border-bottom:3px solid var(--gold);
  box-shadow:0 7px 24px rgba(17,22,25,.18);
}
.brand{gap:0;min-width:235px}
.brand-logo{display:block;width:250px;height:auto;max-height:70px;object-fit:contain;object-position:left center}
.topbar-right{display:flex;align-items:center;gap:24px}
.topbar-motto{color:#c9b185;font-size:10px;font-weight:800;letter-spacing:.13em;text-transform:uppercase;white-space:nowrap}
.topnav{gap:4px}
.topnav a{
  color:#d8d8d3;
  padding:10px 13px;
  border-radius:7px;
  letter-spacing:.055em;
  text-transform:uppercase;
  font-size:11px;
  font-weight:850;
  position:relative;
}
.topnav a:hover{color:#fff;background:rgba(176,140,82,.13)}
.topnav a.active{color:#fff;background:rgba(176,140,82,.17)}
.topnav a.active:after{content:"";position:absolute;left:13px;right:13px;bottom:5px;height:2px;background:var(--gold);border-radius:3px}

main{max-width:1600px;padding-top:32px}
.page-head,.detail-head{padding-bottom:4px}
.page-head h1,.detail-head h1{font-size:31px;font-weight:760;letter-spacing:-.02em;color:var(--charcoal)}
.page-head p,.detail-head p{color:#74746f}
.eyebrow{color:var(--gold-deep);font-size:10px;letter-spacing:.15em;font-weight:900}
.back{color:var(--gold-deep);font-weight:750}
.back:hover{color:var(--charcoal)}

.metrics{gap:12px}
.metric,
.filter-panel,
.panel,
.table-shell,
.run-quality-stat{
  background:rgba(251,250,247,.97);
  border-color:var(--line);
  box-shadow:var(--shadow);
}
.metric{border-radius:10px;padding:17px 19px;position:relative;overflow:hidden}
.metric:after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:transparent}
.metric:hover{border-color:#c9b99f;transform:translateY(-1px)}
.metric.good{border-top:1px solid var(--line)}
.metric.good:after{background:var(--sage)}
.metric.warn{border-top:1px solid var(--line)}
.metric.warn:after{background:var(--gold)}
.metric span{color:#797a75;text-transform:uppercase;letter-spacing:.065em;font-size:10px;font-weight:800}
.metric strong{color:var(--charcoal);font-size:30px;font-weight:780}

.filter-panel{padding:16px;border-radius:10px}
.filters label span,.field>span{color:#76746e;letter-spacing:.085em;font-size:10px}
input,select,textarea{
  border:1px solid #cec4b7;
  border-radius:7px;
  background:#fffdfa;
  color:var(--charcoal);
}
input:hover,select:hover,textarea:hover{border-color:#b9aa95}
input:focus,select:focus,textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(176,140,82,.14)}

.button{
  border:1px solid #c7baaa;
  border-radius:7px;
  background:#fffdfa;
  color:var(--charcoal);
  font-weight:780;
  box-shadow:none;
}
.button:hover{background:#f4ede3;border-color:#ac9779}
.button.primary{
  background:var(--gold);
  border-color:var(--gold);
  color:#1f2529;
  text-shadow:none;
}
.button.primary:hover{background:#a47f45;border-color:#a47f45;color:#161b1e}

.table-shell{border-radius:11px;overflow:hidden}
.table-summary{background:#f7f2eb;border-bottom-color:var(--line)}
.table-summary strong{color:var(--charcoal)}
th{
  color:#6f6d67;
  background:#eee8df;
  border-bottom-color:#d6ccbf;
  letter-spacing:.09em;
  font-weight:850;
}
td{border-bottom-color:#e5ddd2}
.click-row:hover{background:#f5efe6}
.table-wrap a:not(.button){color:var(--gold-deep)}

.score{border-radius:6px}
.score.high{background:var(--sage-soft);color:#46564b}
.score.low{background:var(--gold-soft);color:#7c5f34}
.badge{border-radius:999px;letter-spacing:.06em}
.badge.good{background:var(--sage-soft);color:#435347}
.badge.warn{background:var(--gold-soft);color:#795c30}
.badge.bad{background:var(--bad-soft);color:#874138}
.badge.neutral{background:#ebe7e1;color:#66645f}
.badge.contactability.high{background:var(--sage-soft);color:#435347;border:1px solid #c8d3c9}
.badge.contactability.medium{background:var(--gold-soft);color:#795c30;border:1px solid #dfccad}
.badge.contactability.low{background:#eee8df;color:#6d6559;border:1px solid #d7cec1}
.badge.contactability.none{background:#e7e4df;color:#77736d;border:1px solid #d2cdc5}

.scope-pill{background:#efe9e0;border-color:#d4c7b5;border-radius:8px;box-shadow:inset 3px 0 0 var(--gold)}
.scope-pill span{color:#7c7468}
.scope-pill strong{color:#3e4243}

.section-title h2{color:var(--charcoal)}
.panel{border-radius:11px}
.chain-node{background:#f5f1eb;border-color:#d9d0c5;border-radius:8px}
.chain-node.accent{border-color:#c5ae86;background:#f2e9da;box-shadow:inset 3px 0 0 var(--gold)}
.arrow{color:#af9c80}
.manager-line{border-top-color:#ded6cc}
.callout{background:#f1ece4;border-left-color:var(--gold)}
.callout p{color:#65655f}
.contact-grid>div{border-bottom-color:#ded6cc}
.contact-grid a,.parcel a{color:var(--gold-deep);font-weight:700}

.source-list a{border-color:#dcd3c7;border-radius:7px;background:#fffdfa}
.source-list a:hover{background:#f4eee5;border-color:#c4b49e}
.source-list a>span{background:#eee6da;color:#735b35}
.source-list small,.history-item small,.facility-tab small,.review-history small{color:#76736d}
details,.history-item,.parcel,.review-history{border-color:#e0d8cd}

.facility-tab{border-color:#d9d0c5;border-radius:7px;background:#fffdfa}
.facility-tab:hover{border-color:#bba98f;background:#f5efe6}
.facility-tab.active{border-color:#b59869;background:#f1e7d6;box-shadow:inset 3px 0 0 var(--gold)}
.map-frame{border-color:#cfc4b6;background:#ddd8d0;border-radius:8px}
.map-placeholder{background:#e9e3db}
.map-grid{background-image:linear-gradient(#cec2b1 1px,transparent 1px),linear-gradient(90deg,#cec2b1 1px,transparent 1px);opacity:.72}
.property-stats>div,.mini-stats>div,.run-owner-scores>div{background:#f1ede7;border-color:#ddd3c7}

.verdict-grid span{border-color:#d5cabd;border-radius:7px;background:#fffdfa}
.verdict-grid span:hover{border-color:#bda98a;background:#f7f0e7}
.verdict-grid input:checked+span{border-color:var(--gold);background:var(--gold-soft);color:#6f542e;box-shadow:inset 0 0 0 1px rgba(176,140,82,.18)}

.workflow-kicker{color:var(--gold-deep);letter-spacing:.14em}
.workflow-number{color:var(--charcoal)}
.workflow-card{border-top:3px solid var(--gold)}
.workflow-card:nth-child(2){border-top-color:var(--sage)}
.notice.good{background:var(--sage-soft);border-color:#c5d0c6;color:#435347}
.notice.bad{background:var(--bad-soft);border-color:#dfbbb5;color:#7d3e36}
.import-panel{border-top:3px solid var(--gold)}
.csv-paste,.prompt-text{background:#fffdfa;border-color:#d1c5b6}
.prompt-text{box-shadow:inset 0 0 0 1px rgba(176,140,82,.03)}
.copy-status{color:var(--gold-deep)}

.run-owner-list a{border-color:#ddd3c7;border-radius:7px;background:#fffdfa}
.run-owner-list a>span{background:#eee6da;color:#715a38}
.run-owner-list a:hover{border-color:#bca98c;background:#f4ede4}
.run-quality-stat{border-radius:9px;border-top:3px solid var(--gold)}
.run-quality-stat:nth-child(1),.run-quality-stat:nth-child(2){border-top-color:var(--sage)}
.run-quality-stat span{color:#766f64;letter-spacing:.08em}
.run-quality-stat strong{color:var(--charcoal)}
.run-owner-result{transition:border-color .15s ease,background .15s ease,transform .15s ease}
.run-owner-result:hover{transform:translateY(-1px)}
.contact-flag{background:#ece8e2;color:#8a857d!important;border:1px solid transparent}
.contact-flag.on{background:var(--sage-soft);color:#445449!important;border-color:#cbd5cb}
.contact-flag.generic{background:var(--gold-soft);color:#775b31!important;border-color:#dfccae}
.warn-text{color:#806238}

code{background:#ebe4da;color:#5c4b34}

/* Subtle branded treatment for geographic / territory management */
.territory-panel{border-left:3px solid var(--gold)}
.market-line .badge{background:#eee8df;color:#665e52}

@media(max-width:900px){
  .topbar{padding:8px 18px}
  .brand-logo{width:220px}
  .topbar-motto{display:none}
  .topbar-right{gap:10px}
}
@media(max-width:620px){
  .topbar{align-items:flex-start;flex-direction:column;padding:8px 14px 10px}
  .brand-logo{width:210px}
  .topbar-right{width:100%}
  .topnav{width:100%;justify-content:space-between}
  .topnav a{flex:1;text-align:center;padding:9px 6px}
  .topnav a.active:after{left:18px;right:18px}
  main{padding-top:24px}
}

/* ========================================================================== 
   BRIDGER v7 — operational status colors
   Keep the Bridger charcoal / gold / cream brand palette for application
   chrome, but use stronger semantic colors for fast lead scanning.
   ========================================================================== */
:root{
  --status-green:#147a67;
  --status-green-soft:#e7f3f0;
  --status-blue:#39536b;
  --status-blue-soft:#edf2f7;
  --status-amber:#88510b;
  --status-amber-soft:#fff1d9;
  --status-red:#913333;
  --status-red-soft:#fbe9e9;
  --status-slate:#65717d;
  --status-slate-soft:#eef1f3;
}

/* Core status / review badges */
.badge.good{
  background:var(--status-green-soft);
  color:#106655;
  border:1px solid #b9dcd3;
}
.badge.warn{
  background:var(--status-amber-soft);
  color:var(--status-amber);
  border:1px solid #f0d29a;
}
.badge.bad{
  background:var(--status-red-soft);
  color:var(--status-red);
  border:1px solid #e8bcbc;
}
.badge.neutral{
  background:var(--status-slate-soft);
  color:var(--status-slate);
  border:1px solid #d8dfe4;
}

/* Reachability / Contactability — intentionally four visibly distinct hues */
.badge.contactability.high{
  background:var(--status-green-soft);
  color:#106655;
  border:1px solid #afd7cd;
}
.badge.contactability.medium{
  background:var(--status-blue-soft);
  color:var(--status-blue);
  border:1px solid #c7d4df;
}
.badge.contactability.low{
  background:var(--status-amber-soft);
  color:var(--status-amber);
  border:1px solid #efd09a;
}
.badge.contactability.none{
  background:var(--status-red-soft);
  color:var(--status-red);
  border:1px solid #e6b8b8;
}

/* Confidence score chips */
.score.high{
  background:var(--status-green-soft);
  color:#106655;
  border:1px solid #b9dcd3;
}
.score.low{
  background:var(--status-amber-soft);
  color:var(--status-amber);
  border:1px solid #efd09a;
}

/* Name / title / phone / email availability chips on run scorecards */
.contact-flag{
  background:var(--status-slate-soft);
  color:#7c8791!important;
  border:1px solid #d8dfe4;
}
.contact-flag.on{
  background:var(--status-green-soft);
  color:#106655!important;
  border-color:#afd7cd;
}
.contact-flag.generic{
  background:var(--status-amber-soft);
  color:var(--status-amber)!important;
  border-color:#efd09a;
}

/* Notices retain the same semantic language as badges. */
.notice.good{
  background:var(--status-green-soft);
  border-color:#b9dcd3;
  color:#106655;
}
.notice.bad{
  background:var(--status-red-soft);
  border-color:#e8bcbc;
  color:var(--status-red);
}

/* Territory itself is informational, not a success state. */
.market-line .badge.neutral{
  background:var(--status-slate-soft);
  color:var(--status-slate);
  border-color:#d8dfe4;
}

/* ========================================================================== 
   BRIDGER v8 — center confidence label/value pairs on research run cards
   ========================================================================== */
.run-owner-scores>div{
  display:grid;
  grid-template-columns:auto 34px;
  justify-content:center;
  align-items:center;
  column-gap:12px;
  padding:6px 10px;
}
.run-owner-scores>div>span{
  text-align:center;
  margin:0;
}
.run-owner-scores .score{
  justify-self:center;
  align-self:center;
}

@media(max-width:620px){
  .run-owner-scores>div{
    grid-template-columns:auto 34px;
    justify-content:center;
  }
}

/* ========================================================================== 
   BRIDGER v9 — unmistakably centered confidence cards
   Stack the label and value so both sit on the true horizontal center.
   ========================================================================== */
.run-owner-scores>div{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:54px;
  padding:6px 10px;
  text-align:center;
}
.run-owner-scores>div>span{
  display:block;
  width:100%;
  margin:0;
  text-align:center;
  line-height:1.1;
}
.run-owner-scores .score{
  display:grid;
  place-items:center;
  width:38px;
  height:26px;
  margin:0 auto;
  justify-self:auto;
  align-self:auto;
}

@media(max-width:620px){
  .run-owner-scores>div{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
  }
}

/* ========================================================================== 
   BRIDGER v10 — authentication, role-based access, and administration
   ========================================================================== */
.user-menu{display:flex;align-items:center;gap:10px;padding-left:10px;border-left:1px solid rgba(255,255,255,.12)}
.user-identity{display:flex;flex-direction:column;min-width:125px}
.user-identity strong{font-size:11px;color:#fff;line-height:1.2}
.user-identity span{font-size:9px;color:#b7b8b4;line-height:1.25;margin-top:2px;max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-button{min-height:32px;padding:5px 9px;background:transparent;border-color:rgba(255,255,255,.18);color:#ddd}
.topbar-button:hover{background:rgba(176,140,82,.16);border-color:rgba(176,140,82,.48);color:#fff}
.auth-shell{min-height:calc(100vh - 180px);display:grid;place-items:start center;padding-top:7vh}
.auth-card{width:min(460px,100%);padding:28px;border-top:3px solid var(--gold)}
.auth-card h1{margin:4px 0 6px;font-size:28px}
.auth-card>p{margin:0 0 18px;color:var(--muted)}
.auth-form{margin-top:14px}
.field small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.admin-access-panel{margin-bottom:18px;border-left:3px solid var(--gold)}
.admin-maps-panel{margin-bottom:18px;border-left:3px solid var(--sage)}
.admin-maps-panel .section-title{margin-bottom:5px}
.admin-maps-panel .review-help{margin:0 0 12px}
.admin-map-usage-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.admin-map-usage-grid>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fffdfa}
.admin-map-usage-grid span,.admin-map-usage-grid strong{display:block}
.admin-map-usage-grid span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.055em}
.admin-map-usage-grid strong{margin-top:2px;font-size:22px;color:var(--charcoal)}
.admin-map-budget{height:8px;margin-top:12px;border-radius:999px;background:#e8e3db;overflow:hidden}
.admin-map-budget>span{display:block;height:100%;border-radius:inherit;background:var(--sage)}
.admin-map-budget-note{margin-top:6px;color:var(--muted);font-size:11px}
.admin-map-budget-note strong{color:var(--charcoal)}
.admin-map-usage-divider{height:1px;margin:18px 0 14px;background:var(--line)}
.admin-map-usage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:10px}
.admin-map-usage-heading>div>strong,.admin-map-usage-heading>div>span{display:block}
.admin-map-usage-heading>div>strong{font-size:14px;color:var(--charcoal)}
.admin-map-usage-heading>div>span{margin-top:2px;color:var(--muted);font-size:11px}
.admin-map-key-status{flex:0 0 auto;padding:4px 8px;border:1px solid var(--line);border-radius:999px;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.045em}
.admin-map-key-status.configured{color:#456252;background:#edf4ee;border-color:#c9d9cc}
.admin-map-key-status.fallback{color:#755e27;background:#fff8e6;border-color:#e2d3a9}
.admin-map-key-status.missing{color:#8b4a3b;background:#fff0ec;border-color:#e5c4bb}
.admin-map-default-form{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.admin-map-default-toggle{display:flex;align-items:flex-start;gap:10px;cursor:pointer;max-width:760px}
.admin-map-default-toggle input{margin-top:3px;accent-color:var(--sage)}
.admin-map-default-toggle span,.admin-map-default-toggle strong,.admin-map-default-toggle small{display:block}
.admin-map-default-toggle strong{font-size:13px;color:var(--charcoal)}
.admin-map-default-toggle small{margin-top:2px;color:var(--muted);font-size:11px;line-height:1.4}
.role-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}
.role-grid>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fffdfa}
.role-grid strong,.role-grid span{display:block}
.role-grid strong{color:var(--charcoal);margin-bottom:4px}
.role-grid span{color:var(--muted);font-size:12px}
.admin-two-column{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;margin-bottom:18px}
.admin-user-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.admin-user-form .button{grid-column:1/-1;margin-top:10px}
.compact-list{display:grid;gap:7px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}
.compact-list>div{display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #e6ded4}
.compact-list>div:last-child{border-bottom:0}
.compact-list strong,.compact-list span{display:block}
.compact-list span{color:var(--muted);font-size:11px;text-align:right}
.admin-user-list{display:grid;gap:10px}
.admin-user-card{display:block;border:1px solid var(--line);border-radius:9px;background:#fffdfa;padding:13px}
.admin-user-card.inactive{opacity:.68;background:#f1eee9}
.admin-user-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:8px}
.admin-user-heading strong,.admin-user-heading span{display:block}
.admin-user-heading span,.admin-user-heading small{color:var(--muted);font-size:11px}
.admin-user-fields{display:grid;grid-template-columns:1.15fr 1.4fr 1fr 1.15fr 1.15fr 1.2fr;gap:8px}
.admin-user-fields .field{margin-top:0}
.admin-user-actions{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:10px}
.check-field{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}
.check-field input{width:auto;margin:0}
.inline-admin-form{display:flex;gap:7px;align-items:center;min-width:300px}
.inline-admin-form select{min-width:190px}
.reviewer-note{margin:10px 0;color:var(--muted);font-size:12px}
.reviewer-note strong{color:var(--charcoal)}

@media(max-width:1180px){
  .topbar-motto{display:none}
  .topbar-right{gap:10px}
  .admin-user-fields{grid-template-columns:repeat(3,1fr)}
  .role-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:900px){
  .topbar{align-items:flex-start;flex-direction:column;padding-top:8px;padding-bottom:8px}
  .topbar-right{width:100%;justify-content:space-between;flex-wrap:wrap}
  .user-menu{margin-left:auto}
  .admin-two-column{grid-template-columns:1fr}
  .admin-user-fields{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:620px){
  .topbar-right{display:grid;grid-template-columns:1fr}
  .user-menu{width:100%;margin-left:0;padding-left:0;border-left:0;border-top:1px solid rgba(255,255,255,.1);padding-top:8px;justify-content:space-between}
  .role-grid,.admin-user-fields,.admin-user-form{grid-template-columns:1fr}
  .admin-user-form .button{grid-column:auto}
  .admin-user-heading{display:block}
  .admin-user-heading small{display:block;margin-top:4px}
  .inline-admin-form{min-width:240px}
}

/* ========================================================================== 
   BRIDGER v11 — one-click contact activity and sales progress
   ========================================================================== */
.activity-panel{scroll-margin-top:18px;border-top:3px solid var(--gold)}
.activity-title{align-items:flex-start}
.activity-help{margin:-3px 0 12px;color:var(--muted);font-size:11px;line-height:1.45}
.activity-saved{margin:0 0 10px;padding:7px 9px;border:1px solid #b9dcd3;border-radius:7px;background:var(--status-green-soft);color:#106655;font-size:11px;font-weight:800}
.sales-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:5px 9px;font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.055em;white-space:nowrap;border:1px solid #d8dfe4;background:var(--status-slate-soft);color:var(--status-slate)}
.sales-status.good,.sales-status.positive{background:var(--status-green-soft);border-color:#b9dcd3;color:#106655}
.sales-status.outreach{background:var(--status-blue-soft);border-color:#c7d4df;color:var(--status-blue)}
.sales-status.warn{background:var(--status-amber-soft);border-color:#f0d29a;color:var(--status-amber)}
.sales-status.bad{background:var(--status-red-soft);border-color:#e8bcbc;color:var(--status-red)}
.sales-status.won{background:#e7f3f0;border-color:#91c8ba;color:#0b5d4d;box-shadow:inset 0 0 0 1px rgba(20,122,103,.08)}
.activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.activity-button{min-height:37px;border:1px solid #d5cabd;border-radius:7px;background:#fffdfa;color:var(--charcoal);padding:7px 9px;font:inherit;font-size:12px;font-weight:800;cursor:pointer;transition:background .12s ease,border-color .12s ease,transform .08s ease}
.activity-button:hover{background:#f7f0e7;border-color:#bda98a}
.activity-button:active{transform:translateY(1px)}
.activity-button.outreach{border-left:3px solid var(--status-blue)}
.activity-button.positive{border-left:3px solid var(--status-green)}
.activity-button.followup{border-left:3px solid var(--status-amber)}
.activity-button.negative{border-left:3px solid var(--status-red)}
.activity-button.won{grid-column:1/-1;border-color:#a9cfc5;border-left:3px solid var(--status-green);background:var(--status-green-soft);color:#0d6251}
.activity-button.won:hover{background:#dceee9;border-color:#84b9ac}
.activity-options{margin-top:10px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:8px 0}
.activity-options summary{cursor:pointer;color:var(--muted);font-size:11px;font-weight:800}
.activity-options-grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(130px,.5fr);gap:9px;align-items:end;padding-top:8px}
.activity-options-grid .field{margin-top:0}
.follow-up-shortcuts{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}
.follow-up-shortcuts button{border:1px solid #d5cabd;border-radius:999px;background:#fffdfa;color:#6f675d;padding:4px 8px;font-size:10px;font-weight:800;cursor:pointer}
.follow-up-shortcuts button:hover{background:#f4ede3;border-color:#bda98a}
.activity-history-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:14px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.activity-history-head strong{font-size:12px}
.activity-history-head span{color:var(--muted);font-size:10px}
.activity-history{display:grid}
.activity-row{padding:9px 0;border-bottom:1px solid var(--line)}
.activity-row:last-child{border-bottom:0}
.activity-row-top{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.activity-row-top strong{font-size:12px}
.activity-row-top span{color:var(--muted);font-size:9px;white-space:nowrap}
.activity-row small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.activity-row p{margin:5px 0 0;font-size:11px;color:#5f5d58}

.activity-call-path{margin-top:6px;padding:6px 8px;border-left:3px solid var(--accent);border-radius:0 6px 6px 0;background:#f4f7f5;color:#53615d;font-size:10px;line-height:1.45}
.activity-call-path strong{color:#2f4741;font-weight:850}
.activity-call-path span{display:inline-block;margin:0 5px;color:#8b9692;font-weight:900}
.activity-contact-editor{margin-top:7px}
.activity-contact-editor>summary{display:inline-flex;align-items:center;gap:5px;color:var(--accent);font-size:10px;font-weight:850;cursor:pointer;user-select:none}
.activity-contact-editor>summary::marker{color:#8aa79f}
.activity-contact-editor form{margin-top:7px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#faf9f7}
.activity-contact-editor .field{margin:0}
.activity-contact-editor .field>span{font-size:9px}
.activity-contact-editor .field em{font-style:normal;font-weight:600;color:var(--muted)}
.activity-contact-editor-existing{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.activity-contact-editor-new{margin-top:10px;padding-top:9px;border-top:1px dashed var(--line)}
.activity-contact-editor-or{display:block;margin-bottom:7px;color:#5e6a66;font-size:10px;font-weight:800}
.activity-contact-editor-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:8px}
.activity-contact-editor-grid .field:nth-child(4),.activity-contact-editor-grid .field:nth-child(5){grid-column:span 1}
@media(max-width:700px){.activity-contact-editor-existing{grid-template-columns:1fr}.activity-contact-editor-existing .button{width:100%}.activity-contact-editor-grid{grid-template-columns:1fr 1fr}.activity-contact-editor-grid .field:nth-child(3){grid-column:1 / -1}.activity-contact-editor-new .button{width:100%}.activity-call-path{font-size:11px}}
.follow-up-tag{display:inline-flex;margin-top:6px;padding:3px 6px;border-radius:999px;background:var(--status-amber-soft);border:1px solid #efd09a;color:var(--status-amber);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.activity-more{margin-top:4px;padding-top:7px;border-top:1px solid var(--line)}
.activity-more summary{cursor:pointer;color:var(--muted);font-size:10px;font-weight:800}
.activity-empty{margin:10px 0 0;color:var(--muted);font-size:11px}

@media(max-width:620px){
  .activity-grid{grid-template-columns:1fr 1fr}
  .activity-options-grid{grid-template-columns:1fr}
  .activity-row-top{display:block}
  .activity-row-top span{display:block;margin-top:1px}
}
.table-sales-status{padding:4px 7px;font-size:9px}
td .table-sales-status+small{margin-top:4px;max-width:170px}
.activity-saved{display:flex;align-items:center;justify-content:space-between;gap:10px}
.activity-saved form{margin:0}
.activity-saved button{border:0;background:transparent;color:inherit;font:inherit;font-size:10px;font-weight:850;text-decoration:underline;cursor:pointer;padding:2px 0}
.activity-saved.muted-save{display:block;background:#f1eee9;border-color:#d8d0c6;color:#6f6b65}

/* ========================================================================== 
   BRIDGER v12 — role-aware operating dashboard
   ========================================================================== */
.dashboard-head{margin-bottom:12px}.dashboard-filter-panel{margin-bottom:12px}.dashboard-filters{grid-template-columns:repeat(3,minmax(150px,1fr)) auto;align-items:end}.dashboard-filters .filter-actions{margin:0}
.dashboard-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:0 0 14px}.dashboard-metric{display:flex;flex-direction:column;min-height:104px;padding:13px 14px;border:1px solid var(--line);border-top:3px solid #bbb0a3;border-radius:8px;background:#fffdfa;color:inherit;text-decoration:none}.dashboard-metric:hover{border-color:#bca887;background:#fffaf2}.dashboard-metric.emphasized{border-top-color:var(--gold);background:#fffaf1}.dashboard-metric.attention{border-top-color:var(--status-amber)}.dashboard-metric span{color:var(--muted);font-size:10px;font-weight:850;text-transform:uppercase;letter-spacing:.06em}.dashboard-metric strong{margin:5px 0 2px;font-size:27px;color:var(--charcoal);line-height:1}.dashboard-metric small{margin-top:auto;color:var(--muted);font-size:10px}
.franchise-dashboard-metrics{grid-template-columns:repeat(8,minmax(0,1fr))}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,2.15fr) minmax(280px,.85fr);gap:14px;margin-bottom:14px}.dashboard-lower-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-bottom:14px}.dashboard-panel{padding:16px;border:1px solid var(--line);border-radius:9px;background:#fffdfa}.dashboard-panel .section-title{margin-bottom:12px}.dashboard-panel .section-title h2{font-size:19px}.dashboard-panel .section-title>a,.dashboard-panel .section-title>span{font-size:10px;color:var(--muted)}
.opportunity-list{display:grid}.opportunity-row{display:grid;grid-template-columns:48px minmax(170px,1.3fr) minmax(160px,1fr) 86px minmax(90px,.6fr);gap:10px;align-items:center;padding:10px 4px;border-top:1px solid var(--line);text-decoration:none;color:inherit}.opportunity-row:first-child{border-top:0}.opportunity-row:hover{background:#faf5ed}.priority-orb{width:39px;height:39px;display:grid;place-items:center;border-radius:50%;background:var(--charcoal);color:#fff;font-size:12px;font-weight:900}.opportunity-identity strong,.opportunity-contact strong,.opportunity-action strong{display:block;font-size:12px}.opportunity-identity span,.opportunity-contact span,.opportunity-action span{display:block;color:var(--muted);font-size:10px;margin-top:2px}.opportunity-action strong{color:#7b5a25}.dashboard-empty{padding:24px 0}
.attention-stack{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-bottom:15px}.attention-count{padding:10px;border:1px solid var(--line);border-radius:7px;background:#f8f3eb}.attention-count strong,.attention-count span{display:block}.attention-count strong{font-size:20px;color:var(--charcoal)}.attention-count span{font-size:9px;color:var(--muted)}.attention-panel h3{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);margin:14px 0 5px}.mini-lead-list{display:grid}.mini-lead-list a{padding:8px 0;border-top:1px solid var(--line);text-decoration:none;color:inherit}.mini-lead-list strong,.mini-lead-list span{display:block}.mini-lead-list strong{font-size:11px}.mini-lead-list span{font-size:9px;color:var(--muted);margin-top:2px}
.pipeline-flow{display:flex;align-items:stretch;gap:6px}.pipeline-stage{flex:1;min-width:0;padding:12px 8px;text-align:center;border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:7px;background:#faf6ef}.pipeline-stage strong,.pipeline-stage span{display:block}.pipeline-stage strong{font-size:20px}.pipeline-stage span{font-size:9px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin-top:3px}.pipeline-arrow{align-self:center;color:#a7957a;font-size:18px}.dashboard-note{margin:10px 0 0;color:var(--muted);font-size:10px}.territory-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.territory-grid>div{padding:12px;border-left:3px solid var(--gold);background:#f8f3eb}.territory-grid strong,.territory-grid span{display:block}.territory-grid strong{font-size:18px}.territory-grid span{font-size:9px;color:var(--muted);margin-top:2px}.corporate-panel{margin-bottom:18px}
/* v54 — make active sales obligations the dominant dashboard work surface. */
.dashboard-main-grid.has-attention{grid-template-columns:minmax(360px,.82fr) minmax(520px,1.18fr)}
.dashboard-main-grid.no-attention{grid-template-columns:minmax(0,1.75fr) minmax(320px,.75fr)}
.attention-panel{min-width:0}
.attention-title{align-items:flex-end}
.attention-stack{gap:9px;margin-bottom:12px}
.attention-count{padding:12px 13px}
.attention-count strong{font-size:24px}
.attention-count span{font-size:10px;margin-top:2px}
.action-queue-list{display:grid;border-top:1px solid var(--line)}
.action-queue-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:12px 2px;border-bottom:1px solid var(--line)}
.action-queue-row-main{min-width:0}
.action-queue-kicker{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-bottom:5px}
.queue-kind{display:inline-flex;align-items:center;padding:3px 7px;border-radius:999px;background:#f0e8db;color:#725323;font-size:9px;font-weight:900;letter-spacing:.05em;text-transform:uppercase}
.queue-kind.follow_up{background:#fbebe7;color:#9a3d31}
.queue-kind.estimate{background:#edf4ef;color:#35634c}
.action-queue-company{display:block;font-size:14px;line-height:1.25;color:var(--charcoal)}
.action-queue-contact{display:flex;gap:6px;align-items:baseline;flex-wrap:wrap;margin-top:4px}
.action-queue-contact strong{font-size:11px}
.action-queue-contact span{font-size:10px;color:var(--muted)}
.action-queue-meta{display:flex;gap:6px 10px;align-items:center;flex-wrap:wrap;margin-top:5px;color:var(--muted);font-size:10px}
.action-queue-meta span+span:before{content:'·';margin-right:10px;color:#b6aa9a}
.action-queue-note{margin:6px 0 0;color:#59534b;font-size:10px;line-height:1.35}
.action-queue-row-action{align-self:center}
.action-queue-open{min-width:76px;text-align:center;white-space:nowrap}
.action-queue-empty{padding:18px 2px 14px;border-top:1px solid var(--line)}
.action-queue-empty strong,.action-queue-empty span{display:block}
.action-queue-empty strong{font-size:13px}
.action-queue-empty span{margin-top:3px;color:var(--muted);font-size:10px}
@media(max-width:1350px){.franchise-dashboard-metrics{grid-template-columns:repeat(4,1fr)}}
@media(max-width:1180px){.dashboard-metrics{grid-template-columns:repeat(3,1fr)}.franchise-dashboard-metrics{grid-template-columns:repeat(3,1fr)}.dashboard-filters{grid-template-columns:repeat(2,1fr)}.dashboard-filters .filter-actions{grid-column:1/-1}.opportunity-row{grid-template-columns:44px 1.2fr 1fr 80px}.opportunity-action{grid-column:2/5}}
@media(max-width:850px){.dashboard-main-grid,.dashboard-lower-grid{grid-template-columns:1fr}.opportunity-row{grid-template-columns:42px 1fr 86px}.opportunity-contact{grid-column:2}.opportunity-action{grid-column:2/4}.dashboard-filters{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.dashboard-metrics{grid-template-columns:1fr 1fr}.dashboard-filters{grid-template-columns:1fr}.dashboard-filters .filter-actions{grid-column:auto}.opportunity-row{grid-template-columns:42px 1fr}.opportunity-row>div:nth-child(4){grid-column:1}.opportunity-action{grid-column:2}.attention-stack{grid-template-columns:1fr}.pipeline-flow{display:grid;grid-template-columns:1fr}.pipeline-arrow{display:none}.territory-grid{grid-template-columns:1fr}}

/* ========================================================================== 
   BRIDGER v14 — full territory inventory / research funnel
   ========================================================================== */
.lead-quality-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.inventory-metric{border-top:3px solid var(--gold);background:#fffaf2}
.territory-summary-panel{margin-bottom:14px}
.territory-inventory-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.research-inventory-panel{margin-bottom:18px}
.research-inventory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.dashboard-lower-grid.single-panel{grid-template-columns:1fr}
@media(max-width:1250px){
  .lead-quality-metrics{grid-template-columns:repeat(3,1fr)}
  .territory-inventory-grid{grid-template-columns:repeat(3,1fr)}
  .research-inventory-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:700px){
  .lead-quality-metrics,.territory-inventory-grid,.research-inventory-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:480px){
  .lead-quality-metrics,.territory-inventory-grid,.research-inventory-grid{grid-template-columns:1fr}
}


/* v15 research second-pass terminology and hierarchy */
.second-pass-card{position:relative}
.second-pass-ready-number{font-size:52px;line-height:.96;color:var(--charcoal);margin-top:10px}
.second-pass-card h2{font-size:23px;margin-bottom:7px}
.second-pass-stats{margin-top:7px}
.second-pass-stats>div{min-height:68px}
.second-pass-stats span{line-height:1.25}
.second-pass-stats strong{font-size:21px}
@media(max-width:700px){.second-pass-ready-number{font-size:46px}.second-pass-stats{grid-template-columns:1fr}}

/* ========================================================================== 
   BRIDGER v17 — visible sales lift / contact route quality
   ========================================================================== */
.run-impact-panel{margin:0 0 18px;padding:14px 16px;border:1px solid #d8ccb9;border-top:3px solid var(--gold);border-radius:9px;background:#fffaf2;box-shadow:var(--shadow)}
.run-impact-panel .section-title{margin-bottom:10px}
.run-impact-panel .section-title h2{font-size:18px}
.run-impact-panel .section-title>span{font-size:10px;color:var(--muted)}
.run-impact-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}
.run-impact-stat{padding:9px 10px;border:1px solid #dfd5c8;border-radius:7px;background:#fffdfa}
.run-impact-stat span,.run-impact-stat strong,.run-impact-stat small{display:block}
.run-impact-stat span{font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.055em;color:var(--muted);line-height:1.2}
.run-impact-stat strong{margin-top:4px;font-size:23px;line-height:1;color:var(--charcoal)}
.run-impact-stat strong.positive{color:#106655}
.run-impact-stat strong.negative{color:var(--status-red)}
.run-impact-stat small{margin-top:4px;font-size:9px;color:var(--muted);line-height:1.25}
.run-impact-stat.emphasized{border-top:3px solid var(--status-green);background:var(--status-green-soft)}
@media(max-width:1250px){.run-impact-grid{grid-template-columns:repeat(4,1fr)}}
@media(max-width:760px){.run-impact-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.run-impact-grid{grid-template-columns:1fr}}

/* First-pass research depth selector */
.research-depth-fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.research-depth-fieldset legend {
  font-weight: 700;
  margin-bottom: .45rem;
}
.research-depth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.research-depth-option {
  display: block;
  cursor: pointer;
  position: relative;
}
.research-depth-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.research-depth-option > span {
  display: block;
  height: 100%;
  border: 1px solid var(--border, #d9dee7);
  border-radius: 10px;
  padding: .72rem .8rem;
  background: var(--surface, #fff);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.research-depth-option strong {
  display: block;
  margin-bottom: .22rem;
}
.research-depth-option small {
  display: block;
  line-height: 1.35;
}
.research-depth-option input:checked + span {
  border-color: var(--brand-gold, #b89045);
  box-shadow: 0 0 0 2px rgba(184, 144, 69, .14);
  background: rgba(184, 144, 69, .06);
}
.research-depth-option input:focus-visible + span {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .research-depth-switch { grid-template-columns: 1fr; }
}

/* v24: Follow-up needed must be scheduled before it is recorded. */
.follow-up-required{margin:7px 0 0;color:#9d5f17;font-size:11px;font-weight:700}


/* v25: explicit follow-up save action. */
.follow-up-save-row{display:flex;align-items:center;gap:10px;margin-top:10px;flex-wrap:wrap}
.follow-up-save-row[hidden]{display:none}
.follow-up-save-button{min-width:150px}
.follow-up-save-row small{color:var(--muted,#6c7077);font-size:11px}
.mini-lead-list a small{display:block;margin-top:3px;color:var(--muted,#6c7077);font-size:11px}

/* v26: multi-contact sales roster + follow-up ownership */
.contacts-help{margin:-2px 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.lead-contact-list{display:grid;gap:9px;margin-top:10px}
.lead-contact-card{border:1px solid #ded4c7;border-radius:10px;padding:11px 12px;background:#fffdfa}
.lead-contact-card.primary-contact{border-color:#b99a5a;background:#fbf7ee}
.lead-contact-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.lead-contact-head>div:first-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.lead-contact-head strong{font-size:14px;color:var(--ink)}
.lead-contact-head small{font-size:11px;color:var(--muted)}
.lead-contact-badges{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.lead-contact-channels{display:grid;grid-template-columns:1fr 1fr;gap:7px 14px;margin-top:9px;padding-top:8px;border-top:1px solid #e8dfd5;font-size:11px;color:#5f5b55}
.lead-contact-channels b{color:var(--ink);margin-right:4px}
.lead-contact-channels em{color:#a33b32;font-style:normal;font-weight:800}
.lead-contact-form-link{margin-top:7px;font-size:11px}
.lead-contact-actions{margin-top:8px}
.lead-contact-actions button{border:0;background:transparent;color:#8a651f;font-size:11px;font-weight:800;padding:0;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.add-contact-details{margin-top:12px;border-top:1px solid #e4d9cc;padding-top:10px}
.add-contact-details>summary{font-size:12px;font-weight:850;color:#6a6259;cursor:pointer}
.add-contact-form{margin-top:10px}
.add-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
.lead-contact-primary-check{display:flex;align-items:center;gap:7px;margin:9px 0 11px;font-size:11px;font-weight:750;color:#5f5b55}
.activity-contact-select{margin-bottom:10px}
.follow-up-fields{display:grid;gap:8px}
@media (max-width:760px){.lead-contact-channels,.add-contact-grid{grid-template-columns:1fr}.lead-contact-head{flex-direction:column}.lead-contact-badges{justify-content:flex-start}}

/* v28: dashboard metrics drill into the matching lead worklist. */
.attention-count{display:block;color:inherit;text-decoration:none;transition:border-color .15s ease,background .15s ease}
.attention-count:hover{border-color:#bca887;background:#fffaf2}
.dashboard-filter-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 12px;padding:9px 12px;border:1px solid #d7c39b;border-left:3px solid var(--gold);border-radius:7px;background:#fffaf1;color:var(--charcoal);font-size:12px}
.dashboard-filter-banner a{color:#7d5a1f;font-weight:750;text-decoration:none;white-space:nowrap}
.dashboard-filter-banner a:hover{text-decoration:underline}

/* v29 dashboard: compact availability + one authoritative clickable pipeline */
.dashboard-availability-strip{margin:0 0 10px}
.dashboard-availability-link{display:flex;align-items:baseline;gap:12px;padding:10px 14px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:8px;background:#fffdfa;color:inherit;text-decoration:none;transition:border-color .15s ease,background .15s ease}
.dashboard-availability-link:hover{border-color:#bca887;background:#fffaf2}
.dashboard-availability-link .eyebrow{margin-right:4px;white-space:nowrap}
.dashboard-availability-link strong{font-size:24px;line-height:1;color:var(--charcoal)}
.dashboard-availability-link .availability-label{font-size:13px;font-weight:800;color:var(--charcoal);white-space:nowrap}
.dashboard-availability-link small{margin-left:auto;color:var(--muted);font-size:10px;text-align:right}
.dashboard-pipeline-section{margin:0 0 14px}
.dashboard-pipeline-section>.section-title{margin:0 0 7px;padding:0 2px}
.dashboard-pipeline-section>.section-title.compact h2{font-size:18px;margin:1px 0 0}
.dashboard-pipeline-section>.section-title.compact>span{font-size:10px;color:var(--muted)}
.pipeline-dashboard-metrics{grid-template-columns:repeat(6,minmax(0,1fr));margin:0}
.pipeline-dashboard-metrics .dashboard-metric{min-height:92px}
.pipeline-dashboard-metrics .dashboard-metric.won-stage{border-top-color:var(--status-green)}
@media(max-width:1180px){.pipeline-dashboard-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:620px){.dashboard-availability-link{align-items:flex-start;flex-wrap:wrap}.dashboard-availability-link small{width:100%;margin-left:0;text-align:left}.pipeline-dashboard-metrics{grid-template-columns:1fr 1fr}}

/* v30: salesperson follow-up priority + franchise cadence defaults */
.activity-priority-control{display:grid;grid-template-columns:minmax(160px,.55fr) minmax(0,1.45fr);gap:12px;align-items:end;margin:0 0 11px;padding:9px 10px;border:1px solid #e3d9cb;border-radius:8px;background:#fbf7f0}
.activity-priority-control .field{margin:0}
.activity-priority-explainer{display:flex;flex-direction:column;gap:2px;padding-bottom:2px}
.activity-priority-explainer strong{font-size:11px;color:var(--charcoal)}
.activity-priority-explainer span,.activity-priority-explainer a{font-size:10px;color:var(--muted)}
.activity-priority-explainer a{color:#7d5a1f;font-weight:800;text-decoration:none;margin-top:2px}.activity-priority-explainer a:hover{text-decoration:underline}
.activity-priority-tag{display:inline-flex;width:max-content;margin-top:5px;padding:2px 6px;border-radius:999px;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em;border:1px solid}
.activity-priority-tag.high,.activity-priority-inline.high{color:#9a2e2e;background:var(--status-red-soft);border-color:#e8bcbc}
.activity-priority-tag.medium,.activity-priority-inline.medium{color:#95600d;background:var(--status-amber-soft);border-color:#efd09a}
.activity-priority-tag.low,.activity-priority-inline.low{color:#3f6179;background:var(--status-blue-soft);border-color:#c7d4df}
.activity-priority-tag.none{color:var(--muted);background:#f0eeea;border-color:#ddd7cf}
.activity-priority-inline{display:inline-block;padding:1px 5px;border-radius:999px;border:1px solid;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.035em}
.activity-saved small{display:block;font-weight:650;font-size:10px;opacity:.9;margin-left:auto}
.followup-rules-form{display:grid;gap:0}.followup-rule-grid{display:grid;grid-template-columns:minmax(150px,1.2fr) 90px 90px minmax(130px,.8fr) minmax(130px,.8fr) minmax(130px,.8fr);gap:9px;align-items:center}.followup-rule-head{padding:0 8px 7px;color:var(--muted);font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.055em}.followup-rule-row{padding:9px 8px;border-top:1px solid var(--line)}.followup-rule-row>div:first-child strong,.followup-rule-row>div:first-child small{display:block}.followup-rule-row>div:first-child small{color:var(--muted);font-size:10px;margin-top:1px}.followup-rule-row .field{margin:0}.followup-rule-enabled{margin:0}.followup-rule-foot{display:flex;justify-content:space-between;gap:18px;align-items:center;margin-top:10px;padding-top:11px;border-top:1px solid var(--line)}.followup-rule-foot p{margin:0;color:var(--muted);font-size:11px;max-width:760px}.followup-rule-franchise-filter{grid-template-columns:minmax(220px,460px) auto}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:900px){.followup-rule-grid{grid-template-columns:1fr 1fr 1fr}.followup-rule-head{display:none}.followup-rule-row>div:first-child{grid-column:1/-1}.followup-rule-foot{display:block}.followup-rule-foot .button{margin-top:10px}}
@media(max-width:620px){.activity-priority-control{grid-template-columns:1fr}.followup-rule-grid{grid-template-columns:1fr 1fr}.followup-rule-row>div:first-child{grid-column:1/-1}.followup-rule-franchise-filter{grid-template-columns:1fr}}

/* v31: sales activity is the primary working surface on a lead. */
.activity-panel{padding:18px 20px}
.activity-panel .activity-help{font-size:12px;max-width:900px}
.next-followup-summary{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 12px;padding:11px 13px;border:1px solid #d8ccb9;border-left:4px solid var(--gold);border-radius:8px;background:#fffaf2}
.next-followup-summary>div{min-width:0}
.next-followup-summary .eyebrow,.next-followup-summary strong,.next-followup-summary>div>span{display:block}
.next-followup-summary strong{font-size:17px;margin:2px 0 1px;color:var(--charcoal)}
.next-followup-summary>div>span:last-child{font-size:11px;color:var(--muted)}
.next-followup-summary.scheduled{border-left-color:var(--status-green);background:var(--status-green-soft)}
.activity-panel .activity-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.activity-panel .activity-button.won{grid-column:1/-1}
.activity-panel .activity-options-grid{grid-template-columns:minmax(0,1.6fr) minmax(260px,.8fr);gap:14px}
.activity-panel .activity-history-head{margin-top:18px;padding-bottom:8px}
.activity-panel .activity-history-head strong{font-size:14px}
.activity-panel .activity-history-head span{font-size:11px}
.activity-panel .activity-row{padding:11px 0}
.activity-panel .activity-row-top strong{font-size:13px}
.activity-panel .activity-row-top span{font-size:10px}
.activity-panel .activity-row small{font-size:11px;line-height:1.4}
.activity-panel .activity-row p{font-size:12px;line-height:1.45;margin-top:6px}
.activity-panel .follow-up-tag{margin-top:6px}
.detail-side .history-item{grid-template-columns:1fr;gap:5px}
.detail-side .history-list{gap:5px}
@media(max-width:900px){.activity-panel .activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-panel .activity-options-grid{grid-template-columns:1fr}}
@media(max-width:620px){.next-followup-summary{align-items:flex-start;flex-direction:column}.activity-panel{padding:14px}.activity-panel .activity-grid{grid-template-columns:1fr 1fr}}

/* v34: keep research accuracy, franchise lead quality, and franchise skip distinct. */
.review-summary-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.review-subsection{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}
.review-subsection:first-of-type{margin-top:0}
.review-subhead{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:5px}
.review-subhead h3{margin:2px 0 0;font-size:15px}
.review-help{margin:0 0 12px;color:var(--muted);font-size:12px;line-height:1.45}
.quality-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:10px 0 12px}
.quality-grid label{position:relative}
.quality-grid input{position:absolute;opacity:0;pointer-events:none}
.quality-grid span{display:block;border:1px solid #d5cabd;border-radius:7px;background:#fffdfa;padding:9px 6px;text-align:center;cursor:pointer;font-weight:700}
.quality-grid span:hover{border-color:#bda98a;background:#f7f0e7}
.quality-grid input:checked+span{border-color:var(--gold);background:var(--gold-soft);color:#6f542e;box-shadow:inset 0 0 0 1px rgba(176,140,82,.18)}
.lead-quality-reason-field[hidden]{display:none}
.franchise-skip-section{padding-bottom:2px}
.skip-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
@media(max-width:700px){.quality-grid{grid-template-columns:1fr 1fr}.skip-actions{grid-template-columns:1fr}}

/* v36 internal research version history */
.research-history-link{margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:12px}
.research-history-link a{color:var(--gold-deep);font-weight:800;text-decoration:none}
.research-history-link a:hover{text-decoration:underline}
.research-history-head{align-items:flex-start}
.research-version-list{display:grid;gap:16px;max-width:1180px}
.research-version-card{padding:0;overflow:hidden}
.research-version-card.current-version{box-shadow:inset 4px 0 0 var(--sage),var(--shadow)}
.research-version-head{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:20px 22px;border-bottom:1px solid var(--line)}
.research-version-head h2{margin:7px 0 3px;font-size:19px}
.research-version-head p{margin:0;color:var(--muted);font-size:12px}
.research-version-kicker{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.research-version-scores{display:flex;gap:8px;flex:0 0 auto}
.research-version-scores>div{min-width:78px;padding:8px 10px;border:1px solid var(--line);border-radius:7px;background:#f4f0e9;text-align:center}
.research-version-scores span,.research-version-scores strong{display:block}.research-version-scores span{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.07em}.research-version-scores strong{font-size:19px}
.version-changes{padding:16px 22px 18px;background:#faf7f2;border-bottom:1px solid var(--line)}
.version-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:10px}.version-section-title>strong{color:var(--muted);font-size:11px}.version-section-title h3{margin:0}
.version-first{margin:0;color:var(--muted)}
.version-change-list{display:grid;gap:8px}
.version-change-row{border:1px solid #ded5c9;border-radius:7px;background:#fffdfa;padding:10px 12px}.version-change-row>strong{display:block;font-size:11px;margin-bottom:7px;color:#5d5b56}
.version-change-values{display:grid;grid-template-columns:minmax(0,1fr) 24px minmax(0,1fr);gap:8px;align-items:start}.version-change-values>div:not(.change-arrow){min-width:0}.version-change-values span{display:block;font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.07em}.version-change-values p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.change-arrow{text-align:center;color:var(--gold-deep);padding-top:14px;font-weight:900}
.version-snapshot{border:0;margin:0}.version-snapshot>summary{padding:13px 22px;background:#f4efe8;font-weight:800;color:var(--gold-deep);cursor:pointer}.version-snapshot[open]>summary{border-bottom:1px solid var(--line)}
.version-snapshot-body{padding:20px 22px;display:grid;gap:24px}.version-snapshot-body section+section{padding-top:20px;border-top:1px solid var(--line)}.version-snapshot-body h3{font-size:14px;margin:0 0 12px}
.version-field-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.version-field-grid>div{border:1px solid #e0d8cd;border-radius:7px;background:#fffdfa;padding:10px 11px;min-width:0}.version-field-grid span,.version-long-field>span{display:block;color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;margin-bottom:3px}.version-field-grid strong{display:block;overflow-wrap:anywhere}.version-field-grid a{color:var(--gold-deep)}
.version-long-field{margin-top:10px;border:1px solid #e0d8cd;border-radius:7px;background:#fffdfa;padding:10px 11px}.version-long-field p{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.version-source-list{display:grid;gap:7px}.version-source-list a{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid #dcd3c7;border-radius:7px;background:#fffdfa;color:inherit;text-decoration:none}.version-source-list a:hover{background:#f4eee5;border-color:#c4b49e}.version-source-list a>span{display:grid;place-items:center;width:24px;height:24px;border-radius:5px;background:#eee6da;color:#735b35;font-weight:800}.version-source-list a div{min-width:0}.version-source-list a strong,.version-source-list a small{display:block;overflow-wrap:anywhere}.version-source-list a small{color:var(--muted);margin-top:2px}.version-source-list a>b{color:var(--gold-deep)}
@media(max-width:850px){.research-version-head{display:block}.research-version-scores{margin-top:12px}.version-field-grid{grid-template-columns:1fr 1fr}.version-change-values{grid-template-columns:1fr}.change-arrow{text-align:left;padding-top:0}.change-arrow{font-size:0}.change-arrow:after{content:"↓";font-size:14px}}
@media(max-width:560px){.version-field-grid{grid-template-columns:1fr}.research-version-scores{display:grid;grid-template-columns:1fr 1fr}}
/* Customer-facing research context: show the concise notes directly while
   keeping raw evidence/history restricted to internal research roles. */
.sales-research-notes {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line, #ddd3c5);
}
.sales-research-notes > span {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted, #756b5f);
}
.sales-research-notes p {
  margin: 0;
}


/* v39: paid pilot entitlement, administration, and results */
.pilot-list-banner{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 18px;padding:14px 16px;border:1px solid #d5c6ad;border-left:4px solid var(--gold);border-radius:10px;background:#fffaf2;box-shadow:var(--shadow)}
.pilot-list-banner>div{min-width:0}.pilot-list-banner strong,.pilot-list-banner small{display:block}.pilot-list-banner strong{font-size:15px;margin:2px 0}.pilot-list-banner small{color:var(--muted);font-size:11px}.dashboard-pilot-banner{margin-top:-4px}
.pilot-locked-row{background:#faf8f4}.pilot-locked-row:hover{background:#f6f0e7}
.pilot-unlock-panel{border-left:4px solid var(--gold)}.pilot-credit-counter{font-size:11px;color:var(--muted);text-align:right}.pilot-credit-counter strong{font-size:23px;color:var(--charcoal)}
.pilot-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:15px 0}.pilot-preview-grid>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fffdfa}.pilot-preview-grid span,.pilot-preview-grid strong{display:block}.pilot-preview-grid span{font-size:9px;color:var(--muted);font-weight:850;text-transform:uppercase;letter-spacing:.08em}.pilot-preview-grid strong{margin-top:4px}
.pilot-unlock-form{display:flex;align-items:center;gap:12px;margin-top:14px}.pilot-unlock-form small{color:var(--muted)}.pilot-territory-choices{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.pilot-status-panel{border-left:4px solid var(--sage)}.pilot-status-badges{display:flex;gap:6px;flex-wrap:wrap}.pilot-unlocked-meta{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.pilot-unlocked-meta span{padding:6px 8px;border-radius:6px;background:#f1ede6;color:var(--muted);font-size:10px}.pilot-unlocked-meta strong{color:var(--charcoal)}.pilot-known-relationship{margin-top:12px}.pilot-known-relationship p{color:var(--muted);font-size:12px}
.activity-value-tag{display:inline-flex;margin-top:5px;padding:2px 6px;border-radius:5px;background:var(--gold-soft);color:var(--gold-deep);font-size:10px;font-weight:850}
.pilot-filter-panel{margin-bottom:16px}.pilot-filters{grid-template-columns:repeat(3,minmax(200px,1fr)) auto}.pilot-owner-type{margin-bottom:6px}.pilot-sort-explanation{color:var(--muted)}.pilot-empty-panel{max-width:850px}.pilot-overview-card{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:14px;padding:15px 18px;border:1px solid var(--line);border-radius:10px;background:#fffdfa;box-shadow:var(--shadow)}.pilot-overview-card strong,.pilot-overview-card small{display:block}.pilot-overview-card>div>strong{font-size:17px;margin:3px 0}.pilot-overview-card small{color:var(--muted)}
.pilot-credit-metrics{grid-template-columns:repeat(4,1fr)}.pilot-results-columns{margin-bottom:18px}.pilot-rate{display:block;text-align:right;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.07em}.pilot-rate strong{display:block;color:var(--gold-deep);font-size:24px}.pilot-breakdown-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.pilot-breakdown-grid.two-up{grid-template-columns:repeat(2,minmax(0,1fr))}.pilot-breakdown-grid.three-up{grid-template-columns:repeat(3,minmax(0,1fr))}.pilot-breakdown-grid>div{padding:12px;border:1px solid var(--line);border-radius:8px;background:#fffdfa}.pilot-breakdown-grid span,.pilot-breakdown-grid strong{display:block}.pilot-breakdown-grid span{font-size:9px;color:var(--muted);font-weight:850;text-transform:uppercase;letter-spacing:.06em}.pilot-breakdown-grid strong{font-size:23px;margin-top:2px}.pilot-sales-metrics{grid-template-columns:repeat(8,1fr)}
.pilot-value-columns{margin-bottom:18px}.pilot-value-panel>span,.pilot-value-panel>strong,.pilot-value-panel>small{display:block}.pilot-value-panel>strong{font-size:31px;margin:5px 0;color:var(--gold-deep)}.pilot-value-panel.won>strong{color:#526657}.pilot-value-panel>small{color:var(--muted)}
.pilot-admin-create{margin:0 0 14px;border:1px solid var(--line);border-radius:8px;padding:0;background:#fffdfa}.pilot-admin-create>summary,.pilot-admin-card>summary{padding:11px 13px}.pilot-admin-create[open]>summary,.pilot-admin-card[open]>summary{border-bottom:1px solid var(--line)}
.pilot-admin-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px 12px;padding:14px}.pilot-admin-form .field{margin:0}.pilot-admin-form .button:disabled{cursor:not-allowed;opacity:.45}.pilot-admin-notes{grid-column:1/-1}.pilot-admin-submit{grid-column:1/-1;display:flex;align-items:center;justify-content:flex-end;gap:8px}.pilot-admin-list{display:grid;gap:10px}.pilot-admin-card{margin:0;border:1px solid var(--line);border-radius:8px;padding:0;background:#fffdfa}.pilot-admin-card>summary{display:flex;align-items:center;justify-content:space-between;gap:15px}.pilot-admin-card>summary>div:first-child strong,.pilot-admin-card>summary>div:first-child span{display:block}.pilot-admin-card>summary>div:first-child span{font-size:10px;color:var(--muted);margin-top:2px}.pilot-admin-summary-stats{display:flex;align-items:center;gap:10px;color:var(--muted);font-size:11px}
@media(max-width:1100px){.pilot-sales-metrics{grid-template-columns:repeat(4,1fr)}.pilot-admin-form{grid-template-columns:repeat(2,minmax(0,1fr))}.pilot-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.pilot-filters .filter-actions{grid-column:1/-1}}
@media(max-width:700px){.pilot-list-banner,.pilot-overview-card,.pilot-admin-card>summary{align-items:flex-start;flex-direction:column}.pilot-preview-grid,.pilot-credit-metrics,.pilot-breakdown-grid,.pilot-breakdown-grid.two-up,.pilot-breakdown-grid.three-up,.pilot-sales-metrics,.pilot-admin-form{grid-template-columns:1fr}.pilot-unlock-form{align-items:flex-start;flex-direction:column}.pilot-filters{grid-template-columns:1fr}.pilot-admin-notes,.pilot-admin-submit{grid-column:auto}.pilot-admin-submit{align-items:stretch;flex-direction:column}.pilot-admin-summary-stats{flex-wrap:wrap}}

/* ========================================================================== 
   BRIDGER v45 — branded sign-in experience
   The login page is intentionally the brand moment; operational screens keep
   the restrained work-surface treatment used elsewhere in the application.
   ========================================================================== */
body.login-page{
  min-height:100vh;
  overflow-x:hidden;
  background:#f4f0e9;
}
body.login-page main{
  max-width:none;
  margin:0;
  padding:0;
  min-height:100vh;
}
.login-experience{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(0,1.22fr) minmax(420px,.78fr);
  background:#f6f2eb;
}
.login-brand-panel{
  position:relative;
  min-height:100vh;
  overflow:hidden;
  isolation:isolate;
  display:flex;
  align-items:stretch;
  color:#fff;
  background:
    radial-gradient(circle at 22% 18%,rgba(176,140,82,.17),transparent 29rem),
    radial-gradient(circle at 86% 84%,rgba(255,255,255,.055),transparent 24rem),
    linear-gradient(145deg,#171d21 0%,#20272c 52%,#171c20 100%);
  border-right:1px solid rgba(176,140,82,.42);
}
.login-brand-panel:after{
  content:"";
  position:absolute;
  inset:auto 0 0 0;
  height:4px;
  z-index:4;
  background:linear-gradient(90deg,transparent 0%,rgba(176,140,82,.42) 20%,var(--gold) 48%,rgba(176,140,82,.38) 78%,transparent 100%);
}
.login-brand-grid{
  position:absolute;
  z-index:-2;
  left:-8%;
  right:-10%;
  bottom:-18%;
  height:62%;
  opacity:.15;
  transform:perspective(700px) rotateX(62deg) rotateZ(-9deg) scale(1.22);
  transform-origin:center bottom;
  background-image:
    linear-gradient(rgba(225,217,204,.46) 1px,transparent 1px),
    linear-gradient(90deg,rgba(225,217,204,.46) 1px,transparent 1px);
  background-size:72px 54px;
  mask-image:linear-gradient(to top,#000 15%,rgba(0,0,0,.72) 48%,transparent 94%);
}
.login-brand-grid:after{
  content:"";
  position:absolute;
  inset:13% 21% 25% 12%;
  border:2px solid rgba(176,140,82,.75);
  border-radius:7px;
  transform:skewX(-8deg);
  box-shadow:0 0 28px rgba(176,140,82,.08);
}
.login-gold-trace{
  position:absolute;
  z-index:-1;
  width:56%;
  height:44%;
  right:-3%;
  bottom:2%;
  opacity:.82;
  filter:drop-shadow(0 0 10px rgba(176,140,82,.12));
}
.login-gold-trace:before,
.login-gold-trace:after{
  content:"";
  position:absolute;
  height:2px;
  background:linear-gradient(90deg,transparent,var(--gold) 16%,var(--gold) 88%,transparent);
  transform-origin:left center;
}
.login-gold-trace:before{
  width:78%;
  left:4%;
  top:42%;
  transform:rotate(-23deg);
}
.login-gold-trace:after{
  width:56%;
  left:38%;
  top:54%;
  transform:rotate(31deg);
}
.login-brand-content{
  position:relative;
  z-index:2;
  width:min(760px,78%);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  padding:42px 0 44px clamp(42px,6vw,96px);
}
.login-brand-logo{
  display:block;
  width:min(340px,70%);
  height:auto;
  object-fit:contain;
  object-position:left center;
}
.login-brand-message{
  margin:auto 0;
  max-width:680px;
  padding:74px 0 96px;
}
.login-brand-eyebrow{
  display:flex;
  align-items:center;
  gap:11px;
  color:#d4b777;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.2em;
  text-transform:uppercase;
}
.login-brand-eyebrow:before{
  content:"";
  width:38px;
  height:2px;
  border-radius:4px;
  background:var(--gold);
}
.login-brand-message h1{
  margin:18px 0 22px;
  color:#fff;
  font-size:clamp(46px,5.5vw,78px);
  line-height:1.00;
  letter-spacing:-.045em;
  font-weight:760;
  text-wrap:balance;
  text-shadow:0 6px 28px rgba(0,0,0,.22);
}
.login-brand-message p{
  max-width:620px;
  margin:0;
  color:#c9cccb;
  font-size:clamp(15px,1.18vw,18px);
  line-height:1.68;
}
.login-brand-capabilities{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  max-width:660px;
}
.login-brand-capabilities span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 10px;
  border:1px solid rgba(211,187,139,.25);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#c8c7c2;
  font-size:10px;
  font-weight:800;
  letter-spacing:.075em;
  text-transform:uppercase;
  backdrop-filter:blur(4px);
}
.login-icon-watermark{
  position:absolute;
  z-index:0;
  right:-7%;
  bottom:5%;
  width:min(36vw,520px);
  opacity:.095;
  transform:rotate(-4deg);
  pointer-events:none;
}
.login-icon-watermark img{
  display:block;
  width:100%;
  height:auto;
  mix-blend-mode:screen;
}
.login-brand-motto{
  position:absolute;
  z-index:3;
  top:46px;
  right:48px;
  color:#cdb178;
  font-size:9px;
  font-weight:900;
  letter-spacing:.18em;
  text-transform:uppercase;
}
.login-access-panel{
  position:relative;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:48px clamp(34px,5vw,76px);
  background:
    radial-gradient(circle at 100% 0%,rgba(176,140,82,.10),transparent 22rem),
    linear-gradient(180deg,#f9f6f1 0%,#f3eee6 100%);
}
.login-access-wrap{
  width:min(470px,100%);
}
.login-mobile-brand{display:none}
.login-auth-card{
  width:100%;
  padding:34px 34px 32px;
  border-radius:14px;
  border:1px solid #d9cfc2;
  border-top:3px solid var(--gold);
  background:rgba(255,253,249,.97);
  box-shadow:0 24px 60px rgba(52,45,35,.13);
}
.login-auth-card h2{
  margin:5px 0 7px;
  color:var(--charcoal);
  font-size:31px;
  line-height:1.1;
  letter-spacing:-.028em;
}
.login-auth-card>p{
  margin:0 0 23px;
  color:#77746e;
  font-size:13px;
}
.login-auth-card .auth-form{margin-top:16px}
.login-auth-card .field{margin-top:14px}
.login-auth-card .field>span{
  margin-bottom:7px;
  color:#706b63;
  font-size:10px;
  letter-spacing:.11em;
}
.login-auth-card input{
  min-height:46px;
  padding:11px 12px;
  border-color:#cfc2b2;
  background:#fffefa;
}
.login-auth-card input:focus{
  border-color:var(--gold);
  box-shadow:0 0 0 4px rgba(176,140,82,.12);
}
.login-button{
  min-height:46px;
  margin-top:18px;
  font-size:13px;
  letter-spacing:.01em;
}
.login-access-footer{
  display:grid;
  justify-items:center;
  gap:4px;
  margin-top:24px;
  text-align:center;
}
.login-access-footer strong{
  color:#555149;
  font-size:11px;
  letter-spacing:.13em;
  text-transform:uppercase;
}
.login-access-footer span{
  color:#9a9389;
  font-size:9px;
  letter-spacing:.075em;
  text-transform:uppercase;
}

@media(max-width:1050px){
  .login-experience{grid-template-columns:minmax(0,1fr) minmax(390px,.82fr)}
  .login-brand-content{width:88%;padding-left:44px}
  .login-brand-message h1{font-size:52px}
  .login-brand-motto{right:30px}
}
@media(max-width:820px){
  body.login-page{background:#f4f0e9}
  .login-experience{display:block;min-height:100vh}
  .login-brand-panel{display:none}
  .login-access-panel{min-height:100vh;padding:30px 20px}
  .login-access-wrap{width:min(470px,100%)}
  .login-mobile-brand{display:flex;justify-content:center;margin-bottom:28px}
  .login-mobile-brand img{width:min(300px,74vw);height:auto}
  .login-auth-card{padding:30px 26px 28px}
}
@media(max-width:460px){
  .login-access-panel{padding:22px 14px}
  .login-mobile-brand{margin-bottom:20px}
  .login-auth-card{padding:25px 20px 24px}
  .login-auth-card h2{font-size:28px}
  .login-access-footer span{font-size:8px}
}

/* ==========================================================================
   BRIDGER v46 — premium login refinement pass
   Preserve the current Bridger logo/icon assets, but make the login page use
   them more intentionally with a framed logo badge, cleaner watermark, and a
   simpler gold seam treatment.
   ========================================================================== */
.login-brand-content{
  width:min(760px,79%);
  padding-top:44px;
}
.login-brand-logo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  width:max-content;
  padding:14px 18px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012));
  border:1px solid rgba(211,187,139,.14);
  box-shadow:0 16px 36px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter:blur(2px);
}
.login-brand-logo{
  width:min(340px,68vw);
}
.login-brand-message{
  max-width:650px;
  padding:62px 0 84px;
}
.login-brand-message h1{
  margin:16px 0 20px;
  font-size:clamp(44px,5.2vw,72px);
  line-height:.98;
}
.login-brand-message p{
  max-width:600px;
}
.login-brand-capabilities{
  gap:10px;
  padding-bottom:6px;
}
.login-brand-capabilities span{
  min-height:32px;
  padding:7px 12px;
}
.login-icon-watermark{
  right:-2%;
  bottom:2%;
  width:min(39vw,545px);
  opacity:.105;
  transform:rotate(-3deg);
}
.login-icon-watermark img{
  mix-blend-mode:screen;
  filter:saturate(.55) brightness(1.03);
}
.login-gold-trace{
  width:48%;
  height:34%;
  right:2%;
  bottom:4%;
  opacity:.88;
  filter:drop-shadow(0 0 12px rgba(176,140,82,.18));
}
.login-gold-trace:before,
.login-gold-trace:after{
  height:2px;
  background:linear-gradient(90deg,transparent 0%,rgba(204,169,99,.18) 8%,var(--gold) 22%,var(--gold) 82%,transparent 100%);
}
.login-gold-trace:before{
  width:84%;
  left:6%;
  top:56%;
  transform:rotate(-28deg);
}
.login-gold-trace:after{
  width:0;
  display:none;
}
.login-access-footer{
  margin-top:26px;
}
@media(max-width:1050px){
  .login-brand-content{width:88%;padding-left:44px}
  .login-brand-message h1{font-size:clamp(42px,5vw,58px)}
  .login-icon-watermark{width:min(42vw,470px);right:-6%;bottom:3%}
}

/* v51 franchise pilot onboarding + simplified opportunity workflow */
.alert{margin:0 0 14px;padding:11px 14px;border-radius:9px;border:1px solid var(--line);font-weight:700}
.alert.good{background:#edf6f1;border-color:#b9d8ca;color:#35624f}
.alert.bad{background:#fbefed;border-color:#e5c0ba;color:#87463f}
.pilot-welcome-banner{padding:20px 22px;align-items:center;background:linear-gradient(135deg,#fffaf2 0%,#fffdf9 100%)}
.pilot-welcome-banner>div:first-child{max-width:900px}
.pilot-welcome-banner strong{font-size:21px;color:var(--charcoal);margin:4px 0 5px}
.pilot-welcome-banner small{font-size:12px;line-height:1.55;max-width:780px}
.pilot-welcome-stats{margin-top:10px;font-size:12px;color:#65563f}.pilot-welcome-stats b{color:var(--charcoal)}
.pilot-banner-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.pilot-banner-actions form{margin:0}
.pilot-availability-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:0 0 10px}.pilot-availability-grid .dashboard-availability-link{margin:0}
.pilot-next-unlock{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:20px 8px 16px}.pilot-next-copy{min-width:0}.pilot-next-copy>strong{display:block;font-size:20px;color:var(--charcoal);margin:9px 0 2px}.pilot-next-copy>span:not(.badge){display:block;color:var(--muted);font-size:12px}.pilot-next-copy p{max-width:720px;margin:10px 0 0;color:var(--muted)}.pilot-next-unlock form{flex:0 0 auto}
.pilot-leads-head{align-items:center}.pilot-leads-banner{margin-bottom:12px}
.pilot-opportunity-tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:9px;margin:0 0 12px}.pilot-opportunity-tabs a{display:flex;align-items:center;gap:10px;padding:12px 14px;background:#fff;border:1px solid var(--line);border-radius:9px;color:inherit;text-decoration:none;box-shadow:var(--shadow)}.pilot-opportunity-tabs a:hover{border-color:#cbb891;background:#fffaf2}.pilot-opportunity-tabs a.active{border-color:#b89a67;box-shadow:inset 0 -3px 0 var(--gold),var(--shadow);background:#fffaf2}.pilot-opportunity-tabs strong{font-size:21px;color:var(--charcoal)}.pilot-opportunity-tabs span{font-size:11px;font-weight:800;color:#5d6670;text-transform:uppercase;letter-spacing:.045em}
.pilot-view-explainer{margin:0 0 14px;padding:10px 13px;border-left:3px solid var(--gold);background:#fffaf2;border-radius:7px;color:var(--muted);font-size:12px}.pilot-view-explainer strong{color:var(--charcoal)}
.pilot-opportunity-table th:last-child,.pilot-opportunity-table td:last-child{text-align:right}.pilot-row-action{white-space:nowrap}.pilot-row-action form{margin:0}.pilot-row-action .button{min-width:112px}
@media(max-width:900px){.pilot-availability-grid,.pilot-opportunity-tabs{grid-template-columns:1fr 1fr}.pilot-next-unlock{align-items:flex-start;flex-direction:column}.pilot-banner-actions{justify-content:flex-start}}
@media(max-width:620px){.pilot-availability-grid,.pilot-opportunity-tabs{grid-template-columns:1fr}.pilot-welcome-banner{padding:17px}.pilot-welcome-banner strong{font-size:18px}}

/* ========================================================================== 
   BRIDGER v55 — application-wide readability pass
   Keep the information-dense work surface, but do not render actionable or
   explanatory text at tiny display sizes. Login branding remains unchanged.
   ========================================================================== */
body:not(.login-page){font-size:15px;line-height:1.5}
body:not(.login-page) main small{font-size:13px!important;line-height:1.42}
body:not(.login-page) .eyebrow{font-size:12px}
body:not(.login-page) .filters label span,
body:not(.login-page) .field>span{font-size:12px}
body:not(.login-page) .table-summary{font-size:13px}
body:not(.login-page) th{font-size:11px;line-height:1.3}
body:not(.login-page) td{line-height:1.42}
body:not(.login-page) td small{font-size:13px!important;line-height:1.4}
body:not(.login-page) .badge{font-size:11px;line-height:1.15;padding:5px 8px}
body:not(.login-page) .badge.large{font-size:12px}
body:not(.login-page) .confidence{font-size:12px}
body:not(.login-page) .chain-node span,
body:not(.login-page) .manager-line span,
body:not(.login-page) .contact-grid span,
body:not(.login-page) .property-stats span,
body:not(.login-page) .callout span{font-size:11px}
body:not(.login-page) .source-list strong{font-size:13px}
body:not(.login-page) .parcel a{font-size:13px}

/* Dashboard: every detail that can change the salesperson's next action is readable. */
body:not(.login-page) .dashboard-metric span{font-size:11px;line-height:1.25}
body:not(.login-page) .dashboard-metric small{font-size:12px!important;line-height:1.35}
body:not(.login-page) .dashboard-panel .section-title>a,
body:not(.login-page) .dashboard-panel .section-title>span{font-size:12px}
body:not(.login-page) .dashboard-availability-link .availability-label{font-size:14px}
body:not(.login-page) .dashboard-availability-link small{font-size:12px!important}
body:not(.login-page) .dashboard-pipeline-section>.section-title.compact>span{font-size:12px}
body:not(.login-page) .opportunity-row{padding:13px 5px;gap:12px}
body:not(.login-page) .opportunity-identity strong,
body:not(.login-page) .opportunity-contact strong,
body:not(.login-page) .opportunity-action strong{font-size:14px;line-height:1.3}
body:not(.login-page) .opportunity-identity span,
body:not(.login-page) .opportunity-contact span,
body:not(.login-page) .opportunity-action span{font-size:12px;line-height:1.35;margin-top:3px}
body:not(.login-page) .priority-orb{font-size:13px}
body:not(.login-page) .attention-count span{font-size:12px;line-height:1.3}
body:not(.login-page) .attention-panel h3{font-size:12px}
body:not(.login-page) .queue-kind{font-size:11px;padding:4px 8px}
body:not(.login-page) .action-queue-row{padding:15px 3px;gap:16px}
body:not(.login-page) .action-queue-company{font-size:15px;line-height:1.3}
body:not(.login-page) .action-queue-contact{margin-top:5px}
body:not(.login-page) .action-queue-contact strong{font-size:13px}
body:not(.login-page) .action-queue-contact span{font-size:12px;line-height:1.35}
body:not(.login-page) .action-queue-meta{font-size:12px;line-height:1.4;margin-top:6px}
body:not(.login-page) .action-queue-note{font-size:12px;line-height:1.45;margin-top:7px}
body:not(.login-page) .action-queue-empty strong{font-size:14px}
body:not(.login-page) .action-queue-empty span{font-size:12px}
body:not(.login-page) .mini-lead-list strong{font-size:13px}
body:not(.login-page) .mini-lead-list span{font-size:12px;line-height:1.35}
body:not(.login-page) .pipeline-stage span{font-size:11px;line-height:1.3}
body:not(.login-page) .dashboard-note{font-size:12px;line-height:1.4}
body:not(.login-page) .territory-grid span{font-size:11px;line-height:1.35}

/* Lead detail / sales activity. */
body:not(.login-page) .contacts-help{font-size:13px}
body:not(.login-page) .lead-contact-head strong{font-size:15px}
body:not(.login-page) .lead-contact-head small{font-size:13px!important}
body:not(.login-page) .lead-contact-channels{font-size:13px;line-height:1.4}
body:not(.login-page) .lead-contact-form-link{font-size:13px}
body:not(.login-page) .lead-contact-actions button{font-size:13px}
body:not(.login-page) .add-contact-details>summary{font-size:13px}
body:not(.login-page) .lead-contact-primary-check{font-size:13px}
body:not(.login-page) .activity-panel .activity-help{font-size:13px}
body:not(.login-page) .next-followup-summary>div>span:last-child{font-size:12px}
body:not(.login-page) .activity-panel .activity-history-head span{font-size:12px}
body:not(.login-page) .activity-panel .activity-row-top strong{font-size:14px}
body:not(.login-page) .activity-panel .activity-row-top span{font-size:12px}
body:not(.login-page) .activity-panel .activity-row small{font-size:13px!important;line-height:1.42}
body:not(.login-page) .activity-panel .activity-row p{font-size:13px;line-height:1.48}
body:not(.login-page) .follow-up-tag,
body:not(.login-page) .activity-priority-tag,
body:not(.login-page) .activity-priority-inline,
body:not(.login-page) .table-sales-status{font-size:11px}
body:not(.login-page) .activity-more summary{font-size:12px}
body:not(.login-page) .activity-empty{font-size:13px}
body:not(.login-page) .activity-saved button{font-size:12px}
body:not(.login-page) .activity-priority-explainer strong{font-size:13px}
body:not(.login-page) .activity-priority-explainer span,
body:not(.login-page) .activity-priority-explainer a{font-size:12px}

/* Pilot and franchise work surfaces. */
body:not(.login-page) .pilot-welcome-banner small{font-size:13px!important;line-height:1.55}
body:not(.login-page) .pilot-welcome-stats{font-size:13px}
body:not(.login-page) .pilot-next-copy>span:not(.badge){font-size:13px}
body:not(.login-page) .pilot-next-copy p{font-size:14px;line-height:1.48}
body:not(.login-page) .pilot-opportunity-tabs span{font-size:12px}
body:not(.login-page) .pilot-view-explainer{font-size:13px;line-height:1.45}
body:not(.login-page) .pilot-list-banner small{font-size:13px!important}
body:not(.login-page) .pilot-credit-counter{font-size:13px}
body:not(.login-page) .pilot-preview-grid span{font-size:11px}
body:not(.login-page) .pilot-unlocked-meta span{font-size:12px}
body:not(.login-page) .pilot-known-relationship p{font-size:13px}
body:not(.login-page) .activity-value-tag{font-size:11px}
body:not(.login-page) .pilot-rate{font-size:11px}
body:not(.login-page) .pilot-breakdown-grid span{font-size:11px}
body:not(.login-page) .pilot-admin-card>summary>div:first-child span{font-size:12px}
body:not(.login-page) .pilot-admin-summary-stats{font-size:12px}

/* Research/admin: maintain density, eliminate 9px operational labels. */
body:not(.login-page) .followup-rule-head{font-size:11px}
body:not(.login-page) .followup-rule-row>div:first-child small{font-size:12px!important}
body:not(.login-page) .followup-rule-foot p{font-size:12px}
body:not(.login-page) .version-change-values span,
body:not(.login-page) .version-field-grid span,
body:not(.login-page) .version-long-field>span{font-size:11px}
body:not(.login-page) .version-change-row>strong{font-size:12px}

@media(max-width:700px){
  body:not(.login-page){font-size:15px}
  body:not(.login-page) .opportunity-row{padding-top:14px;padding-bottom:14px}
}

/* v58: Digital Reach research workflow. Residential addresses remain internal;
   lead cards expose only a simple eligibility badge. */
.digital-reach-card{border-top-color:#8a6f45}
.digital-reach-run-summary{margin:2px 0 8px;padding:10px 11px;border:1px solid var(--line);border-radius:8px;background:#f8f4ed}
.digital-reach-run-summary strong,.digital-reach-run-summary span{display:block}
.digital-reach-run-summary span{margin-top:2px;color:var(--muted);font-size:11px;line-height:1.4}
.digital-reach-import-form{margin-top:8px;padding-top:12px;border-top:1px solid var(--line)}
.digital-reach-import-form input[type=file]{width:100%;font-size:12px}
.digital-reach-campaign-action{display:grid;gap:6px;margin-top:10px;padding-top:12px;border-top:1px solid var(--line)}
.digital-reach-campaign-action small{color:var(--muted);font-size:11px;line-height:1.4}
.badge.digital-reachable{background:#eee4cf;border-color:#cdb486;color:#6e542d}

/* v59: Lead-level Digital Reach visibility on the Leads page. */
.lead-reachability-badges{display:flex;flex-wrap:wrap;gap:5px;align-items:center;margin-bottom:5px}

/* YOUR MOVE dashboard redesign */
.your-move-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.8fr);gap:14px;margin-bottom:14px}.your-move-hero{padding:18px 18px 16px;background:linear-gradient(180deg,#fffdfa 0%,#fcf8f2 100%)}.your-move-title{align-items:flex-start}.your-move-kicker{align-self:flex-start}.your-move-subtitle{margin:0;color:var(--charcoal);font-size:17px;font-weight:700;line-height:1.35}.your-move-helper{margin:6px 0 0;color:var(--muted);max-width:760px}.your-move-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.your-move-detail-grid{display:grid;grid-template-columns:minmax(240px,.9fr) minmax(0,1.1fr);gap:14px;margin-top:18px}.your-move-why,.your-move-context{border:1px solid var(--line);border-radius:10px;background:#fff;padding:14px}.your-move-why h3,.your-move-context h3{margin:0 0 8px;font-size:14px;color:var(--charcoal)}.your-move-why ul{margin:0;padding-left:18px;color:#5c564f;display:grid;gap:6px}.your-move-context-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.your-move-context-item{padding:10px 11px;border-radius:9px;background:#fbf7f1;border:1px solid #ebe1d2}.your-move-context-item span{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.1em;color:#8f7a59;margin-bottom:3px}.your-move-context-item strong{display:block;font-size:13px;line-height:1.35;color:var(--charcoal)}.your-move-today-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:14px}.your-move-mini{display:flex;justify-content:space-between;gap:10px;align-items:baseline;padding:12px 13px;border-radius:10px;border:1px solid var(--line);background:#fff;color:inherit}.your-move-mini span{font-size:11px;color:var(--muted)}.your-move-mini strong{font-size:22px;color:var(--charcoal)}.your-move-empty{border-top:none;padding-top:4px}.on-deck-panel{padding:18px}.on-deck-list{display:grid;border-top:1px solid var(--line)}.on-deck-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:13px 2px;border-bottom:1px solid var(--line);color:inherit}.on-deck-kicker{margin-bottom:5px}.on-deck-row-main strong{display:block;font-size:14px;line-height:1.3;color:var(--charcoal)}.on-deck-row-main span{display:block;margin-top:3px;font-size:12px;color:#5f5a53;line-height:1.35}.on-deck-row-main small{display:block;margin-top:5px;font-size:10px;color:var(--muted)}.on-deck-open{font-size:11px;color:#6a5a41;white-space:nowrap}.on-deck-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.on-deck-summary-card{padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.on-deck-summary-card strong{display:block;font-size:24px;color:var(--charcoal)}.on-deck-summary-card span{display:block;margin-top:4px;font-size:11px;color:var(--muted)}.queue-kind.opportunity,.queue-kind.unlock{background:#edf6f2;color:#2b7e69}.queue-kind.follow_up{background:#fff1f1;color:#b74b4b}.queue-kind.estimate{background:#f3f6fb;color:#456891}
@media(max-width:980px){.your-move-grid{grid-template-columns:1fr}.your-move-detail-grid{grid-template-columns:1fr}.your-move-today-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.on-deck-summary{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:760px){.your-move-today-strip,.on-deck-summary,.your-move-context-grid{grid-template-columns:1fr}.your-move-actions{flex-direction:column;align-items:flex-start}}

/* v65: keep unlock work visible beside YOUR MOVE and fill ON DECK with locked choices */
.your-move-actions form{display:inline-flex;margin:0}.your-move-unlock{white-space:nowrap;background:#fffaf1;border-color:#c9a261;color:#3f3424}.your-move-unlock:hover{background:#f6ead4}.on-deck-unlock-row{cursor:default}.on-deck-unlock-form{display:flex;align-items:center;justify-content:flex-end;margin:0}.on-deck-unlock-form .button{white-space:nowrap}.on-deck-locked-title{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:2px}.on-deck-locked-title strong{font-size:14px;line-height:1.3;color:var(--charcoal)}.on-deck-unlock-row .on-deck-row-main small{margin-top:6px}.on-deck-unlock-row .queue-kind.unlock{background:#edf6f2;color:#2b7e69}
@media(max-width:760px){.on-deck-unlock-row{grid-template-columns:1fr}.on-deck-unlock-form{justify-content:flex-start}.your-move-actions form{width:100%}.your-move-actions form .button{width:100%}}

/* v66 dashboard simplification */
.your-move-grid{align-items:start}
.on-deck-panel .section-title{margin-bottom:8px}
.on-deck-row-main small{font-size:11px;line-height:1.35}


.on-deck-panel{padding:18px;background:linear-gradient(180deg,#fffaf1 0%,#fcf5e8 100%);border-color:#e6d4b2;box-shadow:inset 0 1px 0 rgba(255,255,255,.65)}
.on-deck-panel .section-title h2{color:#6d5531}
.on-deck-panel .eyebrow{color:#8f6a2a}
.on-deck-panel .section-title a{color:#7b633d}
.on-deck-list{border-top:1px solid #e4d7bf}
.on-deck-row{border-bottom:1px solid #eadfc9}
.on-deck-row:hover{background:rgba(255,255,255,.45)}
.on-deck-unlock-row{background:rgba(255,255,255,.38);border-radius:10px;padding-left:10px;padding-right:10px;margin:8px 0}
.on-deck-row-main small{color:#7a6a55}
.on-deck-open{color:#7a633b}


/* v69: On Deck is a neutral companion panel, not a highlighted destination. */
.on-deck-panel{background:#fffdfa;border-color:var(--line);box-shadow:none}
.on-deck-panel .eyebrow{color:inherit}
.on-deck-panel .section-title a{color:var(--muted)}
.on-deck-list{border-top:1px solid var(--line)}
.on-deck-row{border-bottom:1px solid var(--line)}
.on-deck-row:hover{background:#fcfaf6}
.on-deck-unlock-row{background:transparent;border-radius:0;padding-left:2px;padding-right:2px;margin:0}
.on-deck-row-main small{color:var(--muted)}
.on-deck-open{color:#6a5a41}

/* ========================================================================== 
   BRIDGER v69 — rebrand
   Transparent Bridger lockup on the same deep navy used by the application
   header and sign-in brand panel.
   ========================================================================== */
:root{
  --bridger-navy:#08101b;
  --bridger-gold:#d69b35;
}
.topbar{
  background:var(--bridger-navy);
  border-bottom-color:var(--bridger-gold);
}
.brand{min-width:285px}
.brand-logo{
  width:292px;
  max-height:58px;
}
.topbar-motto{
  color:#e0ad4c;
  letter-spacing:.09em;
  font-size:10px;
}

body.login-page{background:var(--bridger-navy)}
.login-experience{background:#f6f2eb}
.login-brand-panel{
  background:
    radial-gradient(circle at 18% 16%,rgba(214,155,53,.12),transparent 30rem),
    radial-gradient(circle at 86% 82%,rgba(255,255,255,.035),transparent 25rem),
    var(--bridger-navy);
  border-right-color:rgba(214,155,53,.32);
}
.login-brand-panel:after{
  background:linear-gradient(90deg,transparent 0%,rgba(214,155,53,.28) 20%,var(--bridger-gold) 48%,rgba(214,155,53,.28) 78%,transparent 100%);
}
.login-brand-logo-badge{
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  backdrop-filter:none;
}
.login-brand-logo{
  width:min(520px,72vw);
  max-width:100%;
}
.login-brand-eyebrow{color:#e4b04b}
.login-brand-eyebrow:before{background:var(--bridger-gold)}
.login-brand-message{
  max-width:700px;
  padding:58px 0 78px;
}
.login-brand-message h1{
  max-width:700px;
  font-size:clamp(44px,5vw,70px);
  line-height:1.01;
  letter-spacing:-.042em;
}
.login-brand-message p{max-width:650px}
.login-brand-capabilities span{
  border-color:rgba(214,155,53,.26);
  background:rgba(255,255,255,.035);
  color:#d4d6d7;
}
.login-gold-trace{opacity:.78}
.login-gold-trace:before{
  background:linear-gradient(90deg,transparent 0%,rgba(214,155,53,.12) 8%,var(--bridger-gold) 22%,var(--bridger-gold) 82%,transparent 100%);
}
.login-icon-watermark{
  width:min(42vw,590px);
  right:-5%;
  bottom:4%;
  opacity:.11;
  transform:rotate(-6deg);
}
.login-icon-watermark img{
  mix-blend-mode:normal;
  filter:none;
}
.login-mobile-brand-shell{
  display:flex;
  align-items:center;
  justify-content:center;
  width:min(390px,90vw);
  padding:18px 22px;
  border-radius:14px;
  background:var(--bridger-navy);
  border:1px solid rgba(214,155,53,.28);
  box-shadow:0 14px 34px rgba(8,16,27,.16);
}
.login-mobile-brand img{width:100%;height:auto}

@media(max-width:1280px){
  .brand{min-width:250px}
  .brand-logo{width:260px}
  .topbar-motto{display:none}
}
@media(max-width:1050px){
  .login-brand-logo{width:min(440px,72vw)}
}
@media(max-width:700px){
  .brand{min-width:0}
  .brand-logo{width:235px}
}

/* ========================================================================== 
   BRIDGER v70 — approved login page implementation
   Keep the real Bridger logo intact and use the scenic bridge image only in
   the lower half of the left panel so the icon reads as a bridge, not stripes.
   ========================================================================== */
body.login-page{
  background:#f6f2eb;
}
.login-experience{
  grid-template-columns:minmax(0,1.18fr) minmax(520px,.82fr);
  background:#f6f2eb;
}
.login-brand-panel{
  background:
    radial-gradient(circle at 18% 18%, rgba(176,140,82,.08), transparent 24rem),
    linear-gradient(180deg,#08101b 0%,#08101b 56%,#0a1320 100%);
  border-right:1px solid rgba(8,16,27,.06);
}
.login-brand-panel:after,
.login-brand-grid,
.login-gold-trace,
.login-icon-watermark{
  display:none;
}
.login-brand-photo{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:43%;
  background-image:
    linear-gradient(to top, rgba(8,16,27,.10) 0%, rgba(8,16,27,.18) 18%, rgba(8,16,27,.50) 48%, rgba(8,16,27,.88) 100%),
    url('login-bridge-photo.png');
  background-size:cover;
  background-position:center bottom;
  background-repeat:no-repeat;
  z-index:0;
}
.login-brand-panel::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  height:38%;
  background:linear-gradient(to top, rgba(8,16,27,.18), transparent 55%);
  z-index:1;
  pointer-events:none;
}
.login-brand-content{
  position:relative;
  z-index:2;
  width:min(690px,78%);
  min-height:100vh;
  display:grid;
  grid-template-rows:auto 1fr auto;
  padding:50px 0 34px clamp(56px,6vw,98px);
}
.login-brand-logo-badge{
  padding:0;
  border:none;
  border-radius:0;
  background:none;
  box-shadow:none;
  backdrop-filter:none;
}
.login-brand-logo{
  display:block;
  width:min(520px,74%);
  max-width:520px;
  height:auto;
}
.login-brand-message{
  max-width:610px;
  margin:0;
  padding:120px 0 0;
  align-self:start;
}
.login-brand-eyebrow{
  gap:14px;
  color:#d9b56a;
  font-size:12px;
  letter-spacing:.17em;
}
.login-brand-eyebrow:before{
  width:42px;
}
.login-brand-message h1{
  margin:20px 0 24px;
  font-size:clamp(54px,5.5vw,74px);
  line-height:.98;
  font-weight:780;
  letter-spacing:-.05em;
  text-wrap:balance;
}
.login-brand-message p{
  max-width:590px;
  color:rgba(240,242,245,.90);
  font-size:clamp(15px,1.15vw,17px);
  line-height:1.62;
}
.login-brand-capabilities{
  position:relative;
  z-index:3;
  gap:12px;
  padding:0 0 14px;
}
.login-brand-capabilities span{
  min-height:40px;
  padding:10px 18px;
  border:1px solid rgba(211,187,139,.65);
  background:rgba(8,16,27,.32);
  color:#f2f0ea;
  font-size:11px;
  letter-spacing:.08em;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
.login-access-panel{
  background:#f6f2eb;
  padding:48px clamp(34px,4.4vw,74px);
}
.login-access-wrap{
  width:min(440px,100%);
}
.login-auth-card{
  padding:42px 34px 34px;
  border-radius:14px;
  border:1px solid rgba(176,140,82,.75);
  background:#fbfaf7;
  box-shadow:0 18px 42px rgba(33,38,45,.06);
}
.login-auth-card .eyebrow{
  color:#b08c52;
  font-size:12px;
  letter-spacing:.14em;
}
.login-auth-card h2{
  margin:10px 0 10px;
  color:#08101b;
  font-size:36px;
  font-weight:780;
  letter-spacing:-.03em;
}
.login-auth-card>p{
  margin:0 0 30px;
  color:#6b6f74;
  font-size:15px;
}
.login-auth-card .field{
  margin-top:16px;
}
.login-auth-card .field>span{
  margin-bottom:8px;
  color:#706b63;
  font-size:11px;
  letter-spacing:.12em;
}
.login-auth-card input{
  min-height:52px;
  padding:12px 14px;
  border:1px solid #cfc2b2;
  border-radius:8px;
  background:#fffefa;
  font-size:15px;
}
.login-auth-card input::placeholder{
  color:#a0a5ab;
}
.login-button{
  min-height:54px;
  margin-top:22px;
  border-radius:8px;
  font-size:15px;
  font-weight:780;
  text-transform:none;
}
.login-access-footer{
  gap:7px;
  margin-top:18px;
}
.login-access-footer strong{
  color:#575147;
  font-size:12px;
  letter-spacing:.14em;
}
.login-access-footer span{
  color:#9a9389;
  font-size:9px;
  letter-spacing:.08em;
}
@media(max-width:1180px){
  .login-experience{grid-template-columns:minmax(0,1.04fr) minmax(420px,.88fr)}
  .login-brand-content{width:84%;padding-left:42px}
  .login-brand-message{padding-top:96px}
  .login-brand-message h1{font-size:clamp(48px,5vw,60px)}
  .login-brand-photo{height:41%}
}
@media(max-width:820px){
  .login-brand-panel{display:none}
  .login-access-panel{min-height:100vh;padding:30px 20px;background:#f6f2eb}
  .login-access-wrap{width:min(470px,100%)}
  .login-mobile-brand{display:flex;justify-content:center;margin-bottom:28px}
  .login-mobile-brand img{width:min(320px,78vw);height:auto}
  .login-auth-card{padding:34px 26px 28px}
}
@media(max-width:460px){
  .login-auth-card{padding:28px 20px 24px}
  .login-auth-card h2{font-size:30px}
  .login-button{min-height:50px}
}

/* ========================================================================== 
   BRIDGER v71 — mobile action hierarchy
   Mobile prioritizes the salesperson's next action, uses a compact hamburger
   header, condenses pilot status, and makes phone actions unmistakably green.
   Desktop layout is intentionally unchanged.
   ========================================================================== */
.mobile-header-menu,
.pilot-mobile-status-strip{
  display:none;
}

.button.call-action,
.button.primary.call-action{
  background:var(--status-green,#147a67);
  border-color:var(--status-green,#147a67);
  color:#fff;
}
.button.call-action:hover,
.button.primary.call-action:hover{
  background:#106655;
  border-color:#106655;
  color:#fff;
}

@media(max-width:700px){
  /* Compact application chrome: logo + hamburger, one row only. */
  .topbar{
    position:relative;
    z-index:1000;
    width:100%;
    min-height:62px;
    height:62px;
    padding:0 13px;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    border-bottom-width:2px;
  }
  .topbar .brand{
    min-width:0;
    flex:0 1 auto;
  }
  .topbar .brand-logo{
    width:190px;
    max-width:calc(100vw - 76px);
    max-height:45px;
  }
  .topbar-right{
    display:none;
  }
  .mobile-header-menu{
    display:block;
    position:relative;
    flex:0 0 auto;
  }
  .mobile-header-menu>summary{
    width:42px;
    height:42px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    border:1px solid rgba(214,155,53,.35);
    border-radius:9px;
    background:rgba(255,255,255,.035);
    cursor:pointer;
    list-style:none;
  }
  .mobile-header-menu>summary::-webkit-details-marker{display:none}
  .mobile-header-menu>summary::marker{display:none;content:""}
  .mobile-header-menu>summary span{
    display:block;
    width:19px;
    height:2px;
    border-radius:2px;
    background:#f7f4ec;
  }
  .mobile-header-menu[open]>summary{
    background:rgba(214,155,53,.12);
    border-color:rgba(214,155,53,.62);
  }
  .mobile-header-menu-panel{
    position:absolute;
    top:50px;
    right:0;
    width:min(286px,calc(100vw - 20px));
    padding:14px;
    border:1px solid rgba(214,155,53,.35);
    border-radius:12px;
    background:#08101b;
    box-shadow:0 18px 42px rgba(0,0,0,.28);
  }
  .mobile-user-identity{
    padding:2px 3px 12px;
    border-bottom:1px solid rgba(255,255,255,.12);
  }
  .mobile-user-identity strong,
  .mobile-user-identity span{
    display:block;
  }
  .mobile-user-identity strong{
    color:#fff;
    font-size:14px;
  }
  .mobile-user-identity span{
    margin-top:2px;
    color:#aeb7c1;
    font-size:11px;
  }
  .mobile-topnav{
    display:grid;
    gap:4px;
    padding:10px 0;
  }
  .mobile-topnav a{
    display:flex;
    align-items:center;
    min-height:42px;
    padding:9px 10px;
    border-radius:8px;
    color:#dfe4e9;
    text-decoration:none;
    font-size:13px;
    font-weight:800;
  }
  .mobile-topnav a.active{
    color:#fff;
    background:rgba(214,155,53,.16);
    box-shadow:inset 3px 0 0 var(--bridger-gold,#d69b35);
  }
  .mobile-signout{
    margin:0;
    padding-top:10px;
    border-top:1px solid rgba(255,255,255,.12);
  }
  .mobile-signout .button{
    width:100%;
    background:transparent;
    border-color:rgba(255,255,255,.20);
    color:#fff;
  }

  /* Get users to the work faster. */
  body:not(.login-page) main{
    padding:14px 12px 42px;
  }
  .dashboard-head{
    margin-bottom:12px;
  }
  .dashboard-head h1{
    margin:2px 0 4px;
    font-size:27px;
    line-height:1.12;
  }
  .dashboard-head p{
    max-width:100%;
    font-size:13px;
    line-height:1.38;
  }

  /* Mobile dashboard work order: Your Move -> On Deck -> Open Measurements -> Sales Availability/status -> Pilot -> Pipeline. */
  .dashboard-priority-flow{
    display:flex;
    flex-direction:column;
  }
  .dashboard-priority-flow .dashboard-filter-panel{order:0}
  .dashboard-priority-flow .your-move-grid{display:contents}
  .dashboard-priority-flow .your-move-hero{
    order:1;
    margin:0 0 10px;
  }
  .dashboard-priority-flow .on-deck-panel{
    order:2;
    margin:0 0 12px;
  }
  .dashboard-priority-flow .open-estimates-panel{
    order:3;
    margin:0 0 12px;
  }
  .dashboard-priority-flow .dashboard-availability-strip{
    order:4;
    margin:0 0 10px;
  }
  .dashboard-priority-flow .pilot-mobile-status-strip{order:4}
  .dashboard-priority-flow .dashboard-pilot-banner{
    order:5;
    margin:0 0 14px;
  }
  .dashboard-priority-flow .dashboard-pipeline-section{order:6}

  /* Replace the two tall pilot cards with one compact glanceable strip. */
  .pilot-availability-grid{
    display:none;
  }
  .pilot-mobile-status-strip{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:7px;
    margin:0 0 10px;
  }
  .pilot-mobile-status-strip a{
    min-width:0;
    padding:10px 5px 9px;
    border:1px solid var(--line);
    border-top:2px solid var(--gold);
    border-radius:9px;
    background:#fffdfa;
    color:inherit;
    text-align:center;
    text-decoration:none;
    box-shadow:0 4px 12px rgba(34,40,45,.035);
  }
  .pilot-mobile-status-strip strong,
  .pilot-mobile-status-strip span{
    display:block;
  }
  .pilot-mobile-status-strip strong{
    color:var(--charcoal);
    font-size:20px;
    line-height:1.05;
  }
  .pilot-mobile-status-strip span{
    margin-top:4px;
    color:#746c61;
    font-size:9px;
    font-weight:850;
    letter-spacing:.06em;
    text-transform:uppercase;
  }

  /* Pilot onboarding becomes supporting context instead of the first task. */
  .dashboard-pilot-banner,
  .pilot-welcome-banner{
    padding:13px 14px;
    gap:10px;
  }
  .dashboard-pilot-banner .eyebrow{
    font-size:10px;
  }
  .pilot-welcome-banner strong,
  .dashboard-pilot-banner strong{
    margin:3px 0 0;
    font-size:15px;
    line-height:1.3;
  }
  .pilot-welcome-banner small,
  .pilot-welcome-banner .pilot-welcome-stats,
  .dashboard-pilot-banner .pilot-banner-actions form{
    display:none;
  }
  .dashboard-pilot-banner .pilot-banner-actions{
    width:100%;
    justify-content:flex-start;
  }
  .dashboard-pilot-banner .pilot-banner-actions .button{
    min-height:34px;
    padding:6px 10px;
    font-size:12px;
  }

  /* Make the primary next action fast to scan and easy to tap. */
  .your-move-hero{
    padding:15px 14px 14px;
  }
  .your-move-title{
    margin-bottom:10px;
  }
  .your-move-title h2{
    font-size:21px;
    line-height:1.2;
  }
  .your-move-subtitle{
    font-size:15px;
  }
  .your-move-actions{
    gap:8px;
    margin-top:13px;
  }
  .your-move-actions .button{
    min-height:44px;
  }
}

@media(max-width:380px){
  .topbar .brand-logo{width:178px}
  .pilot-mobile-status-strip{gap:5px}
  .pilot-mobile-status-strip strong{font-size:19px}
  .pilot-mobile-status-strip span{font-size:8px;letter-spacing:.045em}
}

/* v72 — mobile hamburger alignment fix.
   The hamburger is a <details> element; neutralize the global details spacing
   so it centers vertically inside the compact 62px application header. */
@media(max-width:700px){
  .topbar .mobile-header-menu{
    margin-top:0;
    padding-top:0;
    border-top:0;
    align-self:center;
  }
}


/* BRIDGER v76 — let a franchise salesperson defer today's recommended follow-up
   without losing momentum. The menu stays tertiary; after rescheduling the
   dashboard immediately promotes the next eligible move. */
.your-move-snooze{position:relative;display:inline-block;margin-top:0;padding-top:0;border-top:0}
.your-move-snooze>summary{list-style:none;cursor:pointer;user-select:none}
.your-move-snooze>summary::-webkit-details-marker{display:none}
.your-move-snooze-trigger{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:38px;padding:8px 13px;background:#fff;color:#665d52;border:1px solid #d8cec0;border-radius:9px;font-weight:700;line-height:1.1}
.your-move-snooze-trigger:hover{background:#f9f5ef;border-color:#c6b9a8}
.your-move-snooze-trigger:focus-visible{outline:0;box-shadow:0 0 0 3px rgba(176,140,82,.16)}
.your-move-snooze-trigger::after{content:"";width:8px;height:8px;flex:0 0 8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-1px) rotate(45deg);transition:transform .14s ease}
.your-move-snooze[open]>.your-move-snooze-trigger{background:#f7f1e8}
.your-move-snooze[open]>.your-move-snooze-trigger::after{transform:translateY(1px) rotate(225deg)}
.your-move-snooze-menu{position:absolute;z-index:30;left:0;top:calc(100% + 7px);width:250px;padding:10px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(29,25,20,.16)}
.your-move-snooze-menu>strong{display:block;padding:4px 6px 8px;font-size:12px;color:var(--charcoal)}
.your-move-snooze-menu form{display:block;width:100%;margin:0}
.your-move-snooze-option{display:block;width:100%;padding:9px 8px;border:0;border-top:1px solid #eee5d9;background:transparent;text-align:left;color:var(--charcoal);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.your-move-snooze-option:hover{background:#fbf7f1}
.your-move-snooze-custom{padding:9px 7px 4px;border-top:1px solid #eee5d9}
.your-move-snooze-custom label{display:block;margin-bottom:6px;font-size:11px;font-weight:800;color:#746b60}
.your-move-snooze-custom>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}
.your-move-snooze-custom input[type=date]{min-width:0;padding:7px 8px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--charcoal);font:inherit;font-size:12px}
.your-move-snooze-custom button{padding:7px 10px;border:1px solid #c9a261;border-radius:7px;background:#fffaf1;color:#4f402b;font-weight:800;cursor:pointer}
@media(max-width:760px){.your-move-snooze{width:100%}.your-move-snooze>.your-move-snooze-trigger{display:flex;width:100%;box-sizing:border-box}.your-move-snooze-menu{position:static;width:100%;box-sizing:border-box;margin-top:7px;box-shadow:none}}


/* v79 — activity history delete controls. Keep destructive actions available
   without letting them compete visually with the sales workflow. */
.activity-row-meta{display:flex;align-items:center;justify-content:flex-end;gap:10px;white-space:nowrap}
.activity-delete-form{display:inline-flex;margin:0}
.activity-delete{border:0;background:transparent;padding:2px 0;color:#817a70;font:inherit;font-size:11px;font-weight:700;line-height:1;cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:2px}
.activity-delete:hover{color:#a13a3a;text-decoration-color:currentColor}
.activity-delete:focus-visible{outline:2px solid rgba(161,58,58,.35);outline-offset:3px;border-radius:3px}
@media(max-width:700px){.activity-row-top{display:flex;align-items:flex-start}.activity-row-meta{align-items:flex-end;gap:8px}.activity-row-meta>span{display:block;margin-top:0}.activity-delete{font-size:12px;padding:3px 0}}

/* v81 — the live primary contact is the CRM-facing sales choice.  When sales
   switches away from research, elevate that person's company and contact data
   while keeping the recorded property owner visible as secondary context. */
.crm-company-title{max-width:900px;line-height:1.08}
.crm-company-meta{font-size:13px;color:var(--muted)}
.contact-company-primary{margin:-2px 0 12px;padding:13px 14px;border:1px solid #dfd3c3;border-radius:9px;background:#fbf7f1}
.contact-company-primary>span{display:block;margin-bottom:3px;color:#8f7a59;font-size:10px;font-weight:850;letter-spacing:.1em;text-transform:uppercase}
.contact-company-primary>strong{display:block;color:var(--charcoal);font-size:20px;line-height:1.2}
.contact-company-primary>small{display:block;margin-top:4px;color:var(--muted);font-size:11px}
.contact-selection-badge{margin-left:6px;vertical-align:middle}
.lead-crm-company{font-size:15px;line-height:1.25;color:var(--charcoal)}
@media(max-width:700px){.contact-company-primary>strong{font-size:18px}.crm-company-meta{font-size:12px}}


/* ==========================================================================
   BRIDGER v84 — compact sales lead detail + CRM copy workflow
   ========================================================================== */

/* Pilot status is a single-line disclosure in normal sales use. */
.pilot-status-compact{padding:0;border-left:3px solid var(--sage);overflow:visible}
.pilot-status-compact>summary{margin:0;padding:11px 14px;border:0;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}
.pilot-status-compact>summary::-webkit-details-marker{display:none}
.pilot-status-summary-main{display:flex;align-items:center;gap:10px;min-width:0}
.pilot-status-summary-main .eyebrow{white-space:nowrap}
.pilot-status-summary-main strong{font-size:14px;color:var(--charcoal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pilot-status-summary-meta{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.pilot-credits-inline{font-size:11px;color:var(--muted);white-space:nowrap}
.disclosure-chevron{display:inline-block;width:8px;height:8px;margin:0 2px 3px 5px;border-right:2px solid #7b746b;border-bottom:2px solid #7b746b;transform:rotate(45deg);transition:transform .14s ease}
details[open]>.pilot-status-summary .disclosure-chevron,details[open]>.compact-chain-summary .disclosure-chevron,details[open]>.report-problem-summary .disclosure-chevron{transform:translateY(3px) rotate(225deg)}
.pilot-status-body{padding:0 14px 14px;border-top:1px solid var(--line)}
.pilot-status-body .pilot-unlocked-meta{margin:10px 0}
.pilot-known-relationship{margin:0;padding:0;border:0}
.pilot-known-relationship h3{margin:10px 0 4px;font-size:14px}
.pilot-known-relationship p{margin:0 0 10px}

/* Lead Contacts is now the canonical CRM-facing contact surface. */
.lead-contact-card{padding:14px}
.lead-contact-card.primary-contact{border-color:#b99a5a;background:#fffaf2;box-shadow:inset 3px 0 0 var(--gold)}
.lead-contact-identity{min-width:0;flex:1}
.crm-field-label{display:block;color:#8a7a65;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.095em}
.crm-field-label.title-label{margin-top:6px}
.copy-value-row{display:flex;align-items:center;gap:7px;min-width:0}
.copy-value-row>strong,.copy-value-row>span{min-width:0;overflow-wrap:anywhere}
.contact-name-row strong{font-size:19px;line-height:1.2;color:var(--charcoal)}
.contact-title-row span{font-size:13px;font-weight:750;color:#55534f}
.copy-value-button{position:relative;flex:0 0 28px;width:28px;height:28px;padding:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#786d5d;cursor:pointer}
.copy-value-button:hover{background:#f1eadf;border-color:#ddd0bd;color:#4f4538}
.copy-value-button:focus-visible{outline:2px solid rgba(176,140,82,.35);outline-offset:2px}
.copy-icon::before,.copy-icon::after{content:"";position:absolute;width:9px;height:10px;border:1.5px solid currentColor;border-radius:2px}
.copy-icon::before{left:8px;top:7px}
.copy-icon::after{left:11px;top:10px;background:inherit}
.copy-value-button.copied{background:#e8f3ee;border-color:#b9d5c7;color:#1a765f}
.copy-value-button.copied .copy-icon::before{content:"✓";position:absolute;left:7px;top:2px;width:auto;height:auto;border:0;font-size:17px;font-weight:900}
.copy-value-button.copied .copy-icon::after{display:none}
.lead-contact-company{margin-top:11px;padding:10px 12px;border:1px solid #e4dbcf;border-radius:8px;background:#fbf8f3}
.lead-contact-company.primary-company{padding:12px 13px;border-color:#d8c4a2;background:#f8f1e4}
.lead-contact-company>span{display:block;color:#8f7a59;font-size:9px;font-weight:850;letter-spacing:.1em;text-transform:uppercase;margin-bottom:3px}
.lead-contact-company strong{font-size:17px;color:var(--charcoal);line-height:1.25}
.lead-contact-company.primary-company strong{font-size:20px}
.lead-contact-company small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.lead-contact-crm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;margin-top:10px}
.crm-copy-field{padding:9px 10px;border:1px solid #e7dfd4;border-radius:8px;background:#fff}
.crm-copy-field>span{display:block;color:#8a7a65;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.09em;margin-bottom:2px}
.crm-copy-field strong{font-size:13px;color:var(--charcoal)}
.crm-copy-field small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.crm-copy-field small.warn-text{color:#9c4c3f}
.lead-contact-secondary-routes{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:9px;color:#645f57;font-size:11px}
.lead-contact-secondary-routes a{color:var(--gold-deep);font-weight:750}
.contact-research-details{margin-top:9px;padding-top:8px;border-top:1px solid #e8dfd5}
.contact-research-details>summary{font-size:11px;color:#71695f;font-weight:750}
.contact-research-details p{margin:7px 0 0;color:var(--muted);font-size:11px;line-height:1.45}
.contact-research-details .lead-contact-sources{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.contact-research-details .lead-contact-sources a{font-size:11px;color:var(--gold-deep)}
.copy-toast{position:fixed;left:50%;bottom:24px;z-index:100;transform:translate(-50%,10px);padding:8px 12px;border-radius:8px;background:#1f2929;color:#fff;font-size:12px;font-weight:750;opacity:0;pointer-events:none;transition:opacity .12s ease,transform .12s ease;box-shadow:0 8px 24px rgba(0,0,0,.18)}
.copy-toast.show{opacity:1;transform:translate(-50%,0)}

/* Sales users only need the control-chain rationale on demand. */
.compact-chain-panel{padding:0;overflow:visible}
.compact-chain-panel>summary{margin:0;padding:12px 14px;border:0;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer}
.compact-chain-panel>summary::-webkit-details-marker{display:none}
.compact-chain-summary>div:first-child{display:flex;align-items:center;gap:10px;min-width:0}
.compact-chain-summary>div:first-child strong{font-size:14px;color:var(--charcoal);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-chain-confidence{display:flex;align-items:center;gap:7px;white-space:nowrap;color:var(--muted);font-size:10px}
.compact-chain-confidence strong{font-size:16px;color:var(--charcoal)}
.compact-chain-body{padding:12px 14px 14px;border-top:1px solid var(--line)}
.compact-chain-path{display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:#625d55;font-size:11px}
.compact-chain-path b,.compact-chain-manager b{color:var(--charcoal);margin-right:3px}
.compact-arrow{color:#ad9c82}
.compact-chain-manager{margin-top:8px;color:#625d55;font-size:11px}
.compact-chain-body p{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.45}

/* Keep pilot feedback available without making internal QA dominate the page. */
.report-problem-panel{padding:0;overflow:visible}
.report-problem-panel>summary{margin:0;padding:12px 14px;border:0;list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer}
.report-problem-panel>summary::-webkit-details-marker{display:none}
.report-problem-summary>div:first-child{display:flex;align-items:center;gap:9px}
.report-problem-summary>div:first-child strong{font-size:14px;color:var(--charcoal)}
.report-problem-body{padding:0 14px 14px;border-top:1px solid var(--line)}
.report-problem-body .review-subsection:first-child{border-top:0;margin-top:0;padding-top:14px}

@media(max-width:760px){
  .pilot-status-compact>summary,.compact-chain-panel>summary,.report-problem-panel>summary{align-items:flex-start;flex-direction:column}
  .pilot-status-summary-meta{justify-content:flex-start}
  .lead-contact-crm-grid{grid-template-columns:1fr}
  .lead-contact-company.primary-company strong{font-size:18px}
  .copy-value-button{flex-basis:32px;width:32px;height:32px}
  .compact-chain-confidence{width:100%;justify-content:flex-start}
}

/* ==========================================================================
   BRIDGER v85 — sales lead workspace: People | Activity | Property
   ========================================================================== */

/* The CRM account belongs to the lead, not to every person on the lead. */
.lead-account-crm{
  margin:10px 0 12px;
  padding:11px 12px;
  border:1px solid #d8c4a2;
  border-left:3px solid var(--gold);
  border-radius:8px;
  background:#f8f1e4;
}
.lead-account-crm>span,
.lead-contact-employer>span{
  display:block;
  margin-bottom:3px;
  color:#8f7a59;
  font-size:9px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.lead-account-crm strong{font-size:18px;line-height:1.2;color:var(--charcoal)}
.lead-account-domain{display:flex;align-items:center;gap:7px;margin-top:5px;min-width:0}
.lead-account-domain>span{color:#8f7a59;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.lead-account-domain .copy-value-row{min-width:0}
.lead-account-domain strong{font-size:12px;line-height:1.2;font-weight:750}
.lead-account-crm small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.lead-contact-employer{
  margin-top:8px;
  padding:7px 9px;
  border:1px solid #e4dbcf;
  border-radius:7px;
  background:#fbf8f3;
}
.lead-contact-employer strong{font-size:12px;color:var(--charcoal)}

/* Wide sales screens become a real workspace instead of a research document. */
.detail-grid.sales-three-column{
  grid-template-columns:minmax(0,32fr) minmax(0,40fr) minmax(280px,28fr);
  gap:14px;
  align-items:start;
}
.sales-three-column>.detail-main{
  grid-column:1/3;
  display:grid;
  grid-template-columns:minmax(0,4fr) minmax(0,5fr);
  gap:14px;
  align-items:start;
  min-width:0;
}
.sales-three-column>.detail-side{
  grid-column:3;
  min-width:0;
  align-content:start;
}
.sales-three-column>.detail-main>.pilot-status-compact{grid-column:1/-1}
.sales-three-column>.detail-main>.lead-contacts-panel{grid-column:1;min-width:0}
.sales-three-column>.detail-main>.activity-panel{grid-column:2;min-width:0}

/* Contacts are intentionally denser than the activity workspace. */
.sales-three-column .lead-contacts-panel{padding:15px}
.sales-three-column .lead-contacts-panel .section-title{margin-bottom:7px}
.sales-three-column .contacts-help{margin:0 0 8px;font-size:10px;line-height:1.4}
.sales-three-column .lead-contact-list{gap:7px}
.sales-three-column .lead-contact-card{padding:11px 12px}
.sales-three-column .lead-contact-card:not(.primary-contact){padding:9px 10px;background:#fffdfa}
.sales-three-column .lead-contact-card:not(.primary-contact) .crm-field-label{font-size:8px}
.sales-three-column .lead-contact-card:not(.primary-contact) .crm-field-label.title-label{margin-top:3px}
.sales-three-column .lead-contact-card:not(.primary-contact) .contact-name-row strong{font-size:15px}
.sales-three-column .lead-contact-card:not(.primary-contact) .contact-title-row span{font-size:11px}
.sales-three-column .lead-contact-card:not(.primary-contact) .lead-contact-crm-grid{margin-top:7px;gap:6px}
.sales-three-column .lead-contact-card:not(.primary-contact) .crm-copy-field{padding:6px 7px}
.sales-three-column .lead-contact-card:not(.primary-contact) .crm-copy-field small{display:none}
.sales-three-column .lead-contact-card:not(.primary-contact) .copy-value-button{width:25px;height:25px;flex-basis:25px}
.sales-three-column .lead-contact-card:not(.primary-contact) .contact-research-details{margin-top:6px;padding-top:6px}
.sales-three-column .lead-contact-card:not(.primary-contact) .lead-contact-actions{margin-top:6px}
.sales-three-column .lead-contact-badges .badge{font-size:8px;padding:3px 6px}

/* Activity is the center column and gets the strongest working space. */
.sales-three-column .activity-panel{padding:16px;border-top-width:3px}
.sales-three-column .activity-title{margin-bottom:8px}
.sales-three-column .activity-help{margin-bottom:9px}
.sales-three-column .activity-options-grid{grid-template-columns:minmax(0,1.35fr) minmax(120px,.65fr)}

/* Right column is property context plus supporting rationale/feedback. */
.sales-three-column>.detail-side{display:grid;gap:14px}
.sales-three-column .map-panel{padding:15px}
.sales-three-column .map-frame{height:300px}
.sales-three-column .facility-tabs{max-height:178px}
.sales-three-column .compact-chain-panel,
.sales-three-column .report-problem-panel{margin:0}

/* Two-column fallback for ordinary laptops; the activity remains immediately
   after contacts instead of being buried under research content. */
@media(max-width:1280px){
  .detail-grid.sales-three-column{grid-template-columns:minmax(0,1fr) minmax(320px,.58fr)}
  .sales-three-column>.detail-main{grid-column:1;grid-template-columns:1fr;gap:14px}
  .sales-three-column>.detail-main>.pilot-status-compact,
  .sales-three-column>.detail-main>.lead-contacts-panel,
  .sales-three-column>.detail-main>.activity-panel{grid-column:1}
  .sales-three-column>.detail-side{grid-column:2}
}

/* Phone/tablet: sales sequence is Who -> Activity -> Property. */
@media(max-width:850px){
  .detail-grid.sales-three-column{grid-template-columns:1fr}
  .sales-three-column>.detail-main,
  .sales-three-column>.detail-side{grid-column:1}
  .sales-three-column .map-frame{height:300px}
}


/* v86 — in the narrow People column, badges must never compete with the
   copy-ready identity fields for horizontal space. Keep name/title full width
   and let metadata wrap on its own row underneath. */
.sales-three-column .lead-contact-head{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:7px;
}
.sales-three-column .lead-contact-identity{width:100%;min-width:0}
.sales-three-column .lead-contact-badges{
  width:100%;
  justify-content:flex-start;
  align-items:center;
  gap:4px;
}
.sales-three-column .contact-name-row,
.sales-three-column .contact-title-row{width:100%;min-width:0}
.sales-three-column .contact-name-row strong,
.sales-three-column .contact-title-row span{
  min-width:0;
  overflow-wrap:normal;
  word-break:normal;
}


/* v87 — sales-visible research notes belong with the contact they explain.
   Primary notes are immediately useful but compact; alternate-contact notes
   stay collapsed. Internal research provenance remains internal. */
.contact-research-notes{margin-top:9px;padding-top:8px;border-top:1px solid #e8dfd5}
.contact-research-notes>span{display:block;margin-bottom:4px;color:#8a7a65;font-size:9px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
.contact-research-notes-text{margin:0;color:#625d55;font-size:11px;line-height:1.48;white-space:pre-wrap}
.contact-research-notes-text.is-clamped{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.research-notes-toggle{margin:5px 0 0;padding:0;border:0;background:transparent;color:var(--gold-deep);font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.research-notes-toggle:hover{text-decoration:underline}
.secondary-research-notes>summary{color:#6f6557}
.sales-three-column .lead-contact-card:not(.primary-contact) .secondary-research-notes{margin-top:6px;padding-top:6px}
.sales-three-column .primary-research-notes{margin-top:8px}

/* ========================================================================== 
   BRIDGER v89 — Contact Activity grouped workflow (Lead Details)
   Mirrors the approved Progress / Phone / Email / Status working layout.
   ========================================================================== */
.activity-panel .activity-contact-select{margin:12px 0 12px}
.activity-panel .activity-contact-select>span{
  display:block;margin-bottom:7px;color:var(--muted);font-size:12px;font-weight:850;
  text-transform:uppercase;letter-spacing:.055em
}
.activity-panel .activity-contact-select select{min-height:44px;font-size:14px}

.activity-panel .activity-priority-control{
  display:block;margin:0 0 12px;padding:11px 12px 10px;border:1px solid #e3d9cb;
  border-radius:9px;background:#fbf7f0
}
.activity-priority-heading{
  margin:0 0 10px;color:var(--muted);font-size:12px;font-weight:850;
  text-transform:uppercase;letter-spacing:.055em
}
.activity-priority-auto-row{
  display:grid;grid-template-columns:minmax(175px,.78fr) minmax(0,1.22fr);gap:18px;align-items:stretch
}
.activity-auto-field{margin:0!important;align-self:end}
.activity-auto-field>span,.activity-manual-label{
  display:block;margin-bottom:6px;color:#4d5358;font-size:11px;font-weight:850;line-height:1.25
}
.activity-auto-field>span{text-transform:none;letter-spacing:0}
.activity-auto-field>span small,.activity-manual-label small{
  color:var(--muted);font-size:10px;font-weight:650
}
.activity-auto-field select{min-height:40px;font-size:13px}
.activity-panel .activity-priority-explainer{
  display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;padding:3px 0 3px 18px;
  border-left:1px solid #ddd2c4
}
.activity-panel .activity-priority-explainer strong{font-size:12px}
.activity-panel .activity-priority-explainer span,.activity-panel .activity-priority-explainer a{font-size:11px;line-height:1.35}
.activity-panel .activity-priority-explainer a{width:max-content;max-width:100%;margin-top:2px}
.activity-priority-manual-row{
  display:grid;grid-template-columns:minmax(220px,.78fr) minmax(0,1.22fr);gap:18px;align-items:end;
  margin-top:10px;padding-top:10px;border-top:1px dashed #ddd2c4
}
.activity-manual-control{min-width:0}
.activity-manual-help{align-self:end;padding:0 0 8px;color:var(--muted);font-size:11px;line-height:1.35}
.activity-enter-followup{
  display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-height:40px;
  padding:7px 12px;border:1px solid #07877b;border-radius:7px;background:#fffdfa;color:#08766d;
  font:inherit;font-size:12px;font-weight:850;cursor:pointer
}
.activity-enter-followup:hover{background:#eef8f6}
.activity-enter-followup svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

.activity-action-groups{display:grid;gap:10px;margin-top:3px}
.activity-action-group{min-width:0}
.activity-group-heading{display:flex;align-items:center;gap:9px;margin:0 0 7px;color:var(--muted);font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}
.activity-group-heading i{display:block;flex:1;height:1px;background:var(--line)}
.activity-action-row{display:flex;align-items:stretch;gap:7px;min-width:0}
.activity-progress-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.activity-phone-row .activity-button,.activity-email-row .activity-button{flex:0 1 180px}
.activity-phone-row .activity-button:last-child{flex-basis:250px}
.activity-status-row .activity-button{flex:0 1 195px}

.activity-panel .activity-button{
  display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:44px;
  padding:7px 9px;border-width:1px;border-style:solid;border-radius:7px;background:#fffdfa;
  font-size:11px;font-weight:850;line-height:1.14;text-align:left;box-shadow:none
}
.activity-panel .activity-button svg{
  width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.85;
  stroke-linecap:round;stroke-linejoin:round
}
.activity-panel .activity-button span{min-width:0}
.activity-panel .activity-button.progress-action{
  border-color:#07877b;color:#08766d;background:#fffdfa
}
.activity-panel .activity-button.progress-action:hover{border-color:#046f66;background:#eef8f6}
.activity-panel .activity-button.neutral-action{
  border-color:#8d979c;color:#343d43;background:#fffdfa
}
.activity-panel .activity-button.neutral-action:hover{border-color:#657177;background:#f4f5f5}
.activity-panel .activity-button.negative-action{
  border-color:#df5555;color:#b71920;background:#fffdfa
}
.activity-panel .activity-button.negative-action:hover{border-color:#c93238;background:#fff4f4}
.activity-panel .activity-button:disabled{opacity:.42;cursor:not-allowed;transform:none}
.activity-panel .activity-button:disabled:hover{background:inherit;border-color:inherit}

/* Keep the disclosure immediately under the action groups like the mockup. */
.activity-panel .activity-options{margin-top:3px;padding:7px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.activity-panel .activity-options summary{font-size:11px}
.activity-panel .activity-history-head{margin-top:10px}

@media(max-width:980px){
  .activity-progress-row{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
  .activity-priority-auto-row,.activity-priority-manual-row{grid-template-columns:1fr;gap:9px}
  .activity-panel .activity-priority-explainer{padding:9px 0 0;border-left:0;border-top:1px solid #ddd2c4}
  .activity-priority-manual-row{align-items:start}
  .activity-manual-help{padding:0}
  .activity-progress-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .activity-action-row:not(.activity-progress-row){display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .activity-phone-row .activity-button,.activity-email-row .activity-button,.activity-phone-row .activity-button:last-child,.activity-status-row .activity-button{width:auto;flex:none}
}
@media(max-width:440px){
  .activity-progress-row,.activity-action-row:not(.activity-progress-row){grid-template-columns:1fr}
  .activity-panel .activity-button{justify-content:flex-start;min-height:42px}
}

/* ========================================================================== 
   BRIDGER v90 — YOUR MOVE quick outreach
   Mobile-first execution surface: contact -> call/email -> result -> dashboard.
   ========================================================================== */
.dashboard-activity-saved{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  margin:0 0 12px;padding:10px 13px;border:1px solid #b9d9d0;border-radius:9px;
  background:#eef8f5;color:#176858;font-size:12px;font-weight:800
}
.dashboard-activity-saved small{color:#5d756f;font-size:11px;font-weight:650}

.quick-outreach-shell{width:min(820px,100%);margin:0 auto}
.quick-outreach-topnav{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;font-size:12px;font-weight:800}
.quick-outreach-topnav a{color:#695c4a;text-decoration:none}
.quick-outreach-topnav a:hover{text-decoration:underline}
.quick-outreach-card{padding:18px 18px 20px;border-top:3px solid var(--gold)}
.quick-outreach-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.quick-outreach-title-row h1{margin:4px 0 2px;font-size:27px;line-height:1.12;color:var(--charcoal)}
.quick-outreach-title-row p{margin:0;color:#5f5a53;font-size:14px;font-weight:700}
.quick-property-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.75fr);gap:14px;margin:14px 0 12px;padding:12px 13px;border:1px solid #e5dacb;border-radius:9px;background:#fbf7f0}
.quick-property-summary span{display:block;color:#8a7860;font-size:9px;font-weight:900;letter-spacing:.08em;text-transform:uppercase}
.quick-property-summary strong{display:block;margin-top:3px;color:var(--charcoal);font-size:13px;line-height:1.35}
.quick-property-summary small{display:block;margin-top:3px;color:var(--muted);font-size:11px}
.quick-property-summary p{align-self:center;margin:0;color:#675f55;font-size:11px;line-height:1.45}
.quick-contact-select{margin:0 0 9px}
.quick-contact-select>span,.quick-input-grid .field>span,.quick-followup-grid .field>span{font-size:11px;font-weight:850}
.quick-contact-select select{min-height:45px;font-size:14px}
.quick-contact-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.quick-contact-action{display:grid!important;grid-template-columns:auto auto minmax(0,1fr);align-items:center;justify-content:start;gap:8px;min-height:52px;padding:8px 13px!important;text-align:left}
.quick-contact-action svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.quick-contact-action span{font-size:13px;font-weight:900}
.quick-contact-action small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;font-weight:650;opacity:.86}
.quick-return-hint{margin:8px 1px 13px;color:#746c62;font-size:11px;line-height:1.4}
.quick-next-followup{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;margin:0 0 12px;padding:9px 11px;border-left:3px solid var(--gold);background:#fcf8f1;border-radius:0 7px 7px 0}
.quick-next-followup span{color:#8a7860;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase}
.quick-next-followup strong{color:var(--charcoal);font-size:12px}
.quick-next-followup small{color:var(--muted);font-size:10px}
.quick-input-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(190px,.6fr);gap:10px;align-items:start}
.quick-input-grid .field{margin:0}
.quick-note-field textarea{min-height:67px;resize:vertical}
.quick-priority-field select{min-height:42px}
.quick-priority-field .field-note{display:block;margin-top:5px;line-height:1.35}
.quick-custom-followup{margin:11px 0 15px;padding:0;border:1px solid #ded3c4;border-radius:8px;background:#fffdfa}
.quick-custom-followup>summary{padding:10px 12px;cursor:pointer;color:#5f574c;font-size:11px;font-weight:850;list-style:none}
.quick-custom-followup>summary::-webkit-details-marker{display:none}
.quick-custom-followup>summary::before{content:"+";display:inline-block;width:17px;color:#9a773d;font-size:15px;font-weight:800}
.quick-custom-followup[open]>summary::before{content:"−"}
.quick-custom-followup[open]>summary{border-bottom:1px solid #e6ddd1}
.quick-followup-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;padding:11px 12px 4px}
.quick-followup-grid .field{margin:0}
.quick-followup-shortcuts{display:flex;gap:6px;flex-wrap:wrap;padding:6px 12px 8px}
.quick-followup-shortcuts button{padding:6px 9px;border:1px solid #d8cdbf;border-radius:7px;background:#fff;color:#5d554a;font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.quick-custom-followup>.follow-up-required{margin:0 12px 8px}
.quick-custom-followup>.button{margin:0 12px 12px}
.quick-outcome-intro{margin:17px 0 12px;padding-top:2px}
.quick-outcome-intro h2{margin:3px 0 0;color:var(--charcoal);font-size:20px}
.quick-outcome-group{margin-top:12px}
.quick-outcome-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.quick-outcome-grid-three{grid-template-columns:repeat(3,minmax(0,1fr))}
.quick-outcome-grid-progress{grid-template-columns:repeat(4,minmax(0,1fr))}
.quick-outreach-card .activity-button{
  display:flex;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:48px;
  padding:8px 10px;border-width:1px;border-style:solid;border-radius:8px;background:#fffdfa;
  font-size:11px;font-weight:850;line-height:1.18;text-align:center;box-shadow:none
}
.quick-outreach-card .activity-button svg{width:19px;height:19px;flex:0 0 19px;fill:none;stroke:currentColor;stroke-width:1.85;stroke-linecap:round;stroke-linejoin:round}
.quick-outreach-card .activity-button.progress-action{border-color:#07877b;color:#08766d;background:#fffdfa}
.quick-outreach-card .activity-button.progress-action:hover{border-color:#046f66;background:#eef8f6}
.quick-outreach-card .activity-button.neutral-action{border-color:#8d979c;color:#343d43;background:#fffdfa}
.quick-outreach-card .activity-button.neutral-action:hover{border-color:#657177;background:#f4f5f5}
.quick-outreach-card .activity-button.negative-action{border-color:#df5555;color:#b71920;background:#fffdfa}
.quick-outreach-card .activity-button.negative-action:hover{border-color:#c93238;background:#fff4f4}
.quick-no-contact{padding:24px 4px 6px;text-align:center}
.quick-no-contact h2{margin:5px 0 7px;color:var(--charcoal)}
.quick-no-contact p{max-width:560px;margin:0 auto 14px;color:var(--muted);line-height:1.5}

@media(max-width:700px){
  .dashboard-activity-saved{align-items:flex-start;flex-direction:column;gap:2px;margin-bottom:10px}
  .quick-outreach-shell{margin-top:-2px}
  .quick-outreach-topnav{margin-bottom:8px}
  .quick-outreach-card{padding:14px 12px 18px;border-radius:10px}
  .quick-outreach-title-row h1{font-size:22px}
  .quick-outreach-title-row p{font-size:13px}
  .quick-outreach-title-row .sales-status{font-size:9px;white-space:nowrap}
  .quick-property-summary{grid-template-columns:1fr;gap:7px;margin:11px 0 10px;padding:10px 11px}
  .quick-property-summary p{padding-top:6px;border-top:1px solid #e3d8ca}
  .quick-contact-actions{grid-template-columns:1fr}
  .quick-contact-action{min-height:55px}
  .quick-contact-action span{font-size:14px}
  .quick-input-grid{grid-template-columns:1fr;gap:9px}
  .quick-note-field textarea{min-height:62px}
  .quick-followup-grid{grid-template-columns:1fr}
  .quick-outcome-intro{margin-top:15px}
  .quick-outcome-grid,.quick-outcome-grid-three,.quick-outcome-grid-progress{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-outreach-card .activity-button{justify-content:flex-start;min-height:52px;padding:9px 10px;text-align:left}
  .quick-outcome-status{padding-bottom:2px}
}
@media(max-width:390px){
  .quick-outreach-title-row{gap:8px}
  .quick-outreach-title-row h1{font-size:20px}
  .quick-outcome-grid,.quick-outcome-grid-three,.quick-outcome-grid-progress{grid-template-columns:1fr}
  .quick-outreach-card .activity-button{min-height:48px}
}
.quick-outreach-card .activity-button:disabled{opacity:.42;cursor:not-allowed;background:#f6f3ee;border-color:#d7d0c7;color:#8e8a84}
.quick-outreach-card .activity-button:disabled:hover{background:#f6f3ee;border-color:#d7d0c7;color:#8e8a84}
.quick-log-options{margin:10px 0 13px;padding:0;border:1px solid #ded3c4;border-radius:8px;background:#fffdfa}
.quick-log-options>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;cursor:pointer;color:#5f574c;font-size:11px;font-weight:850;list-style:none}
.quick-log-options>summary::-webkit-details-marker{display:none}
.quick-log-options>summary>span::before{content:"+";display:inline-block;width:17px;color:#9a773d;font-size:15px;font-weight:800}
.quick-log-options[open]>summary>span::before{content:"−"}
.quick-log-options>summary small{padding:3px 7px;border-radius:999px;background:#f5ecde;color:#7b6647;font-size:9px;font-weight:850;text-transform:uppercase;letter-spacing:.04em}
.quick-log-options[open]>summary{border-bottom:1px solid #e6ddd1}
.quick-log-options-body{padding:11px 12px 12px}
.quick-log-options-body .quick-custom-followup{margin-bottom:0}
@media(max-width:700px){.quick-log-options{margin-top:8px}.quick-log-options-body{padding:10px}.quick-outcome-intro{margin-top:11px}}
.quick-contact-actions.single-action{grid-template-columns:1fr}
@media(max-width:700px){
  .quick-contact-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
  .quick-contact-actions.single-action{grid-template-columns:1fr}
  .quick-contact-action{grid-template-columns:auto auto!important;justify-content:center!important;text-align:center}
  .quick-contact-action small{display:none}
}
.quick-contact-action[hidden]{display:none!important}

/* v92 automatic company-domain identity */
.company-identity-line strong{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.company-domain-edit{margin-top:6px;padding-top:6px;border-top:0;text-align:right}
.company-domain-edit>summary{display:inline-block;color:var(--muted);font-size:11px;font-weight:700}
.company-domain-form{display:grid;grid-template-columns:minmax(180px,320px) auto;gap:8px;align-items:end;justify-content:end;margin-top:8px}
.company-domain-form .field{margin:0;text-align:left}
.domain-conflict-note{margin-top:7px;color:var(--warn)}
@media(max-width:700px){.company-domain-form{grid-template-columns:1fr;justify-content:stretch}.company-domain-edit{text-align:left}}

/* ============================================================================
   BRIDGER v94 — Lead Details workspace order
   Desktop: Property | Contact Activity | Lead Contacts
   Mobile:  Lead Contacts -> Contact Activity -> Property
   ========================================================================== */

/* Let the sales-only Lead Details children participate in the outer grid so
   desktop placement can differ from mobile reading order without duplicating
   markup. DOM order remains contacts -> activity -> property, which is exactly
   the desired phone workflow. */
.detail-grid.sales-three-column > .detail-main,
.detail-grid.sales-three-column > .detail-side{
  display:contents;
}

/* Desktop: property context left, activity workspace center, contacts right. */
.detail-grid.sales-three-column{
  grid-template-columns:minmax(280px,28fr) minmax(0,40fr) minmax(0,32fr);
  gap:14px;
  align-items:start;
}
.sales-three-column > .detail-main > .pilot-status-compact{
  grid-column:1/-1;
}
.sales-three-column > .detail-side > .map-panel{
  grid-column:1;
  min-width:0;
}
.sales-three-column > .detail-main > .activity-panel{
  grid-column:2;
  min-width:0;
}
.sales-three-column > .detail-main > .lead-contacts-panel{
  grid-column:3;
  min-width:0;
}
.sales-three-column > .detail-side > .compact-chain-panel,
.sales-three-column > .detail-side > .report-problem-panel{
  grid-column:1;
  min-width:0;
}

/* Ordinary laptops: keep property on the left while the action surfaces stack
   on the right. This preserves context without squeezing Activity too tightly. */
@media(max-width:1280px){
  .detail-grid.sales-three-column{
    grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  }
  .sales-three-column > .detail-main > .pilot-status-compact{grid-column:1/-1}
  .sales-three-column > .detail-side > .map-panel,
  .sales-three-column > .detail-side > .compact-chain-panel,
  .sales-three-column > .detail-side > .report-problem-panel{grid-column:1}
  .sales-three-column > .detail-main > .lead-contacts-panel,
  .sales-three-column > .detail-main > .activity-panel{grid-column:2}
}

/* Phone/tablet: source order wins — contacts first for calling, activity second
   for logging, property last for reference. */
@media(max-width:850px){
  .detail-grid.sales-three-column{grid-template-columns:1fr}
  .sales-three-column > .detail-main > .pilot-status-compact,
  .sales-three-column > .detail-main > .lead-contacts-panel,
  .sales-three-column > .detail-main > .activity-panel,
  .sales-three-column > .detail-side > .map-panel,
  .sales-three-column > .detail-side > .compact-chain-panel,
  .sales-three-column > .detail-side > .report-problem-panel{grid-column:1}
}

/* ============================================================================
   BRIDGER v95 — Lead Details three-column fix
   Keep Property as a real stacked column. Only flatten detail-main so the
   Activity and Contacts panels can sit side-by-side without row gaps.
   ========================================================================== */

/* Desktop: full-width pilot status, then Property | Activity | Contacts. */
.detail-grid.sales-three-column{
  grid-template-columns:minmax(290px,28fr) minmax(0,40fr) minmax(360px,32fr);
  gap:14px;
  align-items:start;
}
.detail-grid.sales-three-column > .detail-main{
  display:contents;
}
.detail-grid.sales-three-column > .detail-side{
  display:grid;
  gap:14px;
  grid-column:1;
  grid-row:2;
  align-content:start;
  min-width:0;
}
.sales-three-column > .detail-main > .pilot-status-compact{
  grid-column:1/-1;
  grid-row:1;
}
.sales-three-column > .detail-main > .activity-panel{
  grid-column:2;
  grid-row:2;
  min-width:0;
}
.sales-three-column > .detail-main > .lead-contacts-panel{
  grid-column:3;
  grid-row:2;
  min-width:0;
}

/* Laptop: Property remains left; Activity and Contacts stack independently on
   the right. The property column spans both right-hand rows, so it does not get
   pushed down by the height of Lead Contacts. */
@media(max-width:1280px){
  .detail-grid.sales-three-column{
    grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
  }
  .detail-grid.sales-three-column > .detail-side{
    grid-column:1;
    grid-row:2 / span 2;
  }
  .sales-three-column > .detail-main > .pilot-status-compact{
    grid-column:1/-1;
    grid-row:1;
  }
  .sales-three-column > .detail-main > .activity-panel{
    grid-column:2;
    grid-row:2;
  }
  .sales-three-column > .detail-main > .lead-contacts-panel{
    grid-column:2;
    grid-row:3;
  }
}

/* Mobile: action-first reading order. */
@media(max-width:850px){
  .detail-grid.sales-three-column{grid-template-columns:1fr}
  .detail-grid.sales-three-column > .detail-side{
    grid-column:1;
    grid-row:4;
  }
  .sales-three-column > .detail-main > .pilot-status-compact{
    grid-column:1;
    grid-row:1;
  }
  .sales-three-column > .detail-main > .lead-contacts-panel{
    grid-column:1;
    grid-row:2;
  }
  .sales-three-column > .detail-main > .activity-panel{
    grid-column:1;
    grid-row:3;
  }
}

/* v98: account-level phone routes live with the CRM company, not a person. */
.lead-account-phone{flex-wrap:wrap}
.lead-account-phone>small{flex-basis:100%;margin-top:0}


/* v101: make call routes visually prominent for sales use, especially on mobile. */
.lead-account-phone>span{font-size:10px}
.lead-account-phone strong{font-size:16px;font-weight:850;line-height:1.2}
.lead-account-phone>small{font-size:11px}
.phone-copy-field>span{font-size:10px}
.phone-copy-field strong{font-size:16px;font-weight:850;line-height:1.25}
.phone-copy-field small{font-size:11px}
.sales-three-column .lead-contact-card:not(.primary-contact) .phone-copy-field strong{font-size:15px}
@media (max-width:760px){
  .lead-account-phone strong{font-size:17px}
  .phone-copy-field strong{font-size:17px}
  .sales-three-column .lead-contact-card:not(.primary-contact) .phone-copy-field strong{font-size:16px}
}

/* v102: compact follow-up controls; global rules live in the header navigation. */
.activity-followup-compact-grid{
  display:grid;grid-template-columns:minmax(170px,.8fr) minmax(190px,1fr);gap:12px;align-items:end
}
.activity-followup-compact-grid .activity-manual-control{min-width:0}
.activity-priority-explainer-compact{
  margin-top:8px;padding:8px 0 0!important;border-left:0!important;border-top:1px dashed #ddd2c4!important;
  display:flex!important;flex-direction:row!important;align-items:baseline!important;justify-content:flex-start!important;
  flex-wrap:wrap;gap:4px 8px!important
}
.activity-priority-explainer-compact strong{white-space:nowrap}
@media(max-width:700px){
  .activity-followup-compact-grid{grid-template-columns:1fr 1fr;gap:9px}
  .activity-priority-explainer-compact{padding-top:8px!important}
}
@media(max-width:520px){
  .activity-followup-compact-grid{grid-template-columns:1fr}
}

/* Temporary QA visibility for YOUR MOVE / ON DECK ranking inputs.
   Set QA_RANKING_DEBUG=0 to remove the controls without changing ranking code. */
.qa-ranking-toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:-2px 0 8px}.qa-ranking-toolbar>span{display:inline-flex;align-items:center;min-height:24px;padding:0 7px;border:1px solid #ddcfb7;border-radius:999px;background:#fffaf1;color:#765c31;font-size:10px;font-weight:800;letter-spacing:.08em}.qa-ranking-toggle{border:0;background:transparent;color:#756b5d;font:inherit;font-size:11px;font-weight:800;text-decoration:underline;text-underline-offset:2px;cursor:pointer;padding:4px}.qa-ranking-toggle:hover{color:var(--charcoal)}.qa-ranking-panel{margin-top:12px;padding:11px 12px;border:1px dashed #d7c8ae;border-radius:9px;background:#fffdf8}.qa-ranking-panel[hidden]{display:none!important}.qa-ranking-head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}.qa-ranking-head strong{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#6d5a3c}.qa-ranking-head span{font-size:11px;font-weight:800;color:#7b6e5b}.qa-ranking-panel>small{display:block;margin-top:4px;color:var(--muted);font-size:10px;line-height:1.4}.qa-ranking-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 12px;margin-top:9px}.qa-ranking-values>div{min-width:0}.qa-ranking-values span{display:block;font-size:9px;text-transform:uppercase;letter-spacing:.07em;color:#8a7d6b}.qa-ranking-values strong{display:block;margin-top:1px;font-size:11px;line-height:1.35;color:var(--charcoal);overflow-wrap:anywhere}.qa-ranking-panel-deck{margin:0 2px 8px;padding:9px 10px}.qa-ranking-panel-deck .qa-ranking-values{grid-template-columns:1fr}.on-deck-list>.qa-ranking-panel-deck{border-top:0}@media(max-width:760px){.qa-ranking-toolbar{justify-content:flex-start}.qa-ranking-values{grid-template-columns:1fr}}

/* v106: inline contact editing from the lead screen */
.contact-edit-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.contact-edit-actions form{margin:0}
.lead-contact-actions .contact-edit-toggle{border:1px solid #d8c8b5;background:#fff;color:#594a3b;padding:6px 10px;text-decoration:none;border-radius:7px}
.lead-contact-actions .contact-edit-toggle:hover{background:#f7f1ea;border-color:#c8b39b}
.lead-contact-edit-form{margin-top:12px;padding:14px;border:1px solid #dfd2c4;border-radius:10px;background:#fbf8f4}
.lead-contact-edit-form[hidden]{display:none}
.lead-contact-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px}
.contact-edit-primary-note{font-size:12px;font-weight:800;color:#55705e;margin-top:8px}
.contact-edit-form-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:10px}
@media (max-width:720px){.lead-contact-edit-grid{grid-template-columns:1fr}}

/* ============================================================================
   BRIDGER v107 — Locked lead + Admin three-column Lead Details
   Keep the primary sales workspace visually stable before/after unlock and give
   Admin the same Property | Activity | Contacts workspace as franchise users.
   ========================================================================== */

/* Locked pilot leads keep the revealed lead geometry. The unlock decision spans
   the workspace; the ordinary Property | Activity | Contacts row stays beneath. */
.detail-grid.sales-three-column.locked-three-column > .detail-main > .pilot-unlock-panel{
  grid-column:1/-1;
  grid-row:1;
  min-width:0;
}
.detail-grid.sales-three-column.locked-three-column > .detail-side{
  grid-column:1;
  grid-row:2;
}
.detail-grid.sales-three-column.locked-three-column > .detail-main > .locked-activity-preview{
  grid-column:2;
  grid-row:2;
}
.detail-grid.sales-three-column.locked-three-column > .detail-main > .locked-contacts-preview{
  grid-column:3;
  grid-row:2;
}

.locked-workflow-panel{
  position:relative;
  overflow:hidden;
  border-style:solid;
}
.locked-workflow-panel::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,0) 58%,rgba(248,245,239,.34));
}
.locked-workflow-panel > *{position:relative;z-index:1}
.locked-preview-summary{margin-top:12px}
.locked-preview-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0 12px}
.locked-preview-actions span{
  display:flex;align-items:center;justify-content:center;min-height:44px;padding:8px;
  border:1px solid #d8d1c7;border-radius:8px;background:#f4f1ec;color:#9a958d;
  font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;
}
.locked-preview-cta{width:100%;justify-content:center}
.locked-account-preview{
  display:grid;gap:4px;margin:12px 0;padding:11px 12px;border:1px solid #ded7cd;
  border-radius:8px;background:#f7f4ef;
}
.locked-account-preview span,.locked-route-grid span{color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.locked-account-preview strong{color:#77716a}
.locked-contact-card{
  display:flex;align-items:center;gap:10px;margin:10px 0;padding:12px;border:1px solid #ddd5ca;
  border-radius:10px;background:#fffdfa;
}
.locked-avatar{
  display:flex;align-items:center;justify-content:center;width:38px;height:38px;flex:0 0 38px;
  border-radius:50%;background:#ece6dd;color:#9a9187;font-weight:900;
}
.locked-contact-copy{display:grid;gap:3px;min-width:0}
.locked-contact-copy strong{color:#6f6962}
.locked-contact-copy span{color:var(--muted);font-size:11px}
.locked-route-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:12px}
.locked-route-grid>div{display:grid;gap:4px;padding:9px 10px;border:1px solid #e2dbd2;border-radius:8px;background:#f8f5f0}
.locked-route-grid strong{color:#a29b92;letter-spacing:.06em}

/* Admin gets the sales three-column workspace first, with research-centric
   panels retained below/alongside it rather than reverting to the old layout. */
.detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{
  grid-column:2/4;
  grid-row:3;
  min-width:0;
}
.detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{
  grid-column:2/4;
  grid-row:4;
  min-width:0;
}

@media(max-width:1280px){
  .detail-grid.sales-three-column.locked-three-column > .detail-main > .pilot-unlock-panel{grid-column:1/-1;grid-row:1}
  .detail-grid.sales-three-column.locked-three-column > .detail-side{grid-column:1;grid-row:2 / span 2}
  .detail-grid.sales-three-column.locked-three-column > .detail-main > .locked-activity-preview{grid-column:2;grid-row:2}
  .detail-grid.sales-three-column.locked-three-column > .detail-main > .locked-contacts-preview{grid-column:2;grid-row:3}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{grid-column:2;grid-row:4}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{grid-column:2;grid-row:5}
}

@media(max-width:850px){
  .detail-grid.sales-three-column.locked-three-column > .detail-main > .pilot-unlock-panel{grid-column:1;grid-row:1}
  .detail-grid.sales-three-column.locked-three-column > .detail-main > .locked-contacts-preview{grid-column:1;grid-row:2}
  .detail-grid.sales-three-column.locked-three-column > .detail-main > .locked-activity-preview{grid-column:1;grid-row:3}
  .detail-grid.sales-three-column.locked-three-column > .detail-side{grid-column:1;grid-row:4}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{grid-column:1;grid-row:5}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{grid-column:1;grid-row:6}
  .locked-preview-actions{grid-template-columns:1fr}
}

/* v108 conditional activity detail capture */
.quick-opportunity-field{margin-top:9px;max-width:360px}
.quick-activity-detail-save-row{padding-top:2px}
.quick-activity-detail-save-row .button{min-width:0}

/* v109 — privacy-safe lead-list routes + sales actions on Lead Details */
.lead-list-route-badges{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  margin-top:7px;
}
.lead-list-route-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px 7px;
  border:1px solid #d8d1c7;
  border-radius:999px;
  background:#f3f0eb;
  color:#5f625f;
  font-size:9px;
  font-weight:850;
  letter-spacing:.045em;
  line-height:1.35;
  text-transform:uppercase;
  cursor:default;
  user-select:none;
}
.lead-list-route-badge.phone{background:#edf4f0;border-color:#cbd9d1;color:#356252}
.lead-list-route-badge.email{background:#eef2f5;border-color:#d2dbe1;color:#415b6e}
.lead-list-route-badge.form{background:#f5f0e7;border-color:#dfd2bc;color:#6e5a39}
.lead-list-route-none{font-size:10px;color:var(--muted);font-style:italic}

.lead-contact-work-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:9px;
}
.lead-contact-work-action{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:36px;
  padding:7px 10px!important;
  text-decoration:none!important;
}
.lead-contact-work-action small{
  padding-left:7px;
  border-left:1px solid currentColor;
  font-size:9px;
  font-weight:750;
  opacity:.72;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.sales-three-column .lead-contact-card:not(.primary-contact) .lead-contact-work-actions{margin-top:7px}
.sales-three-column .lead-contact-card:not(.primary-contact) .lead-contact-work-action{min-height:32px;padding:5px 8px!important;font-size:11px}

@media(max-width:700px){
  .lead-contact-work-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .lead-contact-work-action{width:100%}
  .lead-contact-work-actions .lead-contact-work-action:only-child{grid-column:1/-1}
}

/* ========================================================================== 
   BRIDGER v109b — mobile dashboard focus pass
   Mobile-only refinement: preserve the desktop dashboard while turning the
   phone view into a compact next-action workspace.
   ========================================================================== */
.your-move-why-heading{display:block}
.your-move-why-toggle{display:none}

@media(max-width:700px){
  /* Compact page identity: territory + dashboard without a desktop-sized intro. */
  .dashboard-page main{padding:12px 12px 38px}
  .dashboard-page .dashboard-head{margin-bottom:8px}
  .dashboard-page .dashboard-head .eyebrow{font-size:9px;letter-spacing:.13em}
  .dashboard-page .dashboard-head h1{margin:1px 0 2px;font-size:24px;line-height:1.08;letter-spacing:-.025em}
  .dashboard-page .dashboard-head p{font-size:12px;line-height:1.25;color:#777168}
  .dashboard-page .dashboard-head-description{display:none}

  /* QA remains available, but no longer reads like a primary dashboard row. */
  .dashboard-page .qa-ranking-toolbar{justify-content:flex-end;gap:4px;margin:-2px 0 4px;min-height:24px}
  .dashboard-page .qa-ranking-toolbar>span{min-height:20px;padding:0 6px;font-size:8px}
  .dashboard-page .qa-ranking-toggle{padding:2px 3px;font-size:10px}

  /* Remove the desktop card-inside-page framing from the hero on phones. */
  .dashboard-page .your-move-hero{
    padding:12px 2px 14px;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
  }
  .dashboard-page .your-move-title{align-items:center;margin-bottom:7px;gap:10px}
  .dashboard-page .your-move-title .eyebrow{font-size:10px;letter-spacing:.13em}
  .dashboard-page .your-move-title h2{margin-top:2px;font-size:23px;line-height:1.12;letter-spacing:-.02em}
  .dashboard-page .your-move-kicker{padding:5px 8px;font-size:9px;white-space:nowrap}
  .dashboard-page .your-move-subtitle{font-size:14px;line-height:1.32;font-weight:750}
  .dashboard-page .your-move-helper{margin-top:4px;font-size:12px;line-height:1.35}

  /* Primary action owns the row. Supporting actions share the next row. */
  .dashboard-page .your-move-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    align-items:stretch;
    gap:8px;
    margin-top:12px;
  }
  .dashboard-page .your-move-actions .your-move-primary-action,
  .dashboard-page .your-move-actions .your-move-primary-form{
    grid-column:1 / -1;
    width:100%;
  }
  .dashboard-page .your-move-actions .your-move-primary-form .button,
  .dashboard-page .your-move-actions .your-move-primary-action{
    width:100%;
    min-height:50px;
    font-size:15px;
    border-radius:10px;
  }
  .dashboard-page .your-move-actions .your-move-secondary-action,
  .dashboard-page .your-move-actions .your-move-snooze{
    width:100%;
    min-width:0;
  }
  .dashboard-page .your-move-actions .your-move-secondary-action,
  .dashboard-page .your-move-snooze>.your-move-snooze-trigger{
    min-height:42px;
    width:100%;
    padding:7px 8px;
    font-size:12px;
  }
  .dashboard-page .your-move-snooze-menu{grid-column:1 / -1}
  /* Unlocking is a desktop workflow; keep the mobile Your Move focused on the current lead. */
  .dashboard-page .your-move-unlock-form{display:none!important}
  .dashboard-page .your-move-unlock{
    width:100%!important;
    min-height:36px!important;
    padding:6px 4px!important;
    border-color:transparent!important;
    background:transparent!important;
    color:#6d5735!important;
    font-size:11px!important;
    text-decoration:underline;
    text-underline-offset:3px;
  }
  .dashboard-page .your-move-unlock:hover{background:#fbf6ee!important}

  /* Details become progressive disclosure. Context arrives much sooner. */
  .dashboard-page .your-move-detail-grid{gap:8px;margin-top:10px}
  .dashboard-page .your-move-why,
  .dashboard-page .your-move-context{
    padding:11px 12px;
    border-radius:9px;
    box-shadow:none;
  }
  .dashboard-page .your-move-why-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}
  .dashboard-page .your-move-why h3,
  .dashboard-page .your-move-context h3{margin:0;font-size:13px}
  .dashboard-page .your-move-why-toggle{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:4px 1px 4px 7px;
    border:0;
    background:transparent;
    color:#6f6250;
    font:inherit;
    font-size:10px;
    font-weight:800;
    cursor:pointer;
  }
  .dashboard-page .your-move-why-toggle i{
    width:7px;height:7px;
    border-right:2px solid currentColor;
    border-bottom:2px solid currentColor;
    transform:translateY(-2px) rotate(45deg);
    transition:transform .14s ease;
  }
  .dashboard-page .your-move-why ul{display:none;margin-top:8px;font-size:12px;line-height:1.35;gap:4px}
  .dashboard-page .your-move-why.mobile-expanded ul{display:grid}
  .dashboard-page .your-move-why.mobile-expanded .your-move-why-toggle i{transform:translateY(2px) rotate(225deg)}

  .dashboard-page .your-move-context-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
  .dashboard-page .your-move-context-item{padding:8px 9px;border-radius:7px}
  .dashboard-page .your-move-context-item span{font-size:8px;margin-bottom:2px}
  .dashboard-page .your-move-context-item strong{font-size:11px;line-height:1.28}

  /* Keep secondary daily counts useful without turning them into tall cards. */
  .dashboard-page .your-move-today-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:8px}
  .dashboard-page .your-move-mini{padding:8px 10px;border-radius:8px}
  .dashboard-page .your-move-mini span{font-size:9px}
  .dashboard-page .your-move-mini strong{font-size:18px}
}

@media(max-width:380px){
  .dashboard-page .your-move-title h2{font-size:21px}
  .dashboard-page .your-move-kicker{font-size:8px;padding:4px 7px}
  .dashboard-page .your-move-context-grid{grid-template-columns:1fr}
}

/* Mobile: keep temporary QA ranking diagnostics out of the sales workflow. */
@media(max-width:760px){
  .dashboard-page .qa-ranking-toolbar,
  .dashboard-page .qa-ranking-panel{
    display:none !important;
  }
}

/* ========================================================================== 
   BRIDGER v109g — mobile lead-detail density pass
   Keep desktop lead details unchanged while moving the salesperson's primary
   contact and work actions materially higher on a phone.
   ========================================================================== */
@media(max-width:700px){
  /* Compress the lead identity without changing desktop context. */
  .detail-head{margin-bottom:12px;padding-bottom:0}
  .detail-head .back{margin-bottom:7px}
  .detail-head .eyebrow{font-size:10px}
  .detail-head h1.crm-company-title{margin:2px 0 4px;font-size:27px;line-height:1.04}
  .detail-head .crm-company-meta{font-size:12px;line-height:1.3}
  .detail-head .recorded-owner-meta{display:none}
  .detail-actions{margin-top:10px;gap:8px;flex-wrap:wrap}
  .detail-actions .badge.large{padding:6px 9px;font-size:10px}
  .detail-actions .button{min-height:36px;padding:7px 12px}

  /* The header already says Pilot lead · unlocked. Make the disclosure below
     a status/credits row rather than repeating the same pilot state. */
  .pilot-status-compact{margin-top:0}
  .pilot-status-compact>summary{
    min-height:46px;
    padding:9px 12px;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:10px;
  }
  .pilot-status-summary-main{gap:0;min-width:0;flex:1}
  .pilot-status-summary-main .eyebrow{display:none}
  .pilot-status-summary-main strong{font-size:13px}
  .pilot-status-summary-meta{justify-content:flex-end;gap:6px;flex-wrap:nowrap}
  .pilot-status-summary-meta>.badge.good{display:none}
  .pilot-credits-inline{font-size:10px}
  .pilot-status-body{padding:0 12px 12px}

  /* Get People & routes into view sooner and remove instructional copy that is
     useful for onboarding but not for a salesperson working a lead. */
  .sales-three-column>.detail-main{gap:12px}
  .sales-three-column .lead-contacts-panel{padding:13px}
  .sales-three-column .lead-contacts-panel .section-title{margin-bottom:8px}
  .sales-three-column .lead-contacts-panel .section-title h2{font-size:20px;margin-top:1px}
  .sales-three-column .contacts-help{display:none}

  /* Preserve every CRM field while reducing card chrome and dead space. */
  .sales-three-column .lead-account-crm{margin:7px 0 9px;padding:9px 10px}
  .sales-three-column .lead-account-crm strong{font-size:17px}
  .sales-three-column .lead-account-domain{margin-top:4px}
  .sales-three-column .lead-account-crm small{margin-top:2px;line-height:1.3}
  .sales-three-column .lead-contact-list{gap:8px}
  .sales-three-column .lead-contact-card,
  .sales-three-column .lead-contact-card:not(.primary-contact){padding:10px 11px}
  .sales-three-column .lead-contact-head{gap:6px}
  .sales-three-column .crm-field-label.title-label{margin-top:4px}
  .sales-three-column .lead-contact-crm-grid{margin-top:7px;gap:7px}
  .sales-three-column .crm-copy-field{padding:7px 8px}
  .sales-three-column .lead-contact-work-actions{margin-top:8px;gap:7px}
  .sales-three-column .lead-contact-work-action{min-height:40px!important;font-size:12px;padding:7px 9px!important}
}

/* ========================================================================== 
   BRIDGER v109h — mobile lead details: action-first sales workflow
   ========================================================================== */
@media(max-width:700px){
  /* Status is supporting context, not the primary action. */
  .pilot-status-compact{border-left-width:2px;box-shadow:none;background:transparent}
  .pilot-status-compact>summary{min-height:40px;padding:7px 10px}
  .pilot-status-summary-main strong{font-size:12px;font-weight:700}
  .pilot-status-summary-meta{gap:4px}
  .pilot-status-summary-meta .pilot-credits-inline{display:none}
  .pilot-status-summary .disclosure-chevron{opacity:.65}

  /* Let the salesperson reach the person and the actions before account detail. */
  .sales-three-column .lead-contact-list{gap:9px}
  .sales-three-column .lead-contact-card.primary-contact{
    display:flex;
    flex-direction:column;
    padding:10px 11px;
    background:#fffdfa;
    border-color:#d7c8ab;
    box-shadow:inset 3px 0 0 var(--gold);
  }
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-head{order:1}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-work-actions{order:2;margin:8px 0 0}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-crm-grid{order:3;margin-top:7px}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-employer{order:4}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-secondary-routes{order:5}
  .sales-three-column .lead-contact-card.primary-contact .contact-research-notes,
  .sales-three-column .lead-contact-card.primary-contact .contact-research-details{order:6}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-actions,
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-edit-form{order:7}

  /* Primary is useful; Bridger's internal scoring is not part of the mobile sales task. */
  .sales-three-column .lead-contact-card .badge.contactability,
  .sales-three-column .lead-contact-card .lead-contact-badges .badge.neutral:not(:first-child){display:none}
  .sales-three-column .lead-contact-badges{margin-top:5px}

  /* Make call/email the obvious next move. */
  .sales-three-column .lead-contact-work-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .sales-three-column .lead-contact-work-action{
    min-height:44px!important;
    padding:8px 9px!important;
    font-size:13px;
    font-weight:800;
    border-radius:9px;
  }
  .sales-three-column .lead-contact-work-action small{font-size:9px;font-weight:700;opacity:.75}

  /* Phone/email remain copyable, but visually become supporting details. */
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-crm-grid{grid-template-columns:1fr}
  .sales-three-column .lead-contact-card.primary-contact .crm-copy-field{
    padding:6px 2px;
    border:0;
    border-top:1px solid var(--line);
    border-radius:0;
    background:transparent;
  }
  .sales-three-column .lead-contact-card.primary-contact .crm-copy-field>span{font-size:8px}
  .sales-three-column .lead-contact-card.primary-contact .crm-copy-field strong{font-size:15px}
  .sales-three-column .lead-contact-card.primary-contact .crm-copy-field small{font-size:9px}
  .sales-three-column .lead-contact-card.primary-contact .copy-value-button{width:27px;height:27px;flex-basis:27px}

  /* Account context follows the primary contact on mobile (moved there by JS). */
  .sales-three-column .lead-contact-list>.lead-account-crm{
    margin:0;
    padding:8px 10px;
    border:0;
    border-left:2px solid #c7aa6a;
    border-radius:7px;
    background:#f8f4ec;
    box-shadow:none;
  }
  .sales-three-column .lead-contact-list>.lead-account-crm>span{font-size:8px}
  .sales-three-column .lead-contact-list>.lead-account-crm strong{font-size:14px}
  .sales-three-column .lead-contact-list>.lead-account-crm .lead-account-domain{display:flex;align-items:center;gap:7px;margin-top:3px}
  .sales-three-column .lead-contact-list>.lead-account-crm .lead-account-domain>span{margin:0;font-size:8px;white-space:nowrap}
  .sales-three-column .lead-contact-list>.lead-account-crm .copy-value-row{flex:1;min-width:0}
  .sales-three-column .lead-contact-list>.lead-account-crm small{font-size:9px;color:var(--muted)}

  /* Reduce nested-card heaviness for alternate contacts too. */
  .sales-three-column .lead-contact-card:not(.primary-contact){border-color:#e2dbd0;box-shadow:none}
}


/* ==========================================================================
   BRIDGER v109i — mobile lead detail call-sheet refinement
   ========================================================================== */
@media(max-width:700px){
  /* One heading is enough on a phone. */
  .sales-three-column .lead-contacts-panel .section-title .eyebrow{display:none}
  .sales-three-column .lead-contacts-panel .section-title h2{margin-top:0}

  /* Identity reads naturally instead of like a database form. */
  .sales-three-column .lead-contact-card.primary-contact .crm-field-label{display:none}
  .sales-three-column .lead-contact-card.primary-contact .contact-name-row strong{
    font-size:18px;line-height:1.15
  }
  .sales-three-column .lead-contact-card.primary-contact .contact-title-row{
    margin-top:2px;color:var(--muted)
  }

  /* Research context belongs BEFORE outreach: it may contain information the
     salesperson needs before speaking with the customer. Keep it visible. */
  .sales-three-column .lead-contact-card.primary-contact .contact-research-notes{
    order:2;
    margin:9px 0 0;
    padding:9px 10px;
    border:0;
    border-left:2px solid #c7aa6a;
    border-radius:6px;
    background:#f8f4ec;
  }
  .sales-three-column .lead-contact-card.primary-contact .contact-research-notes>span{
    font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.06em
  }
  .sales-three-column .lead-contact-card.primary-contact .contact-research-notes-text,
  .sales-three-column .lead-contact-card.primary-contact .contact-research-notes-text.is-clamped{
    display:block;
    -webkit-line-clamp:unset;
    overflow:visible;
    max-height:none;
  }
  .sales-three-column .lead-contact-card.primary-contact .research-notes-toggle{display:none}

  .sales-three-column .lead-contact-card.primary-contact .lead-contact-work-actions{order:3}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-crm-grid{order:4}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-employer{order:5}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-secondary-routes{order:6}
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-actions,
  .sales-three-column .lead-contact-card.primary-contact .lead-contact-edit-form{order:7}

  /* The number/address below the actions already explains the route. */
  .sales-three-column .lead-contact-work-action .work-action-route{display:none}

  /* Status is useful after the user knows who they are contacting and what
     Bridger knows about them, but it should not interrupt the call decision. */
  .sales-three-column .lead-contact-list>.pilot-status-compact{
    margin:0;
    border:1px solid var(--line);
    border-left:2px solid #c7aa6a;
    border-radius:7px;
    background:#fff;
  }
}

/* ========================================================================== 
   BRIDGER v109j — mobile lead detail priority cleanup
   Desktop CRM copy controls intentionally remain unchanged.
   ========================================================================== */
@media(max-width:700px){
  /* Tighten the identity/action header so the contact starts sooner. */
  .detail-head{margin-bottom:8px}
  .detail-head .back{margin-bottom:5px}
  .detail-head h1.crm-company-title{margin:1px 0 3px}
  .detail-actions{margin-top:7px;gap:7px}
  .detail-actions .badge.large{padding:5px 8px;font-size:9px;font-weight:750;opacity:.82}
  .detail-actions .button{min-height:34px;padding:6px 11px}

  /* Name/title copy is useful for desktop CRM entry, but unnecessary chrome
     in the mobile call sheet. Phone/email copy remains available on mobile. */
  .sales-three-column .lead-contact-card.primary-contact .contact-name-row>.copy-value-button,
  .sales-three-column .lead-contact-card.primary-contact .contact-title-row>.copy-value-button{display:none}

  /* Make email-quality intelligence read as supporting context. */
  .sales-three-column .lead-contact-card.primary-contact .crm-copy-field small{
    font-size:8.5px;color:var(--muted);font-weight:500
  }

  /* Editing is maintenance, not the normal sales path. */
  .sales-three-column .lead-contact-card.primary-contact .contact-edit-actions{margin-top:5px}
  .sales-three-column .lead-contact-card.primary-contact .contact-edit-toggle{
    min-height:0;padding:4px 2px!important;border:0;background:transparent;
    font-size:10px;font-weight:700;color:var(--muted);text-decoration:underline;
    text-underline-offset:2px
  }
  .sales-three-column .lead-contact-card.primary-contact .contact-edit-toggle:hover{background:transparent;border:0;color:var(--ink)}
}

/* Header fit: protect the Bridger logo/navigation on smaller laptop widths.
   The motto is branding, not navigation, so it yields first when horizontal
   space gets tight. */
.brand{
  flex:0 0 auto;
}
.topbar-right{
  min-width:0;
}
@media(max-width:1500px){
  .topbar-motto{
    display:none;
  }
}

/* v109c — franchise Lead List: mobile-first vertical opportunity cards */
.pilot-mobile-lead-list{display:none}
@media(max-width:700px){
  .pilot-opportunity-table .pilot-desktop-table{display:none}
  .pilot-opportunity-table .table-summary{padding:10px 12px;line-height:1.35}
  .pilot-opportunity-table .pilot-sort-explanation{display:none}
  .pilot-mobile-lead-list{display:grid;gap:10px;padding:10px;background:#f5f3ef}
  .pilot-mobile-lead-card{position:relative;background:#fff;border:1px solid #ded8ce;border-radius:12px;padding:14px 14px 12px;box-shadow:0 4px 14px rgba(41,36,29,.045);cursor:pointer}
  .pilot-mobile-lead-card:active{background:#fffcf7}
  .pilot-mobile-lead-card-locked{cursor:default;background:#fffdf9}
  .pilot-mobile-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:8px}
  .pilot-mobile-lead-card h2{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.015em;color:var(--charcoal)}
  .pilot-mobile-sqft{margin-top:8px;font-size:20px;font-weight:850;line-height:1.15;color:var(--charcoal)}
  .pilot-mobile-sqft span{font-size:11px;font-weight:750;color:var(--muted);text-transform:uppercase;letter-spacing:.055em}
  .pilot-mobile-contact{margin-top:12px;padding-top:11px;border-top:1px solid #ece7df}
  .pilot-mobile-contact>strong{display:block;font-size:15px;line-height:1.25;color:var(--charcoal)}
  .pilot-mobile-contact>span{display:block;margin-top:2px;color:var(--muted);font-size:13px;line-height:1.3}
  .pilot-mobile-lead-card .lead-list-route-badges{margin-top:7px}
  .pilot-mobile-lead-card .lead-list-route-badge{font-size:10px;padding:4px 8px}
  .pilot-mobile-property{margin-top:10px;font-size:12px;line-height:1.35;color:#665f56}
  .pilot-mobile-last-activity{margin-top:6px;font-size:11px;color:var(--muted)}
  .pilot-mobile-open{display:flex;align-items:center;justify-content:space-between;margin-top:11px;padding-top:9px;border-top:1px solid #ece7df;font-size:12px;font-weight:850;color:#6b5737;text-transform:uppercase;letter-spacing:.045em}
  .pilot-mobile-open span{font-size:17px;line-height:1}
  .pilot-mobile-locked-note{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.4}
  .pilot-mobile-recommended{margin-top:9px}
  .pilot-mobile-card-action{margin-top:12px}
  .pilot-mobile-card-action form{margin:0}
  .pilot-mobile-empty{padding:22px 16px;text-align:center;color:var(--muted);background:#fff;border:1px solid var(--line);border-radius:10px}
}

/* Franchise/corporate lead list: mobile-first vertical cards. Desktop table remains unchanged. */
.franchise-mobile-lead-list{display:none}
@media (max-width: 760px){
  .franchise-desktop-table{display:none!important}
  .franchise-mobile-lead-list{display:grid;gap:10px;padding:10px;background:#f5f3ef}
  .franchise-mobile-lead-card{position:relative;background:#fff;border:1px solid #ded8ce;border-radius:12px;padding:14px;box-shadow:0 4px 14px rgba(41,36,29,.045);cursor:pointer}
  .franchise-mobile-lead-card:active{background:#fffcf7}
  .franchise-mobile-lead-card-locked{background:#fffdf9}
  .franchise-mobile-card-topline{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px;min-height:24px}
  .franchise-mobile-lead-card h2{margin:0;font-size:18px;line-height:1.2;letter-spacing:-.015em;color:var(--charcoal)}
  .franchise-mobile-sqft{margin-top:8px;font-size:18px;font-weight:800;line-height:1.15;color:var(--charcoal)}
  .franchise-mobile-sqft span{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
  .franchise-mobile-contact{display:grid;gap:2px;margin-top:12px;padding-top:11px;border-top:1px solid #ece7df}
  .franchise-mobile-contact strong{font-size:15px;color:var(--charcoal)}
  .franchise-mobile-contact>span{font-size:12px;color:var(--muted)}
  .franchise-mobile-lead-card .lead-list-route-badges{margin-top:7px}
  .franchise-mobile-lead-card .lead-list-route-badge{font-size:10px;padding:4px 8px}
  .franchise-mobile-property,.franchise-mobile-last-activity,.franchise-mobile-muted{margin-top:9px;font-size:12px;line-height:1.35;color:var(--muted)}
  .franchise-mobile-last-activity{padding-top:8px;border-top:1px solid #f0ece6}
  .franchise-mobile-open{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding-top:10px;border-top:1px solid #ece7df;font-size:12px;font-weight:800;letter-spacing:.03em;text-transform:uppercase;color:var(--charcoal)}
  .franchise-mobile-open span{font-size:17px;line-height:1}
  .franchise-mobile-empty{padding:18px 14px;text-align:center;color:var(--muted);background:#fff;border:1px solid #ded8ce;border-radius:12px}
}

/* v109d — admin/research Lead Search uses the same vertical mobile treatment.
   Keep the full research table on desktop; collapse it into cards on phones. */
@media(max-width:760px){
  .mobile-responsive-desktop-table{display:none!important}
  .admin-mobile-lead-meta{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px;padding-top:10px;border-top:1px solid #ece7df}
  .admin-mobile-lead-meta>div{min-width:0;padding:7px 8px;border:1px solid #ece7df;border-radius:8px;background:#faf8f5}
  .admin-mobile-lead-meta span,.admin-mobile-lead-meta strong{display:block}
  .admin-mobile-lead-meta span{font-size:9px;line-height:1.2;text-transform:uppercase;letter-spacing:.05em;color:var(--muted)}
  .admin-mobile-lead-meta strong{margin-top:2px;font-size:12px;line-height:1.25;color:var(--charcoal);text-transform:capitalize;overflow-wrap:anywhere}
  .admin-mobile-review-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:9px}
  .admin-mobile-priority{font-size:10px;font-weight:750;color:var(--muted);white-space:nowrap}
}

/* v34: compact mobile lead-search filters */
.mobile-filter-toggle,
.mobile-filter-toggle-label{display:none}
.lead-advanced-filters{display:contents}

@media(max-width:560px){
  .filter-panel{padding:18px 16px}
  .geo-filters{display:grid;grid-template-columns:1fr;gap:14px}
  .geo-filters .search-field{grid-column:auto}
  .geo-filters label>span{margin-bottom:7px}
  .geo-filters input,
  .geo-filters select{width:100%;min-width:0}

  .mobile-filter-toggle{position:absolute;opacity:0;pointer-events:none}
  .mobile-filter-toggle-label{
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:2px 12px;
    width:100%;
    padding:14px 15px;
    margin-top:2px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#f7f4ee;
    cursor:pointer;
  }
  .mobile-filter-toggle-label>span:first-child{
    grid-column:1;
    margin:0;
    color:var(--gold-deep);
    font-size:10px;
    font-weight:900;
    letter-spacing:.12em;
    text-transform:uppercase;
  }
  .mobile-filter-toggle-label>strong{
    grid-column:1;
    font-size:15px;
    line-height:1.2;
  }
  .mobile-filter-chevron{
    grid-column:2;
    grid-row:1 / span 2;
    margin:0!important;
    font-size:24px!important;
    line-height:1;
    color:var(--muted)!important;
    transition:transform .18s ease;
  }
  .lead-advanced-filters{display:none}
  .mobile-filter-toggle:checked + .mobile-filter-toggle-label .mobile-filter-chevron{transform:rotate(180deg)}
  .mobile-filter-toggle:checked + .mobile-filter-toggle-label + .lead-advanced-filters{
    display:grid;
    grid-template-columns:1fr;
    gap:14px;
    padding-top:2px;
  }
  .filter-actions{
    grid-column:auto;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    margin-top:2px;
  }
  .filter-actions .button{width:100%;justify-content:center;text-align:center}
  .filter-actions .button.primary{min-height:48px}
  .filter-actions .button:not(.primary){
    min-height:42px;
    background:transparent;
    border-color:transparent;
    color:var(--muted);
    box-shadow:none;
  }
}

/* v109j — Lead List pagination. Keep filtering/ranking semantics intact while
   rendering only the current 50-row page into desktop and mobile markup. */
.lead-pagination{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border-top:1px solid var(--line);
  background:#faf8f5;
}
.lead-pagination-range{
  color:var(--muted);
  font-size:12px;
  white-space:nowrap;
}
.lead-pagination-range strong{color:var(--charcoal)}
.lead-pagination-links,.lead-page-numbers{
  display:flex;
  align-items:center;
  gap:6px;
}
.lead-page-nav,.lead-page-number{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  border:1px solid #d8d2c8;
  border-radius:8px;
  background:#fff;
  color:var(--charcoal);
  text-decoration:none;
  font-size:12px;
  font-weight:750;
}
.lead-page-nav{padding:6px 10px}
.lead-page-number{min-width:34px;padding:6px 8px}
.lead-page-nav:hover,.lead-page-number:hover{background:#f4f0e9;border-color:#c9c0b4}
.lead-page-number.current{
  background:var(--charcoal);
  border-color:var(--charcoal);
  color:#fff;
  cursor:default;
}
.lead-page-nav.disabled{opacity:.42;cursor:default}
.lead-page-ellipsis{min-width:22px;text-align:center;color:var(--muted)}
@media(max-width:700px){
  .lead-pagination{display:grid;gap:9px;padding:11px 10px}
  .lead-pagination-range{text-align:center}
  .lead-pagination-links{justify-content:space-between;gap:5px}
  .lead-page-numbers{gap:4px}
  .lead-page-number{min-width:31px;min-height:32px;padding:5px 7px}
  .lead-page-nav{min-height:32px;padding:5px 8px}
}
@media(max-width:430px){
  .lead-page-numbers .lead-page-number:not(.current),
  .lead-page-numbers .lead-page-ellipsis{display:none}
}

/* Derived employee emails are useful but intentionally distinct from sourced email. */
.badge.derived-email{background:#f4ead7;color:#765b2c;border:1px solid #dbc49b;flex:0 0 auto}
.crm-copy-field small.derived-email-note{color:#7a684e}

/* vDerived-email research funnel: separate market coverage from contactability. */
.research-inventory-band{margin-top:14px}
.research-inventory-band:first-of-type{margin-top:4px}
.research-inventory-band-title{margin:0 0 7px;color:#8b6329;font-size:10px;font-weight:800;letter-spacing:.14em;text-transform:uppercase}
.research-contactability-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.contactability-band{padding-top:13px;border-top:1px solid var(--line)}
.derived-email-metric{background:#f3f7f4!important;border-left-color:#63786d!important}
.derived-email-lift{display:flex;align-items:baseline;gap:9px;flex-wrap:wrap;margin-top:9px;padding:10px 12px;border:1px solid #d8dfd9;border-radius:7px;background:#f7faf8}
.derived-email-lift strong{font-size:13px;color:var(--ink)}
.derived-email-lift span{font-size:11px;color:var(--muted)}
@media(max-width:700px){.research-contactability-grid{grid-template-columns:1fr 1fr}.research-contactability-grid>div:last-child{grid-column:1/-1}}
@media(max-width:480px){.research-contactability-grid{grid-template-columns:1fr}.research-contactability-grid>div:last-child{grid-column:auto}.derived-email-lift{align-items:flex-start;flex-direction:column;gap:3px}}


/* v110 — Your Move + CRM-style Analytics */
.analytics-page main{max-width:1600px}
.analytics-head{margin-bottom:14px}
.analytics-head p strong{color:var(--charcoal)}
.analytics-filter-panel{margin-bottom:14px}
.analytics-filters{display:grid;grid-template-columns:minmax(145px,.8fr) repeat(2,minmax(145px,.8fr)) repeat(3,minmax(155px,1fr)) auto;gap:9px;align-items:end}
.analytics-filters label>span{display:block;margin:0 0 5px 2px;color:#76746e;font-size:10px;font-weight:800;letter-spacing:.085em;text-transform:uppercase}
.analytics-filter-actions{display:flex;align-items:end}
.analytics-filter-note{display:block;margin-top:8px;color:var(--muted);font-size:11px}
.analytics-primary-metrics,.analytics-secondary-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:12px}
.analytics-kpi,.analytics-secondary-metrics>article{min-width:0;padding:14px 15px;border:1px solid var(--line);border-radius:9px;background:rgba(251,250,247,.98);box-shadow:var(--shadow);position:relative;overflow:hidden}
.analytics-kpi:after,.analytics-secondary-metrics>article:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#c8c0b5}
.analytics-kpi.positive:after{background:var(--gold)}
.analytics-kpi.won:after,.analytics-secondary-metrics>article.won:after{background:var(--status-green)}
.analytics-secondary-metrics>article.attention:after{background:#b15d43}
.analytics-kpi span,.analytics-secondary-metrics span{display:block;color:#77746e;font-size:10px;font-weight:850;letter-spacing:.065em;text-transform:uppercase}
.analytics-kpi strong,.analytics-secondary-metrics strong{display:block;margin-top:2px;color:var(--charcoal);font-size:28px;line-height:1.05;letter-spacing:-.025em}
.analytics-kpi small,.analytics-secondary-metrics small{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.3}
.analytics-secondary-metrics strong{font-size:23px}
.analytics-chart-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(360px,.65fr);gap:12px;margin-bottom:12px}
.analytics-chart-panel{padding:16px;overflow:hidden}
.analytics-section-title{margin-bottom:8px}.analytics-section-title h2,.analytics-table-title h2{margin:2px 0 0}.analytics-section-title>span,.analytics-table-title>span{color:var(--muted);font-size:11px}
.analytics-chart-legend{display:flex;justify-content:flex-end;gap:13px;margin:0 2px 8px;color:var(--muted);font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}
.analytics-chart-legend span:before{content:"";display:inline-block;width:8px;height:8px;margin-right:5px;border-radius:2px;vertical-align:0}
.analytics-chart-legend .calls:before,.activity-bars .calls{background:var(--charcoal)}
.analytics-chart-legend .conversations:before,.activity-bars .conversations{background:var(--status-green)}
.analytics-chart-legend .emails:before,.activity-bars .emails{background:var(--gold)}
.activity-bar-chart{display:grid;grid-template-columns:repeat(auto-fit,minmax(54px,1fr));align-items:end;gap:6px;height:245px;padding:12px 6px 0;border-bottom:1px solid var(--line);background:linear-gradient(to top,rgba(217,209,198,.28) 1px,transparent 1px);background-size:100% 25%}
.activity-bar-group{height:100%;display:grid;grid-template-rows:minmax(0,1fr) 18px 22px;align-items:end;text-align:center;min-width:0}
.activity-bars{height:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px}
.activity-bars i{display:block;width:min(12px,27%);min-height:0;border-radius:3px 3px 0 0;opacity:.94}
.activity-bar-group>strong{align-self:center;font-size:10px;color:#625d55}
.activity-bar-group>span{align-self:center;overflow:hidden;color:var(--muted);font-size:9px;white-space:nowrap;text-overflow:ellipsis}
.analytics-chart-note{margin:9px 2px 0;color:var(--muted);font-size:10px;line-height:1.35}
.outcome-bars{display:grid;gap:12px;padding:7px 0 4px}
.outcome-row{display:grid;grid-template-columns:112px minmax(100px,1fr) 36px;gap:8px;align-items:center}
.outcome-row>span{color:#625d55;font-size:11px;font-weight:750}.outcome-row>div{height:16px;overflow:hidden;border-radius:4px;background:#eee9e1}.outcome-row i{display:block;height:100%;border-radius:4px;background:linear-gradient(90deg,var(--gold-deep),var(--gold))}.outcome-row strong{text-align:right;font-size:12px}
.analytics-rep-table{overflow:hidden}.analytics-table-title{padding:15px 16px 10px;margin:0}.analytics-rep-table td,.analytics-rep-table th{white-space:nowrap}.analytics-rep-table td:first-child{white-space:normal;min-width:170px}
@media(max-width:1320px){.analytics-primary-metrics,.analytics-secondary-metrics{grid-template-columns:repeat(3,1fr)}.analytics-filters{grid-template-columns:repeat(4,minmax(130px,1fr))}.analytics-filter-actions{align-self:end}}
@media(max-width:980px){.analytics-chart-grid{grid-template-columns:1fr}.analytics-filters{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.analytics-page main{padding:13px 12px 38px}.analytics-head{margin-bottom:9px}.analytics-head h1{font-size:25px}.analytics-head p{font-size:11px}.analytics-filter-panel{padding:12px}.analytics-filters{grid-template-columns:1fr 1fr}.analytics-filter-actions{grid-column:1/-1}.analytics-filter-actions .button{width:100%}.analytics-primary-metrics,.analytics-secondary-metrics{grid-template-columns:1fr 1fr;gap:8px}.analytics-kpi,.analytics-secondary-metrics>article{padding:12px}.analytics-kpi strong{font-size:25px}.analytics-secondary-metrics strong{font-size:21px}.analytics-chart-panel{padding:12px}.activity-bar-chart{grid-template-columns:repeat(auto-fit,minmax(44px,1fr));height:220px;overflow-x:auto}.outcome-row{grid-template-columns:104px minmax(80px,1fr) 30px}.analytics-chart-note{font-size:9px}}
@media(max-width:430px){.analytics-filters{grid-template-columns:1fr}.analytics-filter-actions{grid-column:auto}.analytics-primary-metrics,.analytics-secondary-metrics{grid-template-columns:1fr 1fr}.analytics-kpi span,.analytics-secondary-metrics span{font-size:9px}.analytics-kpi small,.analytics-secondary-metrics small{font-size:10px}}


/* Territory Intelligence — market composition, concentration and leverage */
.analytics-view-tabs{display:inline-flex;gap:4px;margin:-3px 0 14px;padding:4px;border:1px solid var(--line);border-radius:10px;background:rgba(251,250,247,.94);box-shadow:var(--shadow)}
.analytics-view-tabs a{padding:8px 13px;border-radius:7px;color:var(--muted);text-decoration:none;font-size:11px;font-weight:850;letter-spacing:.035em}
.analytics-view-tabs a:hover{color:var(--charcoal);background:var(--gold-soft)}
.analytics-view-tabs a.active{background:var(--charcoal);color:#fff}
.territory-scope-filters{grid-template-columns:repeat(3,minmax(170px,1fr)) auto;max-width:900px}
.territory-primary-metrics .analytics-kpi strong{font-size:25px}
.territory-story-panel{padding:16px;margin-bottom:12px}
.analytics-section-title a{color:var(--gold-deep);font-size:11px;font-weight:850;text-decoration:none;white-space:nowrap}
.territory-access-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.territory-access-card{display:block;position:relative;min-width:0;padding:13px 14px;border:1px solid var(--line);border-radius:9px;background:var(--panel-strong);color:inherit;text-decoration:none;overflow:hidden}
.territory-access-card:after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#c8c0b5}
.territory-access-card.positive:after{background:var(--status-green)}
.territory-access-card.attention:after{background:var(--gold)}
.territory-access-card:hover{border-color:var(--line-strong);background:#fffdf9}
.territory-access-card span,.territory-access-card strong,.territory-access-card small{display:block}
.territory-access-card span{color:var(--muted);font-size:10px;font-weight:850;letter-spacing:.055em;text-transform:uppercase}
.territory-access-card strong{margin-top:2px;color:var(--charcoal);font-size:25px;line-height:1.08}
.territory-access-card small{margin-top:5px;color:var(--muted);font-size:10px;line-height:1.35}
.territory-intelligence-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.territory-concentration-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:11px}
.territory-concentration-stats>div{padding:11px;border:1px solid var(--line);border-radius:8px;background:var(--panel-strong)}
.territory-concentration-stats strong,.territory-concentration-stats span{display:block}
.territory-concentration-stats strong{font-size:23px;color:var(--charcoal)}
.territory-concentration-stats span{margin-top:2px;color:var(--muted);font-size:10px;line-height:1.3}
.territory-concentration-callout{margin-top:9px;padding:10px 12px;border-left:3px solid var(--gold);border-radius:7px;background:var(--gold-soft);color:var(--charcoal);font-size:11px}
.territory-concentration-callout strong{font-size:17px}
.territory-maturity-list{display:grid;gap:7px;margin-top:8px}
.territory-maturity-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:center;padding:9px 0;border-bottom:1px solid var(--line)}
.territory-maturity-row:last-child{border-bottom:0}
.territory-maturity-row strong,.territory-maturity-row small,.territory-maturity-value span{display:block}
.territory-maturity-row>div:first-child>strong{font-size:12px;color:var(--charcoal)}
.territory-maturity-row small{margin-top:2px;color:var(--muted);font-size:9px;line-height:1.3}
.territory-maturity-value{text-align:right;white-space:nowrap}
.territory-maturity-value strong{font-size:15px;color:var(--gold-deep)}
.territory-maturity-value span{color:var(--muted);font-size:9px}
.territory-top-accounts{margin-bottom:12px;overflow:hidden}
.territory-table-title{align-items:center}
.territory-sort-controls{display:flex;align-items:center;gap:5px;flex-wrap:wrap}
.territory-sort-controls>span{color:var(--muted);font-size:9px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}
.territory-sort-controls a{padding:5px 8px;border:1px solid var(--line);border-radius:6px;background:var(--panel-strong);color:var(--muted);font-size:10px;font-weight:850;text-decoration:none}
.territory-sort-controls a:hover{border-color:var(--line-strong);color:var(--charcoal)}
.territory-sort-controls a.active{border-color:var(--gold);background:var(--gold-soft);color:var(--gold-deep)}
.territory-top-accounts td:nth-child(2),.territory-top-accounts td:nth-child(3),.territory-top-accounts td:nth-child(4){white-space:nowrap}
.territory-table-footer{padding:10px 14px;border-top:1px solid var(--line);text-align:right}
.territory-table-footer a{color:var(--gold-deep);font-size:11px;font-weight:850;text-decoration:none}
.territory-mix-shell{padding:16px;margin-bottom:12px}
.territory-mix-title{align-items:center}
.territory-mix-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.territory-mix-panel{min-width:0;padding:3px 2px}
.territory-mix-panel h3{margin:0;color:var(--charcoal);font-size:15px}
.territory-mix-panel>p{margin:3px 0 11px;color:var(--muted);font-size:10px}
.territory-mix-bars{display:grid;gap:8px}
.territory-mix-row{display:grid;grid-template-columns:minmax(0,1fr);gap:3px}
.territory-mix-label{display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.territory-mix-label strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.territory-mix-label span{color:var(--muted);font-size:10px;white-space:nowrap}
.territory-mix-track{height:8px;border-radius:999px;background:#eee7dc;overflow:hidden}
.territory-mix-track i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gold-deep),var(--gold));min-width:2px}
.territory-mix-row small{color:var(--muted);font-size:9px}
.territory-relationship-grid{grid-template-columns:1fr 1fr}
.territory-relationship-list{display:grid;gap:7px;margin-top:8px}
.territory-relationship-list>a{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:var(--panel-strong);color:inherit;text-decoration:none}
.territory-relationship-list>a:hover{border-color:var(--line-strong);background:#fffdf9}
.territory-relationship-list strong,.territory-relationship-list small{display:block}
.territory-relationship-list strong{font-size:11px}
.territory-relationship-list small{margin-top:2px;color:var(--muted);font-size:9px}
.territory-relationship-list>a>span{color:var(--gold-deep);font-size:11px;font-weight:850;white-space:nowrap}
.territory-empty{padding:13px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:10px;text-align:center}
.territory-method-note{margin:2px 3px 0;color:var(--muted);font-size:10px;line-height:1.45}
.territory-method-note strong{color:var(--charcoal)}
.analytics-locked-panel{max-width:760px;padding:22px}
.analytics-locked-panel h2{margin:4px 0 6px}
.analytics-locked-panel p{margin:0 0 14px;color:var(--muted)}
@media(max-width:1180px){.territory-access-grid{grid-template-columns:1fr 1fr}.territory-concentration-stats{grid-template-columns:1fr 1fr}}
@media(max-width:980px){.territory-intelligence-grid,.territory-relationship-grid,.territory-mix-grid{grid-template-columns:1fr}.territory-scope-filters{grid-template-columns:1fr 1fr}}
@media(max-width:700px){.analytics-view-tabs{display:flex;width:100%}.analytics-view-tabs a{flex:1;text-align:center}.territory-scope-filters{grid-template-columns:1fr 1fr}.territory-table-title,.territory-mix-title{display:grid;gap:9px}.territory-sort-controls{justify-content:flex-start}.territory-top-accounts th:nth-child(3),.territory-top-accounts td:nth-child(3),.territory-top-accounts th:nth-child(5),.territory-top-accounts td:nth-child(5){display:none}}
@media(max-width:480px){.territory-access-grid,.territory-scope-filters,.territory-concentration-stats{grid-template-columns:1fr}.territory-primary-metrics{grid-template-columns:1fr 1fr}.territory-top-accounts th:nth-child(6),.territory-top-accounts td:nth-child(6){display:none}}

/* Activity-history date correction */
.activity-date-editor{margin-top:5px}
.activity-date-editor>summary{display:inline-flex;align-items:center;color:var(--accent);font-size:10px;font-weight:850;cursor:pointer;user-select:none}
.activity-date-editor>summary::marker{color:#8aa79f}
.activity-date-editor form{display:flex;align-items:end;gap:8px;margin-top:7px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#faf9f7;max-width:360px}
.activity-date-editor .field{margin:0;flex:1}
.activity-date-editor .field>span{font-size:9px}
@media(max-width:700px){.activity-date-editor form{display:grid;grid-template-columns:1fr;max-width:none}.activity-date-editor .button{width:100%}}

/* Comprehensive Activity History correction */
.activity-edit-editor{margin-top:7px}
.activity-edit-editor>summary{display:inline-flex;align-items:center;gap:5px;color:var(--accent);font-size:10px;font-weight:850;cursor:pointer;user-select:none}
.activity-edit-editor>summary::marker{color:#8aa79f}
.activity-edit-editor form{margin-top:7px;padding:11px;border:1px solid var(--line);border-radius:8px;background:#faf9f7}
.activity-edit-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:end}
.activity-edit-grid .field{margin:0}
.activity-edit-grid .field>span{font-size:9px}
.activity-edit-grid textarea{min-height:82px;resize:vertical}
.activity-edit-notes{grid-column:1 / -1}
.activity-edit-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:9px;padding-top:9px;border-top:1px dashed var(--line)}
.activity-edit-actions small{margin:0;max-width:620px;line-height:1.35}
@media(max-width:900px){.activity-edit-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.activity-edit-grid{grid-template-columns:1fr}.activity-edit-actions{display:grid}.activity-edit-actions .button{width:100%}}

/* v112 Research-side sales-account resolution */
.account-resolution-panel { border-left: 4px solid var(--gold, #b8893f); }
.account-merge-select-form { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto; gap:14px; align-items:end; }
.account-merge-compare-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin:18px 0; }
.account-merge-preview { min-width:0; }
.account-merge-primary { border-top:3px solid var(--gold, #b8893f); }
.account-merge-member-list,.account-merge-contact-list { margin-top:18px; padding-top:14px; border-top:1px solid var(--line, #ddd4c7); display:grid; gap:8px; }
.account-merge-member-list > div,.account-merge-contact-list > div { display:grid; gap:2px; }
.account-merge-member-list small,.account-merge-contact-list small { color:var(--muted, #6c6a66); }
.account-merge-confirm-check { display:flex; gap:10px; align-items:flex-start; font-weight:600; }
.account-merge-confirm-check input { margin-top:4px; }
.notice.compact { padding:10px 12px; margin:10px 0; }
.account-merge-existing td small { display:block; margin-top:4px; color:var(--muted, #6c6a66); }
@media (max-width: 900px) {
  .account-merge-select-form,.account-merge-compare-grid { grid-template-columns:1fr; }
}
.merged-account-inline { display:flex; gap:10px; align-items:center; margin-top:7px; font-size:.86rem; }
.merged-account-inline a { font-weight:700; }

/* Research account-resolution v2: queue likely duplicates, then compare. */
.duplicate-review-queue { overflow:hidden; }
.duplicate-queue-intro { margin:-4px 0 16px; }
.duplicate-review-table { border:1px solid var(--line, #ddd4c7); border-radius:12px; overflow:hidden; }
.duplicate-review-header,
.duplicate-review-row { display:grid; grid-template-columns:120px minmax(220px,1fr) minmax(220px,1fr) minmax(240px,1.1fr); gap:0; align-items:stretch; }
.duplicate-review-header { background:var(--panel-soft, #f0ebe2); color:var(--muted, #6c6a66); font-size:12px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.duplicate-review-header > span { padding:12px 14px; }
.duplicate-review-row { color:inherit; text-decoration:none; border-top:1px solid var(--line, #ddd4c7); background:var(--panel, #fffdf9); transition:background .15s ease, box-shadow .15s ease; }
.duplicate-review-row:hover { background:#fffaf1; box-shadow:inset 3px 0 0 var(--gold, #b8893f); }
.duplicate-review-row > div { padding:15px 14px; min-width:0; }
.duplicate-review-row > div + div { border-left:1px solid var(--line, #e5ddd2); }
.duplicate-match-cell { display:flex; flex-direction:column; justify-content:center; gap:6px; }
.duplicate-match-cell > strong { font-size:22px; line-height:1; }
.duplicate-strength { display:inline-flex; width:max-content; max-width:100%; align-items:center; border-radius:999px; border:1px solid #d7c8ad; background:#faf4e9; color:#6d552d; padding:5px 8px; font-size:10px; font-weight:900; letter-spacing:.06em; white-space:nowrap; }
.duplicate-strength.strong { border-color:#abd7cf; background:#edf9f6; color:#087a6d; }
.duplicate-strength.likely { border-color:#d7c8ad; background:#faf4e9; color:#78561c; }
.duplicate-account-cell { display:flex; flex-direction:column; gap:4px; }
.duplicate-account-cell > strong { font-size:15px; color:var(--ink, #162331); }
.duplicate-account-cell > span { font-size:13px; color:#504c45; }
.duplicate-account-cell > small { color:var(--muted, #6c6a66); line-height:1.35; }
.duplicate-reasons-cell { display:flex; flex-direction:column; gap:5px; justify-content:center; }
.duplicate-reasons-cell > span { font-size:12px; color:#504c45; }
.duplicate-reasons-cell > span::before { content:"✓"; margin-right:6px; color:#087a6d; font-weight:900; }
.duplicate-reasons-cell > strong { margin-top:5px; color:#8a6424; }
.duplicate-review-empty { padding:28px; display:grid; gap:6px; text-align:center; }

.duplicate-compare-summary { margin-bottom:18px; }
.duplicate-reason-chips { display:flex; flex-wrap:wrap; gap:8px; }
.duplicate-reason-chips span { border:1px solid #b9dcd5; background:#eff9f7; color:#126f65; border-radius:999px; padding:6px 9px; font-size:12px; font-weight:700; }
.account-merge-detail-grid { align-items:start; }
.account-side-label { display:inline-flex; border-radius:999px; background:#eee8de; color:#775820; padding:5px 9px; font-size:11px; font-weight:900; letter-spacing:.08em; margin-bottom:7px; }
.account-merge-preview > h2 { margin-top:0; }
.account-compare-section { margin-top:19px; padding-top:17px; border-top:1px solid var(--line, #ddd4c7); }
.account-compare-section > h3,
.account-compare-section-head h3 { margin:0 0 11px; font-size:15px; }
.account-compare-section-head { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.account-compare-section-head > span { color:var(--muted, #6c6a66); font-size:12px; }
.account-compare-dl { display:grid; gap:0; margin:0; }
.account-compare-dl > div { display:grid; grid-template-columns:150px minmax(0,1fr); gap:12px; padding:7px 0; border-bottom:1px solid #eee8df; }
.account-compare-dl > div:last-child { border-bottom:0; }
.account-compare-dl dt { color:var(--muted, #6c6a66); font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.account-compare-dl dd { margin:0; font-size:13px; overflow-wrap:anywhere; }
.account-decision-reason { margin:11px 0 0; padding:10px 12px; background:#f7f3ec; border-radius:8px; font-size:12px; line-height:1.45; }
.account-merge-stats { grid-template-columns:repeat(3,minmax(0,1fr)); }
.account-property-list,
.account-activity-list { display:grid; gap:7px; margin-top:11px; }
.account-property-list > div,
.account-activity-list > div { display:grid; gap:2px; padding:9px 10px; border:1px solid #e5ddd2; border-radius:8px; background:#fffdfa; }
.account-property-list strong,
.account-activity-list strong { font-size:12px; }
.account-property-list small,
.account-activity-list small,
.account-activity-list span { color:var(--muted, #6c6a66); font-size:11px; }
.account-contact-detail-list { gap:7px; }
.account-contact-row { border:1px solid #e5ddd2; border-radius:8px; padding:10px !important; display:grid !important; grid-template-columns:minmax(0,1fr) minmax(140px,.8fr); gap:12px !important; background:#fffdfa; }
.account-contact-row > div { display:grid; gap:3px; }
.account-contact-row .badge { vertical-align:middle; font-size:8px; }
.account-contact-route { text-align:right; font-size:11px; color:var(--muted, #6c6a66); overflow-wrap:anywhere; }
.next-followup-compact { display:flex; justify-content:space-between; gap:12px; padding:9px 10px; border-left:3px solid var(--gold, #b8893f); background:#fbf6ed; border-radius:6px; font-size:12px; }

.merge-decision-panel { margin-top:18px; }
.merge-direction-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.merge-direction-grid form { margin:0; }
.merge-direction-button { width:100%; min-height:68px; display:flex !important; flex-direction:column; justify-content:center; align-items:flex-start !important; text-align:left; gap:3px; white-space:normal; }
.merge-direction-button strong { font-size:14px; }
.merge-direction-button span { font-size:11px; font-weight:600; opacity:.84; }
.merge-secondary-actions { display:flex; gap:10px; align-items:center; margin-top:12px; }
.merge-secondary-actions form { margin:0; }
.merge-safety-note { color:var(--muted, #6c6a66); font-size:12px; line-height:1.45; margin:13px 0 0; }
.merge-history-compact { margin-top:18px; padding:0; }
.merge-history-compact > summary { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 18px; }
.merge-history-compact > summary::-webkit-details-marker { display:none; }
.merge-history-compact > summary::after { content:"▾"; color:#8b672d; }
.merge-history-compact[open] > summary::after { transform:rotate(180deg); }
.merge-history-compact > summary span { color:var(--muted, #6c6a66); font-size:12px; margin-left:auto; }
.merge-history-compact .table-wrap { border-top:1px solid var(--line, #ddd4c7); }

@media (max-width: 980px) {
  .duplicate-review-header { display:none; }
  .duplicate-review-row { grid-template-columns:90px minmax(0,1fr); }
  .duplicate-review-row > div + div { border-left:0; }
  .duplicate-match-cell { grid-row:span 3; border-right:1px solid var(--line, #e5ddd2); }
  .duplicate-account-cell { border-bottom:1px solid #eee8df; }
  .account-compare-dl > div { grid-template-columns:125px minmax(0,1fr); }
}
@media (max-width: 700px) {
  .duplicate-review-row { grid-template-columns:1fr; }
  .duplicate-match-cell { grid-row:auto; border-right:0; border-bottom:1px solid #eee8df; flex-direction:row; align-items:center; justify-content:flex-start; }
  .duplicate-match-cell > strong { font-size:16px; }
  .account-merge-compare-grid,.merge-direction-grid { grid-template-columns:1fr; }
  .account-contact-row { grid-template-columns:1fr; }
  .account-contact-route { text-align:left; }
  .account-compare-dl > div { grid-template-columns:1fr; gap:3px; }
  .merge-secondary-actions { align-items:stretch; flex-direction:column; }
  .merge-secondary-actions form,.merge-secondary-actions .button { width:100%; }
}

/* Merged sales-account parcel audit: preserve and expose every underlying property. */
.parcel-account-summary{margin:4px 0 0;font-size:12px}
.parcel-property-groups{display:grid;gap:9px}
.parcel-property-group{margin:0;border:1px solid var(--line);border-radius:10px;padding:0;background:#fbfaf8;overflow:hidden}
.parcel-property-group>summary{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:11px 12px;border:0;background:#f7f3ed;list-style:none}
.parcel-property-group>summary::-webkit-details-marker{display:none}
.parcel-property-group[open]>summary{border-bottom:1px solid var(--line)}
.parcel-property-summary-main{display:block;min-width:0}
.parcel-property-summary-main strong,.parcel-property-summary-main small{display:block}
.parcel-property-summary-main small{margin-top:2px;color:var(--muted);font-weight:500}
.parcel-property-summary-count{white-space:nowrap;color:var(--muted);font-size:12px;font-weight:700}
.parcel-property-group .parcel-list{padding:10px 12px 2px}
.parcel-empty{padding:10px 12px;margin:0}

/* Research account resolution: cluster duplicate candidates instead of pair permutations */
.duplicate-cluster-header,.duplicate-cluster-row{grid-template-columns:120px minmax(260px,1.05fr) minmax(280px,1.2fr) minmax(260px,1fr)}
.duplicate-cluster-metrics{display:flex;flex-wrap:wrap;gap:10px 18px;margin:12px 0;color:var(--muted,#6c6a66)}
.duplicate-cluster-metrics span{display:flex;gap:5px;align-items:baseline}
.duplicate-cluster-metrics strong{color:var(--ink,#14202b)}
.cluster-owner-preview{display:grid;gap:7px}
.cluster-owner-preview>span{display:grid;gap:2px}
.cluster-owner-preview small{color:var(--muted,#6c6a66)}
.duplicate-cluster-form{display:grid;gap:18px;margin-top:18px}
.cluster-merge-name-panel{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(340px,1.2fr);gap:24px;align-items:end}
.cluster-merge-name-panel label{display:block;margin-bottom:7px;font-weight:800;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--muted,#6c6a66)}
.cluster-selection-help{display:grid;gap:4px}
.duplicate-cluster-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.duplicate-cluster-account-card{min-width:0;border-top:3px solid var(--gold,#b8893f)}
.cluster-card-selectors{display:flex;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:14px;border-bottom:1px solid var(--line,#ddd4c7)}
.cluster-card-selectors label{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800}
.cluster-account-heading{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.cluster-account-heading h2{margin-top:2px}
.cluster-detail-disclosure{margin-top:12px}
.cluster-detail-disclosure summary{cursor:pointer;font-weight:800;color:var(--gold-dark,#805e26)}
.cluster-contact-list{max-height:260px;overflow:auto}
.cluster-latest-activity{font-size:12px;line-height:1.45}
.cluster-primary-action{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.cluster-primary-action>span{max-width:760px;color:var(--muted,#6c6a66);font-size:12px;line-height:1.5}
.cluster-secondary-actions-panel{display:flex;align-items:center;justify-content:space-between;gap:18px}
.cluster-secondary-actions-panel>div:first-child{display:grid;gap:3px}
@media(max-width:1050px){.duplicate-cluster-grid{grid-template-columns:1fr}.cluster-merge-name-panel{grid-template-columns:1fr}.duplicate-cluster-header{display:none}.duplicate-cluster-row{grid-template-columns:90px minmax(0,1fr)}.duplicate-cluster-row>div+div{border-left:0}.cluster-secondary-actions-panel{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.duplicate-cluster-row{grid-template-columns:1fr}.cluster-card-selectors{align-items:flex-start;flex-direction:column}}

/* Account relationship resolution: buyer identity, corporate family, or shared manager. */
.relationship-rule-callout{display:grid;gap:4px;margin-top:10px;padding:12px 14px;border-left:3px solid var(--gold,#b8893f);background:rgba(184,137,63,.055);border-radius:0 10px 10px 0}
.relationship-rule-callout strong{color:var(--ink,#14202b)}
.relationship-rule-callout span{color:var(--muted,#6c6a66);line-height:1.5}
.relationship-rule-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}
.relationship-rule-strip span{display:grid;gap:3px;padding:10px 12px;border:1px solid var(--line,#d8d0c3);border-radius:10px;background:rgba(255,255,255,.35);font-size:12px;line-height:1.4;color:var(--muted,#6c6a66)}
.relationship-rule-strip strong{color:var(--ink,#14202b);font-size:12px}
.account-resolution-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:12px}
.account-resolution-choice{display:grid;gap:9px;padding:16px;border:1px solid var(--line,#d8d0c3);border-radius:12px;background:rgba(255,255,255,.45)}
.account-resolution-choice strong{font-size:1.02rem;color:var(--ink,#14202b)}
.account-resolution-choice span{color:var(--muted,#6c6a66);line-height:1.45}
.account-resolution-choice .button{justify-self:start;margin-top:3px}
.account-resolution-choice.family-choice{border-color:rgba(38,126,116,.35);background:rgba(38,126,116,.045)}
.account-resolution-choice.managed-portfolio-choice{border-color:rgba(69,105,144,.35);background:rgba(69,105,144,.045)}
.account-resolution-footnote{margin:12px 0 0}
.cluster-canonical-control small{font-size:.72rem;color:var(--muted,#6c6a66);font-weight:500}
@media(max-width:1050px){.account-resolution-choice-grid{grid-template-columns:1fr}.relationship-rule-strip{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.relationship-rule-strip{grid-template-columns:1fr}}


/* Review & Merge Accounts: one-click expansion for copy/paste analysis. */
.cluster-properties-toggle{justify-self:start;margin-top:7px}
@media(max-width:700px){.cluster-properties-toggle{width:100%;justify-content:center}}

/* Contact roster maintenance: compact destructive action beside Edit/Primary. */
.lead-contact-delete-form{display:inline-flex;margin:0 0 0 auto}
.contact-delete-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7cfc2;border-radius:7px;background:#fff;color:#7c756d;cursor:pointer;padding:7px;transition:border-color .15s ease,color .15s ease,background .15s ease}
.contact-delete-button svg{width:17px;height:17px;fill:currentColor;display:block}
.contact-delete-button:hover{border-color:#d97676;background:#fff5f5;color:#a72f2f}
.contact-delete-button:focus-visible{outline:2px solid rgba(167,47,47,.3);outline-offset:2px}
@media(max-width:700px){.contact-delete-button{width:36px;height:36px}}

/* v118: franchise-scoped contact removal */
.contact-more-actions{position:relative;margin-left:auto}
.contact-more-actions>summary{list-style:none;width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d7cfc2;border-radius:7px;background:#fff;color:#6f675e;font-size:22px;line-height:1;cursor:pointer;user-select:none}
.contact-more-actions>summary::-webkit-details-marker{display:none}
.contact-more-actions[open]>summary{border-color:#b89655;background:#fffaf0;color:#8a651f}
.contact-remove-franchise-form{position:absolute;right:0;top:40px;z-index:20;width:285px;max-width:min(285px,80vw);display:grid;gap:8px;padding:12px;border:1px solid #d8cdbf;border-radius:10px;background:#fff;box-shadow:0 12px 30px rgba(44,37,28,.14)}
.contact-remove-franchise-form>strong{font-size:13px}
.contact-remove-franchise-form>small{font-size:11px;line-height:1.35;color:#6c645b}
.contact-remove-franchise-form label{display:grid;gap:4px;font-size:11px;font-weight:750;color:#6c645b}
.contact-remove-franchise-form select{width:100%;min-height:34px;border:1px solid #d8cdbf;border-radius:6px;background:#fff;padding:5px 8px}
.removed-franchise-contacts{margin-top:12px;border-top:1px solid #e4d9cc;padding-top:10px}
.removed-franchise-contacts>summary{font-size:12px;font-weight:850;color:#6a6259;cursor:pointer}
.removed-franchise-contacts>.muted{margin:8px 0 10px;font-size:11px;line-height:1.4;color:#736b62}
.removed-franchise-contact-list{display:grid;gap:7px}
.removed-franchise-contact-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 10px;border:1px solid #e4d9cc;border-radius:8px;background:#faf8f4}
.removed-franchise-contact-row>div{display:grid;gap:2px;min-width:0}
.removed-franchise-contact-row small{font-size:10px;color:#776e63}
.removed-franchise-contact-row form{margin:0;flex:0 0 auto}
@media(max-width:700px){.contact-remove-franchise-form{position:fixed;left:16px;right:16px;top:auto;bottom:18px;width:auto;max-width:none}.removed-franchise-contact-row{align-items:flex-start}}

/* v120: managed portfolio sales-account identity + portfolio browser */
.managed-by-line{color:var(--gold-deep,#91713f)!important;font-size:11px!important;margin-top:3px!important}
.managed-by-line strong{display:inline!important;color:inherit!important}
.managed-member-name-field{display:grid;gap:5px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line,#d9d1c6)}
.managed-member-name-field>span{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--muted,#6f716d)}
.managed-member-name-field small{color:var(--muted,#6f716d);font-size:11px;line-height:1.35}
.managed-portfolio-head{align-items:flex-start}
.managed-portfolio-summary{padding:16px 18px;margin-bottom:18px}
.managed-portfolio-summary .mini-stats{max-width:760px;margin-bottom:10px}
.managed-portfolio-summary p{margin:0}
.managed-portfolio-account-grid{display:grid;gap:16px}
.managed-portfolio-account-card{padding:18px}
.managed-portfolio-account-card.current{border-color:var(--gold,#b08c52);box-shadow:0 0 0 2px rgba(176,140,82,.08),var(--shadow)}
.managed-portfolio-account-head{align-items:flex-start;margin-bottom:12px}
.managed-portfolio-account-head h2{margin:2px 0 3px}
.managed-portfolio-account-head p{margin:0}
.managed-portfolio-account-size{display:grid;text-align:right;gap:1px}
.managed-portfolio-account-size strong{font-size:20px}
.managed-portfolio-account-size span{font-size:11px;color:var(--muted)}
.managed-portfolio-account-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.managed-portfolio-account-meta>div{padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.35)}
.managed-portfolio-account-meta span,.managed-portfolio-account-meta strong,.managed-portfolio-account-meta small{display:block}
.managed-portfolio-account-meta span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}
.managed-portfolio-account-meta small{color:var(--muted);margin-top:2px}
.managed-account-name-form{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin:10px 0 14px;padding:10px 12px;border:1px dashed var(--line-strong,#c9bca9);border-radius:10px;background:rgba(176,140,82,.035)}
.managed-portfolio-properties{border-top:1px solid var(--line);padding-top:10px}
.managed-portfolio-properties>summary{cursor:pointer;font-weight:800;color:var(--gold-deep,#91713f)}
.managed-portfolio-properties .account-property-list{margin-top:9px;display:grid;gap:7px}
.managed-property-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-radius:9px;text-decoration:none;color:inherit;background:rgba(255,255,255,.38)}
.managed-property-row:hover{border-color:var(--gold);background:var(--gold-soft)}
.managed-property-row span:first-child{min-width:0}
.managed-property-row strong,.managed-property-row small{display:block}
.managed-property-row small{color:var(--muted);font-size:10px;margin-top:2px}
.managed-property-row>span:last-child{white-space:nowrap;color:var(--muted);font-weight:800}
.managed-portfolio-account-actions{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:760px){.managed-portfolio-account-meta{grid-template-columns:1fr}.managed-account-name-form{grid-template-columns:1fr}.managed-property-row{align-items:flex-start;flex-direction:column;gap:3px}.managed-portfolio-account-head{display:block}.managed-portfolio-account-size{text-align:left;margin-top:8px}.managed-portfolio-account-actions .button{width:100%}}
.managed-by-line a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.managed-by-line a:hover{color:var(--ink,#102636)}

/* v121: direct managed-portfolio membership maintenance */
.managed-portfolio-membership-panel{padding:18px;margin-bottom:18px}
.managed-portfolio-membership-panel>.muted{margin:0 0 12px;line-height:1.45}
.managed-portfolio-search-form{display:grid;grid-template-columns:minmax(260px,1fr) auto auto;gap:8px;align-items:end}
.managed-portfolio-search-results{display:grid;gap:8px;margin-top:14px}
.managed-portfolio-search-result{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:rgba(255,255,255,.38)}
.managed-portfolio-search-result>div{min-width:0;display:grid;gap:2px}
.managed-portfolio-search-result strong{font-size:14px}
.managed-portfolio-search-result small{color:var(--muted);font-size:10px;line-height:1.35}
.managed-portfolio-search-result form{margin:0;flex:0 0 auto}
.managed-portfolio-assigned-warning{color:#8c5e20!important;font-weight:750}
.managed-portfolio-search-empty{margin-top:12px}
.managed-portfolio-account-actions{gap:8px;align-items:center;flex-wrap:wrap}
.managed-portfolio-account-actions form{margin:0}
.owner-managed-portfolio-add{display:grid;grid-template-columns:minmax(230px,1fr) auto;gap:8px;align-items:end;margin-top:10px;padding:10px 12px;border:1px dashed var(--line-strong,#c9bca9);border-radius:10px;background:rgba(176,140,82,.035)}
.owner-managed-portfolio-add>small{grid-column:1/-1;margin:0!important;line-height:1.35}
.owner-managed-portfolio-remove{margin:8px 0 0}
.portfolio-membership-notice{display:grid;gap:2px;margin-top:9px;padding:8px 10px;border-radius:8px;font-size:11px}
.portfolio-membership-notice.good{background:rgba(45,125,82,.08);border:1px solid rgba(45,125,82,.24)}
.portfolio-membership-notice.bad{background:rgba(160,67,48,.08);border:1px solid rgba(160,67,48,.24)}
.portfolio-membership-notice strong,.portfolio-membership-notice span{display:block;font-size:11px!important;margin:0!important}
@media(max-width:760px){.managed-portfolio-search-form,.owner-managed-portfolio-add{grid-template-columns:1fr}.managed-portfolio-search-result{align-items:flex-start;flex-direction:column}.managed-portfolio-search-result form,.managed-portfolio-search-result form .button{width:100%}.owner-managed-portfolio-add>small{grid-column:auto}.managed-portfolio-account-actions form,.managed-portfolio-account-actions .button{width:100%}}

/* v122: compact Lead Details relationship maintenance */
.owner-relationships{margin-top:10px;border:1px solid var(--line,#d9d1c6);border-radius:10px;background:rgba(176,140,82,.035);overflow:hidden}
.owner-relationships>summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;cursor:pointer;user-select:none}
.owner-relationships>summary::-webkit-details-marker{display:none}
.owner-relationships>summary:before{content:'›';flex:0 0 auto;font-size:18px;line-height:1;color:var(--gold-deep,#91713f);transition:transform .15s ease}
.owner-relationships[open]>summary:before{transform:rotate(90deg)}
.owner-relationships>summary>span:first-of-type{display:grid;gap:2px;min-width:0;flex:1}
.owner-relationships>summary strong{font-size:11px;text-transform:uppercase;letter-spacing:.07em}
.owner-relationships>summary small{font-size:10px;line-height:1.3;color:var(--muted,#6f716d);overflow:hidden;text-overflow:ellipsis}
.owner-relationship-badges{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.owner-relationships-body{display:grid;gap:10px;padding:0 12px 12px;border-top:1px solid var(--line,#d9d1c6)}
.owner-relationship-block{display:grid;gap:5px;padding-top:10px}
.owner-relationship-block+.owner-relationship-block{border-top:1px solid var(--line,#d9d1c6)}
.owner-relationship-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.owner-relationship-heading>div{display:grid;gap:2px;min-width:0}
.owner-relationship-heading small,.owner-relationship-block>small{font-size:10px!important;line-height:1.35;color:var(--muted,#6f716d)!important;margin:0!important}
.owner-relationship-heading>a,.owner-relationships-footer>a{font-size:11px;font-weight:800;white-space:nowrap}
.owner-relationship-block>strong{font-size:13px}
.owner-relationship-add{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;align-items:end;margin-top:4px}
.owner-relationship-add .field{margin:0}
.owner-relationship-add .field>span{font-size:9px}
.owner-relationship-add select{min-height:34px;padding:5px 7px;font-size:11px}
.owner-relationship-remove{margin:4px 0 0}
.owner-relationships-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:10px;border-top:1px solid var(--line,#d9d1c6)}
.owner-relationships-footer small{font-size:9px!important;color:var(--muted,#6f716d)!important;margin:0!important;text-align:right}
@media(max-width:760px){.owner-relationships>summary{align-items:flex-start}.owner-relationship-badges{display:none}.owner-relationship-add{grid-template-columns:1fr}.owner-relationship-heading,.owner-relationships-footer{display:grid}.owner-relationships-footer small{text-align:left}}

/* v124: Lead List relationship context. Family and managed-portfolio names are
   searchable relationship metadata, never substitutes for the Sales Account title. */
.account-family-line{color:var(--muted,#6f716d)!important;font-size:11px!important;margin-top:3px!important}
.account-family-line strong{display:inline!important;color:inherit!important}
.account-family-line a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}
.account-family-line a:hover{color:var(--ink,#102636)}

/* Your Move: let the salesperson decline the recommendation without losing momentum. */
.your-move-not-this-one-menu{width:310px}
.your-move-not-this-one-menu>small{display:block;padding:0 6px 9px;color:var(--muted);font-size:11px;line-height:1.35}
.your-move-not-this-one-menu .your-move-snooze-option{display:flex;flex-direction:column;gap:2px}
.your-move-not-this-one-menu .your-move-snooze-option b{font-size:13px}
.your-move-not-this-one-menu .your-move-snooze-option span{font-size:10px;font-weight:500;color:var(--muted);line-height:1.3}
.your-move-need-something{border-top:1px solid #eee5d9}
.your-move-need-something>summary{list-style:none;cursor:pointer}
.your-move-need-something>summary::-webkit-details-marker{display:none}
.your-move-need-options{padding:4px 7px 8px;background:#fbf7f1}
.your-move-need-options>form:not(.your-move-snooze-custom){display:inline-flex;width:auto;margin:4px 4px 4px 0}
.your-move-need-options>form>button{padding:6px 9px;border:1px solid var(--line);border-radius:7px;background:#fff;color:var(--charcoal);font:inherit;font-size:11px;font-weight:700;cursor:pointer}
@media(max-width:760px){
  .dashboard-page .your-move-not-this-one-menu{width:100%}
  .dashboard-page .your-move-not-this-one{grid-column:2}
}

/* v110: on-demand parking-area highlight keeps the free Embed map as the default. */
.parking-highlight-map{width:100%;height:100%}
.map-actions{flex-wrap:wrap;align-items:center}
.map-highlight-button:disabled{cursor:default;opacity:.72}
.map-highlight-status{font-size:11px;color:var(--muted);line-height:1.3}
.map-highlight-status.error{color:var(--bad)}

@media(max-width:600px){.admin-map-usage-grid{grid-template-columns:1fr}.admin-map-usage-grid>div{display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-map-usage-grid strong{margin-top:0}.admin-map-usage-heading{align-items:stretch;flex-direction:column}.admin-map-key-status{align-self:flex-start}.admin-map-default-form{align-items:stretch;flex-direction:column}.admin-map-default-form .button{align-self:flex-start}}

/* v111: Phase 1 estimator — one dynamic map expands into a measurement workspace. */
.map-layer-control{display:inline-flex;align-items:center;gap:7px;min-height:38px;padding:0 9px;border:1px solid #c9d1d8;border-radius:9px;background:#fff}
.map-layer-control>span{font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.map-layer-control select{width:auto;min-width:94px;border:0;padding:6px 24px 6px 4px;box-shadow:none;background-color:transparent;font-weight:750}
.map-layer-control select:focus{box-shadow:none;border:0;outline:2px solid rgba(20,122,103,.18);outline-offset:2px}
.facility-tab small b{color:var(--gold-deep,#8a652c);font-weight:800}
.property-measured-area{display:flex;flex-direction:column;align-items:flex-end;line-height:1.25}
.property-measured-area b{color:var(--gold-deep,#8a652c);font-size:14px}
.property-measured-area small{margin-top:3px;color:var(--muted);font-size:10px}
.estimator-measurements-summary{margin-top:12px;padding:12px;border:1px solid #d9c9ae;border-radius:9px;background:#fffaf2}
.estimator-summary-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.estimator-summary-head small{color:var(--muted);font-size:10px}
.estimator-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.estimator-summary-grid>div{padding:8px;border:1px solid #eadfce;border-radius:7px;background:#fffdfa}
.estimator-summary-grid span,.estimator-summary-grid strong{display:block}
.estimator-summary-grid span{font-size:9px;font-weight:850;letter-spacing:.055em;text-transform:uppercase;color:var(--muted)}
.estimator-summary-grid strong{margin-top:3px;font-size:13px}
body.estimator-active{overflow:hidden}
.estimator-workspace[hidden]{display:none!important}
.estimator-workspace{position:fixed;inset:12px;z-index:1200;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #bfa77d;border-radius:12px;background:#f7f3ec;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.estimator-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 15px;border-bottom:1px solid #d8cdbc;background:#fffdfa}
.estimator-workspace-head>div:first-child{min-width:0}
.estimator-workspace-head strong,.estimator-workspace-head small{display:block}
.estimator-workspace-head strong{font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.estimator-workspace-head small{margin-top:2px;color:var(--muted);font-size:10px}
.estimator-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.estimator-workspace-body{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:0;flex:1}
.estimator-map-stage{position:relative;min-width:0;min-height:0;background:#d9d4cc}
.estimator-map-slot{position:absolute;inset:0}
.estimator-map-slot>.map-frame.estimator-expanded-map{position:absolute;inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}
.estimator-map-help{position:absolute;left:14px;right:14px;bottom:14px;z-index:5;max-width:760px;margin:auto;padding:9px 12px;border:1px solid rgba(255,255,255,.65);border-radius:8px;background:rgba(26,30,31,.88);color:#fff;font-size:11px;line-height:1.35;box-shadow:0 5px 18px rgba(0,0,0,.18);pointer-events:none}
.estimator-sidebar{min-width:0;overflow:auto;padding:13px;border-left:1px solid #d8cdbc;background:#fffdfa}
.estimator-tool-group{padding:0 0 12px;margin:0 0 12px;border-bottom:1px solid #e5ddd2}
.estimator-tool-label{display:block;margin-bottom:7px;font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.estimator-tool-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
.estimator-tool-buttons .button,.estimator-space-types .button,.estimator-space-methods .button,.estimator-choice-buttons .button{min-height:36px;padding:7px 8px;font-size:11px}
.estimator-tool-buttons .button.active,.estimator-space-types .button.active,.estimator-space-methods .button.active,.estimator-choice-buttons .button.active{border-color:var(--gold,#b08c52);background:var(--gold-soft,#f7edda);color:var(--gold-deep,#76531d)}
.estimator-tool-buttons [data-estimator-mode="select"]{grid-column:auto}

.estimator-object-choice{display:flex;flex-direction:column;gap:2px;padding:10px 11px;border:1px solid #e2d8ca;border-radius:10px;background:#fbf8f3}
.estimator-object-choice strong{font-size:12px}
.estimator-object-choice small{color:var(--muted);font-size:9px;line-height:1.35}
.estimator-inline-field{margin:0 0 7px}
.estimator-space-types{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.estimator-choice-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:10px}
.estimator-stencil-types{grid-template-columns:repeat(6,minmax(0,1fr))}
.estimator-stencil-types .button:nth-child(-n+2){grid-column:span 3}
.estimator-stencil-types .button:nth-child(n+3){grid-column:span 2}
.estimator-space-methods{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin-bottom:10px}
.estimator-space-methods .estimator-one-click-row{display:flex;align-items:center;justify-content:center;gap:5px}
.estimator-one-click-options{display:grid;gap:7px;margin-top:8px}
.estimator-one-click-instructions,.estimator-one-click-result{padding:9px;border:1px solid #d7c8b3;border-radius:8px;background:#fff8ea}
.estimator-one-click-instructions strong,.estimator-one-click-instructions small,.estimator-one-click-result strong,.estimator-one-click-result small{display:block}
.estimator-one-click-instructions strong,.estimator-one-click-result strong{font-size:12px}
.estimator-one-click-instructions small,.estimator-one-click-result small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.35}
.estimator-one-click-confidence{margin-top:7px;padding:7px 8px;border:1px solid #d7c8b3;border-radius:7px;background:#fff;color:var(--ink);font-size:10px;font-weight:700;line-height:1.35}
.estimator-one-click-confidence.medium{border-color:#d0a45d;background:#fff8e7;color:#76531d}
.estimator-one-click-confidence.low{border-color:#c87945;background:#fff3e8;color:#7b3d18}
.estimator-space-method-icon{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}

.estimator-sub-label{margin-top:10px}
.estimator-quick-row-options{display:grid;gap:7px;margin-top:8px}
.estimator-number-with-unit{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px}
.estimator-number-with-unit input{width:100%;min-width:0}
.estimator-number-with-unit span{font-size:11px;color:var(--muted)}
.estimator-quick-row-result{padding:9px;border:1px solid #d7c8b3;border-radius:8px;background:#fff8ea}
.estimator-quick-row-result strong,.estimator-quick-row-result small{display:block}
.estimator-quick-row-result strong{font-size:12px}
.estimator-quick-row-result small{margin-top:3px;color:var(--muted);font-size:9px;line-height:1.35}
.estimator-quick-row-adjust,.estimator-quick-row-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}
.estimator-selected-item strong{display:block;margin-bottom:8px;font-size:12px}
.estimator-row-guide-linework{margin:0 0 8px}
.estimator-selected-actions{display:flex;gap:6px;flex-wrap:wrap}
.button.danger{border-color:#dc9f9f;color:#a13a3a;background:#fff}
.estimator-totals{display:block;margin-bottom:10px}
.estimator-totals .estimator-total-main{padding:9px;border:1px solid #d5bf96;border-radius:7px;background:#fff7e8}
.estimator-totals span,.estimator-totals strong{display:block}
.estimator-totals span{font-size:8px;font-weight:900;letter-spacing:.075em;text-transform:uppercase;color:var(--muted)}
.estimator-totals strong{margin-top:3px;font-size:14px}
.estimator-total-main strong{font-size:22px;color:var(--gold-deep,#76531d)}
.estimator-totals-details{margin-top:6px;border:1px solid #e4dbcf;border-radius:7px;background:#fbf8f3;overflow:hidden}
.estimator-totals-details>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 9px;cursor:pointer;list-style:none;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.estimator-totals-details>summary::-webkit-details-marker{display:none}
.estimator-totals-details>summary:after{content:'▾';font-size:12px;line-height:1;transition:transform .15s ease}
.estimator-totals-details[open]>summary:after{transform:rotate(180deg)}
.estimator-totals-details>summary small{margin-left:auto;font-size:8px;font-weight:700;letter-spacing:0;text-transform:none;color:var(--muted)}
.estimator-totals-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:0 7px 7px}
.estimator-totals-grid>div{padding:8px;border:1px solid #e4dbcf;border-radius:7px;background:#fff}
.estimator-list-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.estimator-list-head small{color:var(--muted);font-size:9px}
.estimator-line-list{display:grid;gap:5px}
.estimator-line-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 8px;border:1px solid #e5ddd2;border-radius:7px;background:#fff}
.estimator-line-row span{min-width:0}
.estimator-line-row strong,.estimator-line-row small{display:block}
.estimator-line-row strong{font-size:11px}
.estimator-line-row small{color:var(--muted);font-size:9px}
.estimator-line-delete{width:28px;height:28px;border:0;border-radius:6px;background:#f4efea;color:#765d48;font-size:18px;line-height:1;cursor:pointer}
.estimator-save-status{min-height:19px;color:var(--accent);font-size:10px;font-weight:700}
.estimator-save-status.error{color:var(--bad)}
@media(max-width:900px){
  .estimator-workspace{inset:6px}
  .estimator-workspace-head{align-items:flex-start;flex-direction:column}
  .estimator-head-actions{width:100%;justify-content:flex-start}
  .estimator-workspace-body{grid-template-columns:1fr;grid-template-rows:minmax(340px,1fr) auto;overflow:auto}
  .estimator-map-stage{min-height:420px}
  .estimator-sidebar{overflow:visible;border-left:0;border-top:1px solid #d8cdbc}
  .estimator-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
  .map-layer-control{flex:1 1 130px;justify-content:space-between}
  .map-layer-control select{flex:1;min-width:0}
  .estimator-map-actions .estimator-open-button{flex:1 1 150px}
  .property-measured-area{align-items:flex-start;margin-top:4px}
  .estimator-workspace{inset:3px;border-radius:8px}
  .estimator-workspace-head{padding:10px}
  .estimator-workspace-head small{display:none}
  .estimator-head-actions .button{min-height:34px;padding:6px 9px;font-size:11px}
  .estimator-workspace-body{grid-template-rows:minmax(320px,52%) auto}
  .estimator-map-stage{min-height:320px}
  .estimator-sidebar{padding:10px}
  .estimator-map-help{left:8px;right:8px;bottom:8px}
}
.estimator-head-save-status{min-width:76px;max-width:300px;padding:6px 9px;border-radius:999px;color:var(--accent);background:rgba(181,134,65,.10);font-size:11px;font-weight:800;line-height:1.2;text-align:right;opacity:1}
.estimator-head-save-status:empty{padding:0;background:transparent}
.estimator-head-save-status.error{color:var(--bad);background:rgba(180,45,45,.10)}
@media (max-width: 760px){.estimator-head-save-status{max-width:none;text-align:left}}
.estimator-quick-row-width-status{margin-top:7px;padding:7px 8px;border:1px solid #d7c8b3;border-radius:7px;background:#fff;color:var(--ink);font-size:10px;font-weight:700;line-height:1.35}
.estimator-quick-row-width-status.warning{border-color:#c87945;background:#fff3e8;color:#7b3d18}

/* Estimator controls use the HTML hidden attribute extensively. The global
   .button display:inline-flex rule otherwise wins over the UA hidden style. */
.estimator-workspace [hidden]{display:none!important}

.estimator-icon-button{display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-width:0!important;min-height:48px!important;padding:7px 6px!important;line-height:1.05;text-align:center}
.estimator-tool-icon,.estimator-action-svg{display:block;width:20px;height:20px;flex:0 0 auto;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.estimator-tool-icon{width:21px;height:21px}
.estimator-icon-button>span:last-child{font-size:9px;font-weight:750;letter-spacing:.01em;white-space:nowrap}
.estimator-tool-buttons .button.active .estimator-tool-icon{stroke-width:2.25}
.estimator-action-icon{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:36px;padding:7px 10px}
.estimator-action-svg{width:16px;height:16px;stroke-width:2.15}
.estimator-action-icon>span:last-child{font-size:11px;font-weight:750}
@media(hover:hover) and (pointer:fine){
  .estimator-icon-button:hover .estimator-tool-icon,.estimator-action-icon:hover .estimator-action-svg{transform:translateY(-1px)}
  .estimator-tool-icon,.estimator-action-svg{transition:transform .12s ease,stroke-width .12s ease}
}

/* Estimate lifecycle / Lead Details reporting */
.estimator-summary-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.estimator-summary-title .badge{font-size:8px;letter-spacing:.08em}
.estimator-summary-actions{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:10px;padding-top:10px;border-top:1px solid #e5ddd2}
.estimator-lead-measurements{flex:1;min-width:0}
.estimator-lead-measurements>summary{display:inline-flex;align-items:center;gap:6px;cursor:pointer;font-size:11px;font-weight:800;color:var(--brown,#655446);list-style:none}
.estimator-lead-measurements>summary::-webkit-details-marker{display:none}
.estimator-detail-hide{display:none}
.estimator-lead-measurements[open] .estimator-detail-show{display:none}
.estimator-lead-measurements[open] .estimator-detail-hide{display:inline}
.estimator-detail-caret{display:inline-block;transition:transform .12s ease}
.estimator-lead-measurements[open] .estimator-detail-caret{transform:rotate(180deg)}
.estimator-lead-detail-list{margin-top:10px;padding-top:2px;border-top:1px solid #eee5da}
.estimator-detail-section{padding:11px 0 4px;border-bottom:1px solid #eee5da}
.estimator-detail-section:last-child{border-bottom:0}
.estimator-detail-section h4{margin:0 0 5px;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase;color:var(--brown,#655446)}
.estimator-detail-section dl{margin:0}
.estimator-detail-section dl>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:baseline;padding:4px 0}
.estimator-detail-section dt{min-width:0;font-size:11px;line-height:1.25;color:#55504a}
.estimator-detail-section dd{margin:0;font-size:11px;font-weight:800;line-height:1.25;color:var(--ink,#172536);text-align:right;white-space:nowrap}
.estimator-detail-section dl>div.total{margin-top:3px;padding-top:7px;border-top:1px solid #eee5da}
.estimator-detail-section dl>div.total dt,.estimator-detail-section dl>div.total dd{font-weight:900;color:var(--ink,#172536)}
.estimator-detail-section dl>div.secondary dt,.estimator-detail-section dl>div.secondary dd{font-size:10px;color:var(--muted)}
.estimator-detail-section dl>div.total+div.secondary{margin-top:3px;padding-top:7px;border-top:1px dashed #eee5da}
.estimator-report-button{white-space:nowrap}
.estimator-complete-button{border-color:var(--gold,#b08c52);color:var(--gold-deep,#76531d);background:var(--gold-soft,#f7edda)}
.estimator-workspace.estimator-readonly .estimator-sidebar .estimator-tool-group{pointer-events:none;opacity:.5}
.estimator-workspace.estimator-readonly .estimator-map-help::before{content:'Measurements complete · ';font-weight:900;color:var(--gold-deep,#76531d)}
@media(max-width:700px){.estimator-summary-actions{flex-direction:column}.estimator-report-button{width:100%;text-align:center}.estimator-lead-measurements{width:100%}}
.estimator-report-button[hidden]{display:none!important}

/* Estimator keyboard shortcut discoverability */
.estimator-icon-button[data-shortcut]{position:relative}
.estimator-icon-button[data-shortcut]::after{content:attr(data-shortcut);position:absolute;top:5px;right:6px;min-width:15px;height:15px;padding:0 3px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d8cdbc;border-radius:4px;background:#fffdfa;color:var(--muted);font-size:8px;font-weight:850;line-height:1;box-shadow:0 1px 1px rgba(0,0,0,.04)}
.estimator-tool-buttons .button.active[data-shortcut]::after{border-color:#c8ad7e;background:#fff7e8;color:var(--gold-deep,#76531d)}
.estimator-action-icon[data-shortcut]::after{content:attr(data-shortcut);margin-left:2px;padding:2px 4px;border:1px solid #d8cdbc;border-radius:4px;background:#fffdfa;color:var(--muted);font-size:8px;font-weight:850;line-height:1}
.estimator-shortcuts{margin-top:8px;padding-top:8px;border-top:1px dashed #ded4c6}
.estimator-shortcuts>summary{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer;list-style:none;color:var(--muted);font-size:9px;font-weight:800}
.estimator-shortcuts>summary::-webkit-details-marker{display:none}
.estimator-shortcuts kbd{display:inline-flex;align-items:center;justify-content:center;min-width:19px;padding:2px 5px;border:1px solid #d8cdbc;border-bottom-width:2px;border-radius:4px;background:#fff;color:var(--ink);font-size:8px;font-weight:800;line-height:1.2;font-family:inherit;white-space:nowrap}
.estimator-shortcut-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 8px;margin-top:8px}
.estimator-shortcut-grid>span{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:9px;line-height:1.2}

.estimator-nearby-control{margin-top:9px;padding-top:9px;border-top:1px dashed #ded4c6}
.estimator-nearby-head{margin-bottom:8px}
.estimator-nearby-head .estimator-tool-label{margin-bottom:0}
.estimator-nearby-toggle{width:100%;display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;text-align:left}
.estimator-nearby-toggle .estimator-tool-icon{width:18px;height:18px;flex:0 0 auto}
.estimator-nearby-toggle>span{flex:1;min-width:0;font-size:12px;font-weight:800}
.estimator-nearby-toggle>small{font-size:10px;font-weight:700;color:var(--muted)}
.estimator-nearby-toggle.active{border-color:var(--gold,#b08c52);background:var(--gold-soft,#f7edda);color:var(--gold-deep,#76531d)}
.estimator-nearby-status{margin-top:8px;color:var(--muted);font-size:10px;line-height:1.4}
.estimator-nearby-status.error{color:var(--bad)}
.estimator-nearby-card{max-width:250px;color:var(--ink,#172536);font-family:inherit}
.estimator-nearby-card strong,.estimator-nearby-card small,.estimator-nearby-card a{display:block}
.estimator-nearby-card strong{font-size:13px;line-height:1.3}
.estimator-nearby-card small{margin-top:4px;font-size:11px;line-height:1.35;color:#5d5347}
.estimator-nearby-card .nearby-property-meta{margin-top:7px;display:flex;flex-wrap:wrap;gap:5px}
.estimator-nearby-card .nearby-property-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 7px;border-radius:999px;background:#f6eee1;color:#76531d;font-size:10px;font-weight:800;letter-spacing:.02em}
.estimator-nearby-card .nearby-property-badge.same-owner{background:#e6f4f2;color:#136457}
.estimator-nearby-card .nearby-property-badge.nearby{background:#f2f0eb;color:#655446}
.estimator-nearby-card .nearby-property-link{margin-top:9px;font-size:11px;font-weight:800;color:var(--accent,#147a67);text-decoration:none}
.estimator-nearby-card .nearby-property-link:hover{text-decoration:underline}
/* Lead Details polish — compact follow-up, account disclosure, estimator emphasis */
.next-followup-summary.empty-state{
  min-height:38px;
  padding:7px 10px;
  border:1px solid #e1d8cc;
  border-left:3px solid #c8ad7a;
  background:#fbf9f5;
}
.next-followup-summary.empty-state .next-followup-empty-inline{
  display:flex;
  align-items:baseline;
  gap:8px;
  flex-wrap:wrap;
}
.next-followup-summary.empty-state .eyebrow{
  display:inline;
  margin:0;
  font-size:9px;
}
.next-followup-summary.empty-state strong{
  display:inline;
  margin:0;
  font-size:12px;
  font-weight:800;
}
.next-followup-add{
  flex:0 0 auto;
  border:0;
  padding:4px 2px;
  background:transparent;
  color:var(--gold-deep,#91713f);
  font:inherit;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}
.next-followup-add:hover{text-decoration:underline}
.next-followup-add:focus-visible{outline:2px solid var(--gold,#b08c52);outline-offset:3px;border-radius:3px}

.lead-account-crm{
  margin:7px 0 9px;
  padding:9px 10px 7px;
  background:#faf6ef;
}
.lead-account-crm-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.lead-account-crm-heading>span:first-child{
  color:#8f7a59;
  font-size:8px;
  font-weight:850;
  letter-spacing:.1em;
  text-transform:uppercase;
}
.lead-account-state{flex:0 0 auto;padding:3px 6px;font-size:8px}
.lead-account-name-row strong{font-size:16px;line-height:1.18}
.lead-account-details{
  margin:5px -2px 0;
  padding:0;
  border-top:1px solid rgba(180,157,120,.28);
}
.lead-account-details>summary{
  display:flex;
  align-items:center;
  gap:5px;
  width:max-content;
  max-width:100%;
  padding:6px 2px 2px;
  list-style:none;
  color:var(--gold-deep,#91713f);
  font-size:10px;
  font-weight:800;
  cursor:pointer;
}
.lead-account-details>summary::-webkit-details-marker{display:none}
.lead-account-detail-hide{display:none}
.lead-account-details[open] .lead-account-detail-show{display:none}
.lead-account-details[open] .lead-account-detail-hide{display:inline}
.lead-account-detail-caret{font-size:12px;line-height:1;transition:transform .15s ease}
.lead-account-details[open] .lead-account-detail-caret{transform:rotate(180deg)}
.lead-account-details-body{padding:4px 2px 3px}
.lead-account-details-body>.lead-account-domain:first-child{margin-top:2px}
.lead-account-details .owner-relationships{margin-top:8px}

.estimator-map-actions .estimator-open-button{
  min-height:40px;
  padding:8px 16px;
  border-color:var(--gold,#b08c52);
  background:var(--gold,#b08c52);
  color:#171b1d;
  font-weight:900;
  box-shadow:0 5px 14px rgba(145,113,63,.18);
}
.estimator-map-actions .estimator-open-button:hover{
  border-color:#9f7c45;
  background:#9f7c45;
  color:#111;
  transform:translateY(-1px);
}
@media(max-width:620px){
  .next-followup-summary.empty-state{align-items:center;flex-direction:row}
  .lead-account-crm-heading{align-items:flex-start}
}

/* Lead Details center-column polish: compact context, inline follow-up editor, activity/contact disclosures */
.activity-context-row{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px;align-items:end;margin:10px 0 12px}
.activity-panel .activity-context-row .activity-contact-select{margin:0}
.activity-panel .activity-context-row .activity-date-field{margin:0}
.activity-panel .activity-context-row .activity-date-field>span{font-size:9px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.activity-panel .activity-context-row .activity-date-field input{min-height:38px;padding:7px 9px;font-size:12px}
.activity-panel .activity-context-row .activity-date-field .field-note{margin-top:3px;font-size:9px;line-height:1.2;color:#918b83}
.activity-followup-editor{margin:-4px 0 10px;padding:11px 12px;border:1px solid #d7e1ea;border-radius:9px;background:#f8fbfe}
.activity-followup-editor[hidden]{display:none!important}
.activity-followup-editor-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.activity-followup-editor-head strong{font-size:12px;text-transform:uppercase;letter-spacing:.055em}
.activity-followup-close{border:0;background:transparent;color:var(--muted);font:inherit;font-size:10px;font-weight:800;cursor:pointer}
.activity-followup-editor-grid{display:grid;grid-template-columns:150px minmax(160px,1fr) minmax(170px,.85fr);gap:9px;align-items:start}
.activity-followup-editor .field{margin:0}
.activity-followup-editor .follow-up-shortcuts{margin-top:8px}
.activity-detail-options{margin-top:8px!important;padding:10px 0 0!important;border-bottom:0!important}
.activity-detail-options[hidden]{display:none!important}
.activity-detail-grid{grid-template-columns:1fr!important;padding-top:0!important}
.activity-history-head{align-items:center}
.activity-history-actions{display:flex;align-items:center;gap:8px}
.activity-add-note-button{min-height:28px!important;padding:4px 9px!important}
.activity-note-form{margin:8px 0 10px;padding:10px 11px;border:1px solid #e1d8cc;border-radius:8px;background:#fbf9f5}
.activity-note-form[hidden]{display:none!important}
.activity-note-form .field{margin:0}
.activity-note-actions{display:flex;gap:7px;margin-top:7px}
.activity-note-actions .button{min-height:30px;padding:5px 10px;font-size:10px}
.activity-history-toggle{display:block;margin:10px auto 2px;min-height:32px;padding:6px 14px;font-size:10px}
.activity-more[hidden]{display:none!important}
.lead-contacts-toggle{display:block;margin:9px 0 2px;padding:4px 0;border:0;background:transparent;color:var(--gold-deep,#76531d);font:inherit;font-size:11px;font-weight:850;cursor:pointer}
.lead-contacts-toggle:hover{text-decoration:underline}
.lead-contact-overflow[hidden]{display:none!important}
@media(max-width:700px){.activity-context-row,.activity-followup-editor-grid{grid-template-columns:1fr}.activity-panel .activity-context-row .activity-date-field{max-width:210px}}

/* Lead Details activity context — polished shared control row */
.activity-panel .activity-context-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 170px;
  gap:0;
  align-items:stretch;
  margin:10px 0 12px;
  padding:8px 11px;
  border:1px solid #ddd5c9;
  border-radius:9px;
  background:#fffdfa;
}
.activity-panel .activity-context-row .field{
  margin:0;
  min-width:0;
  padding:0 12px 0 0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.activity-panel .activity-context-row .activity-date-field{
  max-width:none;
  padding:0 0 0 16px;
  border-left:1px solid #e6ded2;
}
body:not(.login-page) .activity-panel .activity-context-row .field>span,
.activity-panel .activity-context-row .field>span{
  margin:0 0 2px;
  color:#77736c;
  font-size:9px!important;
  line-height:1.15;
  font-weight:800;
  text-transform:none;
  letter-spacing:.015em;
}
.activity-panel .activity-context-row .activity-contact-select select,
.activity-panel .activity-context-row .activity-date-field input{
  width:100%;
  min-height:30px!important;
  height:30px;
  margin:0;
  border:0!important;
  border-radius:6px;
  background-color:transparent;
  box-shadow:none!important;
  color:#17212b;
  font-size:12px!important;
  line-height:30px;
  font-weight:750;
}
.activity-panel .activity-context-row .activity-contact-select select{
  appearance:none;
  -webkit-appearance:none;
  padding:0 26px 0 0!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b6670' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 5px center;
  background-size:13px 13px;
  text-overflow:ellipsis;
  white-space:nowrap;
  overflow:hidden;
}
.activity-panel .activity-context-row .activity-date-field input{
  padding:0 2px!important;
}
.activity-panel .activity-context-row .activity-date-field input::-webkit-calendar-picker-indicator{
  opacity:.62;
  cursor:pointer;
}
.activity-panel .activity-context-row .activity-contact-select select:focus,
.activity-panel .activity-context-row .activity-date-field input:focus{
  background-color:#f8f5ef;
  box-shadow:0 0 0 2px rgba(176,140,82,.15)!important;
}
.activity-panel .activity-context-row .activity-date-field .field-note{display:none!important}
@media(max-width:700px){
  .activity-panel .activity-context-row{grid-template-columns:1fr;padding:8px 10px}
  .activity-panel .activity-context-row .field{padding:0}
  .activity-panel .activity-context-row .activity-date-field{border-left:0;border-top:1px solid #e6ded2;padding:8px 0 0;margin-top:6px}
}

/* Lead Details: visible configured follow-up cadence. */
.activity-cadence-control{margin:0 0 12px;padding:10px 11px;border:1px solid #ded4c6;border-radius:9px;background:#fffdfa}
.activity-cadence-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:8px}
.activity-cadence-head>div{min-width:0}
.activity-cadence-head .activity-priority-heading{display:block;margin:0 0 2px;font-size:9px;font-weight:900;letter-spacing:.075em;text-transform:uppercase;color:#756b5f}
.activity-cadence-head small{display:block;font-size:10px;line-height:1.25;color:var(--muted)}
.activity-cadence-current{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:#f2ece2;color:#6d604e;font-size:9px;font-weight:850;white-space:nowrap}
.activity-cadence-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
.activity-cadence-button{min-width:0;min-height:51px;padding:7px 5px 6px;border:1px solid #d9cdbc;border-radius:8px;background:#fff;color:#484139;font:inherit;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:border-color .12s ease,background .12s ease,transform .12s ease}
.activity-cadence-button strong{font-size:10px;line-height:1.1}.activity-cadence-button small{font-size:8px;line-height:1.1;color:#8b8174;white-space:nowrap}
.activity-cadence-button:disabled{opacity:.45;cursor:not-allowed}
.activity-cadence-button:not(:disabled):hover{border-color:#b68b45;background:#fbf4e7;transform:translateY(-1px)}
.activity-cadence-button.active{border-color:#a8782b;background:#f8edda;box-shadow:inset 0 0 0 1px rgba(168,120,43,.13)}
.activity-cadence-off-icon{height:13px;display:flex;align-items:center;justify-content:center;font-size:17px;line-height:1;color:#85796a;font-weight:500}
.activity-cadence-bars{height:13px;display:flex;align-items:flex-end;gap:2px}
.activity-cadence-bars i{display:block;width:4px;border:1px solid #8a7d6a;border-radius:1px;background:transparent}
.activity-cadence-bars i:nth-child(1){height:5px}.activity-cadence-bars i:nth-child(2){height:9px}.activity-cadence-bars i:nth-child(3){height:13px}
.activity-cadence-button.low .activity-cadence-bars i:nth-child(1),
.activity-cadence-button.medium .activity-cadence-bars i:nth-child(-n+2),
.activity-cadence-button.high .activity-cadence-bars i{background:#b88a3e;border-color:#9b7130}
.activity-cadence-button.low:hover .activity-cadence-bars i:nth-child(1),
.activity-cadence-button.medium:hover .activity-cadence-bars i:nth-child(-n+2),
.activity-cadence-button.high:hover .activity-cadence-bars i{background:#a87425}
.activity-cadence-custom-icon{height:14px;display:flex;align-items:center}.activity-cadence-custom-icon svg{width:15px;height:15px;fill:none;stroke:#756b5f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.activity-cadence-control .activity-priority-explainer{margin:7px 1px 0;padding:0;border:0;background:transparent}
.activity-cadence-control .activity-priority-explainer span{font-size:9px;color:#80776c}
.activity-cadence-control .activity-priority-explainer small{display:block;margin-top:2px;font-size:8px;font-weight:800;color:#9a7638}
@media(max-width:700px){.activity-cadence-options{grid-template-columns:repeat(2,minmax(0,1fr))}.activity-cadence-head{align-items:flex-start;flex-direction:column;gap:5px}}

/* Lifecycle follow-up rules stay visually distinct from Low / Medium / High sales cadence. */
.followup-lifecycle-section{margin-top:18px;padding:18px;border-top:2px solid #d9c49b;background:#fbf8f2;border-radius:0 0 12px 12px}
.followup-lifecycle-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:14px}
.followup-lifecycle-heading h3{margin:3px 0 0;font-size:18px;color:var(--ink)}
.followup-lifecycle-heading p{margin:0;max-width:620px;color:var(--muted);font-size:12px;line-height:1.45}
.followup-lifecycle-grid{display:grid;grid-template-columns:minmax(180px,1.2fr) 90px minmax(130px,.8fr) minmax(140px,.9fr) minmax(140px,.9fr);gap:10px;align-items:end}
.followup-lifecycle-grid .field{margin:0}
.followup-lifecycle-reason{grid-column:1/-1}
.followup-lifecycle-example{margin:12px 0 0;color:var(--muted);font-size:11px}
@media(max-width:900px){.followup-lifecycle-heading{display:block}.followup-lifecycle-heading p{margin-top:7px}.followup-lifecycle-grid{grid-template-columns:1fr 1fr 1fr}.followup-lifecycle-grid .followup-rule-enabled{grid-column:1/-1}.followup-lifecycle-reason{grid-column:1/-1}}
@media(max-width:620px){.followup-lifecycle-grid{grid-template-columns:1fr 1fr}.followup-lifecycle-grid .followup-rule-enabled,.followup-lifecycle-reason{grid-column:1/-1}}
.next-followup-reason{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:700}


/* =====================================================================
   v112 — Lead details activity polish
   - richer recent activity rows with type icons
   - 8 recent activities visible by default
   - tighter top spacing to match the approved mockup feel
   ===================================================================== */
.detail-head{margin-bottom:16px}
.sales-three-column .lead-contacts-panel,
.sales-three-column .activity-panel,
.sales-three-column .map-panel{padding-top:13px}
.sales-three-column .activity-title,
.sales-three-column .lead-contacts-panel .section-title,
.sales-three-column .map-panel .section-title{margin-bottom:6px}
.sales-three-column .activity-panel .activity-help{margin:0 0 8px;font-size:10px;line-height:1.4}
.sales-three-column .activity-panel .next-followup-summary{margin-top:0}
.sales-three-column .activity-panel .activity-options{margin-top:2px}
.sales-three-column .activity-panel .activity-history-head{margin-top:8px;padding-bottom:8px}

.rich-activity-history{display:grid;gap:0}
.activity-entry{margin:0;border-bottom:1px solid var(--line)}
.activity-entry:last-child{border-bottom:0}
.activity-entry>summary{list-style:none;cursor:pointer;padding:12px 0}
.activity-entry>summary::-webkit-details-marker{display:none}
.activity-entry-summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:14px;align-items:start}
.activity-entry-main{display:flex;align-items:flex-start;gap:12px;min-width:0}
.activity-type-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:10px;background:#eef2f4;color:#5f6a76}
.activity-type-icon.positive{background:#e8f5f1;color:#0c7a66}
.activity-type-icon.negative{background:#fceaea;color:#b93b3d}
.activity-type-icon.note{background:#fff1de;color:#a36b18}
.activity-type-icon.followup{background:#eaf2f8;color:#376f97}
.activity-type-icon svg{width:18px;height:18px}
.activity-entry-copy{min-width:0}
.activity-entry-copy strong{display:block;font-size:13px;line-height:1.3;color:#202a34}
.activity-entry-copy small{display:block;margin-top:3px;color:#6d7680;font-size:11px;line-height:1.4}
.activity-entry-copy .activity-preview{margin:5px 0 0;font-size:12px;line-height:1.45;color:#4f5b66;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap}
.activity-entry-meta{display:flex;align-items:center;gap:12px;padding-top:2px;color:#6d7680;font-size:11px;white-space:nowrap}
.activity-entry-expand{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#91754b}
.activity-entry[open]>summary{padding-bottom:9px}
.activity-entry[open] .activity-entry-expand{content:'Open'}
.activity-entry-detail{padding:0 0 14px 46px}
.activity-detail-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:2px 0 10px}
.activity-detail-context>div{padding:9px 10px;border:1px solid #ebe0d2;border-radius:10px;background:#fcf8f3}
.activity-detail-context span{display:block;margin-bottom:3px;color:#8a7a66;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}
.activity-detail-context strong{display:block;font-size:12px;line-height:1.4;color:#24313c}
.activity-entry-detail .activity-call-path{margin-top:2px}
.activity-note-body{margin:10px 0 0;padding:13px 14px;border:1px solid #e8ddcf;border-radius:12px;background:#fffdfa;color:#24313c;font-size:14px;line-height:1.62;white-space:pre-wrap}
.activity-meta-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.activity-entry-tools{display:grid;gap:8px;margin-top:10px}
.activity-entry-tools .activity-edit-editor,
.activity-entry-tools .activity-contact-editor{margin-top:0}
.activity-delete-row{display:flex;justify-content:flex-end;margin-top:0}
.activity-delete-row .activity-delete{padding:4px 0}
.activity-history-toggle{margin-top:12px}

@media(max-width:900px){
  .activity-entry-summary{grid-template-columns:1fr}
  .activity-entry-meta{padding-top:0;justify-content:space-between}
  .activity-entry-detail{padding-left:0}
  .activity-detail-context{grid-template-columns:1fr}
}


/* =====================================================================
   v113 — Large portfolio navigation + measured-lot discoverability
   ===================================================================== */
.portfolio-controls{display:grid;gap:8px;margin:0 0 10px}
.portfolio-search{position:relative;display:block}
.portfolio-search svg{position:absolute;left:10px;top:50%;width:16px;height:16px;transform:translateY(-50%);fill:none;stroke:#7a746c;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.portfolio-search input{min-height:36px;padding:7px 10px 7px 34px;border-radius:8px;font-size:12px;background:#fffdfa}
.portfolio-filter-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.portfolio-filter{min-width:0;min-height:33px;padding:6px 8px;border:1px solid #ddd3c6;border-radius:8px;background:#fffdfa;color:#665f57;font:inherit;font-size:10px;font-weight:800;cursor:pointer;white-space:nowrap}
.portfolio-filter strong{margin-left:3px;color:#2e363d;font-size:10px}
.portfolio-filter:hover{border-color:#bba98f;background:#f8f2e9}
.portfolio-filter.active{border-color:#b59869;background:#f1e7d6;color:#6f5126;box-shadow:inset 0 -2px 0 var(--gold)}
.portfolio-result-count{min-height:14px;color:var(--muted);font-size:10px;text-align:right}
.sales-three-column .facility-tabs{max-height:334px;scrollbar-gutter:stable}
.facility-tab{align-items:center;min-height:55px}
.facility-tab-copy{display:block;min-width:0;flex:1}
.facility-tab-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.facility-tab-copy small{line-height:1.35}
.facility-measured-area{display:block;margin-top:3px;color:var(--gold-deep,#8a652c);font-weight:800}
.facility-measured-badge{display:inline-flex;align-items:center;gap:4px;flex:0 0 auto;padding:4px 6px;border-radius:999px;background:#e7f3f0;color:#106655;font-size:8px;font-weight:900;letter-spacing:.045em;text-transform:uppercase}
.facility-measured-badge svg{width:11px;height:11px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.facility-tab.active .facility-measured-badge{background:#dceee8}
.facility-tab[hidden]{display:none!important}
@media(max-width:700px){
  .sales-three-column .facility-tabs{max-height:310px}
  .portfolio-filter-row{grid-template-columns:1fr 1fr 1fr}
  .portfolio-filter{padding-inline:5px;font-size:9px}
}


/* v113 — Recent activity disclosure polish.
   Match the compact research-details disclosure language: no DETAILS label,
   just a small chevron. Keep the collapsed row focused on person + property;
   the historical title remains available inside the opened activity. */
.activity-entry-meta{gap:10px}
.activity-entry-chevron{
  display:inline-block;width:8px;height:8px;margin:0 3px 2px 2px;
  border-right:2px solid #857b6f;border-bottom:2px solid #857b6f;
  transform:rotate(45deg);transition:transform .14s ease;flex:0 0 8px
}
.activity-entry[open]>.activity-entry-detail{}
.activity-entry[open]>summary .activity-entry-chevron{transform:translateY(3px) rotate(225deg)}
.activity-entry-expand{display:none}


/* v115 — stronger selected-lot affordance + scannable follow-up summaries */
.facility-tab.active{
  position:relative;
  border-color:#a9854f;
  background:#f3eadb;
  box-shadow:inset 4px 0 0 var(--gold),0 0 0 1px rgba(181,152,105,.12)
}
.facility-tab-flags{display:flex;flex:0 0 auto;flex-direction:column;align-items:flex-end;gap:4px}
.facility-selected-badge{display:inline-flex;align-items:center;padding:3px 6px;border-radius:999px;background:#f0dfbf;color:#7b5722;font-size:8px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}
.activity-followup-preview{color:#4c5660!important}
.activity-followup-preview strong{display:inline;color:#8a652c;font-size:12px}
.activity-followup-preview span{color:#59636d}
@media(max-width:700px){
  .facility-tab-flags{gap:3px}
  .facility-selected-badge,.facility-measured-badge{font-size:7px;padding:3px 5px}
}

/* =====================================================================
   v116 — Lead Details compact desktop header
   Pull the working sales surface upward without changing panel density.
   ===================================================================== */
@media(min-width:701px){
  body:not(.login-page) main{padding-top:20px}
  .detail-head{margin-bottom:10px;padding-bottom:0}
  .detail-head .back{margin-bottom:5px}
  .detail-head .eyebrow{line-height:1.15}
  .detail-head h1.crm-company-title{margin:1px 0 3px;line-height:1.06}
  .detail-head .crm-company-meta{line-height:1.28}
  .detail-actions{align-self:center}
}


/* v113 — Your Move polish: compact territory filters + clearer On Deck */
.dashboard-page .dashboard-filter-panel.dashboard-territory-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:10px 12px;margin-bottom:14px;border-radius:12px;background:#fffdfa}
.dashboard-territory-current{display:flex;align-items:center;gap:7px;min-width:0;color:#5e5a54;font-size:12px;white-space:nowrap}.dashboard-territory-current strong{color:var(--charcoal);font-size:13px;overflow:hidden;text-overflow:ellipsis}.dashboard-territory-icon,.dashboard-filter-icon{display:grid;place-items:center;flex:0 0 auto;color:#6e665b}.dashboard-territory-icon{width:25px;height:25px;border-radius:8px;background:#f5efe5;color:#8b692e}.dashboard-territory-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.dashboard-territory-filters{display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}.dashboard-filter-select,.dashboard-filter-static{display:flex;align-items:center;gap:5px;min-width:0;height:34px;margin:0;padding:0 7px;border:1px solid #e3ddd5;border-radius:8px;background:#fff;color:#383f45}.dashboard-filter-select select{width:auto;min-width:115px;max-width:180px;height:32px;margin:0;padding:0 24px 0 2px;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:11px;font-weight:700}.dashboard-filter-select.franchise-filter select{max-width:205px}.dashboard-filter-static strong{max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.dashboard-filter-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.dashboard-filter-apply{min-height:34px;height:34px;padding:5px 10px;border-color:#d7c6a9;background:#fffaf1;color:#604b29;font-size:11px}.dashboard-filter-apply svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.dashboard-filter-clear{padding:6px 4px;color:#746b5f;font-size:10px;font-weight:800;text-decoration:none}.dashboard-filter-clear:hover{text-decoration:underline}
.on-deck-panel .section-title{align-items:center}.on-deck-list{display:grid;gap:8px;padding-top:8px;border-top:1px solid var(--line)}.polished-on-deck-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:11px;align-items:center;padding:11px 10px;border:1px solid #e5e0d8;border-radius:10px;background:#fff;text-decoration:none}.polished-on-deck-row:hover{background:#fcfaf6;border-color:#d9cdbb}.on-deck-action-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#eef3f1;color:#507067}.on-deck-action-icon.follow_up{background:#fff0df;color:#a76b20}.on-deck-action-icon.estimate{background:#edf3fb;color:#486d99}.on-deck-action-icon.unlock{background:#edf6f2;color:#287764}.on-deck-action-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.polished-on-deck-row .on-deck-row-main strong{font-size:13px;line-height:1.3}.polished-on-deck-row .on-deck-row-main span{margin-top:3px;font-size:11px;color:#5f5a53}.polished-on-deck-row .on-deck-row-main small{margin-top:4px;font-size:10px;color:#7b746a}.on-deck-row-side{display:flex;flex-direction:column;align-items:flex-end;gap:7px;min-width:92px}.on-deck-badges{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}.polished-on-deck-row .queue-kind{display:inline-flex;align-items:center;min-height:20px;margin:0;padding:3px 6px;border-radius:999px;font-size:8px;font-weight:850;letter-spacing:.055em;line-height:1.1}.on-deck-priority{display:inline-flex;align-items:center;min-height:20px;padding:3px 6px;border-radius:999px;background:#f4f0e9;color:#6f5f49;font-size:8px;font-weight:850;white-space:nowrap}.polished-on-deck-row .on-deck-open{font-size:10px;font-weight:800;color:#685d50}.on-deck-unlock-row.polished-on-deck-row{margin:0;padding:11px 10px;background:#fff}.on-deck-unlock-row.polished-on-deck-row .on-deck-unlock-form{align-self:center}.on-deck-unlock-row.polished-on-deck-row .on-deck-badges{justify-content:flex-start;margin-top:6px}.on-deck-unlock-row.polished-on-deck-row .on-deck-unlock-form .button{min-height:32px;padding:5px 9px;font-size:10px}
@media(max-width:1050px){.dashboard-page .dashboard-filter-panel.dashboard-territory-toolbar{align-items:flex-start;flex-direction:column}.dashboard-territory-filters{width:100%;justify-content:flex-start;flex-wrap:wrap}}
@media(max-width:700px){.dashboard-territory-filters{display:grid;grid-template-columns:1fr 1fr}.dashboard-filter-select,.dashboard-filter-static{width:100%}.dashboard-filter-select select{width:100%;max-width:none}.dashboard-filter-apply{width:100%}.polished-on-deck-row{grid-template-columns:38px minmax(0,1fr)}.on-deck-row-side{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;width:100%}}


/* ==========================================================================
   v114 — Your Move calm hierarchy + Territory Workload strip
   ========================================================================== */
.your-move-reason-strip{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
.your-move-reason-pill{display:inline-flex;align-items:center;gap:8px;padding:8px 11px;border:1px solid #e7ddd0;border-radius:999px;background:#fff;color:#4f594f;font-size:12px;line-height:1.3}
.your-move-reason-icon{display:grid;place-items:center;width:22px;height:22px;border-radius:999px;background:#f7f1e7;color:#8b692e;flex:0 0 22px}
.your-move-reason-icon svg,.territory-workload-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.your-move-context-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:14px}
.your-move-context-summary-item{padding:10px 11px;border-radius:10px;background:#fff;border:1px solid var(--line)}
.your-move-context-summary-item span{display:block;font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#8f7a59;margin-bottom:4px}
.your-move-context-summary-item strong{display:block;font-size:13px;line-height:1.35;color:var(--charcoal)}
.your-move-details{margin-top:5px;border:1px solid var(--line);border-radius:10px;background:#fffdfa}
.your-move-details summary{list-style:none;cursor:pointer}
.your-move-details summary::-webkit-details-marker{display:none}
.your-move-details-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 14px;color:#6d5d46;font-size:12px;font-weight:800;letter-spacing:.03em}
.your-move-details-summary:hover{background:#fcfaf6}
.your-move-details[open] .your-move-details-summary{border-bottom:1px solid var(--line)}
.your-move-details .your-move-detail-grid{margin-top:0;padding:14px}
.your-move-details .your-move-why,.your-move-details .your-move-context{background:#fff}

.territory-workload-strip{margin:0 0 12px}
.territory-workload-title{margin-bottom:8px}
.territory-workload-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.territory-workload-link{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:10px;background:#fffdfa;color:inherit;text-decoration:none;transition:border-color .15s ease,background .15s ease}
.territory-workload-link:hover{border-color:#bca887;background:#fffaf2}
.territory-workload-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:#f6efe4;color:#8b692e}
.territory-workload-copy{min-width:0;display:flex;flex-direction:column}
.territory-workload-copy span{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.territory-workload-copy strong{display:flex;align-items:center;gap:7px;margin-top:4px;font-size:24px;line-height:1;color:var(--charcoal)}
.territory-workload-copy small{margin-top:5px;color:var(--muted);font-size:11px;line-height:1.35}

@media(max-width:980px){
  .your-move-context-summary{grid-template-columns:1fr 1fr 1fr}
  .territory-workload-grid{grid-template-columns:1fr}
}
@media(max-width:760px){
  .your-move-reason-strip{gap:7px;margin-top:14px}
  .your-move-reason-pill{width:100%;border-radius:12px}
  .your-move-context-summary{grid-template-columns:1fr;gap:7px;margin-top:10px}
  .your-move-details-summary{padding:10px 12px}
  .your-move-details .your-move-detail-grid{padding:10px}
}


/* v115 — Your Move disclosure row: flat chevron row, no extra bubble */
.your-move-details{
  margin-top:1px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
}
.your-move-details-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 0 8px;
  color:#6d5d46;
  font-size:12px;
  font-weight:800;
  letter-spacing:.03em;
  background:transparent;
}
.your-move-details-summary:hover{background:transparent;color:#544735}
.your-move-details-summary i{
  width:8px;
  height:8px;
  flex:0 0 8px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
  transition:transform .16s ease;
}
.your-move-details[open] .your-move-details-summary{
  border-bottom:1px solid var(--line);
}
.your-move-details[open] .your-move-details-summary i{
  transform:translateY(1px) rotate(225deg);
}
.your-move-details .your-move-detail-grid{
  margin-top:0;
  padding:14px 0 0;
}
@media(max-width:760px){
  .your-move-details-summary{padding:10px 0 8px}
  .your-move-details .your-move-detail-grid{padding:10px 0 0}
}


/* v116 — Your Move hierarchy refinement */
.dashboard-page .your-move-title h2{
  font-size:22px;
  line-height:1.18;
  letter-spacing:-.015em;
  font-weight:800;
}
.dashboard-page .your-move-kicker{
  background:#fff0c9;
  color:#7d5a14;
  border:1px solid #ead49d;
}
.your-move-reason-strip{gap:8px;margin-top:16px}
.your-move-reason-pill{padding:7px 10px;background:#fffdfa;border-color:#e8dfd3}
.your-move-context-summary{
  display:flex;
  align-items:stretch;
  gap:0;
  margin-top:13px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.your-move-context-summary-item{
  flex:1 1 0;
  min-width:0;
  padding:9px 12px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  background:transparent;
}
.your-move-context-summary-item:first-child{padding-left:0}
.your-move-context-summary-item:last-child{border-right:0;padding-right:0}
.your-move-context-summary-item span{font-size:9px;margin-bottom:3px;color:#8a7a65}
.your-move-context-summary-item strong{font-size:12px;line-height:1.35}
@media(max-width:760px){
  .dashboard-page .your-move-title h2{font-size:20px}
  .your-move-context-summary{display:grid;grid-template-columns:1fr;border-bottom:0}
  .your-move-context-summary-item,
  .your-move-context-summary-item:first-child,
  .your-move-context-summary-item:last-child{padding:8px 0;border-right:0;border-bottom:1px solid var(--line)}
}

/* v119 — Your Move reasons as a flat three-column strip */
.your-move-reason-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:0;
  margin-top:16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.your-move-reason-pill{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:10px 13px;
  border:0;
  border-right:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:#4f594f;
  font-size:12px;
  font-weight:750;
  line-height:1.3;
}
.your-move-reason-pill:first-child{padding-left:0}
.your-move-reason-pill:last-child{border-right:0;padding-right:0}
.your-move-reason-icon{
  display:grid;
  place-items:center;
  width:18px;
  height:18px;
  flex:0 0 18px;
  border-radius:0;
  background:transparent;
  color:#9a7332;
}
.your-move-reason-icon svg{width:16px;height:16px}
@media(max-width:760px){
  .your-move-reason-strip{grid-template-columns:1fr;border-bottom:0}
  .your-move-reason-pill,
  .your-move-reason-pill:first-child,
  .your-move-reason-pill:last-child{
    padding:9px 0;
    border-right:0;
    border-bottom:1px solid var(--line);
  }
}

/* v120 — Your Move reasons: simple inline dot separators */
.your-move-reason-strip{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:0;
  margin-top:16px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.your-move-reason-pill,
.your-move-reason-pill:first-child,
.your-move-reason-pill:last-child{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:auto;
  min-width:0;
  padding:10px 0;
  border:0;
  border-radius:0;
  background:transparent;
  color:#4f594f;
  font-size:12px;
  font-weight:750;
  line-height:1.3;
}
.your-move-reason-pill:not(:last-child)::after{
  content:'·';
  margin:0 14px;
  color:#a69a89;
  font-size:17px;
  font-weight:700;
  line-height:1;
}
@media(max-width:760px){
  .your-move-reason-strip{display:grid;grid-template-columns:1fr;border-bottom:0}
  .your-move-reason-pill,
  .your-move-reason-pill:first-child,
  .your-move-reason-pill:last-child{
    width:100%;
    padding:9px 0;
    border-bottom:1px solid var(--line);
  }
  .your-move-reason-pill:not(:last-child)::after{display:none}
}

/* v121 — Your Move reason row: one quiet separator only */
.your-move-reason-strip{
  border-top:1px solid rgba(143,122,89,.22);
  border-bottom:0;
}
.your-move-context-summary{
  margin-top:10px;
  border-top:0;
}
@media(max-width:760px){
  .your-move-reason-strip{border-bottom:0}
  .your-move-context-summary{border-top:0}
}

/* v122 — Restore context separator; keep only one line before Why this move */
.your-move-context-summary{
  border-top:1px solid rgba(143,122,89,.22);
  border-bottom:0;
}
.your-move-details{
  border-top:1px solid rgba(143,122,89,.22);
}
@media(max-width:760px){
  .your-move-context-summary{
    border-top:1px solid rgba(143,122,89,.22);
    border-bottom:0;
  }
}

/* v123 — Group reasons with the action; let the context divider close the block */
.your-move-reason-strip{
  border-top:0;
  margin-top:22px;
}
.your-move-context-summary{
  margin-top:6px;
}
@media(max-width:760px){
  .your-move-reason-strip{
    border-top:0;
    margin-top:18px;
  }
  .your-move-context-summary{margin-top:5px}
}


/* v124 — final Your Move reason spacing */
.your-move-context-summary{margin-top:2px}
@media(max-width:760px){
  .your-move-context-summary{margin-top:2px}
}

/* v125 — Sales role: separate quoting and franchise pricing workflow */
.sales-page main,.sales-page{--sales-soft:#f7f5f1}
.sales-page-head{align-items:flex-end;gap:20px}
.sales-page-head p{max-width:780px}
.sales-page-head h1 span{font-size:.48em;color:var(--muted);font-weight:750;vertical-align:middle}
.sales-head-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.sales-head-actions form{margin:0}
.sales-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px}
.sales-kpi-grid a{display:flex;justify-content:space-between;align-items:end;gap:12px;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--panel);text-decoration:none;color:inherit;box-shadow:var(--shadow-soft)}
.sales-kpi-grid span{font-size:12px;font-weight:800;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.sales-kpi-grid strong{font-size:28px}
.sales-move-hero{padding:24px;margin-bottom:22px}
.sales-move-hero h3{font-size:22px;margin:12px 0 2px}
.sales-property,.sales-estimate-summary,.sales-move-reason{color:var(--muted);margin:4px 0}
.sales-estimate-summary{font-weight:700;color:#4d574e}
.sales-move-meta{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:14px 0}
.sales-move-meta strong{font-size:20px}
.sales-section{margin:22px 0}
.sales-card-list{display:grid;gap:10px}
.sales-queue-card{display:flex;justify-content:space-between;gap:18px;align-items:center;background:var(--panel);border:1px solid var(--line);border-radius:13px;padding:15px 17px;color:inherit;text-decoration:none;box-shadow:var(--shadow-soft)}
.sales-queue-card:hover,.sales-service-card:hover{border-color:#b8aa93;transform:translateY(-1px)}
.sales-queue-card>div:first-child{display:grid;gap:3px}.sales-queue-card small,.sales-queue-card span{color:var(--muted)}
.sales-queue-card-right{display:flex;gap:10px;align-items:center;white-space:nowrap}
.sales-empty-state{text-align:center;padding:36px 22px}.sales-empty-state h2{margin:6px 0}.sales-empty-state p{color:var(--muted)}
.sales-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sales-service-card{display:grid;gap:12px;background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:18px;color:inherit;text-decoration:none;box-shadow:var(--shadow-soft);transition:.14s ease}
.sales-service-card.inactive{opacity:.68}.sales-service-card-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.sales-service-card-head strong{font-size:17px}.sales-service-card-status{display:grid;justify-items:end;gap:4px}.sales-service-card p{min-height:38px;margin:0;color:var(--muted)}
.sales-service-state-button{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:6px 10px;border-radius:999px;border:1px solid #d2cbc0;background:#ebe7e1;color:#66645f;font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;cursor:pointer}.sales-service-state-button.is-active{background:var(--sage-soft);border-color:#c8d3c9;color:#435347}.sales-service-state-button.is-inactive{background:#ebe7e1;border-color:#d8d0c5;color:#66645f}.sales-service-state-button[disabled]{opacity:.75;cursor:wait}
.sales-service-toggle-status{font-size:10px;min-height:14px}.sales-service-stats{display:flex;gap:18px;color:var(--muted);font-size:12px;flex-wrap:wrap}.sales-service-stats b{color:var(--text);font-size:14px}.sales-service-card-actions{display:flex;justify-content:flex-start;align-items:center;gap:10px}.sales-card-action{display:block;margin-top:0;font-weight:800;color:#5b4a36}.sales-service-card-edit{display:inline-flex;align-items:center}
.sales-create-panel{margin-top:22px}.sales-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.sales-form-span{grid-column:1/-1}.sales-form-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;grid-column:1/-1;margin-top:4px}
.sales-toggle{display:flex;gap:8px;align-items:center;font-weight:800}.sales-toggle input{width:18px;height:18px}
.sales-adjust-bar{display:flex;align-items:end;gap:10px;flex-wrap:wrap;padding:13px 14px;margin:18px 0;border-radius:12px;background:#f6f3ed;border:1px solid #ddd3c3}.sales-adjust-bar>div{margin-right:auto;display:grid;gap:2px}.sales-adjust-bar small{color:var(--muted)}.sales-adjust-bar label{display:grid;gap:4px;font-size:11px;font-weight:800;color:var(--muted);text-transform:uppercase}.sales-adjust-bar input{width:92px}
.sales-price-table-wrap,.sales-responsive-table{overflow-x:auto}.sales-price-table{width:100%;border-collapse:collapse}.sales-price-table th,.sales-price-table td{padding:10px 9px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.sales-price-table th{font-size:11px;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);white-space:nowrap}.sales-price-table td small{display:block;color:var(--muted);margin-top:2px}.sales-price-table input[type=checkbox]{width:18px;height:18px}
.money-input{display:flex;align-items:center;min-width:112px}.money-input span{padding:8px 0 8px 9px;border:1px solid var(--line);border-right:0;border-radius:8px 0 0 8px;background:#f8f8f6;color:var(--muted)}.money-input input{min-width:90px;width:100%;border-radius:0 8px 8px 0}
.sales-two-column-actions{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.sales-two-column-actions h3{margin:5px 0}.sales-two-column-actions p{color:var(--muted)}
.sales-inline-form{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.sales-inline-form select{min-width:220px}
.sales-quote-filters{display:flex;gap:10px;align-items:center}.sales-quote-filters input[type=search]{flex:1;min-width:250px}.sales-quote-filters select{min-width:180px}
.sales-table-panel{padding:0 16px 10px}.sales-quotes-table td:first-child{white-space:nowrap}.sales-quotes-table td:last-child{text-align:right}
.sales-quote-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:14px}.sales-quote-summary-grid section{display:grid;gap:5px;padding:14px 16px}.sales-quote-summary-grid span{font-size:11px;text-transform:uppercase;color:var(--muted);font-weight:800}.sales-quote-summary-grid strong{font-size:19px}
.sales-estimate-snapshot{margin-bottom:14px}.sales-estimate-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;margin:12px 0}.sales-estimate-grid div{padding:10px;border:1px solid var(--line);border-radius:10px;background:#faf9f6;display:grid;gap:3px}.sales-estimate-grid span{font-size:11px;color:var(--muted)}.sales-estimate-grid strong{font-size:14px}.sales-estimate-snapshot>small{color:var(--muted)}
.sales-quote-pricing-panel{padding-bottom:18px}.sales-running-total{font-size:24px}.sales-pricing-rule{display:flex;gap:8px;flex-wrap:wrap;padding:11px 13px;border-radius:10px;background:#f6f3ed;color:#59615a}.sales-pricing-rule span{color:var(--muted)}
.sales-quote-service{margin-top:18px;border-top:1px solid var(--line);padding-top:15px}.sales-quote-service-head{display:flex;justify-content:space-between;gap:14px;align-items:center;margin-bottom:8px}.sales-quote-service-head h3{margin:0 0 2px}.sales-quote-service-head span{color:var(--muted);font-size:12px}.sales-service-adjust{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}.sales-service-adjust input{width:75px}.sales-quote-items-table{min-width:950px}.sales-quote-items-table tr.excluded{opacity:.48}.sales-qty-input{width:92px}.sales-label-input{min-width:200px}.sales-include-switch{display:grid;justify-items:center;gap:2px;font-size:10px;color:var(--muted)}
.sales-custom-item-form{display:grid;grid-template-columns:2fr .7fr .8fr 1fr auto;gap:10px;align-items:end}.sales-custom-item-form .sales-form-actions{grid-column:auto;margin:0}.sales-status-panel{display:flex;justify-content:space-between;gap:20px;align-items:center}.sales-status-panel h2{margin:4px 0}.sales-status-panel p{color:var(--muted);margin:0}.sales-history-list{display:grid;gap:0}.sales-history-list>div{display:grid;grid-template-columns:150px 1fr 150px;gap:12px;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.sales-history-list span{color:#4c564e}.sales-history-list small{color:var(--muted);text-align:right}
.danger-quiet{color:#8a3f34}.link-button.danger{color:#9b3f34}
.estimator-send-sales{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.estimator-send-sales .badge{white-space:nowrap}
@media(max-width:900px){.sales-kpi-grid,.sales-quote-summary-grid{grid-template-columns:repeat(2,1fr)}.sales-estimate-grid{grid-template-columns:repeat(3,1fr)}.sales-service-grid,.sales-two-column-actions{grid-template-columns:1fr}.sales-custom-item-form{grid-template-columns:1fr 1fr}.sales-custom-item-form .field:first-of-type{grid-column:1/-1}.sales-custom-item-form .sales-form-actions{grid-column:1/-1}.sales-status-panel{align-items:flex-start;flex-direction:column}}
@media(max-width:620px){.sales-kpi-grid,.sales-quote-summary-grid,.sales-estimate-grid,.sales-form-grid{grid-template-columns:1fr}.sales-page-head{align-items:flex-start}.sales-queue-card{align-items:flex-start;flex-direction:column}.sales-queue-card-right{width:100%;justify-content:space-between}.sales-form-span{grid-column:auto}.sales-adjust-bar{align-items:stretch}.sales-adjust-bar>div{width:100%}.sales-quote-service-head{align-items:flex-start;flex-direction:column}.sales-service-adjust{justify-content:flex-start}.sales-custom-item-form{grid-template-columns:1fr}.sales-custom-item-form .field:first-of-type,.sales-custom-item-form .sales-form-actions{grid-column:auto}.sales-history-list>div{grid-template-columns:1fr;gap:3px}.sales-history-list small{text-align:left}.sales-quote-filters{align-items:stretch;flex-direction:column}.sales-quote-filters input[type=search],.sales-quote-filters select{min-width:0;width:100%}}

/* v135 — Sales Quote frozen estimate map */
.sales-quote-map-panel{padding-bottom:14px}
.sales-quote-map{position:relative;width:100%;height:390px;overflow:hidden;border:1px solid var(--line);border-radius:10px;background:#e7e2da}
.sales-quote-map-canvas{width:100%;height:100%}
.sales-quote-map-loading{display:grid;place-items:center;width:100%;height:100%;padding:24px;color:var(--muted);font-size:12px;text-align:center;background:linear-gradient(135deg,#eee9e1,#ddd7ce)}
.sales-quote-map-loading.error{color:var(--bad);background:#fff8f6}
.sales-quote-map-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:9px 2px 4px;color:var(--muted);font-size:10px;font-weight:750}
.sales-quote-map-legend span{display:inline-flex;align-items:center;gap:6px}
.sales-quote-map-legend i{display:inline-block;width:18px;height:0;border-top:2px solid #b08c52}
.sales-quote-map-legend i.boundary{border-top-width:3px;border-top-color:#b08c52}
.sales-quote-map-legend i.stall{border-top-width:1px;border-top-color:#8e7a67}
.sales-quote-map-legend i.linework{border-top-color:#5f5145}
.sales-quote-map-legend i.area{width:13px;height:8px;border:1px solid #4f83b5;background:#eceff2}
.sales-quote-map-panel>small{display:block;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
@media(max-width:760px){.sales-quote-map{height:310px}.sales-quote-map-legend{gap:10px}}

/* BRIDGER v110 — quick activity-contact selector on Lead Details contact cards. */
.lead-contact-card{position:relative}
.lead-contact-card .lead-contact-head{padding-right:36px}
.activity-contact-picker{
  position:absolute;
  top:9px;
  right:9px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:30px;
  height:30px;
  padding:0;
  border:1px solid #d9d0c4;
  border-radius:8px;
  background:#fffdfa;
  color:#766c5e;
  cursor:pointer;
  transition:background .12s ease,border-color .12s ease,color .12s ease,box-shadow .12s ease,transform .12s ease;
}
.activity-contact-picker:hover{
  border-color:#9fcbbf;
  background:#f0f8f5;
  color:#167963;
  transform:translateY(-1px);
}
.activity-contact-picker:focus-visible{
  outline:2px solid rgba(21,126,102,.25);
  outline-offset:2px;
}
.activity-contact-picker.active,
.activity-contact-picker[aria-pressed="true"]{
  border-color:#17866e;
  background:#17866e;
  color:#fff;
  box-shadow:0 2px 7px rgba(23,134,110,.20);
}
.activity-contact-picker-icon{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.activity-contact-field-label{
  display:flex!important;
  align-items:center;
  gap:5px;
}
.activity-contact-label-icon{
  flex:0 0 auto;
  width:11px;
  height:11px;
  fill:none;
  stroke:#17866e;
  stroke-width:2.15;
  stroke-linecap:round;
  stroke-linejoin:round;
}
@media(max-width:700px){
  .activity-contact-picker{top:8px;right:8px;width:30px;height:30px}
  .lead-contact-card .lead-contact-head{padding-right:34px}
}


/* v109k — Lead List column-header sorting. Desktop sorting lives where the data lives;
   mobile keeps a compact selector because the desktop table collapses to cards. */
.mobile-sort-control{display:none!important}
.sortable-header{padding:0}
.sortable-header>a{display:flex;align-items:center;justify-content:space-between;gap:7px;min-height:36px;padding:10px 14px;color:inherit;text-decoration:none;white-space:nowrap}
.sortable-header>a:hover{background:#f0f4f5;color:var(--ink)}
.sortable-header .sort-arrow{display:inline-flex;align-items:center;justify-content:center;min-width:12px;font-size:12px;font-weight:900;color:#a4adb5;opacity:0;transform:translateY(-1px)}
.sortable-header:hover .sort-arrow{opacity:.65}
.sortable-header.active-sort{background:#f0f5f3;color:#42564f;box-shadow:inset 0 -2px 0 var(--accent)}
.sortable-header.active-sort .sort-arrow{opacity:1;color:var(--accent)}
.maintenance-demand-header>a{justify-content:flex-start}
.maintenance-demand-cell{text-align:center;min-width:108px}
.maintenance-demand-value{display:inline-grid;place-items:center;min-width:42px;height:31px;padding:0 10px;border-radius:999px;background:var(--accent-soft);color:#106655;font-weight:850;font-variant-numeric:tabular-nums}
@media(max-width:760px){.mobile-sort-control{display:block!important}}

/* v114 — compact, intentional Lead List filters */
.lead-filter-panel{padding:11px 13px}
.lead-filter-form{display:block}
.lead-filter-form>.mobile-filter-toggle{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}
.lead-filter-toolbar{
  display:grid;
  grid-template-columns:minmax(260px,2fr) minmax(145px,.8fr) minmax(140px,.75fr) auto auto auto auto;
  align-items:end;
  gap:8px;
}
.lead-filter-toolbar label{min-width:0}
.lead-filter-toolbar label>span,.lead-filter-group label>span{display:block;margin:0 0 4px 2px;font-size:9px;font-weight:850;letter-spacing:.08em;text-transform:uppercase}
.lead-filter-toolbar input,.lead-filter-toolbar select,.lead-filter-group input,.lead-filter-group select{width:100%;min-width:0;height:36px;padding-top:6px;padding-bottom:6px;font-size:12px}
.lead-filter-toolbar .button{height:36px;min-height:36px;padding:7px 11px;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;font-size:11px}
.best-opportunities{border-color:#ccb786;background:#fbf4e4;color:#5d4b27;font-weight:850}
.best-opportunities:before{content:"✦";margin-right:6px;color:#a77a29;font-size:11px}
.best-opportunities:hover,.best-opportunities.active{border-color:#b08c52;background:#f4e5c5;color:#493917}
.lead-filter-apply{min-width:62px}
.lead-more-filters-button.mobile-filter-toggle-label{
  display:flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:auto;
  height:36px;
  margin:0;
  padding:7px 10px;
  border:1px solid #d4cabc;
  border-radius:7px;
  background:#fffdfa;
  color:var(--charcoal);
  cursor:pointer;
  box-sizing:border-box;
}
.lead-more-filters-button.mobile-filter-toggle-label strong{grid-column:auto;font-size:11px;line-height:1;font-weight:800;white-space:nowrap}
.lead-more-filters-button .mobile-filter-chevron{grid-column:auto;grid-row:auto;margin:0!important;font-size:15px!important;line-height:1;color:#7c756b!important;transition:transform .16s ease}
.lead-filter-form>.mobile-filter-toggle:checked ~ .lead-filter-toolbar .lead-more-filters-button{background:#f6f1e9;border-color:#c9b99f}
.lead-filter-form>.mobile-filter-toggle:checked ~ .lead-filter-toolbar .mobile-filter-chevron{transform:rotate(180deg)}
.lead-filter-clear{
  align-self:end;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  height:36px;
  min-height:36px;
  padding:7px 10px;
  border:1px solid #d4cabc;
  border-radius:7px;
  background:#fffdfa;
  color:#665f55;
  font-size:10px;
  font-weight:850;
  line-height:1;
  text-decoration:none;
  white-space:nowrap;
  box-sizing:border-box;
}
.lead-filter-clear-icon{font-size:15px;font-weight:500;line-height:1;transform:translateY(-.5px)}
.lead-filter-clear:hover{border-color:#bfae96;background:#f6f1e9;color:var(--charcoal);text-decoration:none}
.lead-filter-clear:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.lead-filter-form .lead-advanced-filters{display:none}
.lead-filter-form>.mobile-filter-toggle:checked ~ .lead-advanced-filters{
  display:grid;
  grid-template-columns:minmax(300px,.9fr) minmax(480px,1.55fr) minmax(190px,.55fr);
  gap:10px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #e6ded3;
}
.lead-filter-group{min-width:0;padding:9px 10px 10px;border:1px solid #e8e1d8;border-radius:8px;background:#f8f6f2}
.lead-filter-group-title{margin:0 0 7px 1px;color:#665f55;font-size:9px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}
.lead-filter-group-grid{display:grid;gap:7px}
.lead-filter-group-grid.territory-group{grid-template-columns:repeat(2,minmax(0,1fr))}
.lead-filter-group-grid.sales-contact-group{grid-template-columns:repeat(4,minmax(0,1fr))}
.lead-filter-group-grid.research-group{grid-template-columns:1fr}
.lead-filter-group label{min-width:0}

.maintenance-demand-chip{display:inline-flex;align-items:center;margin-left:5px;padding:1px 5px;border-radius:999px;background:#eef5f2;color:#286452;font-size:9px;font-weight:850;white-space:nowrap}

@media(max-width:1180px){
  .lead-filter-toolbar{grid-template-columns:minmax(250px,2fr) minmax(145px,1fr) minmax(140px,1fr) auto auto;}
  .lead-more-filters-button{grid-column:4}
  .lead-filter-clear{grid-column:5}
  .best-opportunities{grid-column:4;grid-row:1}
  .lead-filter-apply{grid-column:5;grid-row:1}
  .lead-more-filters-button{grid-row:2}
  .lead-filter-clear{grid-row:2}
  .lead-filter-search,.lead-filter-priority,.lead-filter-access{grid-row:1 / span 2}
  .lead-filter-form>.mobile-filter-toggle:checked ~ .lead-advanced-filters{grid-template-columns:1fr 1fr}
  .lead-filter-group:nth-child(2){grid-column:1/-1;grid-row:2}
  .lead-filter-group-grid.sales-contact-group{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:820px){
  .lead-filter-panel{padding:11px}
  .lead-filter-toolbar{grid-template-columns:1fr 1fr;gap:8px}
  .lead-filter-search{grid-column:1/-1;grid-row:auto}
  .lead-filter-priority,.lead-filter-access{grid-row:auto}
  .best-opportunities,.lead-filter-apply,.lead-more-filters-button,.lead-filter-clear{grid-column:auto;grid-row:auto}
  .best-opportunities,.lead-filter-apply,.lead-more-filters-button{width:100%}
  .lead-filter-clear{text-align:center}
  .lead-filter-form>.mobile-filter-toggle:checked ~ .lead-advanced-filters{grid-template-columns:1fr}
  .lead-filter-group:nth-child(2){grid-column:auto;grid-row:auto}
  .lead-filter-group-grid.sales-contact-group,.lead-filter-group-grid.territory-group{grid-template-columns:1fr 1fr}
  .lead-filter-group-grid.research-group{grid-template-columns:1fr 1fr}
}
@media(max-width:520px){
  .lead-filter-toolbar{grid-template-columns:1fr 1fr}
  .lead-filter-priority,.lead-filter-access{grid-column:auto}
  .lead-filter-toolbar .button,.lead-more-filters-button.mobile-filter-toggle-label{min-height:40px;height:40px}
  .lead-filter-group-grid.sales-contact-group,.lead-filter-group-grid.territory-group,.lead-filter-group-grid.research-group{grid-template-columns:1fr}
}
.lead-filter-form .lead-advanced-filters .mobile-sort-control{display:block!important}
@media(min-width:821px){.lead-filter-group-grid.research-group{grid-template-columns:1fr 1fr}}

/* v126 — Geometry-based Estimated Striping Opportunity v1 */
.your-move-opportunity-metrics{
  display:flex;
  align-items:stretch;
  gap:0;
  margin-top:12px;
  width:max-content;
  max-width:100%;
}
.your-move-opportunity-metric{
  min-width:190px;
  padding:3px 26px 3px 0;
}
.your-move-opportunity-metric+.your-move-opportunity-metric{
  padding-left:26px;
  border-left:1px solid rgba(143,122,89,.28);
}
.your-move-opportunity-metric span{
  display:block;
  margin-bottom:3px;
  color:#8a7a65;
  font-size:9px;
  font-weight:900;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.your-move-opportunity-metric strong{
  display:block;
  color:var(--charcoal);
  font-size:24px;
  font-weight:850;
  line-height:1.08;
  letter-spacing:-.02em;
}
.your-move-opportunity-metric.opportunity-value strong{color:#70531f}
.your-move-opportunity-metric small{
  display:block;
  margin-top:3px;
  color:var(--muted);
  font-size:9px;
  font-weight:700;
}
.dashboard-page .your-move-opportunity-metrics+.your-move-helper{margin-top:10px}

.polished-on-deck-row .on-deck-row-main .on-deck-opportunity-summary{
  margin-top:5px;
  color:#66532e;
  font-size:11px;
  font-weight:850;
}

.lead-opportunity-size-cell .lead-pavement-area{display:block}
.lead-opportunity-size-cell>.lead-opportunity-value{
  display:block;
  margin-top:3px;
  color:#70531f;
  font-size:14px;
  font-weight:900;
  line-height:1.15;
  letter-spacing:-.01em;
}
.lead-opportunity-size-cell>.lead-opportunity-value small{
  display:inline;
  margin:0 0 0 2px;
  color:#8a7a65;
  font-size:9px;
  font-weight:850;
  letter-spacing:.05em;
  text-transform:uppercase;
}
.lead-opportunity-size-cell>.lead-opportunity-value+small{margin-top:5px}

.lead-opportunity-value.mobile{
  display:flex;
  align-items:baseline;
  gap:7px;
  margin-top:5px;
  color:#70531f;
}
.lead-opportunity-value.mobile>span{
  color:#8a7a65;
  font-size:9px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.lead-opportunity-value.mobile>strong{font-size:17px;line-height:1.1}
.lead-opportunity-value.mobile>small{color:var(--muted);font-size:9px;font-weight:700}

@media(max-width:760px){
  .your-move-opportunity-metrics{width:100%}
  .your-move-opportunity-metric{min-width:0;flex:1 1 0;padding-right:14px}
  .your-move-opportunity-metric+.your-move-opportunity-metric{padding-left:14px}
  .your-move-opportunity-metric strong{font-size:20px}
}

/* v127 — Bridger Market Value territory + Opportunity Size ranking */
.lead-quality-metrics{grid-template-columns:repeat(6,minmax(0,1fr))}
.market-value-metric{background:#fff8e8;border-top-color:#a97825}
.market-value-metric strong{color:#6f521d}
.market-value-metric small{display:block;margin-top:4px;color:var(--muted);font-size:9px;font-weight:750;line-height:1.2}
.filtered-market-value strong{color:#70531f}

.lead-quick-sorts{display:flex;align-items:stretch;gap:6px;min-width:0}
.lead-quick-sorts .button{flex:0 0 auto}
.high-value-targets{border-color:#b9c7bf;background:#f1f6f3;color:#31584b;font-weight:850}
.high-value-targets:before{content:"$";display:inline-grid;place-items:center;width:16px;height:16px;margin-right:5px;border:1px solid #9eb4aa;border-radius:50%;font-size:10px;font-weight:900;line-height:1}
.high-value-targets:hover,.high-value-targets.active{border-color:#739889;background:#e2eee8;color:#24493d}
.available-contacts{border-color:#b9d8d0;background:#f1f8f6;color:#256456;font-weight:850}
.available-contacts>span{margin-right:5px;font-size:12px;line-height:1}
.available-contacts:hover,.available-contacts.active{border-color:#74a99c;background:#dff0eb;color:#174f43}

.opportunity-size-sort-header{min-width:168px;padding:7px 10px;background:#f8fafb}
.opportunity-size-sort-header.active-sort{background:#f0f5f3;color:#42564f;box-shadow:inset 0 -2px 0 var(--accent)}
.opportunity-size-sort-title{display:block;margin-bottom:3px;white-space:nowrap}
.opportunity-size-sort-links{display:flex;align-items:center;gap:4px}
.opportunity-size-sort-links a{display:inline-flex;align-items:center;gap:3px;padding:2px 5px;border:1px solid transparent;border-radius:5px;color:#89939b;text-decoration:none;font-size:8px;font-weight:850;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap}
.opportunity-size-sort-links a:hover{border-color:#d8dfdc;background:#fff;color:#4f625b}
.opportunity-size-sort-links a.active{border-color:#b9cec6;background:#fff;color:var(--accent)}

@media(max-width:1250px){.lead-quality-metrics{grid-template-columns:repeat(3,1fr)}}
@media(max-width:1180px){
  .lead-quick-sorts{grid-column:4;grid-row:1;align-self:end}
  .lead-filter-apply{grid-column:5;grid-row:1}
  .lead-more-filters-button{grid-column:4;grid-row:2}
  .lead-filter-clear{grid-column:5;grid-row:2}
}
@media(max-width:820px){
  .lead-quick-sorts{grid-column:1/-1;grid-row:auto;display:grid;grid-template-columns:1fr 1fr}
  .lead-quick-sorts .button{width:100%}
}
@media(max-width:520px){
  .lead-quick-sorts{grid-template-columns:1fr}
}

/* Estimator camera rotation. Kept above the map canvas so it remains usable in every tool mode. */
.estimator-map-rotation{position:absolute;top:14px;left:50%;z-index:8;display:flex;align-items:center;gap:5px;transform:translateX(-50%);padding:5px;border:1px solid rgba(255,255,255,.78);border-radius:9px;background:rgba(255,253,250,.94);box-shadow:0 4px 14px rgba(0,0,0,.2);backdrop-filter:blur(4px)}
.estimator-map-rotation .button{min-height:31px;padding:6px 9px;border-radius:6px;background:#fffdfa;font-size:10px;font-weight:800;white-space:nowrap}
.estimator-map-rotation .button:hover{background:#fff}
.estimator-map-north-button [data-estimator-heading]{display:inline-block;margin-left:4px;color:var(--muted);font-variant-numeric:tabular-nums}
@media (max-width:700px){.estimator-map-rotation{top:8px}.estimator-map-rotation .button{padding:5px 7px;font-size:9px}.estimator-map-north-button [data-estimator-heading]{display:none}}

/* Visual linework pickers for Add Row / 3 Click Row. */
.estimator-linework-picker{margin:0 0 4px;padding:8px;border:1px solid #e1d7ca;border-radius:9px;background:#fbf8f3}
.estimator-linework-title{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:6px;font-size:9px;font-weight:900;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.estimator-linework-title small{font-size:8px;font-weight:750;letter-spacing:0;text-transform:none;color:#7d8890}
.estimator-linework-select{display:none!important}
.estimator-linework-buttons{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}
.estimator-linework-buttons button{min-width:0;min-height:48px;padding:4px 2px 5px;border:1px solid #d8cec1;border-radius:7px;background:#fff;color:#5f625f;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font:inherit;transition:border-color .12s ease,background .12s ease,color .12s ease,box-shadow .12s ease}
.estimator-linework-buttons button:hover,.estimator-linework-buttons button:focus-visible{border-color:#b89a69;background:#fffaf0;outline:none}
.estimator-linework-buttons button.active,.estimator-linework-buttons button[aria-pressed="true"]{border-color:var(--gold,#b08c52);background:var(--gold-soft,#f7edda);color:var(--gold-deep,#76531d);box-shadow:inset 0 0 0 1px rgba(176,140,82,.14)}
.estimator-linework-buttons svg{width:30px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.estimator-linework-buttons svg .stripe{stroke-width:3.2}
.estimator-linework-buttons svg .slash{stroke-width:2.3}
.estimator-linework-buttons svg .curb-top{stroke-width:2}
.estimator-linework-buttons svg .curb-block{fill:currentColor;stroke:none;opacity:.8}
.estimator-linework-buttons button span{font-size:8px;font-weight:850;line-height:1;white-space:nowrap;pointer-events:none}
.estimator-center-linework-picker{border-color:#b7d8e7;background:#f3fbff}
.estimator-center-linework-picker .estimator-linework-title{color:#397b99}
.estimator-center-linework-picker .estimator-linework-buttons{grid-template-columns:repeat(5,minmax(0,1fr))}
.estimator-center-linework-picker .estimator-linework-buttons button span{font-size:7.5px}

/* Your Move: saved estimator work queue. */
.open-estimates-panel{margin-bottom:14px;padding:18px;background:#fffdfa}
.open-estimates-title{align-items:flex-end;margin-bottom:10px}
.open-estimates-title h2{margin-top:2px}
.open-estimates-list{display:grid;gap:8px;border-top:1px solid var(--line);padding-top:10px}
.open-estimate-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e5e0d8;border-radius:10px;background:#fff;color:inherit;text-decoration:none}
.open-estimate-row:hover{background:#fcfaf6;border-color:#d9cdbb}
.open-estimate-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#f7edda;color:#8a6426}
.open-estimate-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.open-estimate-main{min-width:0}
.open-estimate-main strong{display:block;font-size:13px;line-height:1.3;color:var(--charcoal)}
.open-estimate-main>span{display:block;margin-top:2px;font-size:11px;line-height:1.35;color:#5f5a53;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.open-estimate-main small{display:block;margin-top:4px;font-size:10px;line-height:1.35;color:var(--muted)}
.open-estimate-side{display:flex;flex-direction:column;align-items:flex-end;gap:5px;min-width:128px;text-align:right}
.open-estimate-side small{font-size:9px;color:var(--muted)}
.open-estimate-side b{font-size:10px;color:#6a542e;white-space:nowrap}
.open-estimate-row.stale .stale-label{color:#a6642d;font-weight:800}
.open-estimates-empty{padding:8px 0 2px;border-top:none}
@media(max-width:700px){.open-estimate-row{grid-template-columns:38px minmax(0,1fr)}.open-estimate-side{grid-column:2;flex-direction:row;align-items:center;justify-content:space-between;width:100%;min-width:0;text-align:left}.open-estimate-main>span{white-space:normal}}

/* Area-entry methods mirror parking-row geometry without an accept step. */
.estimator-area-methods{grid-template-columns:repeat(2,minmax(0,1fr))}

/* v128 — Lead List mobile filter layout: keep Search readable. */
@media(max-width:900px){
  .lead-filter-toolbar{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    gap:8px;
  }
  .lead-filter-toolbar>.lead-filter-search{
    grid-column:1 / -1!important;
    grid-row:auto!important;
    width:100%;
    min-width:0;
  }
  .lead-filter-toolbar>.lead-filter-priority,
  .lead-filter-toolbar>.lead-filter-access{
    grid-column:auto!important;
    grid-row:auto!important;
    min-width:0;
  }
  .lead-filter-toolbar>.lead-quick-sorts{
    grid-column:1 / -1!important;
    grid-row:auto!important;
  }
  .lead-filter-toolbar>.lead-filter-apply,
  .lead-filter-toolbar>.lead-more-filters-button,
  .lead-filter-toolbar>.lead-filter-clear{
    grid-column:auto!important;
    grid-row:auto!important;
  }
}
@media(max-width:520px){
  .lead-filter-toolbar>.lead-filter-search,
  .lead-filter-toolbar>.lead-filter-priority,
  .lead-filter-toolbar>.lead-filter-access{
    grid-column:1 / -1!important;
  }
}

/* v115 — Admin Lead Details: prioritize action over supporting rationale.
   Admin still needs the control chain, but Contact Activity + Lead Contacts
   should be visible immediately at the top of the working area. */
@media(min-width:1281px){
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .activity-panel{
    grid-column:2;
    grid-row:2;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .lead-contacts-panel{
    grid-column:3;
    grid-row:2;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{
    grid-column:2/4;
    grid-row:3;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{
    grid-column:2/4;
    grid-row:4;
  }
}

@media(min-width:851px) and (max-width:1280px){
  .detail-grid.sales-three-column.admin-three-column > .detail-side{
    grid-column:1;
    grid-row:2 / span 5;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .activity-panel{
    grid-column:2;
    grid-row:2;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .lead-contacts-panel{
    grid-column:2;
    grid-row:3;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{
    grid-column:2;
    grid-row:4;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{
    grid-column:2;
    grid-row:5;
  }
}
/* ========================================================================== 
   v129 — Your Move workflow refinement
   Keep daily sales navigation primary, explain ranking instead of repeating
   fields, make the current move visually dominant, clarify what is next, and
   improve open-estimate scanability.
   ========================================================================== */

/* Desktop primary navigation: daily workflow first, administrative tools tucked away. */
.topnav-admin-menu{position:relative;margin:0}
.topnav-admin-menu>summary{
  display:flex;align-items:center;gap:6px;min-height:35px;padding:10px 13px;
  border-radius:7px;color:#d8d8d3;cursor:pointer;list-style:none;
  letter-spacing:.055em;text-transform:uppercase;font-size:11px;font-weight:850;
  transition:color .15s ease,background .15s ease;
}
.topnav-admin-menu>summary::-webkit-details-marker{display:none}
.topnav-admin-menu>summary::marker{display:none;content:""}
.topnav-admin-menu>summary span{font-size:13px;line-height:1;transform:translateY(-1px)}
.topnav-admin-menu>summary:hover,.topnav-admin-menu[open]>summary{color:#fff;background:rgba(176,140,82,.13)}
.topnav-admin-menu.active>summary{color:#fff;background:rgba(176,140,82,.17);box-shadow:inset 0 -2px 0 var(--gold)}
.topnav-admin-dropdown{
  position:absolute;top:calc(100% + 9px);right:0;z-index:1200;display:grid;gap:3px;
  width:218px;padding:8px;border:1px solid rgba(214,155,53,.3);border-radius:10px;
  background:#151c21;box-shadow:0 16px 38px rgba(0,0,0,.28)
}
.topnav .topnav-admin-dropdown a{
  display:block;padding:10px 11px;border-radius:7px;color:#dfe4e7;
  text-transform:none;letter-spacing:.01em;font-size:12px;font-weight:750
}
.topnav .topnav-admin-dropdown a:hover{background:rgba(176,140,82,.13);color:#fff}
.topnav .topnav-admin-dropdown a.active{background:rgba(176,140,82,.19);color:#fff;box-shadow:inset 3px 0 0 var(--gold)}
.topnav .topnav-admin-dropdown a.active:after{display:none}

/* Make the current recommendation unmistakably the main work surface. */
.dashboard-page .your-move-grid{grid-template-columns:minmax(0,1.58fr) minmax(300px,.72fr);gap:16px}
.dashboard-page .your-move-hero{
  position:relative;padding:21px 22px 18px;border-color:#d7c29f;border-top:3px solid var(--gold);
  background:linear-gradient(180deg,#fffdfa 0%,#fcf8f1 100%);
  box-shadow:0 10px 28px rgba(64,51,31,.08)
}
.dashboard-page .your-move-title h2{font-size:24px;letter-spacing:-.025em}
.dashboard-page .your-move-primary-action,
.dashboard-page .your-move-primary-form .button{
  min-height:43px;padding:10px 18px;font-size:12px;font-weight:900;box-shadow:0 5px 12px rgba(92,71,35,.12)
}
.dashboard-page .your-move-secondary-action,
.dashboard-page .your-move-snooze-trigger{min-height:37px;padding:8px 14px;font-size:11px}
.dashboard-page .your-move-actions{align-items:center;gap:9px;margin-top:17px}

/* Context is supporting material; the ranking explanation is the value. */
.dashboard-page .your-move-context-summary{grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:8px;margin-top:12px}
.dashboard-page .your-move-context-summary-item{padding:9px 10px;background:#fffdf9}
.dashboard-page .your-move-details{
  margin-top:8px;border-color:#dec9a7;background:#fff9ef;box-shadow:inset 3px 0 0 rgba(176,140,82,.62)
}
.dashboard-page .your-move-details-summary{padding:12px 14px;color:#55452e;letter-spacing:0}
.your-move-details-label{display:flex;flex-direction:column;gap:2px;min-width:0}
.your-move-details-label b{font-size:13px;line-height:1.25;color:#4b3d29}
.your-move-details-label small{font-size:10px;line-height:1.35;font-weight:650;color:#81735f}
.dashboard-page .your-move-details[open] .your-move-details-summary{background:#fff6e7}
.dashboard-page .your-move-why h3{font-size:13px;margin-bottom:9px}
.your-move-ranking-reasons{margin:0;padding:0;list-style:none!important;display:grid;gap:8px!important}
.your-move-ranking-reasons li{position:relative;padding-left:20px;color:#4f4a43;line-height:1.42}
.your-move-ranking-reasons li:before{
  content:"✓";position:absolute;left:0;top:0;color:#8b692e;font-size:12px;font-weight:900
}

/* Make the first On Deck row read as the direct successor to Your Move. */
.polished-on-deck-row.next-up{border-color:#d9c29c;background:#fffaf1;box-shadow:inset 3px 0 0 var(--gold)}
.polished-on-deck-row.next-up:hover{background:#fff6e8;border-color:#cdb184}
.on-deck-sequence-label{
  display:inline-flex!important;width:max-content;margin:0 0 4px!important;padding:2px 6px;border-radius:999px;
  background:#f4e6ca;color:#76551f!important;font-size:7px!important;font-weight:900!important;
  letter-spacing:.09em;text-transform:uppercase
}

/* Open estimate status chips: recognize work state before reading the row. */
.open-estimate-side{gap:4px}
.open-estimate-status{
  display:inline-flex;align-items:center;min-height:20px;padding:3px 7px;border-radius:999px;
  font-size:8px;font-weight:900;letter-spacing:.045em;text-transform:uppercase;white-space:nowrap
}
.open-estimate-status.draft{background:#eef1f3;color:#59656d}
.open-estimate-status.measured{background:#edf5f1;color:#39705f}
.open-estimate-status.attention{background:#fff0df;color:#9c601d}
.open-estimate-row.stale{border-color:#ead0ae;background:#fffaf3}

@media(max-width:1050px){
  .dashboard-page .your-move-grid{grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr)}
}
@media(max-width:980px){
  .dashboard-page .your-move-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .dashboard-page .your-move-hero{padding:16px 14px;border-top-width:3px;box-shadow:none}
  .dashboard-page .your-move-primary-action,.dashboard-page .your-move-primary-form .button{width:100%;min-height:46px;font-size:13px}
  .dashboard-page .your-move-secondary-action,.dashboard-page .your-move-snooze-trigger{width:100%}
  .dashboard-page .your-move-details-summary{padding:11px 10px}
  .your-move-details-label b{font-size:12px}
  .your-move-details-label small{font-size:9px}
  .open-estimate-side{gap:6px;flex-wrap:wrap}
}

/* ============================================================================
   BRIDGER v131 — header polish, estimator button UI, and admin detail ordering
   ========================================================================== */

/* Do not let the global details styling add a border line to header menus. */
.topnav-admin-menu,
.mobile-header-menu{
  margin-top:0;
  padding-top:0;
  border-top:0;
}

/* Compact icon+label buttons for estimator option groups. */
.estimator-hidden-select{display:none!important}
.estimator-line-type-buttons,
.estimator-row-guide-buttons{
  grid-template-columns:repeat(5,minmax(0,1fr));
}
.estimator-stencil-types{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.estimator-area-methods{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.estimator-choice-icon{
  display:flex!important;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  min-height:50px!important;
  padding:6px 5px!important;
  line-height:1.05;
  text-align:center;
}
.estimator-choice-icon svg{
  width:28px;
  height:18px;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 auto;
  pointer-events:none;
}
.estimator-choice-icon rect{
  fill:none;
  stroke:currentColor;
}
.estimator-choice-icon>span:last-child{
  font-size:9px;
  font-weight:760;
  letter-spacing:.01em;
  white-space:nowrap;
  pointer-events:none;
}

/* Admin lead details: keep the property column pinned left while the rest of
   the workflow reads top-to-bottom on the right without a giant blank gap. */
@media(min-width:1281px){
  .detail-grid.sales-three-column.admin-three-column > .detail-side{display:contents}
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .map-panel{
    grid-column:1;
    grid-row:2 / span 3;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .activity-panel{
    grid-column:2;
    grid-row:2;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .lead-contacts-panel{
    grid-column:3;
    grid-row:2;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{
    grid-column:2 / 4;
    grid-row:3;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{
    grid-column:2 / 4;
    grid-row:4;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .parcel-panel{
    grid-column:1;
    grid-row:5;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .review-panel,
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .report-problem-panel{
    grid-column:1;
    grid-row:6;
    min-width:0;
  }
}

@media(min-width:851px) and (max-width:1280px){
  .detail-grid.sales-three-column.admin-three-column > .detail-side{display:contents}
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .map-panel{
    grid-column:1;
    grid-row:2 / span 5;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .activity-panel{grid-column:2;grid-row:2}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .lead-contacts-panel{grid-column:2;grid-row:3}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .chain-panel{grid-column:2;grid-row:4}
  .detail-grid.sales-three-column.admin-three-column > .detail-main > .research-evidence-panel{grid-column:2;grid-row:5}
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .parcel-panel{grid-column:1;grid-row:7;min-width:0}
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .review-panel,
  .detail-grid.sales-three-column.admin-three-column > .detail-side > .report-problem-panel{grid-column:1;grid-row:8;min-width:0}
}

@media(max-width:850px){
  .estimator-line-type-buttons,
  .estimator-row-guide-buttons,
  .estimator-stencil-types,
  .estimator-area-types,
  .estimator-area-methods{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* ============================================================================
   BRIDGER v132 — independent Admin Lead Details columns
   Let Property -> Parcels -> Human Review stack naturally on the left while
   the actionable workflow stacks independently on the right.
   ========================================================================== */
@media(min-width:1281px){
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column){
    grid-template-columns:minmax(290px,28fr) minmax(0,72fr);
    gap:14px;
    align-items:start;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side{
    display:grid;
    grid-column:1;
    grid-row:1;
    gap:14px;
    align-content:start;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main{
    display:grid;
    grid-column:2;
    grid-row:1;
    grid-template-columns:minmax(0,3fr) minmax(340px,2fr);
    gap:14px;
    align-items:start;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .pilot-status-compact{
    order:0;grid-column:1/-1;grid-row:auto;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .activity-panel{
    order:1;grid-column:1;grid-row:auto;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .lead-contacts-panel{
    order:2;grid-column:2;grid-row:auto;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .chain-panel{
    order:3;grid-column:1/-1;grid-row:auto;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .research-evidence-panel{
    order:4;grid-column:1/-1;grid-row:auto;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .map-panel,
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .parcel-panel,
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .review-panel,
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .report-problem-panel{
    grid-column:auto;
    grid-row:auto;
    min-width:0;
  }
}

@media(min-width:851px) and (max-width:1280px){
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column){
    grid-template-columns:minmax(300px,.72fr) minmax(0,1.28fr);
    gap:14px;
    align-items:start;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side{
    display:grid;
    grid-column:1;
    grid-row:1;
    gap:14px;
    align-content:start;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main{
    display:grid;
    grid-column:2;
    grid-row:1;
    grid-template-columns:1fr;
    gap:14px;
    align-items:start;
    min-width:0;
  }
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .pilot-status-compact{order:0;grid-column:1;grid-row:auto}
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .activity-panel{order:1;grid-column:1;grid-row:auto}
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .lead-contacts-panel{order:2;grid-column:1;grid-row:auto}
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .chain-panel{order:3;grid-column:1;grid-row:auto}
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-main > .research-evidence-panel{order:4;grid-column:1;grid-row:auto}
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .map-panel,
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .parcel-panel,
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .review-panel,
  .detail-grid.sales-three-column.admin-three-column:not(.locked-three-column) > .detail-side > .report-problem-panel{
    grid-column:auto;
    grid-row:auto;
    min-width:0;
  }
}


/* v132 — make 3 Click Row acceptance impossible to miss. */
.estimator-row-preview-actions{
  display:grid;
  grid-template-columns:minmax(0,1.65fr) minmax(0,.7fr);
  gap:7px;
  margin:10px 0 8px;
  padding:8px;
  border:1px solid #c8a96f;
  border-radius:9px;
  background:#fff7e8;
  box-shadow:0 4px 12px rgba(94,67,27,.08);
}
.estimator-row-preview-actions[hidden]{display:none!important}
.estimator-row-preview-actions .estimator-row-accept{
  min-height:44px;
  font-size:12px;
  font-weight:850;
}

/* v134 — Your Move action text sizing */
.dashboard-page .your-move-primary-action,
.dashboard-page .your-move-primary-form .button{
  font-size:16px;
  min-height:44px;
  padding:10px 18px;
}
.dashboard-page .your-move-secondary-action,
.dashboard-page .your-move-snooze>.your-move-snooze-trigger{
  font-size:15px;
  min-height:42px;
  padding:9px 15px;
}
@media(max-width:700px){
  .dashboard-page .your-move-primary-action,
  .dashboard-page .your-move-primary-form .button{font-size:16px}
  .dashboard-page .your-move-secondary-action,
  .dashboard-page .your-move-snooze>.your-move-snooze-trigger{font-size:15px}
}

/* v136 — Landscape Island area geometry */
.estimator-area-types .estimator-landscape-island-type{
  grid-column:1 / -1;
}
.estimator-island-create-options,
.estimator-island-selected-options{
  margin:4px 0 10px;
  padding:9px;
  border:1px solid #d8cdbc;
  border-radius:9px;
  background:#f8f6ef;
}
.estimator-island-create-options[hidden],
.estimator-island-selected-options[hidden],
.estimator-area-methods [hidden]{display:none!important}
.estimator-island-perimeter-buttons{
  grid-template-columns:repeat(2,minmax(0,1fr));
  margin:5px 0 6px;
}
.estimator-island-create-options>small{
  display:block;
  font-size:9px;
  line-height:1.35;
}

/* Lead Details — read-only Nearby Properties intelligence map */
.nearby-map-open-button{display:inline-flex!important;align-items:center;gap:7px;border-color:#a7b9c9;background:#f7fbff;color:#24445f;font-weight:800}
.nearby-map-open-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nearby-map-open-button:hover{border-color:#7ea2bf;background:#eef7ff}
body.nearby-map-active{overflow:hidden}
.nearby-map-workspace[hidden]{display:none!important}
.nearby-map-workspace{position:fixed;inset:12px;z-index:1210;display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #b7c5d0;border-radius:12px;background:#f7f9fb;box-shadow:0 24px 70px rgba(0,0,0,.28)}
.nearby-map-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 15px;border-bottom:1px solid #ccd6df;background:#fff}
.nearby-map-workspace-head>div:first-child{min-width:0}
.nearby-map-workspace-head strong,.nearby-map-workspace-head small{display:block}
.nearby-map-workspace-head strong{font-size:18px;line-height:1.2}
.nearby-map-workspace-head small{margin-top:2px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.nearby-map-head-right{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.nearby-map-legend{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap;color:#5e6670;font-size:9px;font-weight:800;white-space:nowrap}
.nearby-map-legend>span{display:inline-flex;align-items:center;gap:5px}
.nearby-legend-dot{display:inline-block;width:10px;height:10px;border:1px solid rgba(0,0,0,.28);border-radius:50%}
.nearby-legend-dot.same-lead{background:#ffd54a}
.nearby-legend-dot.same-owner{background:#00b8d9}
.nearby-legend-dot.nearby{background:#ff6b6b}
.nearby-legend-line{display:inline-block;width:19px;height:0;border-top:2px solid rgba(132,184,255,.78)}
.nearby-map-stage{position:relative;min-width:0;min-height:0;flex:1;background:#d9d4cc}
.nearby-map-slot{position:absolute;inset:0}
.nearby-map-slot>.map-frame.nearby-expanded-map{position:absolute;inset:0;width:100%;height:100%;max-height:none;border:0;border-radius:0}
.nearby-map-status{position:absolute;left:14px;bottom:14px;z-index:5;max-width:min(720px,calc(100% - 28px));padding:8px 11px;border:1px solid rgba(255,255,255,.58);border-radius:8px;background:rgba(25,31,36,.82);color:#fff;font-size:10px;font-weight:650;line-height:1.35;box-shadow:0 4px 16px rgba(0,0,0,.18);pointer-events:none}
.nearby-map-status.error{background:rgba(112,35,35,.88)}
@media(max-width:760px){
  .nearby-map-workspace{inset:5px;border-radius:9px}
  .nearby-map-workspace-head{align-items:flex-start;padding:10px;gap:10px}
  .nearby-map-head-right{align-items:flex-end;flex-direction:column;gap:7px}
  .nearby-map-legend{gap:7px;font-size:8px;white-space:normal}
  .nearby-map-status{left:8px;bottom:8px;max-width:calc(100% - 16px)}
}


/* v125: Lead Details map actions use direct icon buttons and a visible highlight toggle group. */
.map-highlight-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px}
.map-highlight-toolbar-label{font-size:10px;font-weight:850;letter-spacing:.07em;text-transform:uppercase;color:var(--muted)}
.map-highlight-button-group{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.map-layer-native{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.map-layer-button{display:inline-flex!important;align-items:center;gap:7px;padding:8px 12px!important;min-height:38px;border-color:#cfd7df;background:#fff;color:#41505d;font-weight:800}
.map-layer-button svg,.property-action-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.map-layer-button.active{border-color:var(--gold,#b08c52);background:var(--gold-soft,#f7edda);color:var(--gold-deep,#76531d)}
.map-layer-button:disabled{opacity:.45;cursor:not-allowed}
.map-action-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:10px;align-items:stretch}
.property-action-button{display:inline-flex!important;align-items:center;justify-content:center;gap:7px;width:100%;padding:10px 12px!important;white-space:nowrap;text-align:center;min-width:0}
.property-action-button span{overflow:visible;text-overflow:clip}
.property-action-button.nearby-map-open-button{border-color:#a7b9c9;background:#f7fbff;color:#24445f}
.property-action-button.nearby-map-open-button:hover{border-color:#7ea2bf;background:#eef7ff}
.estimator-map-actions .estimator-open-button{grid-column:1 / -1;min-width:0;padding:11px 14px!important;font-weight:850;box-shadow:0 2px 0 rgba(0,0,0,.08)}
.map-highlight-status{display:block;margin-top:7px}

@media(max-width:760px){
  .map-highlight-toolbar{align-items:flex-start}
  .map-action-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .property-action-button{padding:10px 8px!important;font-size:13px}
}
@media(max-width:620px){
  .map-highlight-button-group{width:100%}
  .map-layer-button{flex:1 1 0;justify-content:center}
}

/* Nearby Properties: contextual missing-parking-geometry reporting. */
.nearby-map-workspace [hidden]{display:none!important}
.nearby-legend-dot.missing{background:#8d98a3}
.nearby-map-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}
.nearby-report-button{display:inline-flex!important;align-items:center;gap:7px;border-color:#9faab4;background:#f4f6f8;color:#35424d;font-weight:800}
.nearby-report-button:hover{border-color:#7f8b96;background:#edf0f2}
.nearby-report-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.nearby-report-draw-actions{display:flex;align-items:center;gap:6px}
.nearby-report-draw-actions .button{min-height:36px;padding:7px 11px}
.estimator-nearby-card .nearby-property-badge.reported-missing{background:#eceff1;color:#4e5963}
.reported-missing-card{min-width:210px}
.missing-lot-export-actions{margin-bottom:12px}
.missing-lot-report-table td small{display:block;margin-top:2px;color:var(--muted);font-size:10px}
@media(max-width:760px){
  .nearby-map-actions{justify-content:flex-end}
  .nearby-report-draw-actions{width:100%;justify-content:flex-end}
}

/* v143 — Sales Your Move now follows the visual hierarchy of the main Your Move dashboard. */
.sales-your-move-page .sales-your-move-kpis{margin-bottom:16px}
.sales-your-move-grid{display:grid;grid-template-columns:minmax(0,1.58fr) minmax(300px,.72fr);gap:16px;align-items:start;margin-bottom:18px}
.sales-move-hero-polished{
  position:relative;padding:21px 22px 18px!important;margin:0!important;border-color:#d7c29f!important;
  border-top:3px solid var(--gold,#b08c52)!important;background:linear-gradient(180deg,#fffdfa 0%,#fcf8f1 100%)!important;
  box-shadow:0 10px 28px rgba(64,51,31,.08)!important
}
.sales-move-title{align-items:flex-start;margin-bottom:7px}
.sales-move-title h2{margin:2px 0 0;font-size:24px;letter-spacing:-.025em}
.sales-move-kicker{align-self:flex-start}
.sales-move-customer{margin:12px 0 0;color:var(--charcoal,#35322e);font-size:18px;font-weight:850;line-height:1.3}
.sales-your-move-page .sales-property{margin:2px 0 0;font-size:12px}
.sales-move-opportunity-metrics{display:flex;align-items:stretch;width:max-content;max-width:100%;margin-top:16px;border-top:1px solid #e5d8c5;border-bottom:1px solid #e5d8c5}
.sales-move-opportunity-metric{min-width:170px;padding:11px 20px 11px 0}
.sales-move-opportunity-metric+.sales-move-opportunity-metric{padding-left:20px;border-left:1px solid #e5d8c5}
.sales-move-opportunity-metric span{display:block;font-size:9px;font-weight:900;letter-spacing:.085em;text-transform:uppercase;color:#8a7a65}
.sales-move-opportunity-metric strong{display:block;margin-top:3px;color:#443a2e;font-size:20px;line-height:1.2}
.sales-move-opportunity-metric.opportunity-value strong{color:#70531f}
.sales-move-opportunity-metric small{display:block;margin-top:3px;color:var(--muted);font-size:9px;font-weight:650}
.sales-your-move-page .sales-estimate-summary{margin:12px 0 0;font-size:12px;line-height:1.4}
.sales-move-actions{display:flex;align-items:center;gap:9px;margin-top:17px}
.sales-move-primary-action{min-height:44px!important;padding:10px 18px!important;font-size:16px!important;font-weight:900!important;box-shadow:0 5px 12px rgba(92,71,35,.12)}
.sales-move-reason-strip{display:flex;align-items:center;gap:10px;margin-top:16px;padding:10px 0 0;border-top:1px solid #e7ddd0}
.sales-move-reason-strip>div{display:flex;flex-direction:column;gap:1px}
.sales-move-reason-strip strong{font-size:11px;color:#55452e}
.sales-move-reason-strip span{font-size:10px;color:var(--muted)}
.sales-move-reason-icon{display:grid!important;place-items:center;width:27px;height:27px;border-radius:999px;background:#f7f1e7;color:#8b692e;flex:0 0 27px}
.sales-move-reason-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.sales-on-deck-panel{padding:18px}
.sales-on-deck-title{margin-bottom:8px}
.sales-on-deck-title h2{margin:2px 0 0;font-size:17px}
.sales-on-deck-title>a{font-size:10px;font-weight:800;color:#72572b;text-decoration:none}
.sales-on-deck-list{display:grid;border-top:1px solid var(--line)}
.sales-on-deck-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:11px;align-items:center;padding:12px 9px;border-bottom:1px solid var(--line);border-left:3px solid transparent;color:inherit;text-decoration:none;transition:.12s ease}
.sales-on-deck-row:hover{background:#fcfaf6}
.sales-on-deck-row.next-up{border:1px solid #d9c29c;border-left:3px solid var(--gold,#b08c52);border-radius:9px;background:#fffaf1;margin:7px 0}
.sales-on-deck-main{min-width:0;display:grid;gap:2px}
.sales-on-deck-main>strong{font-size:13px;line-height:1.3;color:var(--charcoal,#35322e)}
.sales-on-deck-main>span:not(.sales-on-deck-sequence-label){font-size:11px;font-weight:750;color:#57514a}
.sales-on-deck-main>small{font-size:9px;line-height:1.35;color:var(--muted)}
.sales-on-deck-sequence-label{display:inline-flex!important;width:max-content;margin-bottom:2px;padding:2px 6px;border-radius:999px;background:#f4e6ca;color:#76551f!important;font-size:7px!important;font-weight:900!important;letter-spacing:.09em;text-transform:uppercase}
.sales-on-deck-side{display:grid;justify-items:end;gap:5px;white-space:nowrap}
.sales-on-deck-side>strong{font-size:12px;color:#5a4728}
.sales-on-deck-open{font-size:9px;font-weight:850;color:#745b32}

/* Quote quantities are deliberately human-scale: two decimals match the form step and pricing workflow. */
.sales-quote-items-table .sales-qty-input{font-variant-numeric:tabular-nums}

@media(max-width:1050px){
  .sales-your-move-grid{grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr)}
}
@media(max-width:980px){
  .sales-your-move-grid{grid-template-columns:1fr}
}
@media(max-width:700px){
  .sales-move-hero-polished{padding:16px 14px!important;border-top-width:3px!important;box-shadow:none!important}
  .sales-move-primary-action{width:100%;min-height:46px!important;font-size:16px!important}
  .sales-move-opportunity-metrics{width:100%}
  .sales-move-opportunity-metric{min-width:0;flex:1 1 0;padding-right:14px}
  .sales-move-opportunity-metric+.sales-move-opportunity-metric{padding-left:14px}
  .sales-move-opportunity-metric strong{font-size:18px}
}

/* Sales: independent bidder/vendor copies of a frozen source estimate. */
.sales-duplicate-estimate-menu{position:relative;margin:0;border:0;padding:0}
.sales-duplicate-estimate-menu>summary{list-style:none;cursor:pointer}
.sales-duplicate-estimate-menu>summary::-webkit-details-marker{display:none}
.sales-duplicate-estimate-button{display:inline-flex!important;align-items:center;gap:7px}
.sales-duplicate-estimate-button svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sales-duplicate-estimate-menu[open]>.sales-duplicate-estimate-button{border-color:var(--gold,#b08c52);background:var(--gold-soft,#f7edda);color:var(--gold-deep,#76531d)}
.sales-duplicate-estimate-form{position:absolute;right:0;top:calc(100% + 7px);z-index:40;width:min(330px,calc(100vw - 28px));padding:14px;border:1px solid #d8c9b3;border-radius:10px;background:#fffdfa;box-shadow:0 14px 35px rgba(23,33,43,.18)}
.sales-duplicate-estimate-form>strong,.sales-duplicate-estimate-form>small{display:block}
.sales-duplicate-estimate-form>strong{font-size:13px}
.sales-duplicate-estimate-form>small{margin-top:4px;color:var(--muted);font-size:10px;line-height:1.4}
.sales-duplicate-estimate-form .field{margin:11px 0}
.sales-duplicate-estimate-form .button{width:100%}
@media(max-width:700px){.sales-duplicate-estimate-form{position:fixed;left:14px;right:14px;top:95px;width:auto}}
.sales-bidder-inline{font-weight:750;color:var(--gold-deep,#76531d)}

/* Sales Quote Details: keep the paired customer/contractor labels aligned. */
.sales-quote-detail-page .sales-quote-contractor-field>span{white-space:nowrap}

/* v126: zero-result Lead search can resolve an address and submit parking geometry to Research. */
.lead-address-fallback{display:flex;align-items:flex-start;gap:12px;margin:12px 14px 16px;padding:14px 15px;border:1px solid #c9d6df;border-radius:11px;background:#f8fbfd;color:var(--ink)}
.lead-address-fallback-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:50%;background:#e8f1f7;color:#315d7a;font-size:20px;font-weight:800}
.lead-address-fallback-copy{min-width:0;flex:1}.lead-address-fallback-copy>strong,.lead-address-fallback-copy>span{display:block}.lead-address-fallback-copy>strong{font-size:13px}.lead-address-fallback-copy>span{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.lead-address-fallback-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:10px}.lead-address-fallback-actions[hidden]{display:none!important}
.lead-address-fallback.reported{border-color:#c8cdd2;background:#f5f6f7}.lead-address-fallback.reported .lead-address-fallback-icon{background:#e3e6e8;color:#606a72}
.lead-address-fallback.existing{border-color:#a9d1c6;background:#f1f9f6}.lead-address-fallback.existing .lead-address-fallback-icon{background:#dcefe9;color:#176b5b}
.lead-address-fallback.error{border-color:#e2bcbc;background:#fff6f6}.lead-address-fallback.error .lead-address-fallback-icon{background:#f5dddd;color:var(--bad)}
.lead-address-status-badge{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:#e6e9eb;color:#5c6770;font-size:10px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}
.lead-address-resolved{font-weight:800;color:var(--ink)}
.lead-missing-site-workspace[hidden]{display:none!important}.lead-missing-site-workspace{position:fixed;inset:12px;z-index:1300;display:flex;flex-direction:column;overflow:hidden;border:1px solid #b9c5ce;border-radius:13px;background:#f6f3ed;box-shadow:0 24px 70px rgba(0,0,0,.3)}
.lead-missing-site-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border-bottom:1px solid #d8d1c6;background:#fffdfa}.lead-missing-site-head>div{min-width:0}.lead-missing-site-head strong,.lead-missing-site-head small{display:block}.lead-missing-site-head strong{font-size:17px}.lead-missing-site-head small{margin-top:2px;color:var(--muted);font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lead-missing-site-body{display:grid;grid-template-columns:minmax(0,1fr) 350px;min-height:0;flex:1}.lead-missing-site-map-wrap{position:relative;min-height:0;background:#d8d5cf}.lead-missing-site-map{position:absolute;inset:0}.lead-missing-site-instructions{position:absolute;left:14px;right:14px;bottom:14px;z-index:5;max-width:680px;margin:auto;padding:9px 12px;border:1px solid rgba(255,255,255,.65);border-radius:8px;background:rgba(25,30,32,.88);color:#fff;font-size:11px;line-height:1.4;box-shadow:0 5px 18px rgba(0,0,0,.18);pointer-events:none}
.lead-missing-site-panel{overflow:auto;padding:15px;border-left:1px solid #d8d1c6;background:#fffdfa}.lead-missing-site-resolved{padding:11px 12px;border:1px solid #dbe1e5;border-radius:9px;background:#f8fafb}.lead-missing-site-resolved strong,.lead-missing-site-resolved small{display:block}.lead-missing-site-resolved strong{margin-top:3px;font-size:13px;line-height:1.35}.lead-missing-site-resolved small{margin-top:5px;color:var(--muted);font-size:10px;line-height:1.4}.lead-missing-site-panel .field{margin-top:13px}.lead-missing-site-panel .field>span small{display:inline;font-size:9px;font-weight:700;text-transform:none;letter-spacing:0;color:var(--muted)}
.lead-missing-site-draw-status{margin-top:12px;padding:8px 9px;border:1px solid #ded6ca;border-radius:8px;background:#fbf8f3;color:#655d55;font-size:10px;font-weight:750}.lead-missing-site-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:9px}.lead-missing-site-actions [data-missing-site-finish]{grid-column:1 / -1;min-height:42px;font-weight:850}.lead-missing-site-help{margin:10px 1px 0;color:var(--muted);font-size:10px;line-height:1.45}
body.lead-missing-site-active{overflow:hidden}
@media(max-width:850px){.lead-missing-site-workspace{inset:6px}.lead-missing-site-body{grid-template-columns:1fr;grid-template-rows:minmax(340px,55%) auto;overflow:auto}.lead-missing-site-map-wrap{min-height:340px}.lead-missing-site-panel{border-left:0;border-top:1px solid #d8d1c6}}

/* v114 — Jobs: lightweight collections of independent parking-lot Estimates. */
.lead-job-card{margin-top:12px;padding:12px;border:1px solid #c9d8d3;border-radius:9px;background:#f8fcfb}
.lead-job-card[hidden]{display:none!important}
.lead-job-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.lead-job-head>div:first-child{min-width:0}
.lead-job-head .eyebrow{display:block;margin-bottom:3px}
.lead-job-head strong{font-size:14px;line-height:1.25}
.lead-job-rollup{text-align:right;white-space:nowrap}
.lead-job-rollup strong,.lead-job-rollup span{display:block}
.lead-job-rollup strong{font-size:12px;color:#165f52}
.lead-job-rollup span{margin-top:2px;font-size:11px;color:var(--muted)}
.lead-job-members{display:grid;gap:6px;margin-top:10px}
.lead-job-member{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 9px;border:1px solid #dce7e3;border-radius:7px;background:#fff}
.lead-job-member>div{min-width:0}
.lead-job-member strong,.lead-job-member small{display:block}
.lead-job-member strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.lead-job-member small{margin-top:2px;color:var(--muted);font-size:9px}
.lead-job-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding-top:9px;border-top:1px dashed #cfddd8}
.lead-job-foot>small{max-width:520px;color:var(--muted);font-size:9px;line-height:1.35}
.lead-job-draft-note{color:#7b6541;font-size:9px;font-weight:750;text-align:right}
.facility-job-badge{display:inline-flex;align-items:center;gap:3px;flex:0 0 auto;padding:4px 6px;border-radius:999px;background:#fff2c3;color:#6b5417;border:1px solid #e2c860;font-size:8px;font-weight:900;letter-spacing:.04em;text-transform:uppercase}
.facility-job-badge[hidden]{display:none!important}
.facility-tab.active .facility-job-badge{background:#ffe79a}
.estimator-nearby-card .nearby-property-badge.measured{background:#e8f4ef;color:#126654}
.estimator-nearby-card .nearby-property-job-button{display:block;width:100%;margin-top:9px;padding:7px 9px;font-size:10px;font-weight:850}
.estimator-nearby-card .nearby-property-job-button.in-job{border-color:#5d8b68;background:#edf7ef;color:#225f30}
.estimator-nearby-card .nearby-property-estimator-button{display:block;width:100%;margin-top:7px;padding:7px 9px;font-size:10px;font-weight:850;border-color:#c8ad7b;background:#fffaf1;color:#65491d}
.estimator-nearby-card .nearby-property-estimator-button:hover{background:#f7ecd8}
.nearby-map-job-chip{flex:0 0 auto;padding:6px 10px;border:1px solid #d2c06c;border-radius:9px;background:#fff7d5;text-align:left;min-width:118px}
.nearby-map-job-chip[hidden]{display:none!important}
.nearby-map-job-chip span,.nearby-map-job-chip strong,.nearby-map-job-chip small{display:block}
.nearby-map-job-chip span{font-size:8px;font-weight:900;letter-spacing:.08em;color:#846718}
.nearby-map-job-chip strong{font-size:11px!important;color:#473a18}
.nearby-map-job-chip small{margin-top:1px!important;font-size:9px!important;color:#766a45!important}
.nearby-legend-dot.in-job{display:inline-flex!important;align-items:center;justify-content:center;width:12px!important;height:12px!important;border:1px solid #137A70!important;background:#20A99A!important;color:#fff;font-size:8px;font-weight:900;line-height:1}
@media(max-width:760px){
  .lead-job-head,.lead-job-foot{align-items:stretch;flex-direction:column}
  .lead-job-rollup{text-align:left}
  .lead-job-draft-note{text-align:left}
  .nearby-map-job-chip{display:none}
}
.sales-job-estimates-list{display:grid;gap:6px;margin:10px 0;padding-top:9px;border-top:1px solid #e4e8eb}
.sales-job-estimates-list>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:7px 8px;border:1px solid #e3e7ea;border-radius:7px;background:#fafcfd}
.sales-job-estimates-list strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}
.sales-job-estimates-list span{flex:0 0 auto;color:var(--muted);font-size:10px;font-weight:750}

/* v115 — Lead Details: active Job sits above selected-lot Measurements. */
.lead-job-card{margin-top:12px;background:#f8fcfb}
.lead-job-title{min-width:0}
.lead-job-label-row{display:flex;align-items:center;gap:6px;margin-bottom:3px}
.lead-job-label-row .eyebrow{margin:0}
.lead-job-label-row .badge{padding:3px 6px;font-size:7px}
.lead-job-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex:0 0 auto}
.lead-job-total-jobs{display:inline-flex;align-items:center;min-height:28px;padding:0 8px;border:1px solid #d5dfdc;border-radius:999px;background:#fff;color:#2b655a;font-size:9px;font-weight:900;white-space:nowrap}
.lead-job-new-form{margin:0}
.lead-job-new-button{min-height:28px!important;padding:5px 8px!important;font-size:9px!important;font-weight:850}
.lead-job-new-button:disabled{opacity:.45;cursor:not-allowed}
.lead-job-switch-wrap{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;margin-top:9px;padding-top:9px;border-top:1px dashed #cfddd8}
.lead-job-switch-wrap>span{font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lead-job-switch-wrap select{min-width:0;width:100%;padding:7px 28px 7px 8px;border:1px solid #cfd9d6;border-radius:7px;background:#fff;color:var(--ink);font-size:10px;font-weight:750}
.lead-job-rollup{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-top:10px;padding:8px 9px;border:1px solid #dce7e3;border-radius:7px;background:#eef7f4;text-align:left;white-space:normal}
.lead-job-rollup strong,.lead-job-rollup span{display:block}
.lead-job-rollup span{margin:0;white-space:nowrap}
.lead-job-member-copy{min-width:0;flex:1 1 auto}
.lead-job-member-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.lead-job-estimator-link{min-height:28px!important;padding:5px 8px!important;border-color:#c8ad7b!important;background:#fffaf1!important;color:#65491d!important;font-size:9px!important;font-weight:850!important;white-space:nowrap}
.lead-job-estimator-link:hover{background:#f7ecd8!important}
.lead-job-empty{margin-top:10px;padding:10px;border:1px dashed #cbd9d5;border-radius:8px;background:#fff}
.lead-job-empty[hidden]{display:none!important}
.lead-job-empty p{margin:0 0 8px;color:var(--muted);font-size:10px;line-height:1.4}
.lead-job-start-estimator{width:100%;justify-content:center;font-size:10px!important;font-weight:850}
.lead-job-selected-lot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:9px;padding:8px 9px;border:1px dashed #d8d3c8;border-radius:7px;background:#fffaf2}
.lead-job-selected-lot>div{min-width:0}.lead-job-selected-lot span,.lead-job-selected-lot strong{display:block}.lead-job-selected-lot span{font-size:7px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.lead-job-selected-lot strong{margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.estimator-summary-property{display:block;margin-top:3px;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--ink)}
.estimator-map-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:760px){
  .lead-job-head-actions{justify-content:flex-start;flex-wrap:wrap}
  .lead-job-switch-wrap{grid-template-columns:1fr}
  .lead-job-member{align-items:flex-start}
  .lead-job-member-actions{align-items:flex-end;flex-direction:column}
  .lead-job-selected-lot{align-items:stretch;flex-direction:column}
}

/* v117 — keep the active Job stable while switching Parking Lots and make the
   selected Parking Lot explicit inside the Job card. */
.lead-job-member.selected{border-color:#8bcfc4;background:#f0faf7;box-shadow:inset 3px 0 0 #20a99a}
.selected-lot-badge{background:#dff5f0;color:#12685d;border:1px solid #a7ddd4}
.lead-job-selected-lot[hidden]{display:none!important}

/* Contextual Job state: a Job shown on Lead Details always contains the selected Parking Lot. */
.lead-job-existing-actions{display:grid;gap:6px;margin-top:8px}
.lead-job-existing-actions form{margin:0}
.lead-job-existing-label{font-size:8px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lead-job-add-existing{width:100%;justify-content:center;font-size:9px!important;font-weight:850!important}
.lead-job-empty-hint{display:block;color:var(--muted);font-size:9px;line-height:1.4}
.lead-job-empty p strong{color:var(--ink)}

/* Sales Quote Builder: Sales assembles completed measurements into a Quote. */
.sales-quote-builder-head p{max-width:760px}
.sales-quote-builder{padding:0;overflow:hidden}
.sales-quote-builder-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;padding:14px 16px;border-bottom:1px solid var(--line);background:#fbfaf8}
.sales-quote-builder-search{display:grid;gap:5px;min-width:min(520px,58vw);font-size:10px;font-weight:850;color:var(--muted);letter-spacing:.04em;text-transform:uppercase}
.sales-quote-builder-search input{width:100%;min-height:40px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:13px;text-transform:none;letter-spacing:0}
.sales-quote-builder-selection-summary{display:grid;justify-items:end;gap:1px;text-align:right}
.sales-quote-builder-selection-summary span{font-size:9px;font-weight:900;letter-spacing:.08em;color:var(--muted)}
.sales-quote-builder-selection-summary strong{font-size:15px;color:var(--ink)}
.sales-quote-builder-selection-summary small{font-size:10px;color:var(--muted)}
.sales-quote-builder-layout{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(300px,.62fr);min-height:600px}
.sales-quote-builder-map-wrap{min-width:0;border-right:1px solid var(--line);background:#e7e2da}
.sales-quote-builder-map{position:relative;width:100%;height:570px;background:#e7e2da}
.sales-quote-builder-map-canvas{width:100%;height:100%}
.sales-quote-builder-legend{display:flex;align-items:center;gap:16px;flex-wrap:wrap;min-height:30px;padding:6px 12px;background:#faf8f5;border-top:1px solid var(--line);font-size:9px;font-weight:800;color:var(--muted)}
.sales-quote-builder-legend span{display:inline-flex;align-items:center;gap:5px}
.sales-quote-builder-legend i{display:inline-grid;place-items:center;width:12px;height:12px;border-radius:50%;font-style:normal;font-size:8px;font-weight:900}
.sales-quote-builder-legend i.available{background:#4E6775;border:2px solid #314650}
.sales-quote-builder-legend i.same-lead{background:#FFD54A;border:2px solid #B98500}
.sales-quote-builder-legend i.selected{width:16px;height:16px;background:#20A99A;border:2px solid #137A70;color:#fff}
.sales-quote-builder-side{display:flex;flex-direction:column;min-width:0;padding:16px;background:#fff}
.sales-quote-builder-side-head{display:flex;align-items:start;justify-content:space-between;gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.sales-quote-builder-side-head h2{margin:2px 0 0;font-size:17px;line-height:1.18}
.sales-quote-builder-help{margin:10px 0 12px;color:var(--muted);font-size:11px;line-height:1.45}
.sales-quote-builder-selected{display:grid;gap:8px;overflow:auto;max-height:350px;padding-right:2px}
.sales-quote-builder-selected-row{display:grid;gap:7px;padding:10px;border:1px solid #c9d8d3;border-radius:8px;background:#f8fcfb}
.sales-quote-builder-selected-row strong{display:block;font-size:12px;line-height:1.3}
.sales-quote-builder-selected-row small{display:block;margin-top:3px;color:var(--muted);font-size:10px}
.sales-quote-builder-selected-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}
.sales-quote-builder-selected-actions .link-button{font-size:10px}
.sales-quote-builder-create{width:100%;margin-top:14px;min-height:42px}
.sales-quote-builder-note{display:block;margin-top:9px;color:var(--muted);font-size:9px;line-height:1.45}
.sales-quote-builder-info{display:grid;gap:5px;max-width:310px;padding:3px 1px;color:#322f2b}
.sales-quote-builder-info>.eyebrow{font-size:8px}
.sales-quote-builder-info>strong{font-size:13px;line-height:1.28}
.sales-quote-builder-info>small{font-size:10px;color:#756b62}
.sales-quote-builder-info p{margin:3px 0;color:#756b62;font-size:10px;line-height:1.35}
.sales-quote-builder-info-meta{display:flex;gap:10px;font-size:10px;font-weight:800;color:#5c534b}
.sales-quote-builder-info-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:4px}
.sales-quote-builder-info-actions .button{padding:6px 8px;font-size:9px}
.sales-empty-state.compact{padding:12px}.sales-empty-state.compact p{margin:0}
@media(max-width:900px){
  .sales-quote-builder-toolbar{align-items:stretch;flex-direction:column}.sales-quote-builder-search{min-width:0}.sales-quote-builder-selection-summary{justify-items:start;text-align:left}
  .sales-quote-builder-layout{grid-template-columns:1fr}.sales-quote-builder-map-wrap{border-right:0;border-bottom:1px solid var(--line)}.sales-quote-builder-map{height:430px}.sales-quote-builder-selected{max-height:none}
}

/* Sales measurement combination workflow */
.sales-quote-builder-quotes{display:grid;gap:0;min-width:0}
.sales-quote-builder-quotes-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
.sales-quote-builder-quotes-head h2{margin:2px 0 0;font-size:17px;line-height:1.18}
.sales-quote-builder-quote-list{display:grid;gap:6px;max-height:190px;overflow:auto;padding-right:2px}
.sales-quote-builder-quote{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);text-align:left;cursor:pointer;font:inherit;transition:border-color .15s ease,background .15s ease,box-shadow .15s ease}
.sales-quote-builder-quote:hover{border-color:#b6a891;background:#fcfaf6}
.sales-quote-builder-quote.active{border-color:#137A70;background:#f1faf8;box-shadow:inset 3px 0 0 #20A99A}
.sales-quote-builder-quote:disabled{cursor:wait;opacity:.62}
.sales-quote-builder-quote-main{display:grid;gap:2px;min-width:0}
.sales-quote-builder-quote-main strong{font-size:11px;line-height:1.2}
.sales-quote-builder-quote-main small{overflow:hidden;color:var(--muted);font-size:9px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}
.sales-quote-builder-quote-meta{flex:0 0 auto;color:var(--muted);font-size:9px;font-weight:800;white-space:nowrap}
.sales-quote-builder-divider{height:1px;margin:14px 0;background:var(--line)}
.sales-quote-builder-side .sales-quote-builder-selected{max-height:210px}
@media(max-width:900px){.sales-quote-builder-quote-list{max-height:260px}.sales-quote-builder-side .sales-quote-builder-selected{max-height:none}}

/* Sales Quotes: selection + combine/map/detail workflow */
.sales-quote-actions-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}
.sales-quote-selection-status{font-size:12px;font-weight:750;color:var(--muted)}
.sales-quote-selection-actions{display:flex;align-items:center;gap:8px}
.sales-quote-selection-actions .button{display:inline-flex;align-items:center;gap:7px}
.sales-quotes-table .quote-select-cell{width:42px;text-align:center;vertical-align:middle}
.sales-quotes-table .quote-select-cell input{width:17px;height:17px;accent-color:#b58a44;cursor:pointer}
.sales-quotes-table td:nth-child(2){white-space:nowrap}
.sales-quotes-table .quote-action-heading{width:1%;text-align:center;white-space:nowrap}
.sales-quotes-table .quote-action-cell{width:1%;padding-left:6px;padding-right:6px;text-align:center;white-space:nowrap}
.sales-quotes-table .quote-details-cell{padding-right:0;text-align:right}
.sales-quotes-table .quote-map-button{display:inline-flex;align-items:center;justify-content:center;width:max-content;min-width:38px;min-height:36px;padding:0 12px;white-space:nowrap}
.sales-quotes-table .quote-details-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px}
.action-icon{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
@media(max-width:760px){
  .sales-quote-actions-bar{align-items:stretch;flex-direction:column}
  .sales-quote-selection-actions{justify-content:flex-end}
}

/* v114 — make completed parking-lot measurements unmistakable */
.facility-complete-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  flex:0 0 20px;
  border-radius:50%;
  background:#e7f3f0;
  color:#106655;
}
.facility-complete-icon[hidden]{display:none!important}
.facility-complete-icon svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.property-measured-area b{display:flex;align-items:center;justify-content:flex-end;gap:5px}
.property-complete-icon{display:inline-flex;align-items:center;justify-content:center;color:#106655}
.property-complete-icon svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.estimator-status-badge{display:inline-flex!important;align-items:center;gap:4px}
.estimator-status-check{width:13px;height:13px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.estimator-status-check[hidden]{display:none!important}
@media(max-width:700px){
  .facility-complete-icon{width:18px;height:18px;flex-basis:18px}
  .facility-complete-icon svg{width:12px;height:12px}
}

/* v148 — Lead Details: compact completed-Estimate Quote picker */
.portfolio-section-title{position:relative;overflow:visible}
.portfolio-title-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px;position:relative}
.portfolio-title-count{color:#2e363d;white-space:nowrap}
.portfolio-quote-control{position:relative;flex:0 0 auto}
.portfolio-quote-trigger{min-height:31px;padding:5px 9px;gap:5px;border-color:#c7ad83;background:#fffaf2;color:#6f5126;font-size:11px}
.portfolio-quote-trigger svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.portfolio-quote-trigger:hover:not(:disabled){border-color:#ad8248;background:#f5ead8}
.portfolio-quote-trigger:disabled{cursor:not-allowed;opacity:.42;background:#f5f1eb;color:#8b847b;border-color:#ddd6cd}
.portfolio-quote-popover{position:absolute;top:calc(100% + 8px);right:0;z-index:80;width:min(350px,calc(100vw - 32px));padding:12px;border:1px solid #cdbb9f;border-radius:12px;background:#fffdfa;box-shadow:0 18px 42px rgba(37,31,24,.18)}
.portfolio-quote-popover[hidden]{display:none!important}
.portfolio-quote-popover-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-bottom:9px;border-bottom:1px solid #eadfce}
.portfolio-quote-popover-head .eyebrow{display:block;margin-bottom:2px;color:#9a7138}
.portfolio-quote-popover-head strong{display:block;font-size:13px;color:#202b34}
.portfolio-quote-close{display:grid;place-items:center;width:27px;height:27px;padding:0;border:0;border-radius:7px;background:transparent;color:#70675d;font-size:21px;line-height:1;cursor:pointer}
.portfolio-quote-close:hover{background:#f2ebe1;color:#24313c}
.portfolio-quote-options{display:grid;gap:6px;max-height:260px;overflow:auto;margin:9px -2px 10px;padding:0 2px}
.portfolio-quote-option{position:relative;display:grid;grid-template-columns:19px minmax(0,1fr);align-items:center;gap:8px;padding:8px 9px;border:1px solid #e4d9ca;border-radius:9px;background:#fff;cursor:pointer}
.portfolio-quote-option:hover{border-color:#c7aa7e;background:#fbf6ee}
.portfolio-quote-option[hidden]{display:none!important}
.portfolio-quote-option input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
.portfolio-quote-check{display:grid;place-items:center;width:17px;height:17px;border:1.5px solid #b8aa98;border-radius:5px;background:#fff;color:#fff}
.portfolio-quote-check svg{width:12px;height:12px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.portfolio-quote-option input:checked + .portfolio-quote-check{border-color:#15806d;background:#15806d}
.portfolio-quote-option:has(input:checked){border-color:#87b9ae;background:#edf7f4}
.portfolio-quote-option-copy{display:block;min-width:0}
.portfolio-quote-option-copy strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;color:#24313c}
.portfolio-quote-option-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:2px;color:#756f67;font-size:9px}
.portfolio-quote-empty{margin:8px 0;padding:14px 8px;text-align:center;color:#837b72;font-size:11px}
.portfolio-quote-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid #eadfce}
.portfolio-quote-footer small{color:#7d746a;font-size:10px}
.portfolio-quote-submit{min-height:33px;padding:6px 10px;font-size:10px;white-space:nowrap}
.portfolio-quote-submit:disabled{cursor:not-allowed;opacity:.42}
@media(max-width:700px){
  .portfolio-section-title{align-items:flex-start}
  .portfolio-title-actions{align-items:flex-end;flex-direction:column;gap:6px}
  .portfolio-title-count{font-size:11px}
  .portfolio-quote-popover{right:-2px;width:min(330px,calc(100vw - 44px))}
}
.lead-resolver-nearby{margin-top:12px;padding:11px 12px;border:1px solid #dbe1e5;border-radius:9px;background:#f8fafb}.lead-resolver-nearby-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.lead-resolver-nearby-head>div{min-width:0}.lead-resolver-nearby-head strong{display:block;margin-top:2px;font-size:12px}.lead-resolver-legend{display:flex;flex-wrap:wrap;gap:9px 12px;margin-top:9px;color:var(--muted);font-size:9px;font-weight:750}.lead-resolver-legend span{display:inline-flex;align-items:center;gap:5px}.lead-resolver-legend i{width:9px;height:9px;border-radius:50%;display:inline-block;border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.16)}.lead-resolver-legend i.searched{background:#2f6fed}.lead-resolver-legend i.existing{background:#16867a}.lead-resolver-legend i.selected{background:#f0b429}.lead-resolver-legend i.missing{background:#7B8792}.lead-resolver-nearby-list{display:grid;gap:6px;margin-top:9px;max-height:220px;overflow:auto}.lead-resolver-list-item{display:block;width:100%;padding:8px 9px;text-align:left;border:1px solid #dce5e7;border-radius:7px;background:#fff;cursor:pointer}.lead-resolver-list-item:hover{border-color:#16867a;background:#f3fbf9}.lead-resolver-list-item strong,.lead-resolver-list-item span,.lead-resolver-list-item small{display:block}.lead-resolver-list-item strong{font-size:10px}.lead-resolver-list-item span{margin-top:2px;font-size:9px;color:#384449;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lead-resolver-list-item small{margin-top:2px;color:var(--muted);font-size:8.5px}.lead-resolver-card{min-width:250px;max-width:320px;padding:2px}.lead-resolver-card strong,.lead-resolver-card span,.lead-resolver-card small{display:block}.lead-resolver-card strong{font-size:13px;line-height:1.3}.lead-resolver-card span{margin-top:3px;font-size:11px}.lead-resolver-card small{margin-top:5px;color:#66737a;font-size:10px}.lead-resolver-card-actions{display:grid;gap:6px;margin-top:10px}.lead-resolver-card-actions .button{display:block;text-align:center;text-decoration:none}.lead-missing-site-panel [data-missing-site-report-fields][hidden]{display:none!important}

/* ==========================================================================
   BRIDGER — exact county parcel/property boundaries
   ========================================================================== */
.territory-map-data-block{margin-top:8px;padding-top:8px}
.territory-map-data-block + .territory-map-data-block{margin-top:14px;padding-top:14px;border-top:1px dashed #e4ddd1}
.territory-map-data-block .section-title.compact{align-items:flex-start;margin-bottom:7px}
.territory-map-data-block .section-title.compact>div{display:flex;flex-direction:column;gap:2px}
.territory-map-data-block .section-title.compact strong{font-size:15px;color:var(--ink)}
.territory-map-data-block .section-title.compact small{font-size:10px;line-height:1.3}
.estimator-property-lines-control{margin-top:9px;padding-top:9px;border-top:1px dashed #ded4c6}
.estimator-property-lines-toggle.active{border-color:#93cfc3;background:#edf8f5;color:#176858}
.estimator-property-lines-toggle.active>small{color:#397a6e}
.estimator-property-lines-toggle svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}

/* Missing-lot continuation from the estimator */
.missing-lot-create-shell{display:grid;grid-template-columns:minmax(0,1fr) 340px;min-height:calc(100vh - 190px);border:1px solid var(--line,#d9d1c4);border-radius:14px;overflow:hidden;background:#fff}
.missing-lot-create-map{min-height:680px;background:#d9dde0}
.missing-lot-create-panel{padding:18px;display:flex;flex-direction:column;gap:14px;background:#fffdfa;border-left:1px solid #ded5c8}
.missing-lot-create-context{display:flex;flex-direction:column;gap:4px}.missing-lot-create-context strong{font-size:17px}.missing-lot-create-context small{color:#6d6a65}
.missing-lot-rule-card{padding:13px;border:1px solid #e1d4c0;border-radius:10px;background:#fff8ec}.missing-lot-rule-card p{margin:8px 0 0;font-size:13px;line-height:1.4}
.missing-lot-create-draw-status{padding:10px 12px;border-radius:9px;background:#f3f0ea;font-size:13px}.missing-lot-create-draw-status.bad{background:#fff0f0;color:#9a2b38}
.missing-lot-create-result{padding:14px;border:1px solid #9fcabb;border-radius:10px;background:#effaf6}.missing-lot-create-result p{margin:6px 0 12px}
@media(max-width:900px){.missing-lot-create-shell{grid-template-columns:1fr}.missing-lot-create-map{min-height:55vh}.missing-lot-create-panel{border-left:0;border-top:1px solid #ded5c8}}

/* v145 — Explore Territory: viewport-driven parking discovery. */
.explore-page-head{align-items:end}.explore-page-head p{max-width:720px}.explore-context-chip{display:inline-flex;gap:5px;align-items:center;margin-top:8px;padding:6px 9px;border:1px solid #dac9aa;border-radius:999px;background:#fff7e8;color:#655439;font-size:11px}.explore-territory-form{min-width:250px}.explore-territory-form label{display:grid;gap:5px}.explore-territory-form label>span{font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.explore-territory-form select{min-height:40px}
.explore-shell{display:grid;grid-template-columns:minmax(0,1fr) 330px;min-height:calc(100vh - 190px);margin:0 24px 24px;border:1px solid #cfd7dc;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 10px 30px rgba(20,29,35,.08)}
.explore-map-stage{position:relative;min-height:700px;background:#d8dde0}.explore-map{position:absolute;inset:0}.explore-map-message{position:absolute;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:rgba(8,16,27,.72);color:#fff;font-size:15px;font-weight:850;text-align:center}.explore-map-message[hidden]{display:none!important}
.explore-panel{display:flex;flex-direction:column;gap:14px;padding:16px;border-left:1px solid #d8dfe3;background:#fffdfa;overflow:auto}.explore-search label{display:block;margin-bottom:6px;font-size:10px;font-weight:850;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.explore-search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.explore-search-row input{min-width:0}.explore-search>small{display:block;margin-top:6px;color:var(--muted);font-size:9.5px;line-height:1.4}
.explore-layer-stack{display:grid;gap:7px}.explore-layer-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:43px;text-align:left;background:#f8fafb;border-color:#d9e1e5}.explore-layer-toggle>span{display:inline-flex;align-items:center;gap:8px;font-weight:800}.explore-layer-toggle small{color:var(--muted);font-size:9px;white-space:nowrap}.explore-layer-toggle.active{border-color:#91aab4;background:#eef5f7;box-shadow:inset 3px 0 0 #607d87}.explore-layer-toggle:disabled{opacity:.55}.explore-legend-swatch{display:inline-block;width:11px;height:11px;border-radius:50%;border:1px solid #fff;box-shadow:0 0 0 1px rgba(0,0,0,.15)}.explore-legend-swatch.known{background:#e5ad34}.explore-legend-swatch.reported{background:#7B8792}.explore-legend-line{display:inline-block;width:16px;height:0;border-top:3px solid}.explore-legend-line.property{border-color:#10cfe3}
.explore-add-missing{min-height:45px;font-weight:900}.explore-help{margin:-4px 1px 0;color:#6e6b65;font-size:10px;line-height:1.45}.explore-status-card{padding:11px 12px;border:1px solid #ddd6ca;border-radius:10px;background:#f8f5ef}.explore-status-card strong,.explore-status-card small{display:block}.explore-status-card strong{margin-top:3px;font-size:13px}.explore-status-card small{margin-top:5px;color:#6a6863;font-size:10px;line-height:1.45}.explore-status-card small.error{color:#9a2b38}.explore-selected{padding:12px;border:1px solid #d7dfe3;border-radius:10px;background:#fff}.explore-selected[hidden]{display:none!important}.explore-info-card{display:grid;gap:5px;min-width:220px;max-width:300px}.explore-info-card strong{font-size:13px}.explore-info-card>span:not(.explore-info-state),.explore-info-card small{font-size:10px;color:#66737a}.explore-info-card .button{margin-top:5px;text-align:center;text-decoration:none}.explore-info-state{display:inline-flex;width:max-content;padding:3px 6px;border-radius:999px;font-size:8.5px;font-weight:850;letter-spacing:.04em;text-transform:uppercase}.explore-info-state.known{background:#fff1c9;color:#74560b}.explore-info-state.reported{background:#eceff1;color:#4e5963}
.explore-draw-banner{position:absolute;left:16px;right:16px;bottom:16px;z-index:25;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;max-width:850px;margin:auto;padding:10px 12px;border:1px solid rgba(255,255,255,.68);border-radius:10px;background:rgba(20,25,28,.92);color:#fff;box-shadow:0 6px 22px rgba(0,0,0,.28)}.explore-draw-banner[hidden]{display:none!important}.explore-draw-banner strong,.explore-draw-banner span{display:block}.explore-draw-banner strong{font-size:12px}.explore-draw-banner span{font-size:10px;color:#d8dde0}.explore-draw-banner>div{display:flex;gap:6px}.explore-draw-banner .button{min-height:34px}
@media(max-width:900px){.explore-shell{grid-template-columns:1fr;margin:0 10px 16px}.explore-map-stage{min-height:58vh}.explore-panel{border-left:0;border-top:1px solid #d8dfe3}.explore-page-head{align-items:start}.explore-territory-form{width:100%}.explore-draw-banner{grid-template-columns:1fr}.explore-draw-banner>div{justify-content:stretch}.explore-draw-banner .button{flex:1}}

/* Estimator map utilities: keep map-context actions out of the measurement sidebar. */
.estimator-map-utility-bar{
  position:absolute;
  top:14px;
  left:14px;
  z-index:9;
  display:flex;
  align-items:center;
  gap:6px;
  max-width:calc(100% - 235px);
  padding:5px;
  border:1px solid rgba(255,255,255,.78);
  border-radius:9px;
  background:rgba(255,253,250,.94);
  box-shadow:0 4px 14px rgba(0,0,0,.20);
  backdrop-filter:blur(4px);
}
.estimator-map-utility-button{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:31px!important;
  width:auto!important;
  padding:6px 9px!important;
  border-radius:6px!important;
  background:#fffdfa!important;
  font-size:10px!important;
  font-weight:800!important;
  white-space:nowrap;
}
.estimator-map-utility-button .estimator-tool-icon{width:15px;height:15px;flex:0 0 auto}
.estimator-map-utility-button>span{font-size:10px;font-weight:800;white-space:nowrap}
.estimator-map-utility-button>small{font-size:8.5px;font-weight:800;color:var(--muted);white-space:nowrap}
.estimator-map-utility-button.active{border-color:var(--gold,#b08c52)!important;background:var(--gold-soft,#f7edda)!important;color:var(--gold-deep,#76531d)!important}
.estimator-map-utility-button.active>small{color:inherit}
.estimator-map-utility-button:hover{background:#fff!important}
.estimator-map-rotation{left:auto!important;right:14px!important;transform:none!important;z-index:9}
.estimator-map-utility-toast{
  position:absolute;
  top:60px;
  left:14px;
  z-index:10;
  max-width:min(560px,calc(100% - 28px));
  padding:8px 11px;
  border:1px solid rgba(255,255,255,.65);
  border-radius:7px;
  background:rgba(26,30,31,.90);
  color:#fff;
  box-shadow:0 5px 18px rgba(0,0,0,.20);
  font-size:10px;
  font-weight:750;
  line-height:1.35;
  pointer-events:none;
}
.estimator-map-utility-toast.error{background:rgba(115,35,42,.94)}
@media(max-width:980px){
  .estimator-map-utility-bar{max-width:calc(100% - 205px);gap:4px}
  .estimator-map-utility-button{padding:6px 7px!important}
  .estimator-map-utility-button>small{display:none}
}
@media(max-width:700px){
  .estimator-map-utility-bar{top:8px;left:8px;right:8px;max-width:none;overflow-x:auto;padding:4px}
  .estimator-map-utility-button{flex:0 0 auto}
  .estimator-map-rotation{top:54px!important;right:8px!important}
  .estimator-map-utility-toast{top:96px;left:8px;max-width:calc(100% - 16px)}
}
.estimator-map-utility-button.estimator-property-lines-toggle.active{border-color:#93cfc3!important;background:#edf8f5!important;color:#176858!important}
.estimator-map-utility-button.active:hover{background:var(--gold-soft,#f7edda)!important}
.estimator-map-utility-button.estimator-property-lines-toggle.active:hover{background:#edf8f5!important}

/* ========================================================================== 
   BRIDGER MOBILE LOGIN — installed app / /mobile entry
   The native Android shell should never flash the cream desktop sign-in UI.
   ========================================================================== */
body.login-page.mobile-app-login-page {
  min-height: 100dvh;
  margin: 0;
  background: #07101a;
  color: #f4f7fa;
  color-scheme: dark;
}
body.login-page.mobile-app-login-page main {
  min-height: 100dvh;
  width: 100%;
  padding: 0;
  margin: 0;
  background: #07101a;
}
.mobile-login-experience {
  min-height: 100dvh;
  width: 100%;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: max(28px, env(safe-area-inset-top)) 20px max(28px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 18% 4%, rgba(215,173,88,.10), transparent 34rem),
    linear-gradient(180deg, #08131f 0%, #07101a 62%, #06101a 100%);
}
.mobile-login-wrap {
  width: min(100%, 440px);
  display: grid;
  gap: 30px;
}
.mobile-login-logo {
  display: block;
  width: min(230px, 62vw);
  height: auto;
  margin: 0 auto;
}
.mobile-login-card {
  width: 100%;
  box-sizing: border-box;
  padding: 28px 24px 24px;
  border: 1px solid rgba(215,173,88,.27);
  border-radius: 22px;
  background: linear-gradient(155deg,#112536 0%,#0c1926 76%);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
}
.mobile-login-eyebrow {
  color: #d7ad58;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .16em;
  font-weight: 900;
}
.mobile-login-card h1 {
  margin: 11px 0 8px;
  color: #fff;
  font-size: clamp(31px, 9vw, 38px);
  line-height: 1.02;
  letter-spacing: -.035em;
}
.mobile-login-card > p {
  margin: 0 0 25px;
  color: #a9bac8;
  font-size: 14px;
  line-height: 1.5;
}
.mobile-login-form {
  display: grid;
  gap: 16px;
}
.mobile-login-form label {
  display: grid;
  gap: 7px;
}
.mobile-login-form label > span {
  color: #b9c7d2;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.mobile-login-form input {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 11px;
  outline: none;
  background: #07131f;
  color: #fff;
  font-size: 16px;
  caret-color: #d7ad58;
  box-shadow: none;
}
.mobile-login-form input::placeholder { color: #718494; }
.mobile-login-form input:focus {
  border-color: rgba(215,173,88,.75);
  box-shadow: 0 0 0 3px rgba(215,173,88,.10);
}
.mobile-login-form button {
  width: 100%;
  min-height: 56px;
  margin-top: 4px;
  border: 1px solid #27c47d;
  border-radius: 12px;
  background: #27c47d;
  color: #06150f;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}
.mobile-login-error {
  display: grid;
  gap: 3px;
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255,111,107,.32);
  border-radius: 11px;
  background: rgba(255,88,82,.10);
  color: #ffc0bd;
  font-size: 13px;
}
.mobile-login-error strong { color: #fff; }
.mobile-login-device-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #8396a6;
  font-size: 11px;
  line-height: 1.45;
}
.mobile-login-device-note svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: #d7ad58;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 420px) {
  .mobile-login-experience { padding-left: 15px; padding-right: 15px; }
  .mobile-login-wrap { gap: 23px; }
  .mobile-login-card { padding: 24px 19px 21px; border-radius: 19px; }
}

/* ========================================================================== 
   BRIDGER v130 — account menu, account settings, and user-selectable theme
   ========================================================================== */
.user-menu{
  position:relative;
  padding-left:12px;
}
.account-menu{
  position:relative;
  margin:0;
  padding:0;
  border:0;
}
.account-menu>summary{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  margin:0;
  padding:6px 9px 6px 10px;
  border:1px solid transparent;
  border-radius:8px;
  list-style:none;
  cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.account-menu>summary::-webkit-details-marker{display:none}
.account-menu>summary::marker{display:none;content:""}
.account-menu>summary:hover,
.account-menu[open]>summary,
.account-menu.active>summary{
  background:rgba(176,140,82,.13);
  border-color:rgba(176,140,82,.20);
}
.account-menu .user-identity{min-width:126px}
.account-menu-chevron{
  color:#c9b185;
  font-size:15px;
  line-height:1;
  transition:transform .15s ease;
}
.account-menu[open] .account-menu-chevron{transform:rotate(180deg)}
.account-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:1300;
  display:grid;
  gap:3px;
  width:218px;
  padding:8px;
  border:1px solid rgba(214,155,53,.30);
  border-radius:10px;
  background:#151c21;
  box-shadow:0 16px 38px rgba(0,0,0,.30);
}
.account-dropdown a,
.account-dropdown-action{
  display:block;
  width:100%;
  min-height:37px;
  padding:9px 11px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:#dfe4e7;
  text-align:left;
  text-decoration:none;
  font:inherit;
  font-size:12px;
  font-weight:750;
  cursor:pointer;
}
.account-dropdown a:hover,
.account-dropdown-action:hover{background:rgba(176,140,82,.13);color:#fff}
.account-dropdown a.active{background:rgba(176,140,82,.19);color:#fff;box-shadow:inset 3px 0 0 var(--gold)}
.account-dropdown-separator{height:1px;margin:4px 4px;background:rgba(255,255,255,.10)}
.account-dropdown form{margin:0}

.account-settings-page main{max-width:1180px}
.account-settings-head{align-items:center}
.account-summary{
  min-width:260px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:9px;
  background:var(--panel);
  text-align:right;
  box-shadow:var(--shadow);
}
.account-summary strong,.account-summary span{display:block}
.account-summary strong{font-size:13px;color:var(--charcoal)}
.account-summary span{margin-top:2px;color:var(--muted);font-size:11px}
.account-settings-notice{margin-bottom:16px}
.account-settings-grid{display:grid;gap:18px}
.account-settings-panel{padding:22px;scroll-margin-top:24px}
.account-settings-title{margin-bottom:18px}
.account-settings-title h2{margin:3px 0 4px;font-size:21px}
.account-settings-title p{margin:0;color:var(--muted);font-size:12px}
.theme-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-choice{position:relative;display:block;cursor:pointer}
.theme-choice>input{position:absolute;opacity:0;pointer-events:none}
.theme-choice-card{
  display:block;
  height:100%;
  min-height:178px;
  padding:13px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--panel-strong,#fff);
  transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease;
}
.theme-choice:hover .theme-choice-card{transform:translateY(-1px);border-color:var(--line-strong)}
.theme-choice>input:focus-visible+.theme-choice-card{outline:2px solid var(--gold);outline-offset:2px}
.theme-choice>input:checked+.theme-choice-card{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold),0 8px 20px rgba(34,40,45,.08)}
.theme-choice-card>strong,.theme-choice-card>small{display:block}
.theme-choice-card>strong{margin-top:12px;font-size:14px;color:var(--charcoal)}
.theme-choice-card>small{margin-top:3px;color:var(--muted);font-size:11px;line-height:1.4}
.theme-preview-window{
  display:grid;
  grid-template-columns:31% 1fr;
  grid-template-rows:31px 1fr;
  gap:7px;
  height:82px;
  padding:9px;
  border-radius:8px;
  overflow:hidden;
}
.theme-preview-window i{display:block;border-radius:4px}
.theme-preview-window i:first-child{grid-column:1/-1}
.theme-preview-window i:nth-child(2){grid-column:1}
.theme-preview-window i:nth-child(3){grid-column:2}
.light-preview .theme-preview-window{background:#f4f0e9;border:1px solid #d9d1c6}
.light-preview .theme-preview-window i:first-child{background:#22282d;border-bottom:2px solid #b08c52}
.light-preview .theme-preview-window i:nth-child(2){background:#fbfaf7;border:1px solid #d9d1c6}
.light-preview .theme-preview-window i:nth-child(3){background:#fff;border:1px solid #d9d1c6}
.dark-preview .theme-preview-window{background:#08101b;border:1px solid #263748}
.dark-preview .theme-preview-window i:first-child{background:#111c27;border-bottom:2px solid #d6a23d}
.dark-preview .theme-preview-window i:nth-child(2){background:#101b27;border:1px solid #2b3d4f}
.dark-preview .theme-preview-window i:nth-child(3){background:#142130;border:1px solid #2b3d4f}
.system-preview .theme-preview-window{background:linear-gradient(90deg,#f4f0e9 0 50%,#08101b 50% 100%);border:1px solid var(--line)}
.system-preview .theme-preview-window i:first-child{background:linear-gradient(90deg,#22282d 0 50%,#111c27 50% 100%);border-bottom:2px solid #c49a47}
.system-preview .theme-preview-window i:nth-child(2){background:linear-gradient(90deg,#fbfaf7 0 50%,#101b27 50% 100%);border:1px solid rgba(130,130,130,.25)}
.system-preview .theme-preview-window i:nth-child(3){background:linear-gradient(90deg,#fff 0 50%,#142130 50% 100%);border:1px solid rgba(130,130,130,.25)}
.account-settings-actions{display:flex;justify-content:flex-end;margin-top:16px}
.account-password-form{max-width:620px}
.account-password-form .field{margin-top:12px}

.mobile-nav-separator{display:block;height:1px;margin:5px 3px;background:rgba(255,255,255,.10)}

@media(max-width:820px){
  .theme-choice-grid{grid-template-columns:1fr}
  .theme-choice-card{min-height:0}
  .theme-preview-window{height:72px}
  .account-summary{margin-top:12px;text-align:left}
}
@media(max-width:700px){
  .account-settings-page main{padding-top:22px}
  .account-settings-panel{padding:17px}
  .account-settings-actions{justify-content:stretch}
  .account-settings-actions .button{width:100%}
  .mobile-header-menu-panel .mobile-nav-separator{display:block}
}

/* Dark mode intentionally leaves satellite/map imagery natural. It changes the
   application chrome, work surfaces, controls, labels, and overlays around it. */
html.theme-dark{
  color-scheme:dark;
  --bg:#08101b;
  --panel:#101b27;
  --panel-strong:#142130;
  --ink:#edf2f5;
  --muted:#a7b2bc;
  --line:#29394a;
  --line-strong:#3a4f62;
  --navy:#08101b;
  --charcoal:#f2f5f7;
  --charcoal-2:#dce5eb;
  --charcoal-3:#c7d3dc;
  --gold:#d6a23d;
  --gold-deep:#e2b760;
  --gold-soft:#332817;
  --sage:#75a28b;
  --sage-soft:#162d28;
  --accent:#d6a23d;
  --accent-soft:#332817;
  --warn:#e2aa50;
  --warn-soft:#342716;
  --bad:#db7d72;
  --bad-soft:#351f20;
  --status-green:#58a88f;
  --status-green-soft:#17332d;
  --status-blue:#7ea5c8;
  --status-blue-soft:#172b3d;
  --status-amber:#e2aa50;
  --status-amber-soft:#392b17;
  --status-red:#df7c7c;
  --status-red-soft:#3a2023;
  --status-slate:#9aa8b4;
  --status-slate-soft:#202c37;
  --shadow:0 14px 34px rgba(0,0,0,.24);
}
html.theme-dark body:not(.login-page){
  background:
    radial-gradient(circle at 9% 0%,rgba(214,162,61,.105),transparent 30rem),
    radial-gradient(circle at 92% 14%,rgba(71,103,132,.12),transparent 32rem),
    linear-gradient(180deg,#0a1420 0,#08101b 360px,#08101b 100%);
  color:var(--ink);
}
html.theme-dark .topbar{
  background:linear-gradient(135deg,#07101a 0%,#0c1722 58%,#09121c 100%);
  border-bottom-color:var(--gold);
  box-shadow:0 8px 26px rgba(0,0,0,.34);
}
html.theme-dark .page-head h1,
html.theme-dark .detail-head h1,
html.theme-dark .section-title h2,
html.theme-dark .metric strong,
html.theme-dark .table-summary strong,
html.theme-dark .property-title strong,
html.theme-dark .account-summary strong{color:var(--charcoal)}
html.theme-dark .page-head p,
html.theme-dark .detail-head p{color:var(--muted)}
html.theme-dark .back{color:var(--gold-deep)}
html.theme-dark .back:hover{color:#fff}
html.theme-dark .metric,
html.theme-dark .filter-panel,
html.theme-dark .panel,
html.theme-dark .table-shell,
html.theme-dark .run-quality-stat,
html.theme-dark .account-summary,
html.theme-dark .admin-user-card,
html.theme-dark .pilot-overview-card,
html.theme-dark .pilot-admin-create,
html.theme-dark .pilot-admin-card,
html.theme-dark .pilot-list-banner{
  background:rgba(16,27,39,.97);
  border-color:var(--line);
  box-shadow:var(--shadow);
}
html.theme-dark .metric:hover{border-color:var(--line-strong)}
html.theme-dark .metric span,
html.theme-dark .filters label span,
html.theme-dark .field>span,
html.theme-dark .confidence,
html.theme-dark td small{color:var(--muted)}
html.theme-dark input,
html.theme-dark select,
html.theme-dark textarea{
  background:#0b1621;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark input:hover,
html.theme-dark select:hover,
html.theme-dark textarea:hover{border-color:#50657a}
html.theme-dark input:focus,
html.theme-dark select:focus,
html.theme-dark textarea:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(214,162,61,.15)}
html.theme-dark input::placeholder,
html.theme-dark textarea::placeholder{color:#748495}
html.theme-dark .button{
  background:#142130;
  border-color:#34485a;
  color:#e8eef2;
}
html.theme-dark .button:hover{background:#1a2a3a;border-color:#51667a;color:#fff}
html.theme-dark .button.primary{background:var(--gold);border-color:var(--gold);color:#111820}
html.theme-dark .button.primary:hover{background:#e0ae4a;border-color:#e0ae4a;color:#0a1118}
html.theme-dark .table-summary{background:#0d1824;border-bottom-color:var(--line);color:var(--muted)}
html.theme-dark th{background:#111e2a;color:#a9b7c3;border-bottom-color:var(--line)}
html.theme-dark td{border-bottom-color:#223341}
html.theme-dark .click-row:hover,
html.theme-dark tbody tr:hover{background:#122130}
html.theme-dark .table-wrap a:not(.button),
html.theme-dark .contact-grid a,
html.theme-dark .parcel a{color:var(--gold-deep)}
html.theme-dark .scope-pill,
html.theme-dark .chain-node,
html.theme-dark .facility-tab,
html.theme-dark .source-list a,
html.theme-dark .run-owner-list a,
html.theme-dark .verdict-grid span,
html.theme-dark .property-stats>div,
html.theme-dark .mini-stats>div,
html.theme-dark .run-owner-scores>div,
html.theme-dark .pilot-preview-grid>div,
html.theme-dark .pilot-breakdown-grid>div,
html.theme-dark .role-grid>div,
html.theme-dark .admin-map-usage-grid>div,
html.theme-dark .version-field-grid>div,
html.theme-dark .version-long-field,
html.theme-dark .version-change-row,
html.theme-dark .version-source-list a{
  background:#0e1a26;
  border-color:var(--line);
  color:var(--ink);
}
html.theme-dark .scope-pill{box-shadow:inset 3px 0 0 var(--gold)}
html.theme-dark .chain-node.accent,
html.theme-dark .facility-tab.active,
html.theme-dark .verdict-grid input:checked+span{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
}
html.theme-dark .source-list a:hover,
html.theme-dark .run-owner-list a:hover,
html.theme-dark .facility-tab:hover,
html.theme-dark .version-source-list a:hover{background:#142230;border-color:#41556a}
html.theme-dark .source-list a>span,
html.theme-dark .run-owner-list a>span{background:#263445;color:#d7b56f}
html.theme-dark .callout{background:#13202b;border-left-color:var(--gold)}
html.theme-dark .callout p,
html.theme-dark .reason,
html.theme-dark .prose{color:#b6c1ca}
html.theme-dark .map-frame{border-color:#314456;background:#0c1722}
html.theme-dark .map-placeholder{background:#0f1b27}
html.theme-dark .map-grid{opacity:.35}
html.theme-dark code{background:#182634;color:#d8c194}
html.theme-dark .compact-list>div,
html.theme-dark .contact-grid>div,
html.theme-dark details,
html.theme-dark .history-item,
html.theme-dark .parcel,
html.theme-dark .review-history{border-color:var(--line)}
html.theme-dark .notice.good{background:#17332d;border-color:#2d6255;color:#a9dbc9}
html.theme-dark .notice.bad{background:#351f20;border-color:#704041;color:#f0aaa4}
html.theme-dark .badge.neutral{background:#202c37;color:#b8c2cb;border-color:#354657}
html.theme-dark .badge.good{background:#17332d;color:#9bd4c2;border-color:#2d6255}
html.theme-dark .badge.warn{background:#392b17;color:#e4c17a;border-color:#65502c}
html.theme-dark .badge.bad{background:#3a2023;color:#eaa0a0;border-color:#714247}
html.theme-dark .score.high{background:#17332d;color:#a3d9c8}
html.theme-dark .score.low{background:#392b17;color:#e5c17b}
html.theme-dark .contact-flag{background:#202c37;color:#a7b2bc!important}
html.theme-dark .contact-flag.on{background:#17332d;color:#9bd4c2!important;border-color:#2d6255}
html.theme-dark .contact-flag.generic{background:#392b17;color:#e4c17a!important;border-color:#65502c}
html.theme-dark .sales-status.good,
html.theme-dark .sales-status.positive,
html.theme-dark .sales-status.won{background:#17332d;border-color:#2d6255;color:#9bd4c2}
html.theme-dark .sales-status.outreach{background:#172b3d;border-color:#31506a;color:#a8c8e2}
html.theme-dark .sales-status.warn{background:#392b17;border-color:#65502c;color:#e4c17a}
html.theme-dark .sales-status.bad{background:#3a2023;border-color:#714247;color:#eaa0a0}
html.theme-dark .activity-button{background:#101d29;border-color:#35485a;color:var(--ink)}
html.theme-dark .activity-button:hover{background:#172637;border-color:#52677b}
html.theme-dark .dashboard-page .your-move-hero{
  background:linear-gradient(180deg,#142130 0%,#101b27 100%);
  border-color:#715d35;
  box-shadow:0 12px 30px rgba(0,0,0,.25);
}
html.theme-dark .pilot-locked-row{background:#0e1924}
html.theme-dark .pilot-locked-row:hover{background:#142230}
html.theme-dark .pilot-unlocked-meta span{background:#172431;color:var(--muted)}
html.theme-dark .pilot-credit-counter strong,
html.theme-dark .pilot-unlocked-meta strong{color:var(--charcoal)}
html.theme-dark .pilot-admin-create,
html.theme-dark .pilot-admin-card{background:#0f1b27}
html.theme-dark .version-changes,
html.theme-dark .version-snapshot>summary{background:#0d1824}
html.theme-dark .version-snapshot-body{background:transparent}
html.theme-dark .account-menu,
html.theme-dark .topnav-admin-menu{border:0}

/* Explore / estimator / mobile panes use the same dark chrome while their
   actual map and satellite imagery are not filtered or color-shifted. */
html.theme-dark .estimator-sidebar,
html.theme-dark .estimator-panel,
html.theme-dark .map-toolbar,
html.theme-dark .explore-panel,
html.theme-dark .explore-sidebar,
html.theme-dark .map-search-panel,
html.theme-dark .nearby-panel,
html.theme-dark .sales-estimator-panel,
html.theme-dark .quote-builder-panel,
html.theme-dark .mobile-card,
html.theme-dark .mobile-sheet{
  background:#101b27;
  color:var(--ink);
  border-color:var(--line);
}

@media(max-width:700px){
  html.theme-dark .mobile-header-menu-panel{background:#08101b;border-color:rgba(214,162,61,.38)}
}


/* --------------------------------------------------------------------------
   v131 — complete dark-mode pass for remaining light surfaces on dashboard,
   analytics, lead details, portfolio controls, and related work cards.
   Light mode remains untouched because all rules are dark-theme scoped.
   -------------------------------------------------------------------------- */
html.theme-dark select option,
html.theme-dark datalist option{
  background:#0b1621;
  color:var(--ink);
}

html.theme-dark .dashboard-page .dashboard-filter-panel.dashboard-territory-toolbar,
html.theme-dark .dashboard-page .dashboard-territory-toolbar{
  background:#101b27;
  border-color:var(--line);
  box-shadow:var(--shadow);
}
html.theme-dark .dashboard-territory-current,
html.theme-dark .dashboard-territory-current strong,
html.theme-dark .dashboard-head-scope{
  color:var(--charcoal-2);
}
html.theme-dark .dashboard-head-description,
html.theme-dark .dashboard-filter-note,
html.theme-dark .dashboard-filter-clear,
html.theme-dark .dashboard-territory-current small{
  color:var(--muted);
}
html.theme-dark .dashboard-territory-icon{
  background:#142130;
  color:var(--gold-deep);
}
html.theme-dark .dashboard-filter-icon{
  color:#90a2b2;
}
html.theme-dark .dashboard-filter-select,
html.theme-dark .dashboard-filter-static{
  background:#0b1621;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark .dashboard-filter-static strong,
html.theme-dark .dashboard-filter-select select{
  color:var(--ink);
}
html.theme-dark .dashboard-filter-apply{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
}
html.theme-dark .dashboard-filter-apply:hover{
  background:#372d1d;
  border-color:#af8f53;
  color:#fff3d0;
}
html.theme-dark .dashboard-filter-clear:hover{color:#fff}

html.theme-dark .dashboard-metric,
html.theme-dark .territory-workload-link,
html.theme-dark .dashboard-availability-link,
html.theme-dark .analytics-kpi,
html.theme-dark .analytics-secondary-metrics>article,
html.theme-dark .managed-portfolio-account-meta>div,
html.theme-dark .managed-portfolio-search-result,
html.theme-dark .owner-managed-portfolio-add,
html.theme-dark .portfolio-membership-notice,
html.theme-dark .portfolio-quote-popover,
html.theme-dark .portfolio-quote-option,
html.theme-dark .portfolio-filter,
html.theme-dark .open-estimate-row,
html.theme-dark .polished-on-deck-row,
html.theme-dark .sales-on-deck-row,
html.theme-dark .lead-contact-card,
html.theme-dark .crm-copy-field,
html.theme-dark .locked-contact-card,
html.theme-dark .activity-context-row,
html.theme-dark .activity-panel .activity-priority-control{
  background:#0e1a26;
  border-color:var(--line);
  color:var(--ink);
}
html.theme-dark .dashboard-metric:hover,
html.theme-dark .territory-workload-link:hover,
html.theme-dark .open-estimate-row:hover,
html.theme-dark .polished-on-deck-row:hover,
html.theme-dark .sales-on-deck-row:hover,
html.theme-dark .portfolio-filter:hover,
html.theme-dark .portfolio-quote-option:hover,
html.theme-dark .managed-portfolio-search-result:hover{
  background:#142230;
  border-color:var(--line-strong);
}
html.theme-dark .dashboard-metric span,
html.theme-dark .dashboard-metric small,
html.theme-dark .territory-workload-link span,
html.theme-dark .territory-workload-link small,
html.theme-dark .analytics-kpi span,
html.theme-dark .analytics-kpi small,
html.theme-dark .analytics-secondary-metrics span,
html.theme-dark .analytics-secondary-metrics small,
html.theme-dark .managed-portfolio-account-size span,
html.theme-dark .managed-portfolio-account-meta span,
html.theme-dark .managed-portfolio-account-meta small,
html.theme-dark .managed-portfolio-search-result small,
html.theme-dark .portfolio-result-count,
html.theme-dark .portfolio-title-count,
html.theme-dark .portfolio-quote-option-copy small,
html.theme-dark .portfolio-quote-empty,
html.theme-dark .portfolio-quote-footer small,
html.theme-dark .open-estimate-main small,
html.theme-dark .open-estimate-side small,
html.theme-dark .open-estimate-main>span,
html.theme-dark .on-deck-row-main span,
html.theme-dark .on-deck-row-main small,
html.theme-dark .polished-on-deck-row .on-deck-row-main span,
html.theme-dark .polished-on-deck-row .on-deck-row-main small,
html.theme-dark .action-queue-empty span,
html.theme-dark .contact-research-details p,
html.theme-dark .contact-research-notes-text,
html.theme-dark .lead-contact-secondary-routes,
html.theme-dark .activity-panel .activity-help,
html.theme-dark .activity-panel .activity-row p,
html.theme-dark .activity-panel .activity-row small,
html.theme-dark .activity-panel .activity-row-top span,
html.theme-dark .activity-panel .activity-context-row .field>span,
html.theme-dark .activity-panel .activity-date-field>span,
html.theme-dark .dashboard-activity-saved small{
  color:var(--muted);
}
html.theme-dark .dashboard-metric strong,
html.theme-dark .analytics-kpi strong,
html.theme-dark .analytics-secondary-metrics strong,
html.theme-dark .managed-portfolio-account-size strong,
html.theme-dark .managed-portfolio-search-result strong,
html.theme-dark .portfolio-quote-option-copy strong,
html.theme-dark .open-estimate-main strong,
html.theme-dark .on-deck-row-main strong,
html.theme-dark .polished-on-deck-row .on-deck-row-main strong,
html.theme-dark .action-queue-empty strong,
html.theme-dark .lead-contact-card strong,
html.theme-dark .crm-copy-field strong,
html.theme-dark .activity-panel .activity-row-top strong,
html.theme-dark .activity-panel .activity-priority-explainer strong,
html.theme-dark .activity-panel .activity-context-row .activity-date-field input,
html.theme-dark .activity-panel .activity-contact-select select,
html.theme-dark .dashboard-activity-saved{
  color:var(--charcoal);
}
html.theme-dark .dashboard-metric.emphasized,
html.theme-dark .polished-on-deck-row.next-up,
html.theme-dark .sales-on-deck-row.next-up{
  background:#1d2330;
  border-color:#8f743b;
}
html.theme-dark .territory-workload-link,
html.theme-dark .dashboard-metric{border-top-color:#485d70}
html.theme-dark .dashboard-metric.emphasized,
html.theme-dark .territory-workload-link{border-left-color:var(--gold)}
html.theme-dark .dashboard-metric.won-stage{border-top-color:var(--status-green)}

html.theme-dark .open-estimates-panel,
html.theme-dark .sales-on-deck-panel,
html.theme-dark .on-deck-panel{background:#101b27}
html.theme-dark .open-estimate-icon{
  background:#2b2518;
  color:#f0d49d;
}
html.theme-dark .on-deck-action-icon{
  background:#182634;
  color:#bfd0dd;
}
html.theme-dark .on-deck-action-icon.follow_up{background:#352916;color:#f0c577}
html.theme-dark .on-deck-action-icon.estimate{background:#18283c;color:#9fc1ea}
html.theme-dark .on-deck-action-icon.unlock{background:#17332d;color:#9bd4c2}
html.theme-dark .on-deck-priority,
html.theme-dark .queue-kind,
html.theme-dark .open-estimate-status.draft{
  background:#202c37;
  color:#c1cad2;
}
html.theme-dark .open-estimate-status.measured{background:#17332d;color:#9bd4c2}
html.theme-dark .open-estimate-status.attention{background:#392b17;color:#e4c17a}
html.theme-dark .open-estimate-side b,
html.theme-dark .polished-on-deck-row .on-deck-open,
html.theme-dark .on-deck-open,
html.theme-dark .dashboard-availability-link strong,
html.theme-dark .territory-workload-value,
html.theme-dark .dashboard-filter-clear,
html.theme-dark .contact-research-details .lead-contact-sources a,
html.theme-dark .lead-contact-secondary-routes a,
html.theme-dark .portfolio-quote-trigger,
html.theme-dark .managed-portfolio-properties>summary{
  color:var(--gold-deep);
}
html.theme-dark .open-estimate-row.stale{
  background:#2a2116;
  border-color:#6a5230;
}
html.theme-dark .open-estimate-row.stale .stale-label{color:#efbf73}
html.theme-dark .dashboard-activity-saved{
  background:#17332d;
  border-color:#2d6255;
}

html.theme-dark .analytics-chart-panel{background:#101b27}
html.theme-dark .activity-bar-chart{
  border-bottom-color:var(--line);
  background:linear-gradient(to top,rgba(80,101,122,.30) 1px,transparent 1px);
  background-size:100% 25%;
}
html.theme-dark .activity-bar-group>strong,
html.theme-dark .outcome-row strong{
  color:var(--charcoal-2);
}
html.theme-dark .outcome-row>span{color:var(--muted)}
html.theme-dark .outcome-row>div{background:#1a2a3a}
html.theme-dark .analytics-chart-note,
html.theme-dark .analytics-table-title>span{color:var(--muted)}

html.theme-dark .lead-contacts-panel,
html.theme-dark .locked-contacts-preview,
html.theme-dark .locked-activity-preview{background:#101b27}
html.theme-dark .lead-contact-card:not(.primary-contact){
  background:#0d1824;
  border-color:#263748;
}
html.theme-dark .lead-contact-card.primary-contact{
  background:#111f2c;
  border-color:#8f743b;
  box-shadow:inset 3px 0 0 var(--gold);
}
html.theme-dark .lead-contact-card.primary-contact .contact-title-row,
html.theme-dark .lead-contact-card.primary-contact .crm-copy-field small,
html.theme-dark .lead-contact-card.primary-contact .contact-edit-toggle,
html.theme-dark .crm-copy-field>span,
html.theme-dark .contact-research-notes>span,
html.theme-dark .contact-research-details>summary,
html.theme-dark .secondary-research-notes>summary,
html.theme-dark .lead-contact-actions button,
html.theme-dark .portfolio-quote-close,
html.theme-dark .portfolio-quote-popover-head .eyebrow,
html.theme-dark .managed-portfolio-assigned-warning{
  color:var(--muted)!important;
}
html.theme-dark .crm-copy-field{
  background:#13202c;
  border-color:#334759;
}
html.theme-dark .copy-value-button{
  color:#9aabb9;
}
html.theme-dark .copy-value-button:hover{
  background:#213445;
  border-color:#4a6174;
  color:#fff;
}
html.theme-dark .copy-value-button.copied{
  background:#17332d;
  border-color:#2d6255;
  color:#9bd4c2;
}
html.theme-dark .contact-research-details,
html.theme-dark .contact-research-notes{
  border-top-color:#2a3e50;
}
html.theme-dark .lead-contact-card.primary-contact .contact-research-notes{
  background:#182433;
  border-left-color:#8f743b;
}
html.theme-dark .lead-contact-actions .contact-edit-toggle,
html.theme-dark .portfolio-quote-trigger{
  background:#13202b;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark .lead-contact-actions .contact-edit-toggle:hover,
html.theme-dark .portfolio-quote-trigger:hover:not(:disabled),
html.theme-dark .portfolio-quote-close:hover{
  background:#1a2a3a;
  border-color:#52677b;
  color:#fff;
}
html.theme-dark .portfolio-controls .portfolio-search input{
  background:#0b1621;
}
html.theme-dark .portfolio-search svg{stroke:#90a2b2}
html.theme-dark .portfolio-filter strong,
html.theme-dark .portfolio-quote-popover-head strong,
html.theme-dark .portfolio-section-title strong{
  color:var(--charcoal);
}
html.theme-dark .portfolio-filter.active{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
  box-shadow:inset 0 -2px 0 var(--gold);
}
html.theme-dark .portfolio-quote-popover{border-color:#405364}
html.theme-dark .portfolio-quote-popover-head,
html.theme-dark .portfolio-quote-footer{border-color:#2a3e50}
html.theme-dark .portfolio-quote-option{
  background:#101c29;
  border-color:#2f4356;
}
html.theme-dark .portfolio-quote-check{
  border-color:#718394;
  background:#0f1a26;
}
html.theme-dark .portfolio-quote-option input:checked + .portfolio-quote-check{
  border-color:#2d6255;
  background:#2d6255;
}
html.theme-dark .portfolio-quote-option:has(input:checked){
  background:#17332d;
  border-color:#2d6255;
}
html.theme-dark .portfolio-quote-submit:disabled,
html.theme-dark .portfolio-quote-trigger:disabled{
  background:#1a2632;
  border-color:#324555;
  color:#7f8e9b;
}

html.theme-dark .activity-panel .activity-context-row,
html.theme-dark .activity-panel .activity-priority-control{
  background:#0d1824;
  border-color:#334759;
}
html.theme-dark .activity-panel .activity-priority-explainer{
  border-left-color:#334759;
}
html.theme-dark .activity-panel .activity-context-row .activity-date-field{
  border-left-color:#2d4154;
}
html.theme-dark .activity-panel .activity-context-row .activity-contact-select select{
  color:var(--ink);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a7b2bc' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");
}
html.theme-dark .activity-panel .activity-context-row .activity-date-field input{
  color:var(--ink);
}
html.theme-dark .activity-panel .activity-context-row .activity-date-field input:focus{
  background-color:#132130;
  box-shadow:0 0 0 2px rgba(214,162,61,.18)!important;
}
html.theme-dark .activity-panel .activity-context-row .activity-date-field input::-webkit-calendar-picker-indicator{
  filter:invert(1) brightness(.8);
}
html.theme-dark .activity-panel .activity-button.progress-action{
  background:#17332d;
  border-color:#2d6255;
  color:#9bd4c2;
}
html.theme-dark .activity-panel .activity-button.progress-action:hover{
  background:#1f4038;
  border-color:#3b7c69;
}
html.theme-dark .activity-panel .activity-button.neutral-action{
  background:#202c37;
  border-color:#354657;
  color:#d7dee4;
}
html.theme-dark .activity-panel .activity-button.neutral-action:hover{
  background:#293744;
  border-color:#4b5f72;
}
html.theme-dark .activity-panel .activity-button.negative-action{
  background:#3a2023;
  border-color:#714247;
  color:#eaa0a0;
}
html.theme-dark .activity-panel .activity-button.negative-action:hover{
  background:#4a272c;
  border-color:#8a5258;
}
html.theme-dark .activity-panel .activity-options,
html.theme-dark .activity-panel .activity-history-head,
html.theme-dark .activity-panel .activity-context-row .activity-date-field,
html.theme-dark .activity-panel .activity-row,
html.theme-dark .activity-panel .next-followup-summary,
html.theme-dark .contact-research-details,
html.theme-dark .contact-research-notes,
html.theme-dark .review-history,
html.theme-dark .locked-workflow-panel{
  border-color:var(--line);
}

html.theme-dark .managed-portfolio-summary,
html.theme-dark .managed-portfolio-membership-panel,
html.theme-dark .managed-portfolio-account-card,
html.theme-dark .duplicate-cluster-account-card,
html.theme-dark .managed-property-row{
  background:#101b27;
  border-color:var(--line);
}
html.theme-dark .managed-portfolio-search-empty,
html.theme-dark .owner-managed-portfolio-add>small,
html.theme-dark .portfolio-membership-notice strong,
html.theme-dark .portfolio-membership-notice span{
  color:var(--charcoal);
}
html.theme-dark .portfolio-membership-notice.good{
  background:#17332d;
  border-color:#2d6255;
}
html.theme-dark .portfolio-membership-notice.bad{
  background:#3a2023;
  border-color:#714247;
}


/* --------------------------------------------------------------------------
   v132 — finish remaining dark-mode leaks reported from Leads, Your Move,
   Explore Territory, and Research Workspace screenshots.
   -------------------------------------------------------------------------- */
html.theme-dark .lead-more-filters-button.mobile-filter-toggle-label,
html.theme-dark .lead-filter-clear,
html.theme-dark .opportunity-size-sort-header{
  background:#101b27;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark .lead-more-filters-button.mobile-filter-toggle-label strong,
html.theme-dark .lead-filter-clear,
html.theme-dark .opportunity-size-sort-title,
html.theme-dark .opportunity-size-sort-header.active-sort{
  color:var(--charcoal);
}
html.theme-dark .lead-more-filters-button .mobile-filter-chevron,
html.theme-dark .lead-filter-clear-icon,
html.theme-dark .opportunity-size-sort-links a{
  color:#90a2b2!important;
}
html.theme-dark .lead-more-filters-button.mobile-filter-toggle-label:hover,
html.theme-dark .lead-filter-clear:hover,
html.theme-dark .opportunity-size-sort-header:hover{
  background:#142230;
  border-color:#52677b;
  color:#fff;
}
html.theme-dark .lead-filter-clear:hover .lead-filter-clear-icon,
html.theme-dark .lead-more-filters-button.mobile-filter-toggle-label:hover .mobile-filter-chevron{
  color:#fff!important;
}
html.theme-dark .lead-filter-form>.mobile-filter-toggle:checked ~ .lead-filter-toolbar .lead-more-filters-button,
html.theme-dark .opportunity-size-sort-header.active-sort{
  background:#2b2518;
  border-color:#8f743b;
  box-shadow:inset 0 -2px 0 var(--gold);
}
html.theme-dark .opportunity-size-sort-links a:hover{
  border-color:#52677b;
  background:#162432;
  color:#fff;
}
html.theme-dark .opportunity-size-sort-links a.active{
  border-color:#8f743b;
  background:#2b2518;
  color:#f0d49d;
}

html.theme-dark .qa-ranking-toolbar>span{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
}
html.theme-dark .qa-ranking-toggle{color:var(--gold-deep)}
html.theme-dark .qa-ranking-toggle:hover{color:#fff}
html.theme-dark .qa-ranking-panel{
  background:#0f1a26;
  border-color:#465564;
}
html.theme-dark .qa-ranking-head strong,
html.theme-dark .qa-ranking-values strong{color:var(--charcoal)}
html.theme-dark .qa-ranking-head span,
html.theme-dark .qa-ranking-panel>small,
html.theme-dark .qa-ranking-values span{color:var(--muted)}

html.theme-dark .dashboard-page .your-move-context-summary-item,
html.theme-dark .your-move-details,
html.theme-dark .your-move-details .your-move-why,
html.theme-dark .your-move-details .your-move-context,
html.theme-dark .your-move-context-item,
html.theme-dark .your-move-mini,
html.theme-dark .on-deck-summary-card{
  background:#0f1a26;
  border-color:var(--line);
  color:var(--ink);
}
html.theme-dark .your-move-details{
  background:#111b27;
  border-color:#6a5230;
  box-shadow:inset 3px 0 0 rgba(214,162,61,.55);
}
html.theme-dark .your-move-details[open] .your-move-details-summary{
  background:#172231;
}
html.theme-dark .your-move-details-summary,
html.theme-dark .your-move-details-label b,
html.theme-dark .your-move-context h3,
html.theme-dark .your-move-why h3,
html.theme-dark .your-move-context-item strong,
html.theme-dark .your-move-context-summary-item strong,
html.theme-dark .your-move-mini strong,
html.theme-dark .on-deck-summary-card strong{
  color:var(--charcoal);
}
html.theme-dark .your-move-details-label small,
html.theme-dark .your-move-context-item span,
html.theme-dark .your-move-context-summary-item span,
html.theme-dark .your-move-mini span,
html.theme-dark .on-deck-summary-card span,
html.theme-dark .your-move-ranking-reasons li{
  color:var(--muted);
}
html.theme-dark .your-move-context-item span,
html.theme-dark .your-move-context-summary-item span{
  color:#ccb17a;
}
html.theme-dark .your-move-details-summary:hover{
  background:#172231;
  color:#fff;
}
html.theme-dark .your-move-ranking-reasons li:before{color:var(--gold-deep)}

html.theme-dark .explore-shell{
  background:#08101b;
  border-color:var(--line);
  box-shadow:0 14px 32px rgba(0,0,0,.28);
}
html.theme-dark .explore-panel{
  border-left-color:var(--line);
  background:#0f1a26;
}
html.theme-dark .explore-search label,
html.theme-dark .explore-help,
html.theme-dark .explore-search>small,
html.theme-dark .explore-layer-toggle small,
html.theme-dark .explore-status-card small,
html.theme-dark .explore-info-card>span:not(.explore-info-state),
html.theme-dark .explore-info-card small{
  color:var(--muted);
}
html.theme-dark .explore-layer-toggle,
html.theme-dark .explore-status-card,
html.theme-dark .explore-selected{
  background:#101b27;
  border-color:#334759;
  color:var(--ink);
}
html.theme-dark .explore-layer-toggle.active{
  background:#152433;
  border-color:#58707c;
  box-shadow:inset 3px 0 0 #7fa3b4;
}
html.theme-dark .explore-status-card strong,
html.theme-dark .explore-selected strong,
html.theme-dark .explore-info-card strong{
  color:var(--charcoal);
}
html.theme-dark .explore-info-state.known{background:#2b2518;color:#f0d49d}
html.theme-dark .explore-info-state.reported{background:#202c37;color:#c7d0d8}

html.theme-dark .territory-grid>div,
html.theme-dark .derived-email-lift,
html.theme-dark .digital-reach-run-summary,
html.theme-dark .prompt-text,
html.theme-dark .csv-paste{
  background:#0f1a26;
  border-color:var(--line);
  color:var(--ink);
}
html.theme-dark .territory-grid>div{
  border-left-color:var(--gold);
}
html.theme-dark .derived-email-metric{
  background:#13202b!important;
  border-left-color:#5a7d70!important;
}
html.theme-dark .research-inventory-band-title,
html.theme-dark .workflow-kicker{
  color:var(--gold-deep);
}
html.theme-dark .territory-grid strong,
html.theme-dark .derived-email-lift strong,
html.theme-dark .workflow-number,
html.theme-dark .prompt-history .section-title h2,
html.theme-dark .research-head h1{
  color:var(--charcoal);
}
html.theme-dark .territory-grid span,
html.theme-dark .derived-email-lift span,
html.theme-dark .workflow-card>p,
html.theme-dark .workflow-form small,
html.theme-dark .import-actions span,
html.theme-dark .dashboard-note,
html.theme-dark .digital-reach-run-summary span,
html.theme-dark .prose.tight,
html.theme-dark .prompt-history .muted,
html.theme-dark .section-title .muted{
  color:var(--muted);
}
html.theme-dark .workflow-depth-option{
  background:#101b27;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark .workflow-depth-option.selected,
html.theme-dark .workflow-depth-option.active,
html.theme-dark .workflow-depth-option[aria-pressed='true']{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
}
html.theme-dark .territory-map-data-block + .territory-map-data-block,
html.theme-dark .contactability-band{
  border-top-color:#2a3e50;
}


/* --------------------------------------------------------------------------
   v133 — dark-mode polish for lead details contact workflow + softer
   Digital Reach badge on dark lead list.
   -------------------------------------------------------------------------- */
html.theme-dark .badge.digital-reachable{
  background:#2b251b;
  border:1px solid #6f5b35;
  color:#d8c18a;
}

html.theme-dark .lead-account-crm{
  background:#151f2b;
  border-color:#6b5331;
  border-left-color:var(--gold);
}
html.theme-dark .lead-account-crm>span,
html.theme-dark .lead-account-crm-heading>span:first-child,
html.theme-dark .lead-account-domain>span{
  color:#ccb17a;
}
html.theme-dark .lead-account-name-row strong,
html.theme-dark .lead-account-crm strong,
html.theme-dark .lead-account-domain strong{
  color:var(--charcoal);
}
html.theme-dark .lead-account-crm small,
html.theme-dark .lead-account-phone>small{
  color:var(--muted);
}
html.theme-dark .lead-account-details{
  border-top-color:#34475a;
}
html.theme-dark .lead-account-details>summary{
  color:var(--gold-deep);
}
html.theme-dark .lead-contact-employer{
  background:#101b27;
  border-color:#334759;
}

html.theme-dark .activity-panel .next-followup-summary{
  background:#101b27;
  border-color:#334759;
  border-left-color:#8f743b;
}
html.theme-dark .activity-panel .next-followup-summary.scheduled{
  background:#13252f;
  border-left-color:#2d6255;
}
html.theme-dark .next-followup-summary strong,
html.theme-dark .next-followup-summary.empty-state strong{
  color:var(--charcoal);
}
html.theme-dark .next-followup-summary>div>span:last-child,
html.theme-dark .next-followup-reason,
html.theme-dark .next-followup-summary.empty-state .eyebrow,
html.theme-dark .next-followup-summary.empty-state #next-followup-empty-detail{
  color:var(--muted);
}
html.theme-dark .next-followup-add{
  color:var(--gold-deep);
}
html.theme-dark .next-followup-add:hover{
  color:#fff;
}

html.theme-dark .follow-up-shortcuts button,
html.theme-dark .activity-followup-editor,
html.theme-dark .quick-custom-followup{
  background:#101b27;
  border-color:#334759;
  color:var(--ink);
}
html.theme-dark .follow-up-shortcuts button:hover,
html.theme-dark .activity-enter-followup:hover{
  background:#172637;
  border-color:#52677b;
}
html.theme-dark .activity-followup-close,
html.theme-dark .activity-followup-editor-head strong,
html.theme-dark .activity-followup-editor .field>span,
html.theme-dark .activity-followup-editor .field-note,
html.theme-dark .follow-up-save-row small{
  color:var(--muted);
}

html.theme-dark .activity-cadence-control{
  background:#101b27;
  border-color:#334759;
}
html.theme-dark .activity-cadence-head .activity-priority-heading,
html.theme-dark .activity-cadence-head small,
html.theme-dark .activity-cadence-control .activity-priority-explainer span{
  color:var(--muted);
}
html.theme-dark .activity-cadence-current{
  background:#2b2518;
  color:#f0d49d;
}
html.theme-dark .activity-cadence-button{
  background:#0f1a26;
  border-color:#334759;
  color:var(--ink);
}
html.theme-dark .activity-cadence-button small{
  color:var(--muted);
}
html.theme-dark .activity-cadence-button:not(:disabled):hover{
  border-color:#7e6943;
  background:#172432;
}
html.theme-dark .activity-cadence-button.active{
  border-color:#8f743b;
  background:#2b2518;
  box-shadow:inset 0 0 0 1px rgba(214,162,61,.18);
  color:#f0d49d;
}
html.theme-dark .activity-cadence-off-icon{color:#b7c1c9}
html.theme-dark .activity-cadence-bars i{
  border-color:#7f8f9d;
}
html.theme-dark .activity-cadence-button.low .activity-cadence-bars i:nth-child(1),
html.theme-dark .activity-cadence-button.medium .activity-cadence-bars i:nth-child(-n+2),
html.theme-dark .activity-cadence-button.high .activity-cadence-bars i{
  background:#c39a4f;
  border-color:#c39a4f;
}
html.theme-dark .activity-cadence-button.low:hover .activity-cadence-bars i:nth-child(1),
html.theme-dark .activity-cadence-button.medium:hover .activity-cadence-bars i:nth-child(-n+2),
html.theme-dark .activity-cadence-button.high:hover .activity-cadence-bars i{
  background:#ddb05c;
  border-color:#ddb05c;
}
html.theme-dark .activity-cadence-control .activity-priority-explainer small{
  color:#c9a665;
}


/* --------------------------------------------------------------------------
   v134 — dark-mode cleanup for lower Your Move / corporate territory activity.
   -------------------------------------------------------------------------- */
html.theme-dark .dashboard-panel{
  background:#101b27;
  border-color:var(--line);
  box-shadow:var(--shadow);
}
html.theme-dark .dashboard-panel .section-title h2,
html.theme-dark .dashboard-panel .section-title strong{
  color:var(--charcoal);
}
html.theme-dark .dashboard-panel .section-title>a,
html.theme-dark .dashboard-panel .section-title>span,
html.theme-dark .dashboard-panel .section-title p,
html.theme-dark .dashboard-panel .section-title small{
  color:var(--muted);
}
html.theme-dark .dashboard-panel .table-wrap{
  background:transparent;
}
html.theme-dark .dashboard-panel table{
  background:transparent;
}
html.theme-dark .dashboard-panel tbody tr{
  background:transparent;
}
html.theme-dark .dashboard-panel tbody td,
html.theme-dark .dashboard-panel tbody strong,
html.theme-dark .dashboard-panel tbody span{
  color:var(--ink);
}
html.theme-dark .dashboard-panel tbody td a{
  color:var(--gold-deep);
}


/* --------------------------------------------------------------------------
   v135 — dark-mode cleanup for lead-details Measurements summary section.
   -------------------------------------------------------------------------- */
html.theme-dark .estimator-measurements-summary{
  background:#101b27;
  border-color:var(--line);
  color:var(--ink);
}
html.theme-dark .estimator-summary-head small,
html.theme-dark .estimator-summary-grid span,
html.theme-dark .estimator-detail-section dt,
html.theme-dark .estimator-detail-section dl>div.secondary dt,
html.theme-dark .estimator-detail-section dl>div.secondary dd,
html.theme-dark .estimator-shortcuts,
html.theme-dark .estimator-lead-detail-list,
html.theme-dark .estimator-detail-section h4{
  color:var(--muted);
}
html.theme-dark .estimator-summary-property,
html.theme-dark .estimator-summary-grid strong,
html.theme-dark .estimator-detail-section dd,
html.theme-dark .estimator-detail-section dl>div.total dt,
html.theme-dark .estimator-detail-section dl>div.total dd{
  color:var(--charcoal);
}
html.theme-dark .estimator-summary-grid>div{
  background:#0e1a26;
  border-color:#334759;
}
html.theme-dark .estimator-summary-title .badge.neutral.estimator-status-badge{
  background:#202c37;
  color:#c1cad2;
  border-color:#354657;
}
html.theme-dark .estimator-summary-title .badge.good.estimator-status-badge{
  background:#17332d;
  color:#9bd4c2;
  border-color:#2d6255;
}
html.theme-dark .estimator-summary-actions{
  border-top-color:#2a3e50;
}
html.theme-dark .estimator-lead-measurements>summary{
  color:var(--gold-deep);
}
html.theme-dark .estimator-lead-detail-list,
html.theme-dark .estimator-detail-section,
html.theme-dark .estimator-detail-section dl>div.total,
html.theme-dark .estimator-detail-section dl>div.total+div.secondary,
html.theme-dark .estimator-shortcuts{
  border-color:#2a3e50;
}
html.theme-dark .estimator-icon-button[data-shortcut]::after,
html.theme-dark .estimator-action-icon[data-shortcut]::after{
  background:#142130;
  border-color:#334759;
  color:#97a8b6;
}
html.theme-dark .estimator-tool-buttons .button.active[data-shortcut]::after{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
}


/* --------------------------------------------------------------------------
   v136 — estimator full dark-mode pass for workspace chrome, floating map
   controls, totals cards, and measurement utility surfaces.
   -------------------------------------------------------------------------- */
html.theme-dark .estimator-workspace{
  background:#08101b;
  border-color:var(--line);
}
html.theme-dark .estimator-workspace-head{
  background:#101b27;
  border-bottom-color:var(--line);
}
html.theme-dark .estimator-workspace-head strong{
  color:var(--charcoal);
}
html.theme-dark .estimator-workspace-head small,
html.theme-dark .estimator-tool-label,
html.theme-dark .estimator-shortcuts>summary,
html.theme-dark .estimator-shortcuts .muted,
html.theme-dark .estimator-object-choice small,
html.theme-dark .estimator-number-with-unit span,
html.theme-dark .estimator-one-click-instructions small,
html.theme-dark .estimator-one-click-result small,
html.theme-dark .estimator-quick-row-result small,
html.theme-dark .estimator-list-head small,
html.theme-dark .estimator-line-row small,
html.theme-dark .estimator-totals span,
html.theme-dark .estimator-totals-details>summary,
html.theme-dark .estimator-totals-details>summary small{
  color:var(--muted);
}
html.theme-dark .estimator-workspace-body{
  background:#08101b;
}
html.theme-dark .estimator-map-stage{
  background:#0d1824;
}
html.theme-dark .estimator-sidebar{
  background:#101b27;
  border-left-color:var(--line);
}
@media(max-width:900px){
  html.theme-dark .estimator-sidebar{border-top-color:var(--line)}
}
html.theme-dark .estimator-tool-group,
html.theme-dark .estimator-shortcuts,
html.theme-dark .estimator-totals-details,
html.theme-dark .estimator-line-list-group{
  border-color:#2a3e50;
}
html.theme-dark .estimator-object-choice,
html.theme-dark .estimator-one-click-instructions,
html.theme-dark .estimator-one-click-result,
html.theme-dark .estimator-quick-row-result,
html.theme-dark .estimator-one-click-confidence,
html.theme-dark .estimator-quick-row-width-status,
html.theme-dark .estimator-totals .estimator-total-main,
html.theme-dark .estimator-totals-grid>div,
html.theme-dark .estimator-line-row,
html.theme-dark .estimator-choice-icon,
html.theme-dark .estimator-hidden-select select,
html.theme-dark .estimator-number-with-unit input{
  background:#0e1a26;
  border-color:#334759;
  color:var(--ink);
}
html.theme-dark .estimator-object-choice strong,
html.theme-dark .estimator-one-click-instructions strong,
html.theme-dark .estimator-one-click-result strong,
html.theme-dark .estimator-quick-row-result strong,
html.theme-dark .estimator-selected-item strong,
html.theme-dark .estimator-line-row strong,
html.theme-dark .estimator-totals strong,
html.theme-dark .estimator-totals-grid strong,
html.theme-dark .estimator-totals-grid span + strong{
  color:var(--charcoal);
}
html.theme-dark .estimator-totals .estimator-total-main{
  background:#2b2518;
  border-color:#8f743b;
}
html.theme-dark .estimator-total-main strong{
  color:#f0d49d;
}
html.theme-dark .estimator-totals-details{
  background:#101b27;
}
html.theme-dark .estimator-line-delete{
  background:#162433;
  color:#c3cfda;
}
html.theme-dark .estimator-line-delete:hover{
  background:#203344;
  color:#fff;
}
html.theme-dark .button.danger{
  background:#3a2023;
  border-color:#714247;
  color:#eaa0a0;
}
html.theme-dark .button.danger:hover{
  background:#4a272c;
  border-color:#8a5258;
  color:#ffd9d9;
}
html.theme-dark .estimator-icon-button[data-shortcut]::after,
html.theme-dark .estimator-action-icon[data-shortcut]::after,
html.theme-dark .estimator-shortcuts kbd{
  background:#142130;
  border-color:#334759;
  color:#97a8b6;
}
html.theme-dark .estimator-map-utility-bar,
html.theme-dark .estimator-map-rotation{
  border-color:rgba(69,91,110,.92);
  background:rgba(8,16,27,.92);
}
html.theme-dark .estimator-map-utility-button,
html.theme-dark .estimator-map-rotation .button{
  background:#101b27!important;
  border-color:#34485a!important;
  color:var(--ink)!important;
}
html.theme-dark .estimator-map-utility-button>small,
html.theme-dark .estimator-map-north-button [data-estimator-heading]{
  color:var(--muted)!important;
}
html.theme-dark .estimator-map-utility-button:hover,
html.theme-dark .estimator-map-rotation .button:hover{
  background:#172637!important;
  border-color:#52677b!important;
  color:#fff!important;
}
html.theme-dark .estimator-map-utility-button.active{
  border-color:#8f743b!important;
  background:#2b2518!important;
  color:#f0d49d!important;
}
html.theme-dark .estimator-map-utility-button.estimator-property-lines-toggle.active{
  border-color:#3f7c8f!important;
  background:#16303a!important;
  color:#9ed2df!important;
}
html.theme-dark .estimator-map-utility-button.active:hover{
  background:#372d1d!important;
}
html.theme-dark .estimator-map-utility-button.estimator-property-lines-toggle.active:hover{
  background:#1a3a46!important;
}
html.theme-dark .estimator-head-save-status{
  background:rgba(214,162,61,.14);
  color:#e0b86d;
}
html.theme-dark .estimator-head-save-status.error{
  background:rgba(130,45,52,.22);
  color:#f0aaaa;
}
html.theme-dark .estimator-save-status{
  color:#d5b072;
}
html.theme-dark .estimator-save-status.error{color:#f0aaaa}


/* --------------------------------------------------------------------------
   v137 — dark-mode cleanup for lead-quality selection buttons on lead details.
   -------------------------------------------------------------------------- */
html.theme-dark .quality-grid span{
  background:#101b27;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark .quality-grid span:hover{
  background:#172637;
  border-color:#52677b;
  color:#fff;
}
html.theme-dark .quality-grid input:checked + span{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
  box-shadow:inset 0 0 0 1px rgba(214,162,61,.18);
}


/* --------------------------------------------------------------------------
   v138 — soften Territory Workload icons in dark mode.
   -------------------------------------------------------------------------- */
html.theme-dark .territory-workload-icon{
  background:#162433;
  color:#9eb0bf;
  border:1px solid #334759;
}
html.theme-dark .territory-workload-link:hover .territory-workload-icon{
  background:#1b2c3d;
  color:#c8d4de;
  border-color:#52677b;
}


/* --------------------------------------------------------------------------
   v139 — Research Depth selector dark-mode fix. Deep First Pass is now the
   application default; these rules only affect dark-theme presentation.
   -------------------------------------------------------------------------- */
html.theme-dark .research-depth-fieldset legend{
  color:var(--charcoal);
}
html.theme-dark .research-depth-option > span{
  background:#101b27;
  border-color:#34485a;
  color:var(--ink);
}
html.theme-dark .research-depth-option strong{
  color:var(--charcoal);
}
html.theme-dark .research-depth-option small{
  color:var(--muted);
}
html.theme-dark .research-depth-option:hover > span{
  background:#172637;
  border-color:#52677b;
}
html.theme-dark .research-depth-option input:checked + span{
  background:#2b2518;
  border-color:#8f743b;
  color:#f0d49d;
  box-shadow:0 0 0 2px rgba(214,162,61,.14);
}
html.theme-dark .research-depth-option input:checked + span strong{
  color:#f0d49d;
}
html.theme-dark .research-depth-option input:checked + span small{
  color:#d7c39c;
}


/* --------------------------------------------------------------------------
   v139 — Your Move: keep Open Measurements compact. Show three priority items
   by default, with a native disclosure for the remaining drafts.
   -------------------------------------------------------------------------- */
.open-estimates-more{
  margin-top:8px;
  padding-top:2px;
  border-top:1px solid var(--line);
}
.open-estimates-more>summary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  width:100%;
  padding:9px 10px 2px;
  list-style:none;
  cursor:pointer;
  color:#725a33;
  font-size:11px;
  font-weight:850;
}
.open-estimates-more>summary::-webkit-details-marker{display:none}
.open-estimates-more>summary:hover{color:var(--gold-deep,#76531d)}
.open-estimates-more-hide{display:none}
.open-estimates-more[open] .open-estimates-more-show{display:none}
.open-estimates-more[open] .open-estimates-more-hide{display:inline}
.open-estimates-more-chevron{display:inline-block;font-size:13px;transition:transform .15s ease}
.open-estimates-more[open] .open-estimates-more-chevron{transform:rotate(180deg)}
.open-estimates-more-list{margin-top:8px}
html.theme-dark .open-estimates-more{border-top-color:var(--line)}
html.theme-dark .open-estimates-more>summary{color:var(--gold-deep)}
html.theme-dark .open-estimates-more>summary:hover{color:#fff3d0}


/* v139 — Explore Territory: make known/reported legend markers match map pins. */
.explore-legend-swatch{
  width:10px;
  height:14px;
  border-radius:50% 50% 50% 0;
  transform:rotate(-45deg);
  border:1px solid #fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.18);
}


/* --------------------------------------------------------------------------
   v139 — dark-mode cleanup for expanded Lead List filters and sorted column
   headers.
   -------------------------------------------------------------------------- */
html.theme-dark .lead-filter-form>.mobile-filter-toggle:checked ~ .lead-advanced-filters{
  border-top-color:#2a3e50;
}
html.theme-dark .lead-filter-group{
  background:#101b27;
  border-color:#334759;
  color:var(--ink);
}
html.theme-dark .lead-filter-group-title,
html.theme-dark .lead-filter-group label>span{
  color:#ccb17a;
}
html.theme-dark .lead-filter-group.compact-group{
  background:#111c28;
}
html.theme-dark .sortable-header>a:hover{
  background:#172637;
  color:#fff;
}
html.theme-dark .sortable-header .sort-arrow{
  color:#7f92a2;
}
html.theme-dark .sortable-header.active-sort{
  background:#2b2518;
  color:#f0d49d;
  box-shadow:inset 0 -2px 0 var(--gold);
}
html.theme-dark .sortable-header.active-sort>a,
html.theme-dark .sortable-header.active-sort .sort-arrow{
  color:#f0d49d;
}
html.theme-dark .sortable-header.active-sort>a:hover{
  background:#372d1d;
  color:#fff4dc;
}

/* ========================================================================== 
   Research workspace split — focused Research submenu + workflow pages
   ========================================================================== */
.research-nav-menu{position:relative;margin:0}
.research-nav-menu>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 11px;border-radius:7px;color:#dfe4e7;cursor:pointer;list-style:none;text-transform:none;letter-spacing:.01em;font-size:12px;font-weight:750}
.research-nav-menu>summary::-webkit-details-marker{display:none}.research-nav-menu>summary::marker{display:none;content:""}
.research-nav-menu>summary:hover,.research-nav-menu[open]>summary,.research-nav-menu.active>summary{background:rgba(176,140,82,.13);color:#fff}
.research-nav-submenu{display:grid;gap:2px;margin:2px 0 3px 10px;padding:3px 0 3px 9px;border-left:1px solid rgba(214,155,53,.28)}
.topnav .topnav-admin-dropdown .research-nav-submenu a{padding:8px 9px;font-size:11px;font-weight:700}
.topnav-admin-dropdown:has(.research-nav-menu[open]){width:248px}

.mobile-research-menu{margin:0}
.mobile-research-menu>summary{display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:9px 10px;border-radius:8px;color:#dfe4e9;cursor:pointer;list-style:none;font-size:13px;font-weight:800}
.mobile-research-menu>summary::-webkit-details-marker{display:none}.mobile-research-menu>summary::marker{display:none;content:""}
.mobile-research-menu.active>summary,.mobile-research-menu[open]>summary{color:#fff;background:rgba(214,155,53,.11)}
.mobile-research-submenu{display:grid;gap:2px;margin:2px 0 5px 10px;padding-left:10px;border-left:1px solid rgba(214,155,53,.28)}
.mobile-topnav .mobile-research-submenu a{min-height:36px;padding:7px 9px;font-size:12px;font-weight:700}

.research-workflow-menu{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:20px}
.research-menu-card{display:grid;grid-template-columns:42px minmax(0,1fr) 26px;gap:13px;align-items:center;text-decoration:none;color:inherit;transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}
.research-menu-card:hover{transform:translateY(-1px);border-color:#c7a768;box-shadow:0 9px 24px rgba(57,46,28,.08)}
.research-menu-card h2{margin:2px 0 4px;font-size:19px}.research-menu-card p{margin:0;color:var(--muted);font-size:13px;line-height:1.45}
.research-menu-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:10px;background:var(--accent-soft);color:var(--accent);font-size:20px;font-weight:900}
.research-menu-arrow{font-size:22px;color:var(--muted);text-align:right}
.research-exchange-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0 16px}
.research-console-import-panel{border-top:3px solid var(--gold)}
.research-digital-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:12px}
.digital-reach-page-card{max-width:none}
@media(max-width:900px){.research-workflow-menu,.research-digital-actions{grid-template-columns:1fr}}
@media(max-width:640px){.research-menu-card{grid-template-columns:36px minmax(0,1fr) 20px}.research-menu-icon{width:34px;height:34px}.research-exchange-actions{display:grid}.research-exchange-actions .button{width:100%}}

/* Research workflow help: make every exchange/import explain when to use it, what moves, and what Bridger changes. */
.workflow-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:10px 0 14px}
.workflow-guide.page-workflow-guide{margin:0 0 18px}
.workflow-guide.compact{margin:8px 0 12px}
.workflow-guide-item{border:1px solid var(--line);border-radius:10px;background:#f8fafb;padding:11px 12px;min-width:0}
.workflow-guide-item>span{display:block;margin-bottom:3px;font-size:10px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:var(--accent)}
.workflow-guide-item>strong{display:block;font-size:13px;line-height:1.3;color:var(--ink)}
.workflow-guide-item>p{margin:5px 0 0;font-size:12px;line-height:1.45;color:var(--muted)}
.workflow-guide-item code{font-size:11px}
html.theme-dark .workflow-guide-item{background:rgba(255,255,255,.035);border-color:var(--line)}
@media(max-width:900px){.workflow-guide{grid-template-columns:1fr}}

/* Territory Setup & Imports — manifest-driven county bootstrap */
.territory-bootstrap-panel{border-top:3px solid var(--gold);margin-bottom:18px}
.territory-bootstrap-form{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.85fr);gap:12px 16px;align-items:start}
.territory-bootstrap-form .field{min-width:0}
.territory-bootstrap-form .field>small{display:block;margin-top:6px;color:var(--muted);font-size:11px;line-height:1.4}
.territory-bootstrap-actions{grid-column:1/-1}
.territory-bootstrap-permission{border:1px solid var(--line);border-radius:10px;background:#f8fafb;padding:12px;display:flex;flex-direction:column;gap:4px;min-height:54px}
.territory-bootstrap-permission strong{font-size:12px;color:var(--ink)}
.territory-bootstrap-permission span{font-size:11px;line-height:1.4;color:var(--muted)}
.territory-existing-heading{margin:22px 0 8px;padding:0 2px}
.territory-existing-heading>strong{display:block;margin-top:3px;font-size:15px;color:var(--ink)}
.territory-existing-heading>p{margin:4px 0 0;color:var(--muted);font-size:12px;line-height:1.45}
html.theme-dark .territory-bootstrap-permission{background:rgba(255,255,255,.035);border-color:var(--line)}
@media(max-width:900px){.territory-bootstrap-form{grid-template-columns:1fr}.territory-bootstrap-actions{grid-column:auto}}

/* Contact Research convenience actions */
.inline-action-status{min-height:18px;color:var(--accent);font-size:11px;line-height:1.4}
.inline-action-status a{color:inherit;font-weight:800}
.inline-action-status.error{color:var(--bad)}
.workflow-form .button:disabled{cursor:wait;opacity:.62}

/* Territory Intelligence dark-mode surface corrections. */
html.theme-dark .analytics-view-tabs,
html.theme-dark .territory-access-card,
html.theme-dark .territory-concentration-stats>div,
html.theme-dark .territory-relationship-list>a,
html.theme-dark .territory-sort-controls a{background:var(--panel-strong);border-color:var(--line);color:var(--ink)}
html.theme-dark .analytics-view-tabs a:hover,
html.theme-dark .territory-access-card:hover,
html.theme-dark .territory-relationship-list>a:hover{background:#1a2a3a;border-color:var(--line-strong)}
html.theme-dark .analytics-view-tabs a.active{background:var(--gold-soft);color:var(--gold-deep)}
html.theme-dark .territory-sort-controls a.active{background:var(--gold-soft);border-color:#8f743b;color:var(--gold-deep)}
html.theme-dark .territory-mix-track{background:#1a2a3a}
html.theme-dark .territory-concentration-callout{background:var(--gold-soft);color:var(--charcoal)}
html.theme-dark .territory-maturity-row,
html.theme-dark .territory-table-footer{border-color:var(--line)}

/* --------------------------------------------------------------------------
   v134 — account-level web/buying paths.
   Legacy contact_form_url remains stored on contact rows for compatibility,
   but is surfaced once at the Sales Account level and never inflates person
   Contact Access.
   -------------------------------------------------------------------------- */
.account-web-routes{
  margin:9px 0 12px;
  padding:10px;
  border:1px solid #ddd1bd;
  border-left:3px solid #b08c52;
  border-radius:8px;
  background:#fbf8f2;
}
.account-web-routes-heading{
  display:block;
  margin-bottom:8px;
}
.account-web-routes-heading>div{min-width:0}
.account-web-routes-heading .crm-field-label{display:block;margin-bottom:2px}
.account-web-routes-heading strong{display:block;font-size:13px;color:var(--charcoal)}
.account-web-routes-heading>small{display:block;margin:4px 0 0;font-size:9px;line-height:1.35;color:var(--muted)}
.account-web-route-list{display:grid;gap:7px}
.account-web-route-card{
  display:block;
  padding:9px 10px;
  border:1px solid #e2d8c8;
  border-radius:7px;
  background:#fff;
}
.account-web-route-card.supplier-route{
  border-color:#cdb17a;
  background:#fffaf0;
}
.account-web-route-copy{min-width:0;flex:1}
.account-web-route-title-row{display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.account-web-route-title-row>strong{font-size:12px;color:var(--charcoal)}
.account-web-route-copy p{margin:3px 0 2px;font-size:10px;line-height:1.35;color:#5f5a53}
.account-web-route-copy>small{display:block;margin:0;font-size:9px;line-height:1.3;color:var(--muted)}
.account-web-route-actions{display:flex;align-items:center;justify-content:flex-start;gap:6px;flex-wrap:wrap;margin-top:8px}
.account-web-route-actions form{margin:0}
html.theme-dark .account-web-routes{
  background:#101b27;
  border-color:#3c4d5c;
  border-left-color:var(--gold);
}
html.theme-dark .account-web-routes-heading strong,
html.theme-dark .account-web-route-title-row>strong{color:var(--charcoal)}
html.theme-dark .account-web-route-card{
  background:#151f2b;
  border-color:#34475a;
}
html.theme-dark .account-web-route-card.supplier-route{
  background:#211d16;
  border-color:#6f5b35;
}
html.theme-dark .account-web-route-copy p{color:#c8c2b8}

/* --------------------------------------------------------------------------
   v135 — actionable Buying Paths on Lead List.
   General inquiry/contact-us forms stay available inside Lead Details but do
   not appear as sales-opportunity signals or satisfy the Buying Path filter.
   -------------------------------------------------------------------------- */
.lead-list-route-badge.buying-path{
  background:#fff6df;
  border-color:#d8bd7a;
  color:#74571d;
}
.buying-paths{
  border-color:#d3b875;
  background:#fff8e8;
  color:#6d511a;
  font-weight:850;
}
.buying-paths:before{
  content:"↗";
  display:inline-grid;
  place-items:center;
  width:16px;
  height:16px;
  margin-right:5px;
  border:1px solid #cbb06d;
  border-radius:50%;
  font-size:10px;
  font-weight:900;
  line-height:1;
}
.buying-paths:hover,.buying-paths.active{
  border-color:#aa842e;
  background:#f6e9c5;
  color:#5f4512;
}
.lead-quick-sorts{flex-wrap:wrap}
html.theme-dark .lead-list-route-badge.buying-path{
  background:#2b2416;
  border-color:#79663c;
  color:#e3c67e;
}
html.theme-dark .buying-paths{
  background:#211d16;
  border-color:#6f5b35;
  color:#e0c47d;
}
html.theme-dark .buying-paths:hover,html.theme-dark .buying-paths.active{
  background:#312916;
  border-color:#a78948;
  color:#f1d78f;
}

/* v136 — Buying Path visibility belongs with Contact Access for every role. */
.lead-reachability-badges .lead-list-route-badge.buying-path{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
}

/* Missing Lot Research: read-only report review + queue cleanup */
.missing-report-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:190px}
.missing-report-row-actions form{margin:0}
.missing-report-view-shell .missing-lot-create-map{min-height:680px}
.missing-report-view-stats{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.missing-report-view-stats>div{padding:10px 11px;border:1px solid #e1d8ca;border-radius:9px;background:#fff}
.missing-report-view-stats span,.missing-report-detail>span{display:block;color:var(--muted);font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;margin-bottom:4px}
.missing-report-view-stats strong{display:block;font-size:13px}.missing-report-view-stats small{display:block;color:var(--muted);margin-top:3px}
.missing-report-detail{padding-top:2px}.missing-report-detail strong,.missing-report-detail p{margin:0;font-size:13px;line-height:1.45}
.missing-report-legend p{margin-top:6px}
.missing-report-map-error{height:100%;min-height:680px;display:grid;place-items:center;padding:30px;color:#7f3434;background:#f7eeee;text-align:center;font-weight:700}
@media(max-width:900px){.missing-report-view-shell .missing-lot-create-map{min-height:55vh}}
@media(max-width:620px){.missing-report-view-stats{grid-template-columns:1fr}.missing-report-row-actions{min-width:0}}

/* Relationship Work / Fulfillment Work Phase 1 */
.quote-scope-list{display:grid;gap:8px;margin-top:10px}
.quote-scope-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:11px 12px;border:1px solid #ded7cc;border-radius:10px;background:#fff}.quote-scope-choice{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;align-items:center;min-width:0;cursor:pointer}
.quote-scope-row.measuring{border-color:#d6b864;background:#fffaf0}.quote-scope-row.complete{border-color:#b6cdbd;background:#f6fbf7}
.quote-scope-main{display:flex;min-width:0;flex-direction:column;gap:2px}.quote-scope-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quote-scope-main small{color:var(--muted)}
.quote-scope-form>.sales-form-actions{margin-top:12px}
.active-quote-work-list{display:grid;gap:8px;margin-top:10px}.active-quote-work-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:11px 12px;border:1px solid #e2dbd1;border-radius:10px;background:#fff}
.active-quote-work-row>div{display:flex;min-width:0;flex-direction:column;gap:2px}.active-quote-work-row>div span,.active-quote-work-row>div small{color:var(--muted)}
html.theme-dark .quote-scope-row,html.theme-dark .active-quote-work-row{background:#1e2328;border-color:#3b434a}html.theme-dark .quote-scope-row.measuring{background:#2a2519;border-color:#74623d}html.theme-dark .quote-scope-row.complete{background:#18251e;border-color:#3c624b}
@media(max-width:760px){.quote-scope-row{grid-template-columns:minmax(0,1fr) auto}.quote-scope-row>a{grid-column:1/-1;justify-self:start}.active-quote-work-row{grid-template-columns:1fr auto}.active-quote-work-row>a,.active-quote-work-row>.muted{grid-column:1/-1;justify-self:start}}

/* Quote identity visibility across Opportunities, Lead Details, and Estimator. */
.lead-quote-status-line{display:block}.lead-quote-status-line strong{font-weight:850}.lead-quote-more{display:block;color:var(--muted)}
.estimator-quote-context{display:grid;gap:4px;margin-top:9px}.estimator-quote-context[hidden]{display:none}
.estimator-quote-context-list{display:flex;flex-wrap:wrap;gap:6px}.estimator-quote-context-item{display:inline-flex;align-items:center;min-height:26px;padding:4px 8px;border:1px solid #d9d2c8;border-radius:999px;background:#fff;font-size:11px;color:var(--muted)}
.estimator-quote-context-item strong{color:var(--ink);font-size:11px}.estimator-quote-context-item.preferred{border-color:#b08c52;box-shadow:inset 0 0 0 1px rgba(176,140,82,.12)}
html.theme-dark .estimator-quote-context-item{background:#1e2328;border-color:#3b434a}html.theme-dark .estimator-quote-context-item strong{color:#f0f1f2}
@media(max-width:760px){.estimator-quote-context-list{display:grid;grid-template-columns:1fr}.estimator-quote-context-item{border-radius:8px}}

/* ==========================================================================
   v137 — Work-lane navigation
   Relationship Work answers who to contact next. Fulfillment Work owns the
   quote after it is requested until it is sent. Keep those lanes visible in
   the information architecture without turning the top bar into a task list.
   ========================================================================== */
.topnav-work-menu{position:relative;margin:0;padding-top:0;border-top:0}
.topnav-work-menu>summary{
  display:flex;align-items:center;gap:6px;min-height:35px;padding:10px 13px;
  border-radius:7px;color:#d8d8d3;cursor:pointer;list-style:none;
  letter-spacing:.055em;text-transform:uppercase;font-size:11px;font-weight:850;
  transition:color .15s ease,background .15s ease;
}
.topnav-work-menu>summary::-webkit-details-marker{display:none}
.topnav-work-menu>summary::marker{display:none;content:""}
.topnav-work-menu>summary span{font-size:13px;line-height:1;transform:translateY(-1px)}
.topnav-work-menu>summary:hover,.topnav-work-menu[open]>summary{color:#fff;background:rgba(176,140,82,.13)}
.topnav-work-menu.active>summary{color:#fff;background:rgba(176,140,82,.17);box-shadow:inset 0 -2px 0 var(--gold)}
.topnav-work-dropdown{
  position:absolute;top:calc(100% + 9px);left:0;z-index:1200;display:grid;gap:3px;
  width:270px;padding:8px;border:1px solid rgba(214,155,53,.30);border-radius:10px;
  background:#151c21;box-shadow:0 16px 38px rgba(0,0,0,.28)
}
.topnav .topnav-work-dropdown a{
  display:grid;gap:2px;padding:10px 11px;border-radius:7px;color:#dfe4e7;
  text-transform:none;letter-spacing:.01em;font-size:12px;font-weight:750
}
.topnav .topnav-work-dropdown a strong{font-size:12px;font-weight:850;color:inherit}
.topnav .topnav-work-dropdown a small{font-size:10px;line-height:1.3;font-weight:600;color:#98a3aa}
.topnav .topnav-work-dropdown a:hover{background:rgba(176,140,82,.13);color:#fff}
.topnav .topnav-work-dropdown a:hover small{color:#c8d0d5}
.topnav .topnav-work-dropdown a.active{background:rgba(176,140,82,.19);color:#fff;box-shadow:inset 3px 0 0 var(--gold)}
.topnav .topnav-work-dropdown a.active:after{display:none}
.topnav .topnav-work-dropdown a.active small{color:#c8d0d5}

@media(max-width:760px){
  .mobile-work-menu{margin:0;padding-top:0;border-top:0}
  .mobile-work-menu>summary{
    display:flex;align-items:center;justify-content:space-between;min-height:42px;padding:9px 10px;
    border-radius:8px;color:#dfe4e9;cursor:pointer;list-style:none;font-size:13px;font-weight:850
  }
  .mobile-work-menu>summary::-webkit-details-marker{display:none}
  .mobile-work-menu>summary::marker{display:none;content:""}
  .mobile-work-menu.active>summary,.mobile-work-menu[open]>summary{color:#fff;background:rgba(214,155,53,.11)}
  .mobile-work-submenu{display:grid;gap:2px;margin:2px 0 5px 10px;padding-left:10px;border-left:1px solid rgba(214,155,53,.28)}
  .mobile-topnav .mobile-work-submenu a{min-height:36px;padding:7px 9px;font-size:12px;font-weight:700}
}

/* Portable Price Book transfer between franchises. */
.sales-price-book-transfer { margin-top: 14px; }
.sales-price-book-transfer h3 { margin: 4px 0 8px; }
.sales-price-book-transfer > p { margin: 0 0 14px; max-width: 900px; }
.sales-price-book-transfer-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sales-price-book-transfer-actions .sales-inline-form { flex: 1 1 520px; margin: 0; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sales-price-book-transfer-actions input[type="file"] { flex: 1 1 300px; min-width: 240px; }
@media (max-width: 700px) {
  .sales-price-book-transfer-actions,
  .sales-price-book-transfer-actions .sales-inline-form { align-items: stretch; flex-direction: column; }
  .sales-price-book-transfer-actions input[type="file"] { min-width: 0; width: 100%; }
}

/* Account relationship AI due-diligence prompt */
.cluster-review-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:7px}
.cluster-review-tools .cluster-properties-toggle{margin-top:0}
.cluster-ai-copy-status{min-height:18px;color:var(--muted,#6c6a66);font-size:12px}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:700px){.cluster-review-tools{display:grid;grid-template-columns:1fr}.cluster-review-tools .button{width:100%;justify-content:center}}
/* Human-facing Quote identity: keep the short Quote number readable and
   visually separate from the workflow status. */
.lead-quote-summary{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.lead-quote-number{font-size:11px;font-weight:850;letter-spacing:.02em;color:var(--ink);white-space:nowrap}
.lead-quote-stage{white-space:normal;line-height:1.15;text-align:left}
.estimator-quote-context-item{gap:7px;flex-wrap:wrap;border-radius:8px}
.estimator-quote-identity{display:inline-flex;align-items:center;gap:2px}
.estimator-quote-stage{display:inline-flex;align-items:center;min-height:20px;padding:2px 6px;border-radius:999px;background:rgba(176,140,82,.12);color:var(--ink);font-size:10px;font-weight:800;white-space:nowrap}
html.theme-dark .estimator-quote-stage{background:rgba(176,140,82,.2);color:#f0f1f2}
.lead-quote-list{display:grid;gap:3px;margin-top:4px}
.lead-quote-summary.compact{gap:5px}
.lead-quote-stage-text{font-size:9px;font-weight:800;letter-spacing:.04em;color:var(--muted);white-space:nowrap}
.lead-quote-contractor{display:block;margin-top:-1px}

/* Pilot showcase identity: keep the curated included-set label visible without
   replacing the normal Your Move / queue status. */
.your-move-title-badges{display:flex;align-items:flex-start;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.pilot-sample-badge{align-self:flex-start;white-space:nowrap}

/* Pilot curation v2 — keep On Deck readable even when pilot/status badges are present. */
.dashboard-page .polished-on-deck-row{
  grid-template-columns:40px minmax(0,1fr) auto;
  align-items:start;
}
.dashboard-page .polished-on-deck-row .on-deck-row-main{
  min-width:0;
}
.dashboard-page .polished-on-deck-row .on-deck-row-main>strong,
.dashboard-page .polished-on-deck-row .on-deck-row-main>span,
.dashboard-page .polished-on-deck-row .on-deck-row-main>small{
  overflow-wrap:break-word;
}
.dashboard-page .on-deck-badges-main{
  justify-content:flex-start;
  margin-top:7px;
}
.dashboard-page .polished-on-deck-row>.on-deck-open-pinned{
  grid-column:3;
  grid-row:1;
  align-self:start;
  justify-self:end;
  margin-top:2px;
  white-space:nowrap;
}
.dashboard-page .on-deck-unlock-row.polished-on-deck-row .on-deck-unlock-form{
  grid-column:2 / -1;
  justify-self:start;
  align-self:start;
  margin-top:3px;
}
@media(max-width:700px){
  .dashboard-page .polished-on-deck-row{
    grid-template-columns:38px minmax(0,1fr) auto;
  }
  .dashboard-page .polished-on-deck-row>.on-deck-open-pinned{
    grid-column:3;
    grid-row:1;
  }
}


/* Digital Reach bootstrap export: disposable company/site-address sample for Adlever setup. */
.digital-reach-sample-export{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:#f8f4ed}
.digital-reach-sample-export>div{min-width:0}
.digital-reach-sample-export span{display:block;color:#9a6b25;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.digital-reach-sample-export strong{display:block;margin-top:3px;font-size:14px}
.digital-reach-sample-export p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.45;max-width:900px}
.digital-reach-sample-export form{flex:0 0 auto}
.digital-reach-sample-export .button{white-space:nowrap}
@media(max-width:900px){.digital-reach-sample-export{align-items:stretch;flex-direction:column}.digital-reach-sample-export .button{width:100%;white-space:normal}}
html.theme-dark .digital-reach-sample-export{background:var(--panel-strong)}
