:root {
  --navy-950: #1C2B4A;
  --navy-900: #1C2B4A;
  --navy-800: #1C2B4A;
  --navy-700: #1C2B4A;
  --ink: #1C2B4A;
  --muted: #3A3A3A;
  --line: #dfe6ee;
  --panel: #ffffff;
  --canvas: #f5f7fa;
  --orange: #F04E23;
  --orange-dark: #1C2B4A;
  --orange-soft: #FDE8E0;
  --blue-soft: #FDE8E0;
  --green: #12864c;
  --green-soft: #e7f8ef;
  --amber: #b46606;
  --amber-soft: #fff5da;
  --shadow: 0 14px 42px rgba(12, 34, 60, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--canvas); }
body { margin: 0; min-width: 320px; }
button, select { font: inherit; }
button { color: inherit; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 28px 16px 22px; color: #fff; background: radial-gradient(circle at 20% 4%, #174a79 0, var(--navy-900) 36%, var(--navy-950) 100%); display: flex; flex-direction: column; z-index: 20; }
.brand-wrap { display: grid; justify-items: start; gap: 10px; padding: 0 13px 30px; }
.brand-logo { width: 160px; height: auto; }
.demo-chip { display: inline-flex; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); color: #d8e8f8; border-radius: 99px; padding: 5px 10px; font-size: 12px; letter-spacing: .04em; }
.nav-list { display: grid; gap: 6px; }
.nav-item { width: 100%; min-height: 52px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 12px; border: 0; border-radius: 14px; padding: 0 13px; color: #dbe8f5; background: transparent; text-align: left; cursor: pointer; font-weight: 650; }
.nav-item:hover, .nav-item:focus-visible { background: rgba(255,255,255,.08); outline: none; }
.nav-item.active { background: rgba(255,255,255,.13); color: #fff; box-shadow: inset 4px 0 var(--orange); }
.nav-icon, [data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 23px; height: 23px; }
.nav-count { display: grid; place-items: center; min-width: 25px; height: 25px; padding: 0 6px; background: var(--orange); border-radius: 50px; color: white; font-size: 12px; }
.sidebar-foot { margin-top: auto; padding: 16px 12px 0; border-top: 1px solid rgba(255,255,255,.14); display: grid; gap: 10px; }
.sidebar-foot strong, .sidebar-foot span { display: block; }
.sidebar-foot strong { font-size: 14px; }
.sidebar-foot span { color: #afc6dd; font-size: 12px; margin-top: 2px; }
.sidebar-foot button { width: 100%; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; padding: 9px 11px; color: #fff; background: rgba(255,255,255,.07); font: inherit; font-size: 12px; font-weight: 700; text-align: left; cursor: pointer; }
.sidebar-foot button:hover, .sidebar-foot button:focus-visible { background: rgba(255,255,255,.14); outline: 2px solid rgba(255,255,255,.65); outline-offset: 2px; }
.location-mark { width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: var(--navy-900); border-radius: 12px; font-weight: 800; }
.mobile-header { display: none; }
.main-content { min-width: 0; padding: 28px clamp(24px, 4vw, 64px) 80px; }
.page { max-width: 1180px; margin: 0 auto; }
.main-content { view-transition-name: dashboard-content; }
::view-transition-old(root),::view-transition-new(root) { animation: none; }
::view-transition-old(dashboard-content) { animation: dashboard-content-out .12s ease both; }
::view-transition-new(dashboard-content) { animation: dashboard-content-in .2s ease both; }
@keyframes dashboard-content-out { to { opacity: .25; transform: translateY(-2px); } }
@keyframes dashboard-content-in { from { opacity: .25; transform: translateY(3px); } }
.main-content.dashboard-content-enter { animation: dashboard-content-fallback-in .18s ease both; }
@keyframes dashboard-content-fallback-in { from { transform: translateY(3px); } }

.page-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.eyebrow { color: var(--orange-dark); text-transform: uppercase; letter-spacing: .11em; font-size: 12px; font-weight: 850; margin: 0 0 8px; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 50px); line-height: 1.04; letter-spacing: -.04em; }
.page-subtitle { color: var(--muted); margin: 10px 0 0; font-size: 17px; line-height: 1.5; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.select-control { min-height: 44px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: #fff; font-weight: 700; }
.segmented { display: inline-flex; padding: 4px; background: #e9edf2; border-radius: 15px; }
.segmented button { min-width: 108px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 12px; background: transparent; font-weight: 800; cursor: pointer; }
.segmented button.active { color: #fff; background: var(--orange); box-shadow: 0 6px 18px rgba(255,79,24,.25); }
.snapshot-note { display: inline-flex; align-items: center; gap: 8px; color: #42556d; background: var(--blue-soft); border: 1px solid #cfe6fb; border-radius: 12px; padding: 10px 13px; font-size: 13px; font-weight: 650; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #2c80c9; }

.source-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 8px 0 22px; }
.source-chip { min-height: 42px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0 16px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 750; }
.source-chip:hover, .source-chip:focus-visible { border-color: #aab9c8; outline: 3px solid rgba(44,128,201,.12); }
.source-chip.active { color: var(--orange-dark); border-color: #ffb094; background: var(--orange-soft); }
.source-chip[disabled] { cursor: not-allowed; color: #8996a8; background: #f0f2f5; }
.source-badge { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; color: #fff; background: var(--navy-700); font-size: 12px; font-weight: 900; }
.source-badge.google { background: #fff; border: 1px solid var(--line); color: #4285f4; }
.source-badge.facebook { background: #1877f2; }

.funnel-wrap { max-width: 930px; margin: 0 auto; }
.funnel-stage { --stage-width: 100%; width: var(--stage-width); margin: 0 auto; border: 0; padding: 0; background: transparent; display: block; cursor: pointer; position: relative; }
.funnel-stage:focus-visible { outline: 4px solid rgba(44,128,201,.25); outline-offset: 4px; border-radius: 20px; }
.stage-shape { min-height: 118px; padding: 22px clamp(30px, 7vw, 82px); background: var(--stage-bg, var(--blue-soft)); clip-path: polygon(0 0, 100% 0, 95% 100%, 5% 100%); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; transition: transform .2s ease, filter .2s ease; }
.funnel-stage:hover .stage-shape { transform: translateY(-2px); filter: saturate(1.08); }
.funnel-stage.selected .stage-shape { background: linear-gradient(135deg, #fff5ee, #ffe1d3); filter: drop-shadow(0 8px 18px rgba(255,79,24,.13)); }
.funnel-stage.selected::after { content: ""; position: absolute; inset: -2px 3%; border: 3px solid var(--orange); clip-path: polygon(0 0,100% 0,95% 100%,5% 100%); pointer-events: none; }
.stage-icon { justify-self: end; width: 58px; height: 58px; display: grid; place-items: center; color: var(--navy-800); }
.stage-icon svg { width: 44px; height: 44px; }
.avatar-cluster { display: flex; justify-self: end; }
.avatar { width: 48px; height: 48px; margin-left: -8px; display: grid; place-items: center; border-radius: 50%; color: var(--navy-800); background: #d7ebff; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(9,39,73,.12); flex: 0 0 auto; }
.avatar:first-child { margin-left: 0; }
.avatar svg { width: 29px; height: 29px; }
.stage-metric { min-width: 150px; text-align: center; }
.stage-number { display: block; font-size: clamp(42px, 5vw, 64px); line-height: .88; letter-spacing: -.05em; font-weight: 900; }
.stage-label { display: block; margin-top: 10px; font-size: 22px; font-weight: 820; }
.stage-support { justify-self: start; text-align: left; }
.cost-pill { display: inline-flex; min-height: 38px; align-items: center; padding: 0 13px; border-radius: 999px; color: var(--orange-dark); background: #fff; border: 1px solid #ffc5b1; font-weight: 800; }
.stage-chevron { display: inline-flex; transition: transform .2s ease; }
.selected .stage-chevron { transform: rotate(180deg); }
.conversion { display: grid; place-items: center; height: 30px; color: #718097; font-size: 13px; font-weight: 850; }

.drawer { width: 92%; margin: 8px auto 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; animation: drawer-in .24s ease both; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(-8px); } }
.drawer-head { padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 22px; }
.drawer-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.text-button { min-height: 40px; border: 0; border-radius: 10px; padding: 0 14px; color: #1768b2; background: var(--blue-soft); font-weight: 800; cursor: pointer; }
.drawer-grid { display: grid; grid-template-columns: minmax(0, 1fr) 210px; }
.record-list { padding: 8px 20px; }
.record-row { min-height: 62px; display: grid; grid-template-columns: 42px minmax(100px, 1fr) minmax(110px, .8fr) auto; align-items: center; gap: 12px; border-bottom: 1px solid #edf1f5; }
.record-row:last-child { border-bottom: 0; }
.record-row .avatar { width: 38px; height: 38px; margin: 0; border-width: 2px; }
.record-row .avatar svg { width: 22px; height: 22px; }
.record-name { font-weight: 820; }
.record-meta { color: var(--muted); font-size: 13px; }
.tag { display: inline-flex; align-items: center; width: fit-content; min-height: 30px; padding: 0 10px; border-radius: 999px; background: #eef2f6; color: #516177; font-size: 12px; font-weight: 800; }
.tag.attention { background: var(--orange-soft); color: var(--orange-dark); }
.tag.success { background: var(--green-soft); color: var(--green); }
.tag.info { background: var(--blue-soft); color: #1768b2; }
.drawer-summary { border-left: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; align-content: center; }
.summary-box { padding: 14px; text-align: center; background: var(--blue-soft); border-radius: 16px; }
.summary-box.attention { background: var(--orange-soft); }
.summary-box strong { display: block; font-size: 36px; line-height: 1; }
.summary-box span { display: block; margin-top: 6px; font-size: 13px; font-weight: 750; }
.success-line { margin: 18px auto 0; display: flex; justify-content: center; align-items: center; gap: 12px; color: var(--green); font-size: 22px; font-weight: 900; text-align: center; }
.success-check { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green); color: #fff; }
.untracked { text-align: center; color: var(--muted); margin: 8px 0 0; font-size: 14px; }

.attention-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.attention-card { min-height: 160px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 25px rgba(12,34,60,.06); cursor: pointer; text-align: left; }
.attention-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.attention-card .card-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--orange-dark); background: var(--orange-soft); }
.attention-card strong { display: block; margin-top: 20px; font-size: 30px; }
.attention-card span { display: block; color: var(--muted); margin-top: 5px; line-height: 1.35; }
.section-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 25px rgba(12,34,60,.06); overflow: hidden; }
.section-title { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.section-title h2 { margin: 0; font-size: 21px; }

.conversation-layout { min-height: 650px; display: grid; grid-template-columns: 350px minmax(0,1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.conversation-list { border-right: 1px solid var(--line); background: #fbfcfe; }
.conversation-search { padding: 16px; border-bottom: 1px solid var(--line); }
.conversation-search input { width: 100%; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.conversation-item { width: 100%; padding: 15px 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 11px; align-items: start; border: 0; border-bottom: 1px solid #e8edf2; background: transparent; text-align: left; cursor: pointer; }
.conversation-item:hover, .conversation-item:focus-visible { background: #f1f7fc; outline: none; }
.conversation-item.active { background: var(--blue-soft); box-shadow: inset 4px 0 #2c80c9; }
.conversation-item .avatar { width: 42px; height: 42px; margin: 0; border-width: 2px; }
.conversation-item h3 { margin: 1px 0 3px; font-size: 15px; }
.conversation-item p { margin: 0; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conversation-item time { color: #7b8899; font-size: 11px; }
.unread-dot { width: 9px; height: 9px; margin: 8px auto 0; background: var(--orange); border-radius: 50%; }
.conversation-detail { min-width: 0; display: flex; flex-direction: column; }
.contact-head { min-height: 78px; padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.contact-head .avatar { margin: 0; }
.contact-head h2 { margin: 0; font-size: 18px; }
.contact-head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.contact-head .tag { margin-left: auto; }
.message-stream { flex: 1; padding: 24px; overflow: auto; background: linear-gradient(#fff, #fbfcfe); }
.message { max-width: 72%; margin-bottom: 14px; }
.message.customer { margin-right: auto; }
.message.business { margin-left: auto; }
.bubble { padding: 12px 15px; border-radius: 17px; background: #edf2f7; line-height: 1.45; }
.business .bubble { color: #fff; background: var(--navy-800); }
.message-meta { margin: 5px 5px 0; color: #8390a1; font-size: 11px; }
.business .message-meta { text-align: right; }
.attachment-block { margin: 10px 0 17px; }
.attachment-label { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.photo-button { position: relative; padding: 0; border: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: #e8edf2; cursor: zoom-in; }
.photo-button img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.photo-button:hover img { transform: scale(1.035); }
.photo-demo { position: absolute; left: 7px; bottom: 7px; padding: 4px 7px; border-radius: 7px; color: #fff; background: rgba(6,27,53,.82); font-size: 10px; font-weight: 800; }
.composer { padding: 13px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.composer input { min-width: 0; flex: 1; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #f7f9fb; color: #7a8797; }
.composer button { min-width: 94px; border: 0; border-radius: 12px; color: #fff; background: var(--navy-800); font-weight: 800; }
.demo-banner { margin-bottom: 16px; padding: 11px 14px; display: flex; align-items: center; gap: 9px; color: #6f4b05; background: var(--amber-soft); border: 1px solid #f0d999; border-radius: 12px; font-size: 13px; }

.people-list { display: grid; gap: 10px; padding: 16px; }
.people-row { padding: 14px; display: grid; grid-template-columns: 46px 1.2fr 1fr 1fr auto; align-items: center; gap: 14px; border: 1px solid #e8edf2; border-radius: 15px; }
.people-row .avatar { margin: 0; width: 42px; height: 42px; border-width: 2px; }
.money-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.money-card { padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.money-card span { color: var(--muted); }
.money-card strong { display: block; margin-top: 12px; font-size: 34px; }
.money-card small { color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 100; padding: 50px; display: grid; place-items: center; background: rgba(3,15,30,.9); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1050px, 90vw); max-height: 78vh; border-radius: 18px; box-shadow: 0 24px 80px rgba(0,0,0,.4); }
.lightbox-close { position: absolute; top: 20px; right: 26px; width: 46px; height: 46px; border: 0; border-radius: 50%; color: white; background: rgba(255,255,255,.15); font-size: 30px; cursor: pointer; }
.lightbox-caption { color: #fff; text-align: center; margin-top: -20px; }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 1fr; padding-top: 72px; }
  .sidebar { position: fixed; inset: 72px auto 0 0; width: 260px; height: calc(100vh - 72px); transform: translateX(-100%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .mobile-header { position: fixed; inset: 0 0 auto; height: 72px; z-index: 30; padding: 8px 18px; display: flex; align-items: center; justify-content: space-between; background: var(--navy-950); }
  .mobile-header img { height: 55px; width: auto; }
  .mobile-header button { width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255,255,255,.12); color: #fff; }
  .conversation-layout { grid-template-columns: 300px 1fr; }
}

@media (max-width: 760px) {
  .main-content { padding: 24px 14px 60px; }
  .page-top { display: grid; }
  .filters { justify-content: flex-start; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .stage-shape { min-height: 102px; padding: 18px 30px; grid-template-columns: 54px 1fr auto; }
  .stage-icon { justify-self: center; }
  .stage-metric { min-width: 0; }
  .stage-number { font-size: 42px; }
  .stage-label { font-size: 18px; }
  .cost-pill { font-size: 12px; padding: 0 9px; }
  .avatar-cluster .avatar:nth-child(n+2) { display: none; }
  .drawer { width: 100%; }
  .drawer-grid { grid-template-columns: 1fr; }
  .drawer-summary { border-left: 0; border-top: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .record-row { grid-template-columns: 38px 1fr auto; }
  .record-row .record-meta { display: none; }
  .attention-grid, .money-grid { grid-template-columns: 1fr; }
  .conversation-layout { display: block; min-height: 0; }
  .conversation-list { border-right: 0; }
  .conversation-detail { min-height: 620px; }
  .conversation-item:not(.active) { display: none; }
  .message { max-width: 88%; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .people-row { grid-template-columns: 42px 1fr auto; }
  .people-row > :nth-child(3), .people-row > :nth-child(4) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
.verified-metrics { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:18px 0; }
.verified-metrics > div { background:#f5f8fb; padding:18px; border-radius:12px; min-width:0; }
.verified-metrics span,.verified-metrics small { display:block; color:#53677b; font-size:14px; line-height:1.5; }
.verified-metrics strong { display:block; font-size:27px; color:#102f4e; margin:6px 0; overflow-wrap:anywhere; }
.verified-drawer .data-note { font-size:14px; line-height:1.6; color:#53677b; }
.verified-drawer a {font-size:14px;color:#175b92;}
.verified-drawer summary {cursor:pointer;font-weight:600;padding:12px 0;}
@media(max-width:600px) { .verified-metrics {grid-template-columns:1fr;} .verified-drawer .drawer-head {align-items:flex-start;gap:12px;flex-direction:column;} }
.review-page h1 {font-size:clamp(28px,3vw,38px);}
.review-status {color:var(--muted);font-size:14px;margin:0 0 26px;}
.date-range {display:flex;align-items:end;gap:8px;flex-wrap:wrap;}
.date-range label {display:grid;gap:5px;font-size:14px;color:var(--muted);}
.date-range input {font:inherit;min-height:42px;padding:8px;border:1px solid var(--line);border-radius:10px;color:var(--ink);background:white;}
.simple-flow {max-width:760px;margin:0 auto;}
.simple-stage {width:100%;display:grid;grid-template-columns:66px 1fr auto 24px;align-items:center;gap:22px;padding:22px 28px;min-height:112px;border:1px solid transparent;border-radius:18px;background:var(--stage-bg);cursor:pointer;text-align:left;}
.simple-stage:hover {border-color:#a6b8ca;}
.simple-stage[aria-expanded=true] {border:2px solid var(--orange);}
.simple-stage[aria-expanded=true] .stage-chevron {transform:rotate(180deg);}
.simple-stage:focus-visible {outline:3px solid #266aa2;outline-offset:4px;}
.simple-stage strong {font-size:clamp(36px,5vw,52px);line-height:1.1;letter-spacing:-.04em;}
.simple-icon {display:grid;place-items:center;color:var(--navy-800);width:60px;height:60px;border-radius:50%;background:#ffffffba;}
.google-mark {font-size:38px;font-weight:850;color:#4285f4;}
.simple-title {font-size:22px;font-weight:750;}
.simple-title small {display:block;font-size:14px;font-weight:500;margin-bottom:4px;color:var(--muted);}
.flow-link {text-align:center;color:#90a2b4;height:24px;font-size:19px;}
.simple-detail {background:white;padding:24px;border:1px solid var(--line);border-radius:16px;margin-top:8px;line-height:1.6;}
.simple-detail h2 {font-size:20px;margin:0;}
.simple-detail p {color:var(--muted);font-size:16px;}
.simple-detail summary,.data-definition summary {cursor:pointer;padding:8px 0;font-weight:650;}
.data-definition {max-width:760px;margin:24px auto;color:var(--muted);font-size:14px;line-height:1.6;}
.empty-period {padding:35px;background:white;border:1px solid var(--line);border-radius:18px;line-height:1.6;}
.loading-panel{text-align:center;padding-block:52px}
.loading-spinner{display:inline-block;width:36px;height:36px;margin-bottom:12px;border:4px solid #dce3ed;border-top-color:var(--orange);border-radius:50%;animation:dashboard-spin .8s linear infinite}
@keyframes dashboard-spin{to{transform:rotate(360deg)}}
.marketing-loading{min-height:clamp(360px,55vh,620px);display:grid;place-items:center;align-content:center;gap:10px;padding:48px 28px;text-align:center;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 8px 28px rgba(19,47,82,.05)}
.marketing-loading-spinner{width:44px;height:44px;margin:0 0 8px;border-width:5px}
.marketing-loading h2{margin:0;font-size:clamp(27px,3vw,36px);line-height:1.1}
.marketing-loading p{margin:0;color:var(--muted);font-size:15px}
.loading-progress{width:min(360px,82%);height:6px;margin-top:14px;overflow:hidden;border-radius:999px;background:#e7edf4}
.loading-progress span{display:block;width:42%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--orange),#ff8a60);animation:dashboard-loading-progress 1.1s ease-in-out infinite}
@keyframes dashboard-loading-progress{0%{transform:translateX(-120%)}100%{transform:translateX(340%)}}
.read-only-footer {padding:20px;border-top:1px solid var(--line);color:var(--muted);font-size:16px;line-height:1.6;}
.conversation-search {display:grid;gap:10px;}
.conversation-item[hidden],#conversationEmpty[hidden] {display:none;}
#conversationEmpty {padding:18px;}
@media(max-width:650px) {.simple-stage {grid-template-columns:42px 1fr auto 18px;gap:10px;padding:18px 14px;min-height:100px;}.simple-icon {width:42px;height:42px;}.simple-title {font-size:18px;}.simple-icon svg {width:28px;}.simple-stage strong {font-size:34px;}.simple-detail {padding:18px;}.page-top {flex-direction:column;}.date-range input {max-width:145px;}}
@media(prefers-reduced-motion:reduce) {*,*::before,*::after {animation:none!important;transition:none!important;scroll-behavior:auto!important;}}
.number-with-rate {display:flex;align-items:center;justify-content:flex-end;gap:20px;flex-wrap:wrap;}
.stage-rate {display:grid;gap:5px;min-width:120px;padding-left:18px;border-left:1px solid #b7c7d5;}
.stage-rate b {font-size:24px;line-height:1.2;color:#16456f;}
.stage-rate small {font-size:14px;line-height:1.35;font-weight:500;color:#53677b;max-width:135px;}
.ratio-disclaimer {font-size:14px;line-height:1.5;color:var(--muted);margin:16px 0;}
.deeper-analytics {margin-top:24px;padding-top:20px;border-top:1px solid var(--line);}
.deeper-analytics h3 {font-size:18px;margin:0;}
.deeper-analytics details {border-top:1px solid var(--line);padding:8px 0;}
.analytics-table {overflow-x:auto;}
.analytics-table table {border-collapse:collapse;width:100%;font-size:14px;}
.analytics-table td,.analytics-table th {text-align:left;padding:12px 8px;border-bottom:1px solid var(--line);vertical-align:top;}
@media(max-width:900px) {.number-with-rate {gap:10px;}.stage-rate {min-width:100px;padding-left:10px;}.stage-rate b {font-size:21px;}}
@media(max-width:650px) {.number-with-rate {display:grid;gap:8px;text-align:right;}.stage-rate {border-left:0;padding-left:0;min-width:0;}.stage-rate small {max-width:105px;font-size:14px;}.stage-rate b {font-size:19px;}.simple-stage {grid-template-columns:36px minmax(0,1fr) auto 18px;}.simple-title {overflow-wrap:anywhere;}}
/* Compact blue funnel: widths show sequence, not proportional volume. */
.simple-flow {max-width:760px;}
.simple-stage {width:var(--funnel-width,100%);margin:0 auto;border:2px solid #6c8da9;background:var(--stage-bg);box-shadow:0 2px 4px rgba(16,47,78,.07);}
.simple-stage[data-stage=clicks] {--funnel-width:100%;}
.simple-stage[data-stage=leads] {--funnel-width:97%;}
.simple-stage[data-stage=estimates] {--funnel-width:94%;}
.simple-stage[data-stage=jobs] {--funnel-width:91%;}
.simple-stage:hover {border-color:#315e83;}
.simple-stage[aria-expanded=true] {border-color:#16456f;box-shadow:0 0 0 2px #16456f22;}
.simple-detail {border:2px solid #8aa3b9;}
.simple-flow .flow-link {color:#537590;}
.conversation-item>span {min-width:0;}
button,input,select {touch-action:manipulation;}
@media(max-width:760px) {
  .simple-stage[data-stage=leads] {--funnel-width:98%;}
  .simple-stage[data-stage=estimates] {--funnel-width:96%;}
  .simple-stage[data-stage=jobs] {--funnel-width:94%;}
  .date-range {width:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
  .date-range input {width:100%;max-width:none;min-width:0;font-size:16px;min-height:46px;}
  .date-range label {min-width:0;}
  .date-range button {grid-column:1 / -1;min-height:46px;}
  .filters {width:100%;}
  .simple-detail {padding:18px 14px;}
  .verified-metrics {grid-template-columns:1fr;}
  .simple-detail summary {min-height:44px;}
  .conversation-item:not(.active):not([hidden]) {display:grid;}
  .conversation-item {min-height:68px;}
  .conversation-item p {white-space:normal;overflow-wrap:anywhere;font-size:14px;}
  .conversation-item h3 {overflow-wrap:anywhere;}
  .conversation-search input,.conversation-search select {font-size:16px;min-width:0;width:100%;}
  .conversation-detail {min-height:0;}
  .contact-head {flex-wrap:wrap;}
  .contact-head>div {min-width:0;flex:1;}
  .message-stream {padding:18px 12px;}
  .message {max-width:95%;}
  .bubble {overflow-wrap:anywhere;}
  .photo-grid {grid-template-columns:1fr;}
  .lightbox {padding:70px 14px 30px;overflow:auto;}
  .lightbox img {max-width:100%;max-height:65dvh;object-fit:contain;}
  .lightbox-caption {margin:12px 0;line-height:1.5;}
}
/* Local Handyman 2026: bold display typography, quiet working surfaces. */
.sidebar {background:var(--navy-950);}
.brand-wrap {background:#fff;border-radius:10px;padding:8px 16px 16px;margin-bottom:24px;justify-items:center;}
.brand-logo {width:160px;filter:none;}
.demo-chip {color:var(--ink);background:#fff;border-color:var(--ink);}
.nav-item {font-weight:600;}
.nav-item.active {background:#fff;color:var(--ink);box-shadow:inset 5px 0 var(--orange);}
.nav-item:focus-visible {outline:2px solid var(--orange);outline-offset:3px;}
h1,h2,h3,.simple-title {font-family:Khand,"Arial Narrow",sans-serif;font-weight:700;letter-spacing:0;}
.review-page h1,h1 {font-size:clamp(32px,3.5vw,42px);line-height:1.1;}
.page-top h1::after {content:"";display:block;width:56px;height:5px;margin-top:10px;background:var(--orange);}
.simple-stage {background:#fff;border:2px solid var(--ink);border-radius:12px;box-shadow:4px 4px 0 var(--ink);gap:18px;padding:20px 24px;}
.simple-stage:hover {border-color:var(--ink);box-shadow:4px 4px 0 var(--orange);}
.simple-stage[aria-expanded=true] {background:var(--orange-soft);border-color:var(--orange);box-shadow:4px 4px 0 var(--ink);}
.simple-stage:focus-visible {outline:3px solid var(--ink);outline-offset:6px;}
.simple-title {font-size:28px;line-height:1.1;}
.simple-title small {font-family:Montserrat,sans-serif;font-size:14px;line-height:1.4;font-weight:500;}
.simple-icon {background:var(--orange-soft);border:2px solid var(--ink);border-radius:12px;box-shadow:inset 0 -4px var(--orange);}
.simple-stage strong {font-family:Khand,"Arial Narrow",sans-serif;font-size:52px;letter-spacing:0;font-weight:700;font-variant-numeric:tabular-nums;}
.stage-rate {border-left:2px solid var(--ink);}
.stage-rate b {color:var(--ink);font-weight:700;font-variant-numeric:tabular-nums;}
.stage-rate small {color:var(--muted);}
.flow-link {height:26px!important;line-height:26px;font-weight:700;}
.simple-detail {border:2px solid var(--ink);border-top:5px solid var(--orange);border-radius:12px;}
.simple-detail h2 {font-size:28px;}
.simple-detail h3 {font-size:24px;}
.verified-metrics>div {background:#fff;border:1px solid #9B9B9B;border-radius:8px;}
.verified-metrics strong,.verified-metrics span,.verified-metrics small {color:var(--ink);}
.text-button {background:var(--ink);color:#fff;border:2px solid var(--ink);font-weight:600;}
.text-button:hover {background:var(--ink);box-shadow:0 3px 0 var(--orange);}
.date-range input,.conversation-search input,.conversation-search select {border:1px solid var(--ink);color:var(--ink);}
.conversation-layout {border:2px solid var(--ink);border-radius:12px;}
.conversation-item.active {background:var(--orange-soft);box-shadow:inset 4px 0 var(--orange);}
.conversation-item .avatar {background:var(--orange-soft);color:var(--ink);}
.conversation-item h3,.contact-head h2 {font-family:Montserrat,sans-serif;font-weight:700;}
.conversation-item:focus-visible {outline:2px solid var(--ink);outline-offset:-3px;}
@media(max-width:980px) {
  .mobile-header {background:#fff;border-bottom:3px solid var(--orange);overflow:hidden;}
  .mobile-header img {width:150px;height:150px;max-width:none;object-fit:contain;flex-shrink:0;}
  .mobile-header button {background:var(--ink);flex-shrink:0;}
}
@media(max-width:650px) {
  .simple-stage {gap:10px;padding:18px 12px;box-shadow:3px 3px 0 var(--ink);}
  .simple-title {font-size:23px;}
  .simple-stage strong {font-size:40px;}
  .stage-rate {border-left:0;}
  .simple-stage .number-with-rate {max-width:130px;}
  .simple-icon {border-radius:10px;}
  .simple-detail h2 {font-size:25px;}
}
/* Portal navigation and mobile intake cleanup. */
.content-shell {min-width:0;}
.location-header {padding:20px clamp(24px,4vw,64px);background:#fff;border-bottom:2px solid var(--ink);display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 16px;}
.location-header>span,.mobile-location>span {display:block;font-size:14px;font-weight:600;}
.location-header strong {font-family:Khand,sans-serif;font-size:30px;line-height:1.15;}
.location-header small {font-size:14px;color:var(--muted);}
.access-preview-bar{margin:16px clamp(24px,4vw,64px) 0;padding:14px 16px;border:1px solid #b9c9dc;border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:space-between;gap:18px;box-shadow:0 8px 24px rgba(12,34,60,.06)}
.access-preview-bar[hidden]{display:none}
.access-preview-bar.is-previewing{border-color:#f4a487;background:#fff7f3;box-shadow:inset 4px 0 var(--orange),0 8px 24px rgba(12,34,60,.06)}
.access-preview-bar>div{display:grid;gap:2px;min-width:0}
.access-preview-bar strong,.access-preview-bar small{display:block}
.access-preview-bar strong{font-size:15px}
.access-preview-bar small{color:var(--muted);font-size:12px;line-height:1.35}
.access-preview-kicker{color:var(--orange-dark);font-size:10px;font-weight:850;letter-spacing:.11em;text-transform:uppercase}
.access-preview-bar label{display:grid;gap:4px;min-width:min(420px,42vw)}
.access-preview-bar label span{font-size:11px;font-weight:800;color:var(--muted)}
.access-preview-bar select{width:100%;min-height:40px;padding:0 34px 0 12px;border:1px solid #b9c9dc;border-radius:10px;background:#fff;color:var(--ink);font-weight:700}
.access-preview-bar button{min-height:40px;padding:0 14px;border:1px solid var(--orange);border-radius:10px;background:#fff;color:var(--orange-dark);font-weight:800;cursor:pointer;white-space:nowrap}
.sidebar {overflow-y:auto;}
.brand-wrap {flex-shrink:0;padding:12px 16px;margin-bottom:18px;}
.brand-logo {display:block;width:160px;height:160px;object-fit:contain;max-width:100%;}
.portal-guide {margin-top:24px;padding:16px 8px;font-size:14px;line-height:1.5;border-top:1px solid #ffffff66;}
.portal-guide summary {cursor:pointer;font-weight:600;min-height:44px;}
.portal-guide ol {padding-left:20px;}
.sidebar-foot {padding-top:16px;}
.mode-switch {display:flex;flex-wrap:wrap;gap:6px;padding:4px;border:2px solid var(--ink);border-radius:12px;width:fit-content;margin-bottom:20px;background:#fff;}
.mode-switch button {border:0;border-radius:7px;background:#fff;padding:12px 24px;font-weight:600;cursor:pointer;min-height:44px;}
.mode-switch button[aria-pressed=true] {background:var(--ink);color:#fff;box-shadow:inset 0 -4px var(--orange);}
.date-range {max-width:100%;}
.date-range label {min-width:0;}
.date-range input {box-sizing:border-box;min-width:0;max-width:100%;min-inline-size:0;}
.date-range input::-webkit-date-and-time-value {min-width:0;text-align:left;}
.simple-icon {line-height:1;overflow:hidden;}
.simple-icon svg {display:block;width:30px;height:30px;flex-shrink:0;}
.topic-section {padding:18px 0;}
.topic-section h2 {margin:0 0 12px;font-size:26px;}
.topic-section p {font-size:14px;line-height:1.6;}
.topic-chips {display:flex;flex-wrap:wrap;gap:10px;}
.topic-chips button {border:2px solid var(--ink);border-radius:30px;background:#fff;padding:10px 16px;min-height:44px;color:var(--ink);cursor:pointer;}
.topic-chips button[aria-pressed=true] {background:var(--orange-soft);}
.records-page .conversation-search {padding:16px 0;grid-template-columns:minmax(0,1fr) auto;}
.record-library {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px;}
.record-library .conversation-item {border:2px solid var(--ink);border-radius:12px;background:#fff;grid-template-columns:36px minmax(0,1fr);padding:16px;gap:12px;}
.record-library .conversation-item.active {background:var(--orange-soft);box-shadow:0 3px 0 var(--orange);}
.record-library .conversation-item>span:last-child {display:none;}
.record-library .conversation-item p {white-space:normal;line-height:1.5;overflow-wrap:anywhere;}
.record-library .conversation-item small {display:block;font-size:14px;margin-top:12px;}
.record-library .avatar {width:34px;height:34px;}
.intake-record {border:2px solid var(--ink);border-radius:12px;background:#fff;padding:24px;}
.intake-record[hidden],.record-library .conversation-item[hidden] {display:none;}
.intake-record h2 {font-size:30px;margin:8px 0;}
.intake-record h3 {font-size:24px;margin:20px 0 10px;}
.intake-record p {line-height:1.6;}
.intake-record .photo-grid {grid-template-columns:repeat(auto-fit,minmax(180px,280px));}
.transcript {margin-top:24px;border-top:1px solid var(--ink);}
.transcript summary {cursor:pointer;padding:18px 0;font-weight:600;}
.transcript ol {padding-left:24px;}
.transcript li {padding:14px 0;border-bottom:1px solid #ddd;}
.transcript li p {margin:8px 0 0;}
@media(max-width:1100px) {.record-library {grid-template-columns:1fr;}.page-top {flex-wrap:wrap;}}
@media(max-width:980px) {
  .location-header {display:none;}
  .mobile-header {overflow:visible;gap:16px;}
  .mobile-location {min-width:0;}
  .mobile-location strong {display:block;font-family:Khand,sans-serif;font-size:26px;line-height:1.1;overflow-wrap:anywhere;}
  .brand-logo {height:160px;}
}
@media(max-width:760px) {
  .date-range {display:grid;grid-template-columns:minmax(0,1fr);gap:14px;width:100%;}
  .date-range input {display:block;width:100%;max-width:100%;min-width:0;appearance:none;-webkit-appearance:none;min-height:48px;}
  .date-range button {grid-column:1;min-height:48px;}
  .page-top>.filters,.page-top>div {min-width:0;width:100%;}
  .records-page .conversation-search {grid-template-columns:minmax(0,1fr);}
  .intake-record {padding:18px 14px;}
  .intake-record .photo-grid {grid-template-columns:minmax(0,1fr);}
  .simple-stage {grid-template-columns:38px minmax(0,1fr) auto 16px;gap:10px;}
  .simple-title {overflow-wrap:anywhere;}
}

/* Stage-focused reporting and the official top-header logo. */
.location-header {align-items:center;padding-top:20px;padding-bottom:20px;}
.investment-card {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 24px;margin:0 0 24px;padding:20px 24px;background:var(--ink);color:#fff;border-radius:12px;border-top:5px solid var(--orange);}
.investment-card .eyebrow {color:#fff;font-size:14px;}
.investment-card h2 {font-size:28px;margin:0;}
.investment-values {display:grid;gap:8px;align-content:center;font-variant-numeric:tabular-nums;}
.investment-values strong {font-size:22px;line-height:1.3;}
.investment-card p {grid-column:1/-1;margin:0;font-size:14px;line-height:1.5;}
.simple-detail .verified-metrics {margin:16px 0;}
.simple-detail .stage-note,.simple-detail .small-metrics p {font-size:14px;line-height:1.6;}
.stage-investment {border-bottom:1px solid #9B9B9B;padding-bottom:12px;}
.small-metrics {border-top:1px solid #9B9B9B;}
.lead-breakdown {list-style:none;padding:0;margin:12px 0;}
.lead-breakdown li {display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #ddd;}
.lead-breakdown strong {white-space:nowrap;font-size:22px;}
.lead-breakdown small {font-size:14px;font-weight:500;margin-left:8px;}
@media(max-width:980px) {
 .mobile-header {height:150px;padding:0 14px;gap:12px;overflow:visible;}
 .mobile-header .header-logo {display:block;width:150px;height:150px;object-fit:contain;flex:0 0 150px;}
 .mobile-location {flex:1;}
 .mobile-location strong {font-size:23px;}
 .app-shell {padding-top:150px;}
 .sidebar {top:150px;height:calc(100dvh - 150px);}
}
@media(max-width:650px) {
 .investment-card {grid-template-columns:minmax(0,1fr);padding:18px;}
 .investment-values strong {font-size:21px;}
 .lead-breakdown li {align-items:flex-start;}
}
:root .region-switch{display:flex;gap:8px;margin:12px 0 8px;max-width:330px}
.region-switch button{flex:1;min-height:44px;border:2px solid #1c2b4a;border-radius:10px;background:#fff;color:#1c2b4a;font:inherit;font-weight:700;cursor:pointer}
.region-switch button[aria-pressed="true"]{background:#1c2b4a;color:#fff}
.region-switch button:focus-visible{outline:3px solid #f04e23;outline-offset:3px}
.region-caption{font-size:14px;margin:0 0 20px;color:#1c2b4a}
.fx-note{grid-column:1/-1;font-size:13px}
.fx-note a{color:inherit;text-decoration:underline}
.fx-note summary{cursor:pointer;min-height:32px}
.country-stage{background:white;border:2px solid #1c2b4a;border-radius:16px;margin:16px auto;padding:20px;width:100%;box-sizing:border-box}
.country-stage:nth-of-type(3){width:97%}.country-stage:nth-of-type(4){width:94%}.country-stage:nth-of-type(5){width:91%}
.country-stage summary{cursor:pointer;font-weight:700;font-size:24px;min-height:44px}.country-stage summary span{float:right}
/* September review: linear metrics and read-only record browsing. */
.simple-detail .verified-metrics{display:flex;flex-direction:column;gap:0}
.simple-detail .verified-metrics>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 20px;border:0;border-bottom:1px solid #ccd1db;border-radius:0;background:transparent;padding:18px 0}
.simple-detail .verified-metrics small{grid-column:1/-1;line-height:1.5}
.open-estimates{border-top:2px solid #1c2b4a;margin-top:24px;padding-top:20px}
.report-toolbar{background:#fff;padding:16px clamp(24px,4vw,64px);border-bottom:1px solid #ccd1db;display:flex;justify-content:flex-end}
.report-toolbar:empty{display:none}
.source-switch{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0 24px}
.source-switch button{min-height:44px;padding:10px 16px;border:2px solid #1c2b4a;border-radius:10px;background:#fff;color:#1c2b4a;font:inherit;cursor:pointer}
.source-switch button[aria-pressed=true]{background:#1c2b4a;color:#fff}
.records-split{display:grid;grid-template-columns:minmax(230px,1fr) minmax(0,2fr);gap:24px;align-items:start}
.records-split .record-library{display:flex;flex-direction:column;overflow:visible}
.record-list-panel{max-height:75vh;overflow-y:auto}
.records-split .intake-record{margin-top:0;min-width:0}
.review-card{border:2px solid #1c2b4a;border-radius:16px;background:white;padding:24px;margin:16px 0}
.review-card[hidden]{display:none}
@media(max-width:760px){.report-toolbar{padding:16px}.report-toolbar .date-range{width:100%}.records-split{grid-template-columns:1fr}.record-list-panel{max-height:320px}.simple-detail .verified-metrics>div{grid-template-columns:minmax(0,1fr)}.simple-detail .verified-metrics small{grid-column:auto}}
/* Compact reporting controls within the location header. */
.location-header .report-toolbar{padding:0;border:0;margin-left:auto;background:transparent}
.location-header>small{display:none}
.compact-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:20px}
.compact-controls .mode-switch{margin:0}
.channel-definition{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;margin:-4px 0 14px;padding:12px 14px;border-left:3px solid var(--orange);border-radius:0 10px 10px 0;background:#f5f7fa;color:var(--ink);font-size:12px;line-height:1.55}
.channel-definition>div{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px}.channel-definition strong{white-space:nowrap}.channel-definition details{min-width:max-content}.channel-definition summary{cursor:pointer;font-weight:700}.channel-definition dl{position:absolute;z-index:8;right:24px;width:min(540px,calc(100vw - 48px));margin:10px 0 0;padding:14px;background:#fff;border:1px solid #cbd4df;border-radius:10px;box-shadow:0 14px 30px #1c2b4a24}.channel-definition dl>div{display:grid;grid-template-columns:90px minmax(0,1fr);gap:10px;padding:8px 0;border-top:1px solid #e3e8ef}.channel-definition dl>div:first-child{border-top:0}.channel-definition dt{font-weight:800}.channel-definition dd{margin:0;color:#596579}
.compact-filter{display:grid;gap:4px;font-size:12px;font-weight:600;color:var(--ink)}
.compact-filter select{font:inherit;font-size:14px;color:var(--ink);background:#fff;border:1px solid var(--ink);border-radius:9px;padding:10px;min-height:44px;max-width:100%}
.simple-detail .verified-metrics>div{padding:10px 0;gap:2px 16px}
.simple-detail .verified-metrics>div>span{font-size:18px;font-weight:700}
.simple-detail .verified-metrics strong{font-size:28px;margin:0}
.simple-detail .verified-metrics small{font-size:12px;line-height:1.35}
@media(max-width:760px){.location-header{display:flex;flex-direction:column;align-items:stretch;padding:12px 16px;gap:0}.location-header>strong{display:none}.location-header .report-toolbar{margin:0}.location-header .date-range{grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;gap:8px}.location-header .date-range button{grid-column:auto}.location-header .date-range input{font-size:14px;padding:6px}.compact-controls{gap:10px}.compact-controls .mode-switch{width:100%}.compact-filter{flex:1;min-width:0}.simple-detail .verified-metrics>div>span{font-size:17px}}
.sidebar .brand-wrap{background:radial-gradient(ellipse at 50% 40%,#455f83 0%,#293e60 50%,#1c2b4a 100%);border:1px solid rgba(255,255,255,.08)}
.open-estimates{border-top:1px solid #ccd1db;padding-top:14px;margin-top:14px}
.account-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px 0}.account-action small{font-size:12px;color:var(--muted)}
.records-split .record-library{gap:0;border-top:1px solid #ccd1db}
.records-split .record-library .conversation-item{border:0;border-bottom:1px solid #ccd1db;border-radius:0;padding:14px 10px;box-shadow:none}
.records-split .record-library .conversation-item>span:last-child{display:block}
.conversation-item time{display:block;font-size:12px;margin-top:4px}
.account-action{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:18px 0 0}
.account-action .account-link{color:#1769c2;font-size:14px;font-weight:600;text-decoration:underline;text-underline-offset:3px;background:none;border:0;padding:4px 0}
.account-action .account-link:hover{color:#104a88}
.account-action .account-link:focus-visible{outline:2px solid #1769c2;outline-offset:4px}
.review-card .review-stars{color:#f5b900;font-size:23px;letter-spacing:2px}
[data-location-select]{max-width:100%;min-width:0;font:700 22px Khand,sans-serif;color:#1c2b4a;background:#fff;border:1px solid #9aa7ba;border-radius:8px;padding:8px 12px;min-height:44px}
.compact-filter[hidden]{display:none}
.mobile-location{min-width:0}
@media(max-width:760px){.location-header>[data-location-select]{display:none}.mobile-location [data-location-select]{font-size:16px;width:100%;padding:6px}}
.investment-card{background:#fff3e9;color:#1c2b4a;border:2px solid #f04e23;border-left:8px solid #f04e23;box-shadow:0 5px 0 #f6d4c3;grid-template-columns:minmax(0,1fr);gap:8px;padding:24px 28px}
.investment-card .eyebrow{color:#914021}
.investment-card h2{font-size:25px}
.investment-card .investment-values strong{font-family:Khand,sans-serif;font-weight:700;font-size:clamp(40px,5vw,64px);line-height:1.05;color:#1c2b4a;overflow-wrap:anywhere}
.investment-card .investment-values{padding:6px 0}
@media(max-width:760px){.investment-card{padding:20px}.investment-card .investment-values strong{font-size:44px}}
.reporting-basis{margin-top:40px;padding-top:12px}
.date-controls{display:flex;align-items:end;gap:12px;flex-wrap:wrap}
.date-controls .compact-filter{min-width:170px}
.charlotte-view-control{display:grid;gap:4px;margin:0;padding:0;border:0;min-width:0}
.charlotte-view-control legend{padding:0;font-size:12px;font-weight:600;color:var(--ink)}
.charlotte-view-toggle{display:flex;align-items:center;padding:3px;border:1px solid var(--ink);border-radius:10px;background:#fff}
.charlotte-view-toggle button{min-height:38px;padding:7px 14px;border:0;border-radius:7px;background:transparent;color:var(--ink);font:700 14px Montserrat,sans-serif;cursor:pointer;white-space:nowrap}
.charlotte-view-toggle button[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:inset 0 -3px 0 var(--orange)}
.charlotte-view-toggle button:not([aria-pressed=true]):hover{background:#eef3f8;color:var(--ink)}
.charlotte-view-toggle button:focus-visible{outline:3px solid var(--orange);outline-offset:2px}
.charlotte-view-toggle button:disabled{opacity:.42;cursor:not-allowed}
.charlotte-source-note{margin-top:18px;padding:12px 14px;border-radius:10px;background:#eef3f8;color:var(--ink)!important}
@media(max-width:760px){.date-controls{width:100%;display:grid;grid-template-columns:minmax(0,1fr)}.date-controls .compact-filter{width:100%}.date-controls .date-range{width:100%}.charlotte-view-control{width:100%}.charlotte-view-toggle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.charlotte-view-toggle button{padding-inline:6px}}
/* Compact phone layout, including missing-data states. */
.investment-card.investment-unavailable .investment-values strong,.investment-card.investment-not-applicable .investment-values strong{font-family:Montserrat,sans-serif;font-size:22px}
.investment-card.investment-not-applicable{background:#f5f7fa;border-color:#8a97a8;box-shadow:0 5px 0 #dfe4ea}
.investment-card.investment-not-applicable .eyebrow{color:#596579}
.revenue-report-action>strong{font-size:13px}
.revenue-report-links{display:flex;flex-wrap:wrap;gap:10px 18px}
.revenue-report-links .account-link{white-space:nowrap}
@media(max-width:980px){
 .mobile-header{height:92px;padding:0 12px;gap:10px}
 .mobile-header .header-logo{width:90px;height:90px;flex:0 0 90px}
 .mobile-header button{width:44px;height:44px;border-radius:10px}
 .app-shell{padding-top:92px}
 .sidebar{top:92px;height:calc(100dvh - 92px)}
 .location-header{display:flex;padding:10px 14px;align-items:stretch}
 .location-header>[data-location-select]{display:none}
 .location-header .report-toolbar{width:100%;margin:0}
 .mobile-location [data-location-select]{font-size:16px;width:100%;padding:6px}
}
@media(max-width:760px){
 .main-content{padding:20px 14px 32px}
 .page-top{margin-bottom:16px;gap:8px}
 .page-top h1{font-size:30px;line-height:1.1}
 .compact-controls{gap:8px;margin-bottom:12px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .compact-controls .mode-switch{grid-column:1/-1;padding:3px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%}
 .compact-controls .mode-switch button{min-height:44px;padding:8px 6px;font-size:14px}
 .compact-filter select{font-size:16px;padding:8px;min-width:0;width:100%}
 .review-status{font-size:12px;line-height:1.4;margin:10px 0 16px}
 .investment-card{padding:16px;margin-bottom:18px;gap:4px}
 .investment-card .eyebrow{font-size:11px;letter-spacing:1px}
 .investment-card h2{font-size:22px}
 .investment-card p{font-size:12px}
 .investment-card .investment-values strong{font-size:40px}
 .simple-stage{padding:14px 12px;min-height:104px;grid-template-columns:34px minmax(0,1fr) minmax(80px,auto) 16px;gap:8px;width:100%!important;box-sizing:border-box}
 .simple-icon{width:32px;height:32px;border-radius:8px}.simple-icon svg{width:22px;height:22px}
 .simple-title{font-size:20px;overflow-wrap:anywhere}
 .simple-stage .number-with-rate>strong{font-size:32px;line-height:1.1}
 .stage-rate b{font-size:20px}.stage-rate small{font-size:11px;line-height:1.3;max-width:115px}
 .simple-detail{padding:14px}.simple-detail h2{font-size:24px}
 .simple-detail .verified-metrics>div{grid-template-columns:minmax(0,1fr) auto;gap:3px 10px}
 .simple-detail .verified-metrics>div>span{font-size:15px}
 .simple-detail .verified-metrics strong{font-size:23px}
 .simple-detail .verified-metrics small{grid-column:1/-1;font-size:12px}
 .location-header .date-range{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
 .location-header .date-range button{grid-column:1/-1}.location-header .date-range input{font-size:16px}
 .reporting-basis{margin-top:30px}
}
@media(max-width:980px){
 .location-header:has(.report-toolbar:empty){display:none}
 .mobile-report-filters{margin:0 0 14px;color:var(--ink)}
 .mobile-report-filters>summary{cursor:pointer;font-size:14px;font-weight:600;min-height:44px;display:flex;align-items:center;gap:8px;list-style:none}
 .mobile-report-filters>summary::-webkit-details-marker{display:none}
 .mobile-report-filters>summary::after{content:'⌄'}
 .mobile-report-filters[open]>summary::after{content:'⌃'}
 .mobile-filter-body{padding:14px;background:#fff;border:1px solid #bac4d1;border-radius:12px;display:grid;gap:14px}
 .mobile-filter-body .compact-controls{margin:0}
 .mobile-filter-body .date-controls,.mobile-filter-body .date-controls>.compact-filter{width:100%}
 .mobile-report-filters~.review-status{display:none}
 .review-page .page-top{margin-bottom:0}
}
/* Keep mobile funnel summaries focused on their totals. */
@media(max-width:980px){
 .simple-stage .stage-rate{display:none}
 .simple-stage{grid-template-columns:34px minmax(0,1fr) minmax(70px,auto) 36px!important}
 .simple-stage .stage-chevron{display:flex;align-items:center;justify-content:center;width:36px;height:36px;background:#edf2f8;border-radius:50%;color:#1c2b4a}
 .simple-stage .stage-chevron svg{width:28px;height:28px}
}


/* Overview: one location-aware snapshot container; existing report layouts remain scoped. */
.overview-page {max-width:1180px}
.overview-container {border:2px solid var(--ink);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 14px 40px #1c2b4a12}
.overview-hero {position:relative;isolation:isolate;min-height:270px;display:flex;align-items:center;background:linear-gradient(120deg,#1c2b4a,#365675);color:white;overflow:hidden}
.overview-scenery {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;z-index:-2}
.overview-scenery[hidden] {display:none}
.overview-hero::after {content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(17,31,53,.88),rgba(17,31,53,.52) 60%,rgba(17,31,53,.12));z-index:-1}
.overview-hero-copy {padding:38px 40px;max-width:680px}
.overview-eyebrow {margin:0 0 10px;color:#fff;font-size:11px;letter-spacing:.19em;font-weight:700}
.overview-hero h1 {color:#fff;font-family:Khand,sans-serif;font-size:64px;line-height:.95;letter-spacing:.01em;margin:0}
.overview-location {font-family:Khand,sans-serif;font-size:32px;margin:12px 0 4px;line-height:1.15}
.overview-hero-note {font-size:12px;line-height:1.6;color:#edf2f8}
.overview-body {padding:30px 36px 20px;border-top:5px solid var(--orange)}
.overview-location-prompt {margin:0 0 24px;font-size:13px;line-height:1.6;padding:12px 16px;background:#f1f4f8;border-left:3px solid var(--orange)}
.overview-period-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:20px}
.overview-section-kicker {color:var(--orange);font-size:10px;letter-spacing:.15em;font-weight:800;margin:0 0 4px}
.overview-period-heading h2 {display:flex;align-items:center;gap:8px;font-family:Khand,sans-serif;font-size:32px;line-height:1.1;margin:0;text-transform:none}
.overview-period-heading>p {font-size:12px;font-weight:650;text-align:right;margin:0;line-height:1.6}
.overview-period-heading small {display:block;color:#596579;font-size:10px;font-weight:500}
.overview-period-note{margin:14px 0 0;color:#68758a;font-size:10px;line-height:1.6}
.overview-metrics {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0}
.overview-metric {padding:0 20px;border-left:1px solid #dce3ed;min-width:0}
.overview-metric:first-child {padding-left:0;border-left:0}
.overview-metric-label {display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;line-height:1.5}
.overview-metric-label svg {flex:0 0 auto;color:#65758b}
.overview-metric strong {display:block;font-family:Khand,sans-serif;font-size:48px;line-height:1.2;margin-top:10px;font-weight:600;color:#667589}
.metric-trend{display:inline-flex;align-items:center;gap:4px;margin-top:5px;padding:3px 7px;border-radius:999px;background:#eef2f6;color:#596579;font-size:9px;font-weight:750;line-height:1.3}.metric-trend.is-up{background:#e6f4eb;color:#22683f}.metric-trend.is-down{background:#fff0eb;color:#a43b22}.metric-trend.is-neutral{background:#eef2f6;color:#596579}.metric-trend>span{font-size:12px;line-height:1}
.overview-activity-note{margin:12px 0 0;padding:10px 12px;border-radius:8px;background:#f5f7fa;color:#596579;font-size:10px;line-height:1.6}.overview-activity-note strong{color:var(--ink)}
.overview-today {padding:22px 24px;margin:26px -12px 0;border:1px solid #dce3ed;border-radius:12px;background:#f5f7fa}
.overview-today .overview-period-heading {margin-bottom:18px}
.overview-today h2 {font-size:27px}
.overview-today .overview-metric strong {font-size:36px;margin-top:6px}
.overview-footer {display:flex;justify-content:space-between;align-items:center;gap:20px;padding:26px 0 24px}
.overview-footer strong {font-size:14px}
.overview-footer p {font-size:12px;line-height:1.6;margin:6px 0 0;color:#596579}
.overview-more {display:flex;align-items:center;gap:28px;background:var(--orange);color:#fff;border:2px solid var(--ink);border-radius:8px;padding:12px 20px;min-height:48px;white-space:nowrap;font-size:13px;font-weight:750;cursor:pointer}
.overview-more:hover {background:#d63d15}
.overview-more:focus-visible,.overview-reporting summary:focus-visible {outline:3px solid #287ad5;outline-offset:4px}
.overview-more>span[aria-hidden] {font-size:22px;line-height:1}
.overview-reporting {border-top:1px solid #e3e8ef;padding-top:14px;font-size:11px;color:#596579;line-height:1.7}
.overview-reporting summary {cursor:pointer;padding:3px 0;min-height:28px}
.overview-reporting p {max-width:850px}
.overview-sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:1100px){.overview-body{padding:26px 24px 18px}.overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:22px}.overview-metric{padding:0 12px}.overview-metric:nth-child(4){border-left:0;padding-left:0}.overview-metric-label{display:block}.overview-metric-label svg{display:block;margin-bottom:6px}}
@media(max-width:600px){
 .overview-container{border-radius:14px}.overview-hero{min-height:238px}.overview-hero-copy{padding:28px 22px}.overview-hero h1{font-size:52px}.overview-location{font-size:30px}.overview-hero-note{font-size:11px}
 .overview-body{padding:22px 18px 14px}.overview-period-heading{align-items:flex-start;gap:10px}.overview-period-heading h2{font-size:28px}.overview-period-heading>p{font-size:10px;max-width:135px}.overview-section-kicker{font-size:9px}
 .overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:18px}.overview-metric{padding:0 12px}.overview-metric:nth-child(odd){border-left:0;padding-left:0}.overview-metric-label{display:flex;font-size:11px;gap:6px}.overview-metric-label svg{display:inline-flex;margin:0;width:17px;height:17px}.overview-metric strong{font-size:42px;margin-top:4px}
 .overview-today{margin:22px -6px 0;padding:18px 14px}.overview-footer{align-items:stretch;flex-direction:column;gap:16px;padding:22px 0}.overview-more{justify-content:space-between;width:100%}.overview-reporting{font-size:10px}
}

.communication-guardrail{margin:0 0 16px;padding:14px 16px;border:1px solid #b8c5d5;border-left:4px solid var(--ink);border-radius:10px;background:#f5f7fa;color:var(--ink)}
.communication-guardrail strong{display:block;margin-bottom:4px;font-size:13px}.communication-guardrail p{margin:0;color:#596579;font-size:12px;line-height:1.65}
@media(max-width:760px){.channel-definition{grid-template-columns:1fr;font-size:11px}.channel-definition>div{grid-template-columns:1fr;gap:3px}.channel-definition details{min-width:0}.channel-definition dl{position:static;width:auto;margin-top:10px;box-shadow:none}.channel-definition dl>div{grid-template-columns:1fr;gap:2px}}

/* Peer comparison is scoped to the Overview insert. */
.compare-insert,.compare-prompt{margin-top:24px;border:2px solid var(--ink);border-radius:12px;background:#fff;overflow:hidden}
.compare-insert>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;cursor:pointer}
.compare-insert>summary::-webkit-details-marker{display:none}
.compare-insert>summary strong,.compare-prompt strong{display:block;font-family:Khand,sans-serif;font-size:28px;line-height:1.15}
.compare-insert>summary small{display:block;margin-top:6px;color:#596579;font-size:11px;line-height:1.6}
.compare-chevron{display:flex;flex-shrink:0;transition:transform .15s}
.compare-insert[open] .compare-chevron{transform:rotate(180deg)}
.compare-insert>summary:focus-visible{outline:3px solid #287ad5;outline-offset:-5px}
.compare-content{padding:0 22px 20px;border-top:1px solid #dce3ed}
.compare-period{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;font-size:11px;color:#596579;line-height:1.6;margin:18px 0}
.compare-period>span{color:var(--ink);font-weight:650;background:#f0f3f7;border-radius:4px;padding:2px 7px}
.compare-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.compare-metric{border:1px solid #dce3ed;padding:20px;border-radius:10px;min-width:0}
.compare-metric h3{font-family:Khand,sans-serif;font-size:26px;margin:0 0 18px}
.compare-formula{display:flex;align-items:baseline;flex-wrap:wrap;gap:5px;margin:-5px 0 18px;padding:10px 12px;border-left:3px solid var(--orange);background:#f5f7fa;color:#596579;font-size:11px;line-height:1.6}
.compare-formula strong{color:var(--ink);font-size:13px;white-space:nowrap}
.compare-bars{display:grid;gap:14px}
.compare-row-label{display:flex;justify-content:space-between;align-items:baseline;gap:8px;font-size:12px;line-height:1.5;margin-bottom:6px}
.compare-row-label strong{white-space:nowrap}.compare-row.you .compare-row-label{font-weight:750}
.compare-track{height:17px;border-radius:4px;background:#f0f3f7;overflow:hidden}
.compare-track>span{display:block;height:100%;border-radius:4px;background:#a3afbf}
.compare-row.you .compare-track>span{background:var(--orange)}
.compare-row.top .compare-track>span{background:var(--ink)}
.compare-difference{font-size:11px;color:#596579;line-height:1.6;margin:18px 0 0}
.compare-basis{font-size:11px;color:#596579;line-height:1.7;margin-top:20px}
.compare-basis>summary{cursor:pointer;min-height:30px;padding:5px 0}
.compare-prompt{padding:20px 22px;background:#f5f7fa}.compare-prompt p{font-size:12px;line-height:1.6;margin-bottom:0}
@media(max-width:700px){.compare-grid{grid-template-columns:1fr;gap:14px}.compare-content{padding:0 14px 16px}.compare-insert>summary{padding:18px 14px}.compare-insert>summary strong{font-size:26px}.compare-metric{padding:16px}.compare-row-label{font-size:11px}}

/* Equal prominence for spending and collected revenue, in every Marketing view. */
.customer-journey,.hcp-activity{max-width:860px;margin:28px auto 42px}
.customer-journey{padding:28px;border:2px solid var(--ink);border-top:7px solid var(--orange);border-radius:14px;background:#fff;box-shadow:6px 6px 0 #dfe6ef}
.customer-journey>header,.hcp-activity>header{margin-bottom:24px}
.customer-journey h2,.hcp-activity h2{font-size:34px;margin:4px 0 6px}
.customer-journey>header p,.hcp-activity>header p{margin:0;color:var(--muted);font-size:14px;line-height:1.65}
.customer-journey-unavailable{background:#f6f8fb;box-shadow:none}
.journey-flow{display:grid;grid-template-columns:1.15fr 1fr .86fr;align-items:center;gap:8px;min-height:226px;overflow:visible}
.journey-stage{--funnel-fill:#fff7f1;--funnel-shape:polygon(0 0,100% 8%,100% 92%,0 100%);position:relative;display:flex;min-width:0;filter:drop-shadow(0 5px 0 rgba(28,43,74,.13))}
.journey-stage::before,.journey-stage::after{content:"";position:absolute;inset:0;clip-path:var(--funnel-shape)}
.journey-stage::before{z-index:0;background:var(--ink)}
.journey-stage::after{z-index:1;inset:2px;background:var(--funnel-fill)}
.journey-stage-1{height:226px}
.journey-stage-2{--funnel-fill:#f7f9fc;--funnel-shape:polygon(0 0,100% 9%,100% 91%,0 100%);height:184px}
.journey-stage-3{--funnel-fill:#edf4f0;--funnel-shape:polygon(0 0,100% 10%,100% 90%,0 100%);height:142px}
.journey-stage-inner{position:relative;z-index:2;display:flex;align-items:center;gap:13px;width:100%;min-width:0;padding:26px 24px 26px 20px}
.journey-stage-2 .journey-stage-inner,.journey-stage-3 .journey-stage-inner{padding-left:22px}
.journey-icon{display:flex;align-items:center;justify-content:center;flex:0 0 46px;width:46px;height:46px;border:2px solid var(--ink);border-radius:11px;background:#fff;box-shadow:inset 0 -4px var(--orange)}
.journey-stage-copy{display:grid;min-width:0}
.journey-stage strong{font-family:Khand,"Arial Narrow",sans-serif;font-size:42px;line-height:1;font-variant-numeric:tabular-nums}
.journey-stage b{font-size:14px;line-height:1.35}
.journey-stage small{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.45}
.journey-stage-3 .journey-stage-inner{gap:10px;padding-left:18px;padding-right:16px}
.journey-stage-3 .journey-icon{flex-basis:42px;width:42px;height:42px}
.journey-stage-3 strong{font-size:38px}
.journey-stage-3 b{font-size:13px}
.journey-stage-3 small{margin-top:5px;font-size:10px}
.journey-summary{display:flex;align-items:baseline;justify-content:center;gap:10px;margin:20px 0 0;padding:14px;border-radius:10px;background:#1c2b4a;color:#fff;text-align:center}
.journey-summary strong{font-family:Khand,"Arial Narrow",sans-serif;font-size:30px}
.journey-summary span{font-size:12px;line-height:1.5}
.direct-activity,.journey-basis{margin-top:20px;border-top:1px solid #d9e1eb}
.direct-activity>summary,.journey-basis>summary{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 2px 8px;cursor:pointer;list-style:none}
.direct-activity>summary::-webkit-details-marker,.journey-basis>summary::-webkit-details-marker{display:none}
.direct-activity>summary strong{display:block;font-family:Khand,"Arial Narrow",sans-serif;font-size:26px}
.direct-activity>summary small{display:block;margin-top:2px;color:var(--muted);font-size:11px}
.direct-activity[open]>summary svg{transform:rotate(180deg)}
.direct-activity .verified-metrics{margin-top:12px}
.journey-basis{color:var(--muted);font-size:12px;line-height:1.7}
.hcp-activity{padding-top:0;margin-top:18px}
.hcp-activity>.simple-flow{max-width:980px}
.hcp-activity>.all-view-flow{max-width:980px}

/* Marketing trend: one metric and one scale at a time keeps money and volume
   honest while the selected range supplies the long-term snapshot. */
.marketing-trend{max-width:980px;margin:22px auto 34px;padding:26px 28px 20px;border:2px solid var(--ink);border-top:7px solid var(--orange);border-radius:16px;background:#fff;box-shadow:6px 6px 0 #dfe6ef;overflow:hidden}
.marketing-trend>header{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.marketing-trend>header h2{margin:3px 0 5px;font-size:clamp(29px,3vw,38px);line-height:1.05}
.marketing-trend>header p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.trend-total{display:grid;justify-items:end;flex:0 0 auto;text-align:right}
.trend-total small{color:var(--muted);font-size:11px;font-weight:650;text-transform:uppercase;letter-spacing:.08em}
.trend-total strong{font-family:Khand,"Arial Narrow",sans-serif;font-size:clamp(30px,3.6vw,46px);line-height:1.05;font-variant-numeric:tabular-nums}
.trend-metric-toggle{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.trend-metric-toggle button{min-height:40px;padding:8px 17px;border:1px solid #9eacbd;border-radius:999px;background:#fff;color:var(--ink);font:650 13px Montserrat,sans-serif;cursor:pointer}
.trend-metric-toggle button:hover:not(:disabled){border-color:#315e83;background:#f5f8fb}
.trend-metric-toggle button[aria-checked=true]{border-color:var(--ink);background:var(--ink);color:#fff;box-shadow:inset 0 -4px var(--orange)}
.trend-metric-toggle button[aria-checked=true]:hover:not(:disabled){border-color:var(--ink);background:var(--ink);color:#fff}
.trend-metric-toggle button:focus-visible{outline:3px solid #287ad5;outline-offset:2px}
.trend-metric-toggle button:disabled{cursor:not-allowed;opacity:.38}
.trend-series-legend{display:flex;flex-wrap:wrap;gap:8px 24px;margin:-4px 0 14px;color:#526274;font-size:12px;line-height:1.5}
.trend-series-legend span{display:inline-flex;align-items:center;gap:8px}
.trend-legend-swatch{display:inline-block;width:28px;height:0;border-top:4px solid var(--orange);border-radius:99px}
.trend-legend-previous{border-top:3px dashed #4f6f8f}
.trend-chart-scroll{overflow-x:auto;overscroll-behavior-inline:contain;border:1px solid #d7e0ea;border-radius:12px;background:linear-gradient(180deg,#fbfcfe,#fff);scrollbar-width:thin}
.trend-chart{display:block;width:100%;height:auto;min-height:260px}
.trend-grid-line line{stroke:#dbe3eb;stroke-width:1}
.trend-grid-line text,.trend-x-label{fill:#64758a;font:12px Montserrat,sans-serif}
.trend-area{fill:url(#trendAreaGradient)}
.trend-line{fill:none;stroke:var(--orange);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.trend-line-previous{stroke:#4f6f8f;stroke-width:3;stroke-dasharray:10 8}
.trend-point-target{cursor:pointer;outline:none}
.trend-point-hit{fill:transparent;pointer-events:all}
.trend-point{fill:#fff;stroke:var(--orange);stroke-width:3;pointer-events:none}
.trend-point-previous .trend-point{stroke:#4f6f8f}
.trend-point-target:is(:hover,:focus,.is-active) .trend-point{fill:var(--ink);stroke:#fff;stroke-width:4;filter:drop-shadow(0 0 4px #1c2b4a)}
.trend-point-tooltip{visibility:hidden;opacity:0;pointer-events:none;transition:opacity .12s ease}
.trend-point-tooltip rect{fill:var(--ink);stroke:#fff;stroke-width:1.5;filter:drop-shadow(0 2px 4px rgb(28 43 74 / .28))}
.trend-point-tooltip text{fill:#fff;font:700 12px Montserrat,sans-serif;font-variant-numeric:tabular-nums}
.trend-point-target:is(:hover,:focus,.is-active) .trend-point-tooltip{visibility:visible;opacity:1}
.trend-empty{display:grid;gap:4px;min-height:190px;place-content:center;padding:28px;border:1px dashed #aebaca;border-radius:12px;background:#f7f9fc;text-align:center}
.trend-empty strong{font-size:17px}
.trend-empty p{margin:0;color:var(--muted);font-size:13px;line-height:1.6}
.all-activity-grid{display:block}
.all-stage-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;align-items:stretch}
.all-stage-row>.simple-stage{width:100%;margin:0;grid-template-columns:46px minmax(0,1fr) 24px;grid-template-rows:auto auto;gap:8px 12px;min-height:150px;padding:20px}
.all-stage-row>.simple-stage .simple-icon{grid-row:1/3;width:46px;height:46px}
.all-stage-row>.simple-stage .simple-title{grid-column:2;align-self:end}
.all-stage-row>.simple-stage .number-with-rate{grid-column:2;grid-row:2;justify-self:start;text-align:left}
.all-stage-row>.simple-stage .stage-chevron{grid-column:3;grid-row:1/3}
.all-stage-row>.simple-stage .stage-rate{border-left:0;padding-left:0;text-align:left}
.all-stage-detail{margin-top:14px}
.all-activity-grid>.revenue-stage-wrap{width:100%}
.marketing-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-bottom:26px}
.marketing-totals .investment-card{margin:0;align-content:start;min-width:0}
.marketing-totals .investment-card h2{font-family:Khand,sans-serif;font-size:32px;font-weight:700}
.marketing-totals .investment-values strong{font-size:clamp(36px,4vw,60px)}
.marketing-totals .revenue-card{background:#edf4f0;border-color:var(--ink);box-shadow:0 5px 0 #d9e4df}
.marketing-totals .revenue-card .eyebrow{color:#385747}
.revenue-stage-wrap{margin-top:18px;margin-bottom:20px}
.revenue-stage-wrap .simple-stage{width:100%}
@media(max-width:700px){.customer-journey{padding:20px 14px;margin-top:22px}.customer-journey h2,.hcp-activity h2{font-size:30px}.journey-flow{grid-template-columns:1fr;gap:10px;min-height:0}.journey-stage,.journey-stage-1,.journey-stage-2,.journey-stage-3{height:auto;min-height:118px;filter:none}.journey-stage::before,.journey-stage::after{clip-path:none;border-radius:12px}.journey-stage::after{border-radius:10px}.journey-stage-inner,.journey-stage-2 .journey-stage-inner,.journey-stage-3 .journey-stage-inner{align-items:center;padding:18px}.journey-stage strong{font-size:38px}.journey-summary{align-items:center;flex-direction:column;gap:0}.marketing-totals{grid-template-columns:1fr;gap:18px}.marketing-totals .investment-values strong{font-size:44px}.revenue-stage-wrap .simple-title{font-size:22px}}
@media(max-width:700px){.marketing-trend{margin:16px auto 26px;padding:20px 14px 16px;box-shadow:4px 4px 0 #dfe6ef}.marketing-trend>header{align-items:flex-start;flex-direction:column;gap:12px}.trend-total{justify-items:start;text-align:left}.trend-metric-toggle{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.trend-metric-toggle button{padding:7px 8px;font-size:12px}.trend-series-legend{display:grid;gap:6px}.trend-chart{width:680px;min-height:234px}}
@media(max-width:800px){.all-stage-row{grid-template-columns:1fr}.all-stage-row>.simple-stage{min-height:112px}}

/* Currency values stay intact: one line per currency, stacked for mixed portfolios. */
.money-stack{display:flex;flex-direction:column;align-items:flex-start;gap:.06em;min-width:0;max-width:100%;line-height:1.02}
.money-line{display:flex;align-items:baseline;gap:.2em;min-width:0;white-space:nowrap}
.money-code{flex:0 0 auto;font-size:.58em;letter-spacing:.035em}
.money-amount{font-variant-numeric:tabular-nums}
.marketing-totals .investment-values strong .money-stack{font-size:clamp(28px,3vw,46px)}
.revenue-stage-wrap .number-with-rate>strong .money-stack{font-size:clamp(32px,3.8vw,48px)}
.overview-metric strong .money-stack{font-size:clamp(20px,2.3vw,31px)}
.verified-metrics strong .money-stack{font-size:clamp(18px,2vw,25px)}
@media(max-width:700px){.marketing-totals .investment-values strong .money-stack{font-size:clamp(30px,9vw,42px)}.revenue-stage-wrap .number-with-rate>strong .money-stack{font-size:clamp(30px,8vw,40px)}}

/* Metric explanations: hover/focus on desktop, toggle on touch. */
.verified-metrics>.metric-tile{position:relative;overflow:visible;padding-right:42px}
.metric-tile .metric-label{display:block}
.metric-info{position:absolute;top:12px;right:10px;z-index:2}
.metric-info:hover,.metric-info:focus-within,.metric-info[open]{z-index:20}
.metric-info>summary{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border:0;cursor:pointer;list-style:none;border-radius:50%;color:#54657c;background:#edf1f6;font-size:15px;font-family:Georgia,serif;font-weight:700}
.metric-info>summary::-webkit-details-marker{display:none}
.metric-info>summary:focus-visible{outline:3px solid #287ad5;outline-offset:3px}
.metric-info .metric-tooltip{display:none;position:absolute;top:36px;right:-2px;width:260px;max-width:calc(100vw - 70px);padding:16px;background:#1c2b4a;color:#fff;border-radius:8px;box-shadow:0 5px 18px #1c2b4a33;font-size:12px;line-height:1.65;text-align:left;font-family:Montserrat,sans-serif;font-weight:400}
.metric-info .metric-tooltip:before{content:"";position:absolute;right:10px;top:-7px;border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #1c2b4a}
.metric-info .metric-tooltip:after{content:"";position:absolute;top:-12px;left:0;right:0;height:12px}
.metric-info .metric-tooltip b{font-size:13px;color:#fff}
.metric-info .metric-tooltip p{font-size:12px;color:#fff;margin:6px 0 0;line-height:1.65}
.metric-info[open] .metric-tooltip{display:block}
.investment-card{position:relative}
.card-info{top:16px;right:16px}
.card-info:hover .metric-tooltip,.card-info:focus-within .metric-tooltip,.card-info[open] .metric-tooltip{display:block}
.card-info .metric-tooltip{z-index:30}

@media(max-width:600px){.metric-info .metric-tooltip{width:210px}.verified-metrics>.metric-tile{padding-right:40px}}

/* L10 review: plain-language actions, category colors, and review follow-up. */
.hcp-activity .simple-stage{background:#fff}
.hcp-activity .simple-stage[aria-expanded=true]{background:#fff;border-color:#315e83}
.overview-actions{margin-top:30px;padding-top:26px;border-top:1px solid #dce3ed}
.overview-actions h2{font-family:Khand,sans-serif;font-size:32px;margin:2px 0 18px}
.overview-action-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.overview-action{display:grid;grid-template-columns:1fr auto;gap:6px 18px;text-align:left;padding:20px;border:2px solid #b8c5d4;border-radius:12px;background:#fff;color:var(--ink);font:inherit;cursor:pointer;text-decoration:none}
.overview-action:is(article){cursor:default}
.overview-action:hover{border-color:#55799c;box-shadow:0 5px 14px rgba(28,43,74,.09)}
.overview-action:focus-visible{outline:3px solid #287ad5;outline-offset:3px}
.overview-action.urgent{border-color:#b42318;border-left-width:7px;background:#fff6f4}
.overview-action .action-label{font-weight:750;align-self:center}
.overview-action strong{grid-row:1/3;grid-column:2;font-family:Khand,sans-serif;font-size:42px;line-height:1;color:var(--ink)}
.overview-action strong .money-stack{align-items:flex-end;font-size:clamp(22px,2.1vw,30px)}
.overview-action small{color:var(--muted);line-height:1.5}
.overview-action .action-link{grid-column:1/-1;margin-top:8px;color:#1769c2;font-size:13px;font-weight:700}
.overview-action-receivables{grid-template-columns:minmax(0,1fr)}
.overview-action-receivables strong{grid-column:1;grid-row:auto;max-width:100%;font-size:clamp(30px,3vw,42px);line-height:1.02;overflow-wrap:anywhere}
.overview-action-receivables small,.overview-action-receivables .action-link{grid-column:1;min-width:0;overflow-wrap:anywhere}
.open-estimates{border:2px solid #b42318!important;border-left-width:7px!important;border-radius:12px;background:#fff6f4;padding:20px!important;margin-top:24px!important}
.open-estimates .action-kicker{display:block;color:#9b1c13;font-size:12px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.open-estimates h3{font-family:Khand,sans-serif;font-size:28px;margin:4px 0}
.open-estimates>p{margin:0 0 12px;color:#6b3a36;font-size:13px}
.metric-tile.metric-money-featured>strong{font-family:Khand,sans-serif;font-size:clamp(34px,4vw,48px);line-height:1.05;color:var(--ink)}
.metric-tile.metric-money-featured>strong .money-stack{font-size:inherit}
.metric-tile.metric-money-medium>strong{font-family:Khand,sans-serif;font-size:clamp(26px,3vw,36px);line-height:1.08;color:var(--ink)}
.review-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}
.review-reply-status{display:inline-flex;align-items:center;min-height:28px;padding:4px 9px;border-radius:999px;background:#edf1f6;color:#52647a;font-size:11px;font-weight:800;white-space:nowrap}
.review-reply-status.replied{background:#e6f3ea;color:#28613e}
.review-reply-status.unreplied{background:#fde8e5;color:#9b1c13}
.review-card.review-needs-reply{border-color:#b42318;border-left-width:7px}
.review-owner-reply{margin:16px 0;padding:14px;border-left:4px solid #3a7552;background:#edf4f0;border-radius:0 8px 8px 0}
.review-owner-reply p{margin:6px 0 0;font-size:13px;line-height:1.6}
.review-filter-note{margin:8px 0 16px;color:#526274;font-size:14px}
.review-destination-links{display:flex;flex-wrap:wrap;gap:10px 20px;margin:0 0 18px}
.review-destination-links a{font-weight:700}
.review-reply-tabs{display:flex;flex-wrap:wrap;gap:0;margin:4px 0 18px;max-width:650px;border:2px solid var(--ink);border-radius:10px;padding:4px;background:#fff}
.review-reply-tabs button{flex:1;min-width:130px;min-height:44px;border:0;border-radius:7px;background:#fff;color:var(--ink);font:700 14px Montserrat,sans-serif;cursor:pointer}
.review-reply-tabs button[aria-pressed=true]{background:var(--ink);color:#fff;box-shadow:inset 0 -4px 0 var(--orange)}
.review-reply-tabs button:focus-visible{outline:3px solid #287ad5;outline-offset:3px}
.review-reply-tabs button span{display:inline-grid;place-items:center;min-width:24px;height:24px;margin-left:5px;padding:0 5px;border-radius:999px;background:#fde8e5;color:#9b1c13;font-size:11px}
.review-reply-tabs button[aria-pressed=true] span{background:#fff;color:#9b1c13}
.review-search-row{grid-template-columns:minmax(220px,1fr) minmax(180px,280px)}
.operational-action{margin-top:12px;padding-top:14px;border-top:1px solid #e4b2ad}
.hcp-activity .revenue-stage-wrap .simple-stage,.hcp-activity .revenue-stage-wrap .simple-stage[aria-expanded=true]{background:#eaf3ee;border-color:#54806a}
.revenue-stage-wrap .simple-icon{background:#edf4f0}
.compare-country-list{display:grid;gap:10px;margin-top:14px}
.compare-country-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 16px;border:1px solid #d4dde8;border-radius:9px;background:#fff}
.compare-country-row.you{border-left:6px solid #f25c2a}
.compare-country-row.peers{border-left:6px solid #287ad5}
.compare-country-row.top{border-left:6px solid #3a7552}
.compare-country-row span{font-weight:700}
.compare-country-row span small{display:block;margin-top:3px;color:#65758a;font-size:11px;font-weight:500}
.compare-country-row strong{font-size:20px;text-align:right}
@media(max-width:700px){.overview-action-grid{grid-template-columns:1fr}.review-card>header{align-items:stretch;flex-direction:column}.review-reply-status{width:max-content}}

/* Keep each info control with its label, separate from the value column. */
.verified-metrics>.metric-tile{padding-right:18px}
.simple-detail .verified-metrics>.metric-tile{padding-right:0}
.metric-heading{display:flex;align-items:center;gap:8px;min-width:0}
.metric-heading .metric-label{font-size:18px;font-weight:700}
.metric-heading .metric-info{position:relative;top:auto;right:auto;flex:0 0 auto}
.metric-heading .metric-info>summary{width:24px;height:24px}
.metric-heading .metric-tooltip{left:0;right:auto}
.metric-heading .metric-tooltip:before{left:5px;right:auto}
.simple-detail .verified-metrics>.metric-tile>strong{align-self:center;text-align:right}
@media(max-width:600px){.metric-heading{gap:6px}.metric-heading .metric-label{font-size:15px}.metric-heading .metric-tooltip{left:-80px;width:210px}.metric-heading .metric-tooltip:before{left:85px}}

/* Phone and tablet refinements; desktop layout stays intact. */
@media(max-width:980px){
 .page,.main-content,.overview-body,.mobile-filter-body{min-width:0}
 .metric-heading .metric-info>summary{width:44px;height:44px}
 .metric-heading{gap:4px}
 .metric-heading .metric-label{overflow-wrap:break-word}
 .metric-heading .metric-tooltip{position:fixed;left:16px;right:16px;top:auto;bottom:calc(16px + env(safe-area-inset-bottom));width:auto;max-width:none;max-height:42dvh;overflow:auto;box-sizing:border-box;padding:20px;font-size:14px;box-shadow:0 6px 32px #10203955}
 .metric-heading .metric-tooltip p{font-size:14px}
 .metric-heading .metric-tooltip:before,.metric-heading .metric-tooltip:after{display:none}
 .metric-info[open]{z-index:100}
 .simple-stage .number-with-rate{min-width:0}
 .simple-stage .number-with-rate>strong{overflow-wrap:anywhere}
 .revenue-stage-wrap .simple-stage{grid-template-columns:34px minmax(0,1fr) 36px!important;row-gap:10px}
 .revenue-stage-wrap .simple-title{grid-column:2;grid-row:1}
 .revenue-stage-wrap .stage-chevron{grid-column:3;grid-row:1}
 .revenue-stage-wrap .number-with-rate{grid-column:2 / 4;grid-row:2;justify-self:start}
 .revenue-stage-wrap .number-with-rate>strong{font-size:36px}
 .compare-row-label{flex-wrap:wrap}
 .overview-metric strong{overflow-wrap:anywhere}
 .date-controls .compact-filter{min-width:0}
 .account-action,.account-link{max-width:100%;overflow-wrap:anywhere}
}
@media(max-width:480px){
 .simple-detail .verified-metrics>.metric-tile{grid-template-columns:minmax(0,1fr);gap:2px}
 .simple-detail .verified-metrics>.metric-tile>strong{text-align:left;padding-bottom:8px}
 .metric-heading .metric-label{font-size:16px}
 .mobile-header{gap:6px;padding-inline:8px}
 .mobile-header .header-logo{width:72px;height:80px;flex-basis:72px}
 .mobile-location [data-location-select]{padding-inline:5px}
 .marketing-totals .investment-values strong{font-size:40px}
 .overview-period-heading{flex-wrap:wrap}
 .overview-period-heading>p{text-align:left;max-width:none}
 .overview-metric strong{font-size:36px}
 .compare-insert>summary strong{font-size:24px}
}

/* Monetary priorities requested in the marketing review. Keep these last so
   the compact detail-row rules cannot shrink the primary revenue values. */
.simple-detail .verified-metrics>.metric-tile.metric-money-featured>strong,
.simple-detail .verified-metrics>.metric-tile.metric-money-featured>strong .money-stack{
 font-family:Khand,sans-serif!important;
 font-size:clamp(44px,5vw,60px)!important;
 line-height:1.05!important;
}
.simple-detail .verified-metrics>.metric-tile.metric-money-medium>strong,
.simple-detail .verified-metrics>.metric-tile.metric-money-medium>strong .money-stack{
 font-family:Khand,sans-serif!important;
 font-size:clamp(30px,3.2vw,42px)!important;
 line-height:1.08!important;
}

/* Final phone layout pass. Keep the desktop reporting hierarchy intact while
   giving every mobile summary a predictable icon / label / value / action grid. */
@media(max-width:760px){
 html,body,.app-shell,.content-shell,.main-content{max-width:100%;overflow-x:clip}
 .access-preview-bar{margin:12px 12px 0;display:grid;gap:10px;padding:12px}
 .access-preview-bar label{min-width:0;width:100%}
 .access-preview-bar button{width:100%}
 .app-shell{padding-top:78px}
 .mobile-header{
  height:78px;
  padding:4px 10px;
  gap:8px;
 }
 .mobile-header .header-logo{
  width:64px;
  height:68px;
  flex:0 0 64px;
 }
 .mobile-location{flex:1;min-width:0}
 .mobile-location [data-location-select]{
  width:100%;
  min-height:44px;
  padding:6px 28px 6px 8px;
  font-size:15px;
  text-overflow:ellipsis;
 }
 .mobile-header button{width:44px;height:44px;flex:0 0 44px}
 .sidebar{
  top:78px;
  width:min(82vw,290px);
  height:calc(100dvh - 78px);
  box-shadow:18px 0 36px rgba(10,25,47,.24);
 }
 .main-content{padding:18px 14px 36px}
 .page,.simple-flow,.all-view-flow,.hcp-activity{width:100%;min-width:0;max-width:none}
 .hcp-activity{margin:18px auto 28px}
 .marketing-totals{gap:14px;margin-bottom:18px}
 .marketing-totals .investment-card{min-height:0;padding:16px 18px}
 .marketing-totals .investment-card h2{font-size:26px}
 .marketing-totals .investment-values strong,
 .marketing-totals .investment-values strong .money-stack{font-size:clamp(32px,9vw,40px)}
 .all-stage-row{grid-template-columns:minmax(0,1fr);gap:12px}
 .simple-stage,
 .all-stage-row>.simple-stage,
 .revenue-stage-wrap .simple-stage{
  width:100%!important;
  min-height:90px;
  margin:0;
  padding:12px 14px;
  grid-template-columns:46px minmax(0,1fr) 44px!important;
  grid-template-rows:auto auto;
  column-gap:12px;
  row-gap:0;
  align-items:center;
 }
 .simple-stage .simple-icon,
 .all-stage-row>.simple-stage .simple-icon,
 .revenue-stage-wrap .simple-icon{
  grid-column:1;
  grid-row:1 / 3;
  width:44px;
  height:44px;
  align-self:center;
 }
 .simple-stage .simple-icon svg{width:27px;height:27px}
 .simple-stage .simple-title,
 .all-stage-row>.simple-stage .simple-title,
 .revenue-stage-wrap .simple-title{
  grid-column:2;
  grid-row:1;
  align-self:end;
  min-width:0;
  font-size:20px;
  line-height:1.08;
  overflow-wrap:normal;
 }
 .simple-stage .simple-title small{font-size:10px;line-height:1.15}
 .simple-stage .number-with-rate,
 .all-stage-row>.simple-stage .number-with-rate,
 .revenue-stage-wrap .number-with-rate{
  grid-column:2!important;
  grid-row:2!important;
  justify-self:start;
  align-self:start;
  min-width:0;
  max-width:100%;
  text-align:left;
 }
 .simple-stage .number-with-rate>strong,
 .all-stage-row>.simple-stage .number-with-rate>strong{
  display:block;
  font-size:34px;
  line-height:1;
  overflow-wrap:normal;
  word-break:normal;
 }
 .simple-stage .stage-rate{display:none}
 .simple-stage .stage-chevron,
 .all-stage-row>.simple-stage .stage-chevron,
 .revenue-stage-wrap .stage-chevron{
  grid-column:3;
  grid-row:1 / 3;
  align-self:center;
  justify-self:end;
  width:40px;
  height:40px;
 }
 .simple-stage .stage-chevron svg{width:24px;height:24px}
 .revenue-stage-wrap{margin:12px 0 16px}
 .revenue-stage-wrap .simple-stage{min-height:96px}
 .revenue-stage-wrap .simple-title{font-size:19px}
 .revenue-stage-wrap .number-with-rate>strong,
 .revenue-stage-wrap .number-with-rate>strong .money-stack{
  max-width:100%;
  font-size:clamp(25px,7.5vw,32px);
  line-height:1.03;
  overflow-wrap:normal;
  word-break:normal;
 }
 .revenue-stage-wrap .money-stack{display:block;width:100%}
 .revenue-stage-wrap .money-line{display:flex;white-space:nowrap;overflow:visible}
 .revenue-stage-wrap .money-code,.revenue-stage-wrap .money-amount{overflow-wrap:normal;word-break:normal}
 .flow-link{height:12px!important;line-height:12px;font-size:13px}
 .ratio-disclaimer,.data-definition,.stage-note{
  margin:14px 2px;
  font-size:12px;
  line-height:1.55;
  overflow-wrap:anywhere;
 }
 .simple-detail{width:100%;min-width:0;margin:10px 0;padding:16px}
 .simple-detail .verified-metrics>.metric-tile.metric-money-featured>strong,
 .simple-detail .verified-metrics>.metric-tile.metric-money-featured>strong .money-stack{
  font-size:clamp(32px,10vw,42px)!important;
 }
 .simple-detail .verified-metrics>.metric-tile.metric-money-medium>strong,
 .simple-detail .verified-metrics>.metric-tile.metric-money-medium>strong .money-stack{
  font-size:clamp(27px,8vw,34px)!important;
 }
 .simple-detail .verified-metrics>.metric-tile>strong .money-line{white-space:normal;flex-wrap:wrap}
 .open-estimates{padding:16px!important}
 .open-estimates h3{font-size:25px}
 .compare-insert,.compare-prompt{margin-top:18px}
 .review-reply-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:none}
 .review-reply-tabs button{min-width:0;padding:6px;font-size:12px}
 .review-reply-tabs button span{display:inline-grid;margin:3px 0 0}
 .review-search-row{grid-template-columns:minmax(0,1fr)}
 .review-card{padding:18px 16px}
 .review-destination-links{gap:12px;margin-bottom:16px}
}

@media(max-width:390px){
 .mobile-header{padding-inline:8px;gap:6px}
 .mobile-header .header-logo{width:58px;height:64px;flex-basis:58px}
 .mobile-location [data-location-select]{font-size:14px}
 .compact-controls .mode-switch button{padding-inline:2px;font-size:clamp(11px,3.2vw,13px)}
 .main-content{padding-inline:12px}
 .simple-stage,
 .all-stage-row>.simple-stage,
 .revenue-stage-wrap .simple-stage{
  grid-template-columns:42px minmax(0,1fr) 40px!important;
  column-gap:10px;
  padding-inline:12px;
 }
 .simple-stage .simple-icon,
 .all-stage-row>.simple-stage .simple-icon,
 .revenue-stage-wrap .simple-icon{width:40px;height:40px}
 .simple-stage .simple-title{font-size:19px}
 .simple-stage .number-with-rate>strong{font-size:32px}
 .revenue-stage-wrap .number-with-rate>strong,
 .revenue-stage-wrap .number-with-rate>strong .money-stack{font-size:clamp(22px,7vw,28px)}
}

/* All-channel summary cards: keep every card on the same visual rhythm.
   The metric and its explanation are one vertical group instead of competing
   for horizontal space with the icon, total, and disclosure control. */
@media(min-width:761px){
 .all-stage-row>.simple-stage{
  min-height:202px;
  padding:22px 18px;
  grid-template-columns:52px minmax(0,1fr) 36px;
  grid-template-rows:auto minmax(0,1fr);
  column-gap:12px;
  row-gap:16px;
  align-items:center;
 }
 .all-stage-row>.simple-stage .simple-icon{
  grid-column:1;
  grid-row:2;
  align-self:center;
  justify-self:start;
  width:52px;
  height:52px;
  border-radius:13px;
 }
 .all-stage-row>.simple-stage .simple-icon svg{
  width:31px;
  height:31px;
 }
 .all-stage-row>.simple-stage .simple-title{
  grid-column:1 / 4;
  grid-row:1;
  align-self:end;
  justify-self:center;
  margin:0;
  font-size:27px;
  line-height:1;
  text-align:center;
 }
 .all-stage-row>.simple-stage .number-with-rate{
  grid-column:2;
  grid-row:2;
  align-self:start;
  justify-self:stretch;
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:10px;
  min-width:0;
  text-align:left;
 }
 .all-stage-row>.simple-stage .number-with-rate>strong{
  justify-self:start;
  font-size:50px;
  line-height:.9;
 }
 .all-stage-row>.simple-stage .stage-rate{
  display:grid;
  gap:4px;
  min-width:0;
  padding:0;
  border:0;
  text-align:left;
 }
 .all-stage-row>.simple-stage .stage-rate b{
  font-size:22px;
  line-height:1.1;
 }
 .all-stage-row>.simple-stage .stage-rate small{
  max-width:150px;
  font-size:14px;
  line-height:1.35;
 }
 .all-stage-row>.simple-stage .stage-chevron{
  grid-column:3;
  grid-row:2;
  align-self:center;
  justify-self:end;
  width:36px;
  height:36px;
 }
}

/* Make lead outcomes read as children of Total leads without moving their
   values out of the shared right-hand column. */
.simple-detail .metric-tile.metric-submetric .metric-heading{
 padding-left:28px;
}

/* Every value in the Job revenue breakdown uses one typographic hierarchy. */
.simple-detail .verified-metrics>.metric-tile.revenue-breakdown-value>strong,
.simple-detail .verified-metrics>.metric-tile.revenue-breakdown-value>strong .money-stack{
 font-family:Khand,sans-serif!important;
 font-size:clamp(30px,3.2vw,42px)!important;
 font-weight:700!important;
 line-height:1.08!important;
 color:var(--ink);
}

/* Tie exceptional funnel ratios directly to their explanation. */
.metric-exception-marker{
 position:relative;
 display:inline-block;
 margin-left:2px;
 color:#b42318;
 font-weight:800;
 cursor:help;
}
.metric-exception-tooltip{
 display:none;
 position:absolute;
 z-index:50;
 left:50%;
 bottom:calc(100% + 10px);
 width:290px;
 max-width:calc(100vw - 48px);
 padding:12px 14px;
 transform:translateX(-50%);
 border-radius:8px;
 background:#1c2b4a;
 box-shadow:0 6px 20px rgba(28,43,74,.25);
 color:#fff;
 font:600 12px/1.5 Montserrat,sans-serif;
 letter-spacing:0;
 text-align:left;
 white-space:normal;
}
.metric-exception-marker:hover .metric-exception-tooltip,
.simple-stage:focus-visible .metric-exception-marker .metric-exception-tooltip{
 display:block;
}
.ratio-disclaimer .ratio-exception{
 display:block;
 margin-top:12px;
 color:var(--ink);
}
.ratio-disclaimer .ratio-report-help{
 display:block;
 margin-top:8px;
}

@media(max-width:480px){
 .simple-detail .metric-tile.metric-submetric .metric-heading{padding-left:18px}
 .simple-detail .verified-metrics>.metric-tile.revenue-breakdown-value>strong,
 .simple-detail .verified-metrics>.metric-tile.revenue-breakdown-value>strong .money-stack{
  font-size:clamp(27px,8vw,34px)!important;
 }
}
