:root {
  color-scheme: light;
  --ink: #23201c; --ink-2: #47423b; --muted: #6b655c; --line: #e7e2d9;
  --soft: #f7f4ee; --bg: #ffffff;
  --brand: #d9480f; --brand-dark: #b83c0b; --brand-tint: #fdeee6; --on-brand: #ffffff;
  --leaf: #3d7a2a; --leaf-tint: #e9f2e1;
  --blue: #1f5f86; --blue-tint: #e1edf4;
  --amber: #7a4b17; --amber-tint: #f6ead6;
  --plum: #6b3fa0; --plum-tint: #efe7f8;
  --danger: #b42318;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(35,32,28,.05), 0 16px 40px rgba(35,32,28,.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: "Inter Tight", Inter, system-ui, sans-serif; letter-spacing: -0.025em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: var(--brand); }
img, svg { display: block; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 480px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }

.logo .mark { width: 28px; height: 28px; }
.top nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--ink); }
.top nav a.btn, .top nav a.btn:hover { color: var(--on-brand); }

/* buttons + fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 10px; border: 0;
  background: var(--brand); color: var(--on-brand); font: inherit; font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); color: var(--on-brand); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--soft); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.block { width: 100%; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 10px;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 17px;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field + .field { margin-top: 16px; }
.err { color: var(--danger); font-size: 14px; margin-top: 6px; min-height: 0; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* zip form (hero + cta) */
.zipform { display: flex; gap: 10px; max-width: 440px; }
.zipform .input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) { .zipform { flex-direction: column; } }

/* hero */
.hero { padding: 56px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 64px); font-weight: 800; }
.hero .sub { margin-top: 18px; font-size: 20px; color: var(--ink-2); }
.hero form { margin-top: 32px; }
.hero .fine { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero { padding: 32px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
}

/* sample email card */
.mail { border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--shadow); overflow: hidden; }
.mail-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; background: var(--soft); border-bottom: 1px solid var(--line); }
.mail-head .from { font-size: 13px; color: var(--muted); }
.mail-head .subj { font-size: 15px; font-weight: 600; }
.pill { font-size: 12px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.lead { display: flex; gap: 14px; align-items: flex-start; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.lead:last-child { border-bottom: 0; }
.lead b { display: block; font-size: 15px; }
.lead small { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.tag { flex: 0 0 88px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 4px 6px; }
.t-bids { color: var(--brand); background: var(--brand-tint); }
.t-pool { color: var(--blue); background: var(--blue-tint); }
.t-home { color: var(--amber); background: var(--amber-tint); }
.t-sale { color: var(--plum); background: var(--plum-tint); }

/* sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(30px, 4vw, 42px); text-align: center; }
.kicker { text-align: center; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }

.steps { margin-top: 40px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.step .n { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.step h3 { margin-top: 16px; font-size: 20px; }
.step p { margin-top: 4px; color: var(--muted); }

.sources { margin: 32px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 720px; }
.sources span { font-size: 15px; font-weight: 600; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); }

.price { margin: 32px auto 0; max-width: 400px; text-align: center; border: 2px solid var(--brand); border-radius: 18px; background: var(--bg); padding: 32px 28px; }
.price .amt { font-family: "Inter Tight", Inter, sans-serif; font-size: 64px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.price .amt small { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price ul { list-style: none; padding: 0; margin: 24px 0; text-align: left; display: grid; gap: 10px; }
.price li { display: flex; gap: 10px; align-items: center; }
.price li svg { flex: 0 0 auto; color: var(--brand); }

.faq { max-width: 640px; margin: 32px auto 0; }
.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin-top: 8px; color: var(--ink-2); }

.cta { padding: 72px 0 88px; background: var(--soft); border-top: 1px solid var(--line); }
.cta .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 20px; }
.cta h2 { font-size: clamp(28px, 4vw, 40px); }
.cta form { margin-top: 24px; }
.cta .fine { margin-top: 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) { .cta .wrap { grid-template-columns: 1fr; gap: 28px; } }

.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 24px; font-size: 14px; color: var(--muted); }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .top nav .hide-sm { display: none; }
  section.block { padding: 56px 0; }
}

/* app pages (start, login, account) */
.app { background: var(--soft); min-height: 100vh; }
.app .top { background: var(--bg); }
.progress { height: 4px; background: var(--line); }
.progress i { display: block; height: 4px; background: var(--brand); transition: width .25s; }
.page { padding: 48px 0 80px; }
.page h1 { font-size: 32px; }
.page .lede { margin-top: 8px; color: var(--muted); font-size: 17px; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 24px; margin-top: 24px; }
.card h2 { font-size: 19px; letter-spacing: -.01em; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }

.coverage { margin-top: 20px; padding: 16px; border-radius: 10px; background: var(--brand-tint); display: none; }
.coverage.on { display: block; }
.coverage.off { background: var(--amber-tint); }
.coverage b { display: block; font-size: 16px; }
.coverage span { font-size: 14px; color: var(--ink-2); }

.summary { margin-top: 20px; border-top: 1px solid var(--line); }
.summary .row { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.summary .row span:first-child { color: var(--muted); }
.summary .row span:last-child { font-weight: 600; text-align: right; }
.legal { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.back { display: inline-block; margin-top: 16px; font-size: 15px; color: var(--muted); background: none; border: 0; font: inherit; cursor: pointer; padding: 8px 0; }

.toggle { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; border-bottom: 1px solid var(--line); cursor: pointer; }
.toggle:last-child { border-bottom: 0; }
.toggle input { width: 22px; height: 22px; accent-color: var(--brand); flex: 0 0 auto; }

.status { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; background: var(--brand-tint); border-radius: 14px; padding: 18px 20px; margin-top: 24px; }
.status.paused { background: var(--amber-tint); }
.status b { display: block; }
.status span { font-size: 14px; color: var(--ink-2); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.done { text-align: center; }
.done .check { width: 64px; height: 64px; margin: 0 auto; border-radius: 999px; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; }
.logo .name span { color: var(--muted); font-weight: 500; }
[tabindex="-1"]:focus { outline: none; }
@media (max-width: 420px) { .hide-xs { display: none; } }
[hidden] { display: none !important; }


/* photo hero + lead-type cards */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px;
  background: var(--leaf-tint); color: var(--leaf); font-size: 13px; font-weight: 700; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 8px 1px 8px 1px; background: var(--leaf); }
.hero .wrap { grid-template-columns: 1fr 1.08fr; }
.hero-media { position: relative; padding-bottom: 150px; }
.hero-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: 22px; }
.hero-media .mail { position: absolute; left: -48px; bottom: 0; width: min(380px, 80%); }
.hero-media .lead { padding: 11px 16px; }
.hero-media .lead:nth-child(n+5) { display: none; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-media { padding-bottom: 0; }
  .hero-media .mail { position: relative; left: auto; right: auto; width: auto; margin: -56px 12px 0; }
}
.t-bids { color: var(--leaf); background: var(--leaf-tint); }
section.block.soft { background: var(--soft); }
.kinds { margin: 36px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.kind { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.kind .ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; }
.kind h3 { margin-top: 16px; font-size: 20px; }
.kind p { margin-top: 4px; color: var(--muted); font-size: 15px; }
.k-home .ico { color: var(--amber); background: var(--amber-tint); }
.k-pool .ico { color: var(--blue); background: var(--blue-tint); }
.k-sale .ico { color: var(--plum); background: var(--plum-tint); }
.k-bids .ico { color: var(--leaf); background: var(--leaf-tint); }
@media (max-width: 900px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .kinds { grid-template-columns: 1fr; } }

/* gutters: lead tags + three lead-type cards */
.t-roof { color: var(--brand); background: var(--brand-tint); }
.t-storm { color: var(--plum); background: var(--plum-tint); }
.eyebrow::before { border-radius: 2px; width: 6px; height: 10px; }
.k-roof .ico { color: var(--brand); background: var(--brand-tint); }
.k-storm .ico { color: var(--plum); background: var(--plum-tint); }
.kinds.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1040px) { .kinds.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .kinds.five { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .kinds.five { grid-template-columns: 1fr; } }

/* Continue with Google / Microsoft (shown only when the server has that provider on: GET /api/auth/providers) */
.sso { display: grid; gap: 10px; margin-bottom: 4px; }
.sso-btn { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; width: 100%; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; }
.sso-btn:hover { background: var(--soft); color: var(--ink); }
.sso-btn svg { width: 20px; height: 20px; flex: none; }
.sso-ms { border-color: #8c8c8c; }
.sso-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; margin: 8px 0 4px; }
.sso-or::before, .sso-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- signed-in app: Leads · Board · Account ---------- */
.appnav { display: flex; gap: 4px; }
.appnav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.appnav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); }
@media (max-width: 560px) { .top .wrap { gap: 8px; } .logo .name { display: none; } .appnav a { padding: 8px 10px; font-size: 15px; } }
.wide { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (max-width: 560px) { .wide { padding: 0 16px; } }
.page.tight { padding: 24px 0 80px; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.head h1 { font-size: 28px; }
.head .sub { color: var(--muted); font-size: 15px; margin-top: 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.tools .input, .tools select.input { height: 44px; font-size: 15px; width: auto; }
.tools .search { flex: 1 1 220px; min-width: 0; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); cursor: pointer; min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chips.ltypes { margin-top: 12px; }
.chips.ltypes .chip { min-height: 38px; font-size: 14px; padding: 0 14px; }
.chip .n { opacity: .7; font-weight: 500; margin-left: 4px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); }
.tag.pool { color: var(--blue); } .tag.roof { color: var(--brand-dark); } .tag.home { color: var(--leaf); } .tag.storm { color: var(--plum); } .tag.bids { color: var(--amber); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--soft); color: var(--ink-2); white-space: nowrap; }
.pill.st-new { background: var(--blue-tint); color: var(--blue); }
.pill.st-contacted { background: var(--amber-tint); color: var(--amber); }
.pill.st-quoted { background: var(--plum-tint); color: var(--plum); }
.pill.st-won { background: var(--leaf-tint); color: var(--leaf); }
.pill.st-lost, .pill.st-later { background: #eee; color: var(--muted); }
.pill.due { background: #fdecea; color: var(--danger); }
.pill.today { background: var(--brand-tint); color: var(--brand-dark); }

.leadlist { margin-top: 16px; display: grid; gap: 10px; }
.lead { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer; }
.lead:hover { border-color: #d6cfc2; box-shadow: 0 1px 2px rgba(35,32,28,.06); }
.lead .addr { font-weight: 700; font-size: 16px; margin-top: 2px; }
.lead .meta { font-size: 14px; color: var(--muted); margin-top: 2px; }
.lead .job { font-size: 14px; color: var(--ink-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lead .acts { display: flex; gap: 8px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; }
.icon-btn:hover { background: var(--soft); color: var(--ink); }
@media (max-width: 560px) { .lead { grid-template-columns: 1fr; } .lead .acts { justify-content: flex-start; } }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 20px; margin-bottom: 8px; }
.more { display: flex; justify-content: center; margin-top: 16px; }

/* side panel (lead / card) */
.panel-bg { position: fixed; inset: 0; background: rgba(35,32,28,.35); z-index: 40; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg); z-index: 41; overflow-y: auto; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
.panel header { position: sticky; top: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; z-index: 1; }
.panel header h2 { font-size: 20px; }
.panel .body { padding: 16px 16px 48px; }
.panel section { padding: 16px 0; border-bottom: 1px solid var(--line); }
.panel section:last-child { border-bottom: 0; }
.panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: Inter, system-ui, sans-serif; margin-bottom: 10px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.btnrow .btn { min-height: 44px; padding: 0 14px; font-size: 15px; }
.mini { font-size: 13px; color: var(--muted); }
.timeline { display: grid; gap: 12px; }
.timeline .ev { font-size: 14px; }
.timeline .ev b { font-weight: 600; }
.timeline .ev .body { white-space: pre-wrap; margin-top: 2px; color: var(--ink); padding: 0; }
.files { display: grid; gap: 8px; }
.files .f { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 15px; }
.files .f a { overflow-wrap: anywhere; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .grid2 { grid-template-columns: 1fr; } }
.panel .input { height: 46px; font-size: 16px; }
textarea.input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; font-size: 16px; }
.ratings button[aria-pressed="true"][data-v="hot"] { background: var(--danger); border-color: var(--danger); }
.ratings button[aria-pressed="true"][data-v="warm"] { background: #c2700c; border-color: #c2700c; }
.ratings button[aria-pressed="true"][data-v="cold"] { background: var(--blue); border-color: var(--blue); }
.dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; flex: none; }
.dot.hot { background: var(--danger); } .dot.warm { background: #c2700c; } .dot.cold { background: var(--blue); }

/* board */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-align: left; font: inherit; color: inherit; }
.stat .v { font-family: "Inter Tight", Inter, sans-serif; font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.stat .k { font-size: 13px; color: var(--muted); }
button.stat { cursor: pointer; }
button.stat[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(180px, 1fr)); gap: 12px; margin-top: 16px; overflow-x: auto; padding-bottom: 8px; }
.col { background: #efebe3; border-radius: 12px; padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.col.over { outline: 2px dashed var(--brand); outline-offset: -2px; }
.col h2 { font-size: 14px; font-family: Inter, system-ui, sans-serif; letter-spacing: 0; display: flex; justify-content: space-between; padding: 4px 4px 2px; }
.col h2 .n { color: var(--muted); font-weight: 600; }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid; gap: 4px; }
.tile:hover { border-color: #d6cfc2; }
.tile.dragging { opacity: .5; }
.tile .addr { font-weight: 700; font-size: 15px; line-height: 1.3; }
.tile .meta { font-size: 13px; color: var(--muted); }
.tile .tfoot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; font-size: 13px; }
.who { width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; text-transform: uppercase; }
.stagetabs { display: none; }
@media (max-width: 760px) {
  .kanban { grid-template-columns: 1fr; overflow: visible; }
  .kanban .col { display: none; background: none; padding: 0; }
  .kanban .col.on { display: flex; }
  .kanban .col h2 { display: none; }
  .stagetabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 4px; }
  .stagetabs .chip { min-height: 38px; font-size: 14px; padding: 0 12px; flex: none; }
}

/* account sub-nav */
.subnav { display: flex; gap: 6px; margin-top: 20px; border-bottom: 1px solid var(--line); }
.subnav a { padding: 10px 14px; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.subnav a[aria-current="true"] { color: var(--ink); border-color: var(--brand); }
.note { background: var(--blue-tint); color: var(--ink); border-radius: 12px; padding: 14px 16px; margin-top: 20px; font-size: 15px; }

.tile .tag, .lead .tag { white-space: nowrap; }
.chips.ltypes .chip { flex: 0 0 auto; }
.grid2 .field + .field { margin-top: 0; }
@media (max-width: 560px) {
  .chips.ltypes { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  [data-leads] .head .btn { display: none; }   /* Board is in the top nav */
  .tools .seg { width: 100%; overflow-x: auto; }
}
.field .row + #team { margin-top: 6px; }
.kinds.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .kinds.three { grid-template-columns: 1fr; } }
