/* Lead Finder — calm, premium surface: hairline borders instead of filled boxes, one accent,
   tight type scale. Fonts match the Hasanoff Care app (SF Pro, Inter elsewhere). */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/inter-var.woff2') format('woff2'); }

:root {
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", var(--font);
  --bg: #F7F7F8; --panel: #FFFFFF; --raised: #FFFFFF; --field: #FFFFFF;
  --border: #E7E7EA; --border-strong: #D9D9DE; --hover: #F4F4F5; --fill: #F1F1F3;
  --text: #0A0A0B; --soft: #52525B; --muted: #8B8B94;
  --accent: #5257F5; --accent-hover: #4348E6; --accent-ink: #fff; --accent-soft: rgba(82,87,245,.09); --accent-ring: rgba(82,87,245,.22);
  --red: #E5484D; --orange: #F08C00; --green: #2F9E62;
  --red-soft: rgba(229,72,77,.1); --orange-soft: rgba(240,140,0,.12); --green-soft: rgba(47,158,98,.11);
  --shadow-sm: 0 1px 2px rgba(16,16,20,.04); --shadow: 0 1px 2px rgba(16,16,20,.04), 0 4px 16px rgba(16,16,20,.04);
  --shadow-lg: 0 24px 64px rgba(16,16,20,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #09090B; --panel: #111114; --raised: #17171B; --field: #17171B;
    --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.12); --hover: rgba(255,255,255,.04); --fill: rgba(255,255,255,.06);
    --text: #F4F4F5; --soft: #A1A1AA; --muted: #71717A;
    --accent: #6E72FF; --accent-hover: #8185FF; --accent-soft: rgba(110,114,255,.12); --accent-ring: rgba(110,114,255,.3);
    --red: #F2555A; --orange: #F5A524; --green: #3DD68C;
    --red-soft: rgba(242,85,90,.12); --orange-soft: rgba(245,165,36,.12); --green-soft: rgba(61,214,140,.1);
    --shadow-sm: none; --shadow: none; --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09090B; --panel: #111114; --raised: #17171B; --field: #17171B;
  --border: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.12); --hover: rgba(255,255,255,.04); --fill: rgba(255,255,255,.06);
  --text: #F4F4F5; --soft: #A1A1AA; --muted: #71717A;
  --accent: #6E72FF; --accent-hover: #8185FF; --accent-soft: rgba(110,114,255,.12); --accent-ring: rgba(110,114,255,.3);
  --red: #F2555A; --orange: #F5A524; --green: #3DD68C;
  --red-soft: rgba(242,85,90,.12); --orange-soft: rgba(245,165,36,.12); --green-soft: rgba(61,214,140,.1);
  --shadow-sm: none; --shadow: none; --shadow-lg: 0 24px 64px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); letter-spacing: -.006em; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
[hidden] { display: none !important; }
::selection { background: var(--accent-ring); }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--text); font-weight: 550; font-size: 13.5px; white-space: nowrap; box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s, transform .08s; text-decoration: none; }
.btn:hover { background: var(--hover); }
.btn:active { transform: translateY(.5px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: 0 1px 2px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.15); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--soft); }
.btn.ghost:hover { background: var(--hover); color: var(--text); }
.btn.subtle { background: transparent; box-shadow: none; }
.btn.small { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; gap: 5px; }
.btn.small svg { width: 14px; height: 14px; }
.iconBtn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--soft); }
.iconBtn:hover { background: var(--hover); color: var(--text); }
.iconBtn:disabled { opacity: .45; }

.input { display: flex; align-items: center; gap: 9px; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--field); min-width: 0; transition: border-color .15s, box-shadow .15s; }
.input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.input > svg { color: var(--muted); }
.input input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 14px; }
.input input::placeholder { color: var(--muted); }
.input.lg { height: 44px; font-size: 15px; }
.input.lg input { font-size: 15px; }
.select { height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8B94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 9px center / 14px; appearance: none; font-size: 13.5px; font-weight: 500; outline: none; }
.select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.select.bare { height: 30px; border-color: transparent; background-color: transparent; padding-left: 8px; color: var(--soft); font-size: 12.5px; }
.select.bare:hover { background-color: var(--hover); }

.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); }
.seg button { border: 0; background: transparent; height: 28px; padding: 0 12px; border-radius: 7px; font-size: 13px; font-weight: 550; color: var(--soft); white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--fill); color: var(--text); }

.tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); padding: 0 2px; }
.tabs button { position: relative; border: 0; background: none; padding: 10px 0 11px; font-size: 13px; font-weight: 550; color: var(--muted); white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); }
.tabs button.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--text); }
.tabs b { font-weight: 500; color: var(--muted); margin-left: 3px; font-variant-numeric: tabular-nums; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--fill); font-size: 11.5px; font-weight: 550; color: var(--soft); white-space: nowrap; }
.chip svg { width: 12px; height: 12px; }
.chip.crm { background: var(--green-soft); color: var(--green); }
.chip.saved { background: var(--accent-soft); color: var(--accent); }
.chip.saved svg { fill: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--raised); color: var(--soft); font-size: 13px; font-weight: 500; }
.chips button:hover { color: var(--text); border-color: var(--muted); }

.dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--soft); white-space: nowrap; }
.dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.dot.none::before, .dot.down::before { background: var(--red); }
.dot.social::before { background: var(--orange); }
.dot.site::before { background: var(--green); }

/* ---------- Shell ---------- */
body.locked .app { visibility: hidden; }
.app { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 16px 10px; border-right: 1px solid var(--border); background: var(--bg); }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 20px; color: var(--text); font-weight: 650; font-size: 15px; letter-spacing: -.02em; }
.brand img { border-radius: 7px; width: 26px; height: 26px; }
.navlist { display: flex; flex-direction: column; gap: 1px; }
.nav { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: var(--soft); font-weight: 500; font-size: 13.5px; }
.nav:hover { background: var(--hover); color: var(--text); }
.nav.on { background: var(--fill); color: var(--text); font-weight: 600; }
.nav svg { width: 16px; height: 16px; }
.sideFoot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--border); }
.me { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; }
.meText { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.meText b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meText small { color: var(--muted); font-size: 11.5px; text-transform: capitalize; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent); font: 600 11.5px/1 var(--font-round); }
.sideFoot .btn { height: 28px; padding: 0 8px; font-size: 12px; }

.main { min-width: 0; padding: 28px 36px 48px; }
.view { max-width: 1280px; margin: 0 auto; }
.banner { max-width: 1280px; margin: 0 auto 16px; padding: 9px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--orange-soft); font-size: 13px; }
.pageHead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 22px; flex-wrap: wrap; }
.pageHead h1 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; }
.eyebrow { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 3px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.card.pad { padding: 20px; }
.cardHead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.cardHead h2 { margin: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; }
.cardHead a, .cardHead .muted { font-size: 12.5px; font-weight: 500; }

/* ---------- Dashboard ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.kpi { padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.kpi .value { font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi .sub b { color: var(--soft); font-weight: 600; }
.kpi .sub .up { color: var(--green); font-weight: 600; }
.kpi .sub .down { color: var(--red); font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 40px; margin-top: 12px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars i { display: block; width: 100%; border-radius: 3px; background: var(--accent); opacity: .85; min-height: 2px; }
.bars span { font-size: 10px; color: var(--muted); }
.dashGrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.meter { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 14px; }
.meterRow .top { display: flex; justify-content: space-between; font-size: 13px; }
.meterRow .top b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meterRow .track { height: 4px; border-radius: 2px; background: var(--fill); margin-top: 7px; overflow: hidden; }
.meterRow .track i { display: block; height: 100%; border-radius: 2px; background: var(--green); }
.meterRow.warn .track i { background: var(--orange); } .meterRow.full .track i { background: var(--red); }
.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Rows ---------- */
.list { list-style: none; margin: 0; padding: 4px 0; }
.row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 18px; cursor: pointer; position: relative; transition: background .12s; }
.row + .row { border-top: 1px solid var(--border); }
.row:hover { background: var(--hover); }
.row.sel { background: var(--accent-soft); }
.row h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tags { display: flex; gap: 8px; align-items: center; margin-top: 4px; flex-wrap: wrap; }
.row .end { display: flex; align-items: center; gap: 8px; }
.searchRow { grid-template-columns: 32px minmax(0, 1fr) auto; }
.searchRow .ico { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); }

.logo { position: relative; width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center; overflow: hidden; flex: none; font: 600 15px/1 var(--font-round); background: var(--fill); color: var(--soft); }
.logo.none { background: var(--red-soft); color: var(--red); }
.logo.social { background: var(--orange-soft); color: var(--orange); }
.logo.site { background: var(--green-soft); color: var(--green); }
.logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 5px; background: #fff; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.logo.light img { background: #18181B; }
.logo.big { width: 52px; height: 52px; border-radius: 12px; font-size: 20px; }

.ring { --p: 0; --c: var(--muted); position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none; background: conic-gradient(var(--c) calc(var(--p) * 1%), var(--fill) 0); display: grid; place-items: center; }
.ring::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--panel); }
.ring b { position: relative; z-index: 1; font: 600 11.5px/1 var(--font-round); font-variant-numeric: tabular-nums; }
.ring.Hot { --c: var(--green); } .ring.Warm { --c: var(--orange); } .ring.Cold { --c: var(--muted); }
.ring.big { width: 64px; height: 64px; } .ring.big::after { inset: 5px; } .ring.big b { font-size: 20px; }
.row:hover .ring::after { background: color-mix(in srgb, var(--panel) 96%, var(--text)); }
.row.sel .ring::after { background: color-mix(in srgb, var(--panel) 91%, var(--accent)); }
.section .ring::after { background: var(--panel); }

/* ---------- Find leads ---------- */
.viewFinder { max-width: none; }
.main:has(.viewFinder:not([hidden])) { padding: 16px; }
.finder { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 16px; height: calc(100vh - 32px); min-height: 560px; }
.banner:not([hidden]) ~ .viewFinder .finder { height: calc(100vh - 32px - 54px); }
.panel { display: flex; flex-direction: column; min-height: 0; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.finderForm { display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 14px; }
.panelTitle { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.panelTitle h1 { margin: 0; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.panelTitle .muted { font-size: 12px; }
.formRow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.where { padding-left: 4px; }
.locBtn { width: 30px; height: 30px; border: 0; border-radius: 7px; display: grid; place-items: center; background: transparent; color: var(--muted); flex: none; }
.locBtn:hover { background: var(--hover); color: var(--text); }
.locBtn.live { color: var(--accent); }
.locBtn.live svg { fill: currentColor; }
.locBtn.pending { animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.searchBtn { height: 38px; padding: 0 16px; }
.resultsHead { padding: 0 18px; }
.toolbar { display: flex; align-items: center; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.status { flex: 1; min-width: 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.status.err { color: var(--red); white-space: normal; }
.storedBar { display: flex; align-items: center; gap: 8px; margin: 10px 18px 0; padding: 8px 10px 8px 12px; border-radius: 9px; background: var(--accent-soft); font-size: 12.5px; color: var(--soft); }
.storedBar svg { color: var(--accent); }
.storedBar span { flex: 1; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; }
.scroll .row { padding: 11px 18px; }
.more { display: flex; margin: 8px 18px 18px; width: calc(100% - 36px); }
.emptyState { padding: 40px 28px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.emptyIcon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--muted); margin-bottom: 14px; }
.emptyIcon svg { width: 20px; height: 20px; }
.emptyState h3 { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: -.015em; }
.emptyState p { margin: 0 0 24px; color: var(--muted); font-size: 13px; max-width: 280px; }
.emptyState.err h3 { color: var(--red); }
.suggest { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.suggest > .muted { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.suggest .chips { justify-content: center; }
.mapWrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: var(--panel); min-height: 0; }
.map { width: 100%; height: 100%; }
.mapMsg { height: 100%; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); font-size: 13px; }
.pin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); transform: translateY(50%); transition: transform .12s; cursor: pointer; background: var(--muted); }
.pin.none { background: var(--red); } .pin.social { background: var(--orange); } .pin.site { background: var(--green); }
.pin.hl { transform: translateY(50%) scale(1.6); }
.you { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2.5px solid #fff; box-shadow: 0 0 0 6px var(--accent-ring); transform: translateY(50%); }

/* ---------- Lead panel ---------- */
.scrim { position: fixed; inset: 0; background: rgba(9,9,11,.4); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 1000; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 8px; right: 8px; bottom: 8px; width: min(540px, calc(100vw - 16px)); background: var(--bg); border: 1px solid var(--border); border-radius: 16px; z-index: 1001; transform: translateX(calc(100% + 16px)); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; }
.drawer.on { transform: none; }
.close { position: absolute; top: 12px; right: 12px; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--soft); font-size: 18px; line-height: 1; z-index: 3; }
.close:hover { color: var(--text); }
.gallery { display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x mandatory; }
.gallery img { height: 200px; flex: none; scroll-snap-align: start; cursor: zoom-in; object-fit: cover; max-width: 88%; }
.morePhotos { flex: none; width: 120px; border: 0; background: var(--fill); font-weight: 550; font-size: 13px; color: var(--soft); }
.dBody { padding: 20px 18px 32px; display: flex; flex-direction: column; gap: 12px; }
.dHead { display: flex; gap: 14px; align-items: center; padding-right: 40px; margin-bottom: 2px; }
.dHead h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; }
.dHead .meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dHead .tags { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.quick a, .quick span, .quick button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 2px 8px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 11.5px; font-weight: 550; }
.quick a:hover, .quick button:hover { background: var(--hover); }
.quick svg { width: 17px; height: 17px; color: var(--soft); }
.quick span { opacity: .4; }
.quick button.on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.quick button.on svg { color: var(--accent); fill: currentColor; }
.section { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.section h4 { margin: 0 0 12px; font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.section h4 svg { width: 14px; height: 14px; }
.aiTop { display: flex; gap: 14px; align-items: center; }
.aiTop .verdict { font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.aiTop .verdict.Hot { color: var(--green); } .aiTop .verdict.Warm { color: var(--orange); } .aiTop .verdict.Cold { color: var(--muted); }
.aiTop p { margin: 3px 0 0; color: var(--soft); font-size: 13px; }
.aiCols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.aiCols b { font-size: 12px; font-weight: 600; }
.aiCols ul { margin: 6px 0 0; padding-left: 16px; font-size: 13px; color: var(--soft); }
.aiCols li { margin-bottom: 4px; }
.pitch { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); font-size: 13.5px; line-height: 1.5; }
.pitch b { display: block; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 3px; }
.aiFoot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; align-items: center; }
.aiFoot .muted { font-size: 12px; margin-left: auto; }
.aiEmpty { display: flex; align-items: center; gap: 14px; }
.aiEmpty p { margin: 0; font-size: 13px; color: var(--soft); flex: 1; }
.crmBtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.crmBtns .btn { height: 38px; }
.crmDone { display: flex; align-items: center; gap: 12px; }
.crmDone .tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); flex: none; }
.crmDone p { margin: 0; font-size: 13.5px; flex: 1; }
.crmMsg { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.crmMsg.err { color: var(--red); }
.info { padding-top: 4px; padding-bottom: 4px; }
.info .r { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: start; padding: 11px 0; }
.info .r + .r { border-top: 1px solid var(--border); }
.info .r > svg { color: var(--muted); margin-top: 2px; }
.info .lab { font-size: 11.5px; color: var(--muted); }
.info .v { word-break: break-word; font-size: 13.5px; }
.copy { border: 1px solid var(--border); background: transparent; color: var(--soft); font-size: 11.5px; font-weight: 550; padding: 3px 8px; border-radius: 6px; }
.copy:hover { color: var(--text); background: var(--hover); }
.hours { margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--soft); }
.hours li.today { color: var(--text); font-weight: 600; }
.socials { display: flex; gap: 6px; flex-wrap: wrap; }
.socials a { font-size: 12.5px; padding: 2px 9px; border-radius: 6px; border: 1px solid var(--border); color: var(--text); text-transform: capitalize; }
.review { padding: 10px 0; font-size: 13px; color: var(--soft); }
.review + .review { border-top: 1px solid var(--border); }
.review .who { font-weight: 600; color: var(--text); }
.review .when { color: var(--muted); font-size: 12px; }
.stars { color: #F5A524; }
.spinner { display: inline-block; width: 13px; height: 13px; border: 2px solid var(--fill); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; flex: none; }
.btn.primary .spinner { border-color: rgba(255,255,255,.3); border-top-color: #fff; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Lightbox, toast ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.94); z-index: 2000; display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; border-radius: 8px; }
.lightbox .close { background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.nav-btn { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: rgba(255,255,255,.1); color: #fff; font-size: 30px; width: 44px; height: 60px; border-radius: 10px; }
.nav-btn.prev { left: 12px; } .nav-btn.next { right: 12px; }
.lightbox .credit { position: absolute; bottom: 14px; color: #aaa; font-size: 12px; }
.lightbox .credit a { color: #fff; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 14px; border-radius: 10px; z-index: 3000; font-size: 13px; font-weight: 550; box-shadow: var(--shadow-lg); }

/* ---------- Sign-in ---------- */
.login { position: fixed; inset: 0; z-index: 4000; display: grid; place-items: center; background: var(--bg); padding: 16px; }
.loginCard { width: min(360px, 100%); background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 30px 26px; display: flex; flex-direction: column; gap: 10px; text-align: center; box-shadow: var(--shadow); }
.loginCard img { border-radius: 11px; margin: 0 auto 6px; }
.loginCard h1 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.025em; }
.loginCard p { margin: 0 0 8px; font-size: 13px; }
.loginCard input { height: 40px; border: 1px solid var(--border-strong); background: var(--field); border-radius: 10px; padding: 0 12px; outline: none; }
.loginCard input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-ring); }
.loginCard .btn { height: 40px; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 2px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.loginMsg { min-height: 18px; font-size: 12.5px; color: var(--red); }
.ts { display: flex; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(2, 1fr); } .finder { grid-template-columns: 380px minmax(0, 1fr); } }
@media (max-width: 960px) {
  .dashGrid { grid-template-columns: 1fr; }
  .finder { grid-template-columns: 1fr; grid-template-rows: 300px auto; height: auto; }
  .mapWrap { order: -1; }
  .panel { overflow: visible; }
  .scroll { overflow: visible; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; top: auto; bottom: 0; left: 0; right: 0; height: auto; z-index: 900; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(20px); }
  .brand, .sideFoot { display: none; }
  .navlist { flex-direction: row; flex: 1; justify-content: space-around; }
  .nav { flex-direction: column; height: auto; gap: 3px; padding: 6px 10px; font-size: 10.5px; }
  .nav.on { background: transparent; color: var(--accent); }
  .main, .main:has(.viewFinder:not([hidden])) { padding: 16px 16px 92px; }
  .kpis { gap: 10px; }
  .kpi .value { font-size: 24px; }
  .formRow { grid-template-columns: 1fr auto; }
  .formRow .searchBtn { grid-column: 1 / -1; }
  .tabs { gap: 14px; overflow-x: auto; }
  .row, .scroll .row { padding: 10px 14px; }
  .aiCols, .crmBtns { grid-template-columns: 1fr; }
  .quick a, .quick span, .quick button { font-size: 10.5px; }
  .drawer { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; border: 0; }
}
