/* Neal Communities — AI Dashboard
   Brand: navy + orange, serif display, light surfaces */

:root {
  --navy: #15406c;
  --navy-deep: #0d2b48;
  --navy-line: #1c4f80;
  --orange: #e3701b;
  --orange-hi: #f5832e;
  --orange-soft: rgba(227, 112, 27, 0.12);
  --orange-line: rgba(227, 112, 27, 0.40);

  --bg: #eef1f5;
  --bg-2: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --surface-3: #eaf0f6;
  --border: #dde4ec;
  --border-strong: #c8d3df;

  --ink: #0d2944;
  --text: #14304b;
  --text-2: #3f5a76;
  --muted: #7388a0;
  --subtle: #9aabbe;

  --good: #2f9e6f;
  --warn: #d98a1f;
  --bad: #d8554f;
  --info: #2e7bd6;

  --radius: 8px;
  --radius-lg: 12px;
  --shadow-1: 0 1px 2px rgba(13, 41, 68, 0.04), 0 4px 16px -8px rgba(13, 41, 68, 0.10);
  --shadow-2: 0 24px 60px -24px rgba(13, 41, 68, 0.30);

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Figtree', system-ui, -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;

  font-family: var(--sans);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; background: var(--bg); color: var(--text); }
body { -webkit-font-smoothing: antialiased; }

/* ===== Type ===== */
.eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.eyebrow.accent { color: var(--orange); }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }

.page-title {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.005em;
  color: var(--ink);
  margin: 0 0 14px;
  line-height: 1.22;
  padding-top: 2px;
}
.page-sub { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 600px; line-height: 1.5; }

/* ===== App shell ===== */
.app {
  display: grid;
  grid-template-columns: 244px 1fr;
  height: 100vh;
  overflow: hidden;
  background: var(--bg);
}

.sidebar {
  background: var(--navy);
  color: #dce6f0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.brand {
  padding: 20px 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}
.brand-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: 0.02em;
  color: white;
  line-height: 1;
}
.brand-logo .light { font-weight: 400; opacity: 0.92; }
.brand-tag {
  font-size: 9px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange-hi);
  margin-top: 7px;
  font-weight: 600;
}

.nav { padding: 14px 10px; flex: 1; overflow-y: auto; }
.nav-section { margin: 12px 6px 6px; }
.nav-section .eyebrow { padding: 0 8px; color: rgba(220,230,240,0.45); }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 11px;
  font-size: 13.5px;
  color: rgba(220,230,240,0.78);
  cursor: pointer;
  border-radius: 7px;
  margin: 1px 0;
  position: relative;
  font-weight: 500;
}
.nav-item:hover { background: rgba(255,255,255,0.06); color: white; }
.nav-item.active { background: rgba(255,255,255,0.10); color: white; }
.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--orange);
  border-radius: 0 3px 3px 0;
}
.nav-item .icon { width: 16px; height: 16px; opacity: 0.85; display: grid; place-items: center; }
.nav-item .count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  color: rgba(220,230,240,0.6);
  background: rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 2px 6px;
}
.nav-item.active .count { color: var(--orange-hi); background: rgba(227,112,27,0.16); }

.sidebar-foot {
  padding: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  display: flex; align-items: center; gap: 11px;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.sidebar-foot .who { flex: 1; min-width: 0; }
.sidebar-foot .who-name { font-size: 13px; font-weight: 600; color: white; }
.sidebar-foot .who-role { font-size: 10.5px; color: rgba(220,230,240,0.55); margin-top: 1px; }

/* ===== Main ===== */
.main { display: flex; flex-direction: column; overflow: hidden; min-width: 0; }

.topbar {
  height: 60px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 26px; gap: 16px;
  background: var(--surface);
  flex-shrink: 0;
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crumbs .here { color: var(--ink); font-weight: 600; }

.search {
  margin-left: auto;
  width: 300px; height: 36px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex; align-items: center; gap: 8px; padding: 0 12px;
}
.search input { background: transparent; border: 0; outline: 0; color: var(--text); font-family: inherit; font-size: 13px; flex: 1; min-width: 0; }
.search input::placeholder { color: var(--subtle); }
.search .kbd { font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; }

.icon-btn { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); cursor: pointer; border: 1px solid transparent; position: relative; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); border-color: var(--border); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--surface); }

.btn {
  height: 36px; padding: 0 16px;
  background: var(--orange); color: white;
  font-weight: 600; font-size: 13px;
  border-radius: 8px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: inherit; white-space: nowrap;
}
.btn:hover { background: var(--orange-hi); }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-line); }
.btn.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); }
.btn.ghost:hover { background: var(--bg-2); border-color: var(--muted); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; border-radius: 6px; }

.copilot-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px 0 9px;
  border-radius: 8px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: white; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; white-space: nowrap; flex-shrink: 0;
}
.copilot-btn:hover { background: var(--navy-line); }
.copilot-btn .kbd { font-family: var(--mono); font-size: 10px; opacity: 0.7; border: 1px solid rgba(255,255,255,0.25); border-radius: 4px; padding: 1px 5px; }
.copilot-btn .ai-bug { width: 22px; height: 22px; }

/* ===== Content ===== */
.content { flex: 1; overflow-y: auto; padding: 30px 30px 64px; }
.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb { background: rgba(13,41,68,0.10); border-radius: 5px; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; gap: 16px; }
.page-actions { display: flex; gap: 8px; align-items: center; }

/* ===== Cards ===== */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.card-head { padding: 16px 18px 13px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.card-body { padding: 18px; }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* ===== Stat ===== */
.stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.stat-label { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.stat-value { font-family: var(--serif); font-size: 31px; font-weight: 600; letter-spacing: 0; color: var(--ink); line-height: 1.15; white-space: nowrap; }
.stat-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.delta { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 4px; font-family: var(--mono); font-size: 11px; font-weight: 500; }
.delta.up { color: var(--good); background: rgba(47,158,111,0.10); }
.delta.down { color: var(--bad); background: rgba(216,85,79,0.10); }
.sparkline { height: 36px; width: 100%; margin-top: 14px; }

/* ===== Table ===== */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.tbl td { padding: 14px 16px; font-size: 13px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.tbl tr { cursor: pointer; transition: background .12s; }
.tbl tr:hover td { background: var(--bg-2); }

/* ===== Pills ===== */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--bg-2); color: var(--text-2); border: 1px solid var(--border); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.pill.hot { color: var(--bad); border-color: rgba(216,85,79,0.30); background: rgba(216,85,79,0.08); }
.pill.hot .dot { background: var(--bad); }
.pill.warm { color: var(--warn); border-color: rgba(217,138,31,0.30); background: rgba(217,138,31,0.08); }
.pill.warm .dot { background: var(--warn); }
.pill.cold { color: var(--info); border-color: rgba(46,123,214,0.30); background: rgba(46,123,214,0.08); }
.pill.cold .dot { background: var(--info); }
.pill.won { color: var(--good); border-color: rgba(47,158,111,0.30); background: rgba(47,158,111,0.08); }
.pill.won .dot { background: var(--good); }
.pill.orange { color: var(--orange); border-color: var(--orange-line); background: var(--orange-soft); }
.pill.orange .dot { background: var(--orange); }

.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: white; flex-shrink: 0; }
.av-row { display: flex; align-items: center; gap: 10px; }
.av-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.av-meta { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }

hr.div { border: 0; height: 1px; background: var(--border); margin: 20px 0; }

/* ===== Home cards (match neal site) ===== */
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-card { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-1); cursor: pointer; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; }
.home-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.home-photo {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, rgba(13,41,68,0.03) 0 10px, transparent 10px 20px),
    linear-gradient(170deg, #cfdceb, #aec3da 60%, #9bb4cf);
  position: relative;
  display: grid; place-items: center;
  color: #6e88a4; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.home-photo .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #bcd4ec 0%, #cfe0ef 45%, transparent 75%); }
.home-photo .ribbon {
  position: absolute; top: 0; left: 22px;
  background: var(--navy); color: white;
  font-size: 10px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 8px 14px 15px; white-space: nowrap;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  z-index: 2;
}
.home-photo .ribbon.summer { background: var(--navy-deep); }
.home-body { padding: 18px 18px 8px; text-align: center; }
.home-name { font-family: var(--serif); font-size: 23px; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.home-type { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 3px; font-weight: 600; }
.home-comm { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 12px; }
.home-loc { font-size: 12.5px; color: var(--muted); margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; }
.home-price { font-size: 16px; color: var(--text); margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); letter-spacing: 0.02em; }
.home-price strong { font-weight: 700; color: var(--ink); }
.home-specs { font-size: 11.5px; font-weight: 700; color: var(--text); letter-spacing: 0.03em; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.home-sqft { font-size: 11.5px; font-weight: 700; color: var(--muted); margin-top: 5px; letter-spacing: 0.04em; }
.home-ai {
  margin: 14px 18px 0; padding: 9px 12px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 7px;
  display: flex; align-items: center; gap: 8px;
  font-size: 11.5px; color: var(--text-2); text-align: left; line-height: 1.4;
}
.home-ai svg { color: var(--orange); flex-shrink: 0; }
.home-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; margin-top: 14px; }
.home-actions button { height: 42px; border: 0; font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; color: white; letter-spacing: 0.02em; white-space: nowrap; }
.home-actions .dl { background: var(--navy); }
.home-actions .sh { background: var(--navy-line); }
.home-actions .vw { background: var(--orange); }
.home-actions .dl:hover { background: var(--navy-deep); }
.home-actions .sh:hover { background: var(--navy); }
.home-actions .vw:hover { background: var(--orange-hi); }

/* filter bar */
.filterbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.filter { height: 38px; padding: 0 12px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 6px; display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; white-space: nowrap; }
.filter:hover { border-color: var(--muted); }
.filter svg { color: var(--muted); }
.filter.reset { color: var(--orange); border-color: var(--orange-line); }

/* ===== Funnel ===== */
.funnel-row { display: grid; grid-template-columns: 120px 1fr 60px 60px; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); }
.funnel-row:last-child { border-bottom: 0; }
.funnel-bar { height: 9px; background: var(--bg-2); border-radius: 5px; position: relative; overflow: hidden; }
.funnel-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--navy), var(--navy-line)); border-radius: 5px; }
.funnel-stage { font-size: 13px; font-weight: 600; color: var(--text); }
.funnel-cnt { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--ink); }
.funnel-pct { font-family: var(--mono); font-size: 11.5px; text-align: right; color: var(--muted); }

/* ===== AI Copilot Drawer ===== */
.copilot-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 50;
  height: 50px; padding: 0 18px 0 14px;
  border-radius: 999px;
  background: var(--navy); color: white;
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; border: 0;
  box-shadow: 0 16px 36px -10px rgba(13,41,68,0.5);
  font-family: inherit; font-size: 13px; font-weight: 600;
  transition: transform .15s;
}
.copilot-launcher:hover { transform: translateY(-1px); }
.copilot-launcher .ai-bug { width: 26px; height: 26px; }
.copilot-launcher .badge { background: var(--orange); color: white; font-family: var(--mono); font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }

.copilot-scrim { position: fixed; inset: 0; background: rgba(13,41,68,0.30); backdrop-filter: blur(2px); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .2s; }
.copilot-scrim.open { opacity: 1; pointer-events: auto; }

.copilot {
  position: fixed; top: 0; right: 0; bottom: 0; width: 520px; max-width: calc(100vw - 32px); z-index: 110;
  background: var(--surface);
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: -30px 0 60px -20px rgba(13,41,68,0.30);
  transform: translateX(105%);
  transition: transform .26s cubic-bezier(.22,.61,.36,1);
}
.copilot.open { transform: translateX(0); }
.copilot-head { padding: 16px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; background: var(--navy); color: white; }
.ai-bug { width: 30px; height: 30px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; position: relative; flex-shrink: 0; }
.ai-bug svg { color: white; width: 15px; height: 15px; }
.copilot-title { font-size: 14px; font-weight: 700; }
.copilot-sub { font-size: 10px; opacity: 0.7; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 1px; }
.copilot-close { width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; color: rgba(255,255,255,0.7); cursor: pointer; margin-left: 4px; }
.copilot-close:hover { background: rgba(255,255,255,0.12); color: white; }

.copilot-context { padding: 9px 18px; border-bottom: 1px solid var(--border); font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; display: flex; align-items: center; gap: 7px; background: var(--bg-2); }
.copilot-context .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--good); }

.copilot-stream { flex: 1; overflow-y: auto; padding: 16px; }
.msg-block { margin-bottom: 18px; }
.msg-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; font-size: 11px; color: var(--muted); }
.msg-meta .role { text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; font-weight: 700; color: var(--orange); }
.msg-body { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; font-size: 13px; line-height: 1.55; color: var(--text); }
.msg-body.user { background: var(--navy); color: #eaf1f8; border-color: var(--navy); }

.ai-suggest { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.ai-suggest .chip { padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; font-size: 12.5px; color: var(--text); cursor: pointer; display: flex; align-items: center; gap: 8px; background: var(--surface); }
.ai-suggest .chip:hover { border-color: var(--orange-line); background: var(--orange-soft); }
.ai-suggest .chip svg { color: var(--orange); }

.ai-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-top: 10px; overflow: hidden; }
.ai-card-head { padding: 9px 12px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; font-size: 10px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); font-weight: 700; background: var(--bg-2); }
.ai-card-body { padding: 12px; font-size: 12.5px; color: var(--text); line-height: 1.5; }

.match-home { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 8px; margin-top: 8px; }
.match-thumb { width: 56px; height: 42px; border-radius: 5px; background: linear-gradient(170deg, #cfdceb, #9bb4cf); flex-shrink: 0; }
.match-info { flex: 1; min-width: 0; }
.match-name { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1; }
.match-meta { font-size: 11px; color: var(--muted); margin-top: 3px; }
.match-score { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--orange); }

.copilot-foot { padding: 12px; border-top: 1px solid var(--border); background: var(--bg-2); }
.copilot-input { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; }
.copilot-input input { background: transparent; border: 0; outline: 0; color: var(--text); font-family: inherit; font-size: 13px; flex: 1; min-width: 0; }
.copilot-input input::placeholder { color: var(--subtle); }
.copilot-input .send { width: 30px; height: 30px; border-radius: 7px; background: var(--orange); display: grid; place-items: center; color: white; cursor: pointer; flex-shrink: 0; }
.copilot-foot .hint { margin-top: 8px; font-size: 10.5px; color: var(--subtle); letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; display: flex; align-items: center; gap: 10px; }

/* ===== Timeline ===== */
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 1px; background: var(--border); }
.event { position: relative; padding-bottom: 18px; }
.event:last-child { padding-bottom: 0; }
.event .marker { position: absolute; left: -22px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.event.orange .marker { background: var(--orange); border-color: var(--orange); }
.event.ai .marker { background: var(--navy); border-color: var(--navy); }
.event-head { display: flex; align-items: baseline; gap: 8px; font-size: 13px; }
.event-actor { font-weight: 700; color: var(--ink); }
.event-action { color: var(--muted); }
.event-time { margin-left: auto; font-family: var(--mono); font-size: 10.5px; color: var(--subtle); }
.event-body { margin-top: 6px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--text); line-height: 1.55; }

/* ===== Lead detail ===== */
.lead-layout { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.profile-card { padding: 24px; }
.profile-av { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 700; color: white; margin-bottom: 14px; }
.profile-name { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.profile-role { color: var(--muted); font-size: 13px; margin-top: 5px; }
.profile-grid { display: grid; gap: 14px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.profile-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; }
.profile-row .lbl { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); width: 92px; flex-shrink: 0; margin-top: 2px; font-weight: 600; }
.profile-row .val { color: var(--ink); font-weight: 500; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tab { padding: 11px 14px; font-size: 13px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--ink); border-color: var(--orange); }

/* ===== Kanban ===== */
.kanban { display: grid; grid-template-columns: repeat(5, minmax(238px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.col { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-lg); display: flex; flex-direction: column; min-height: 480px; max-height: 70vh; }
.col-head { padding: 12px 14px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.col-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink); }
.col-title .swatch { width: 7px; height: 7px; border-radius: 50%; background: var(--navy); }
.col-meta { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.col-body { padding: 10px; flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 12px; cursor: grab; box-shadow: var(--shadow-1); }
.kcard:hover { border-color: var(--border-strong); }
.kcard-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.kcard-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.kcard-val { font-family: var(--mono); font-size: 12px; color: var(--orange); font-weight: 600; }
.kcard-asset { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.kcard-foot { display: flex; align-items: center; justify-content: space-between; }
.kcard-foot .av { width: 22px; height: 22px; font-size: 9px; }

/* density */
body[data-density="compact"] .stat { padding: 13px 16px; }
body[data-density="compact"] .stat-value { font-size: 27px; }
body[data-density="compact"] .content { padding: 22px 24px 50px; }
body[data-density="compact"] .tbl td { padding: 10px 14px; }
body[data-density="compact"] .card-body { padding: 14px; }

/* ════════════════════════════════════════════════════════
   PEOPLE · WEATHER · JOURNEYS
   ════════════════════════════════════════════════════════ */

/* AI insight strip (reusable) */
.insight-strip { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }

/* ── Weather chips ── */
.wxchip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); }
.wxchip.sm { padding: 3px 8px; font-size: 11.5px; }
.wxchip .mono { font-size: 12px; }
.wxchip-cond { color: var(--muted); font-weight: 500; }
.wxchip svg { flex-shrink: 0; }
.wx-sun   { color: var(--warn);  border-color: rgba(217,138,31,0.32);  background: rgba(217,138,31,0.10); }
.wx-rain  { color: var(--info);  border-color: rgba(46,123,214,0.30);  background: rgba(46,123,214,0.09); }
.wx-snow  { color: #5b8fd6;      border-color: rgba(91,143,214,0.30);  background: rgba(91,143,214,0.10); }
.wx-cloud { color: #7388a0;      border-color: var(--border-strong);    background: var(--surface-3); }
.wxchip.wx-sun .wxchip-cond, .wxchip.wx-rain .wxchip-cond, .wxchip.wx-snow .wxchip-cond, .wxchip.wx-cloud .wxchip-cond { color: inherit; opacity: 0.7; }

/* ── Weather contrast hero (profile) ── */
.wx-contrast { display: grid; grid-template-columns: 1fr auto 1fr 1.1fr; align-items: stretch; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-1); background: var(--surface); }
.wx-side { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.wx-side-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.wx-side-icon svg { width: 22px; height: 22px; }
.wx-side.wx-rain { background: linear-gradient(135deg, #1c3a5e, #15406c); color: #cfe0f3; }
.wx-side.wx-snow { background: linear-gradient(135deg, #2a4a72, #1c3a5e); color: #dbe8f7; }
.wx-side.wx-cloud { background: linear-gradient(135deg, #3a4a5c, #2c3947); color: #d4dde7; }
.wx-side.wx-sun { background: linear-gradient(135deg, var(--orange), var(--orange-hi)); color: #fff; }
.wx-side.wx-rain .wx-side-icon, .wx-side.wx-snow .wx-side-icon, .wx-side.wx-cloud .wx-side-icon { background: rgba(255,255,255,0.14); }
.wx-side.wx-sun .wx-side-icon { background: rgba(255,255,255,0.22); }
.wx-side-label { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; font-weight: 600; }
.wx-side-temp { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1.05; margin-top: 2px; }
.wx-side-temp span { font-family: var(--sans); font-size: 12px; font-weight: 500; opacity: 0.85; margin-left: 8px; }
.wx-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 0 16px; background: var(--navy-deep); color: var(--orange-hi); }
.wx-arrow svg { width: 18px; height: 18px; }
.wx-arrow span { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.55); font-weight: 600; }
.wx-cta { display: flex; align-items: center; padding: 16px 20px; background: var(--bg-2); border-left: 1px solid var(--border); }

/* ── Weather hero (journeys list) ── */
.wx-hero { background: linear-gradient(135deg, var(--navy-deep), #11365c 55%, #15406c); border-radius: var(--radius-lg); padding: 22px 24px 24px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.wx-hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.wx-hero-title { font-family: var(--serif); font-size: 27px; font-weight: 600; color: #fff; margin-top: 6px; letter-spacing: 0.005em; }
.wx-fl { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, var(--orange), var(--orange-hi)); border-radius: 12px; padding: 12px 20px 12px 14px; flex-shrink: 0; box-shadow: 0 12px 30px -12px rgba(227,112,27,0.6); }
.wx-fl-ic { width: 44px; height: 44px; border-radius: 10px; background: rgba(255,255,255,0.22); display: grid; place-items: center; color: #fff; }
.wx-fl-ic svg { width: 24px; height: 24px; }
.wx-fl-label { font-size: 9px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.85); font-weight: 700; }
.wx-fl-temp { font-family: var(--serif); font-size: 38px; font-weight: 600; color: #fff; line-height: 1; }
.wx-fl-cond { font-size: 11.5px; color: rgba(255,255,255,0.9); font-weight: 500; margin-top: 2px; }
.wx-cities { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.wx-city { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; padding: 12px 12px 11px; text-align: center; transition: transform .15s; }
.wx-city.on { background: rgba(227,112,27,0.14); border-color: var(--orange-line); }
.wx-city-ic { display: grid; place-items: center; height: 22px; margin-bottom: 4px; }
.wx-city.wx-rain .wx-city-ic { color: #7db4f0; }
.wx-city.wx-snow .wx-city-ic { color: #acd0f5; }
.wx-city.wx-cloud .wx-city-ic { color: #9fb2c6; }
.wx-city-temp { font-family: var(--serif); font-size: 24px; font-weight: 600; color: #fff; line-height: 1; }
.wx-city-name { font-size: 11px; font-weight: 700; color: rgba(255,255,255,0.92); margin-top: 5px; }
.wx-city-cond { font-size: 9.5px; color: rgba(255,255,255,0.55); margin-top: 2px; min-height: 22px; line-height: 1.3; }
.wx-city-foot { margin-top: 7px; padding-top: 7px; border-top: 1px solid rgba(255,255,255,0.10); }
.wx-trig { font-size: 9.5px; font-weight: 700; color: var(--orange-hi); letter-spacing: 0.02em; }
.wx-idle { font-size: 9.5px; color: rgba(255,255,255,0.45); font-weight: 600; }

/* ── Toggle switch ── */
.switch { display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--border-strong); position: relative; transition: background .18s; }
.switch .track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(13,41,68,0.3); transition: transform .18s; }
.switch input:checked + .track { background: var(--good); }
.switch input:checked + .track::after { transform: translateX(16px); }

/* ── Recipe cards (journeys list) ── */
.recipe-card { padding: 18px 20px; cursor: pointer; transition: box-shadow .18s, transform .18s; }
.recipe-card:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.recipe-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.recipe-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.recipe-ic.wx-rain { background: rgba(46,123,214,0.12); color: var(--info); }
.recipe-ic.wx-snow { background: rgba(91,143,214,0.14); color: #5b8fd6; }
.recipe-ic.wx-cloud { background: var(--surface-3); color: #7388a0; }
.recipe-ic.wx-sun { background: rgba(217,138,31,0.14); color: var(--warn); }
.recipe-name { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); }
.recipe-tag { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.recipe-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.recipe-step { padding: 13px 16px; min-width: 0; }
.recipe-step-lbl { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.recipe-step-body { font-size: 12.5px; color: var(--text); line-height: 1.45; }
.recipe-conn { display: grid; place-items: center; color: var(--subtle); font-size: 18px; background: var(--surface); border-left: 1px solid var(--border); border-right: 1px solid var(--border); padding: 0 10px; }
.recipe-foot { display: flex; align-items: center; gap: 22px; margin-top: 14px; }
.recipe-metric { font-size: 12px; color: var(--muted); }
.recipe-metric .mono { font-size: 14px; color: var(--ink); font-weight: 600; margin-right: 3px; }

/* enrolled rows */
.enroll-row { display: flex; align-items: center; gap: 14px; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.enroll-row:hover { border-color: var(--orange-line); background: var(--orange-soft); }
.enroll-mini { display: flex; align-items: center; gap: 10px; padding: 9px 0; cursor: pointer; }
.enroll-mini:hover .av-name { color: var(--orange); }

/* ── Journey builder ── */
.journey-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.build-step { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.build-badge { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 17px; font-weight: 600; flex-shrink: 0; }
.build-card { flex: 1; }
.build-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.build-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 3px; line-height: 1.35; }
.build-body { padding: 18px; }
.build-spine { grid-column: 1; width: 34px; text-align: center; color: var(--border-strong); font-size: 18px; padding: 6px 0; }
.build-note { margin-top: 14px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; line-height: 1.45; }
.build-note svg { color: var(--orange); flex-shrink: 0; }
.cond-list { display: flex; flex-direction: column; gap: 8px; }
.cond { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; font-size: 13px; color: var(--text); }
.cond-op { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--orange); background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 5px; padding: 2px 7px; flex-shrink: 0; }

/* results */
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-bottom: 16px; }
.result-cell { background: var(--surface); padding: 14px 16px; }
.result-v { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height: 1; }
.result-l { font-size: 11px; color: var(--muted); margin-top: 5px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }

/* ── Email preview ── */
.email-frame { border: 1px solid var(--border-strong); border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow-1); max-width: 460px; }
.email-chrome { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface-3); border-bottom: 1px solid var(--border); }
.email-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.email-from { margin-left: 8px; font-size: 11px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.email-subjbar { padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.email-subj { font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.email-pre { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.email-body { padding: 20px; }
.email-logo { font-family: var(--serif); font-weight: 600; font-size: 16px; color: var(--navy); letter-spacing: 0.02em; text-align: center; margin-bottom: 14px; }
.email-logo span { font-weight: 400; opacity: 0.85; }
.email-hero { height: 130px; border-radius: 8px; position: relative; overflow: hidden; display: grid; place-items: end center; padding-bottom: 12px; background: linear-gradient(180deg, #8fc1ef 0%, #bfe0c4 60%, #7fb98a 100%); }
.email-hero-sky { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(143,193,239,0.9), transparent 55%); }
.email-hero-sun { position: absolute; top: 16px; right: 22px; width: 36px; height: 36px; border-radius: 50%; background: radial-gradient(circle, #ffe08a, #f5a623); box-shadow: 0 0 28px 8px rgba(245,166,35,0.5); }
.email-hero span { position: relative; font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,0.3); }
.email-headline { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1.2; margin: 18px 0 10px; text-align: center; }
.email-p { font-size: 13px; line-height: 1.6; color: var(--text-2); margin: 0 0 12px; }
.email-feature { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg-2); margin: 16px 0; }
.email-feature-thumb { width: 70px; height: 54px; border-radius: 6px; background: linear-gradient(170deg, #cfdceb, #9bb4cf); flex-shrink: 0; }
.email-feature-name { font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink); line-height: 1; }
.email-feature-meta { font-size: 11.5px; color: var(--orange); font-weight: 600; margin-top: 4px; }
.email-feature-spec { font-size: 11px; color: var(--muted); margin-top: 3px; }
.email-cta { background: var(--orange); color: #fff; text-align: center; font-weight: 700; font-size: 13px; padding: 13px; border-radius: 8px; letter-spacing: 0.02em; }
.email-sign { font-size: 11px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.5; }

@media (max-width: 1200px) {
  .journey-layout { grid-template-columns: 1fr; }
  .wx-cities { grid-template-columns: repeat(4, 1fr); }
}

/* ════════════════════════════════════════════════════════
   HOME & COMMUNITY DETAIL PAGES
   ════════════════════════════════════════════════════════ */
.link-accent { color: var(--orange); font-weight: 600; cursor: pointer; }
.link-accent:hover { text-decoration: underline; }

/* Gallery hero */
.detail-hero { display: grid; grid-template-columns: 1fr; gap: 12px; }
.detail-hero-main {
  position: relative; aspect-ratio: 21 / 8; border-radius: var(--radius-lg); overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(13,41,68,0.03) 0 12px, transparent 12px 24px), linear-gradient(170deg, #cfdceb, #aec3da 60%, #9bb4cf);
  display: grid; place-items: center; box-shadow: var(--shadow-1); border: 1px solid var(--border);
}
.detail-hero-main .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #bcd4ec 0%, #cfe0ef 45%, transparent 75%); }
.detail-hero-main.comm { aspect-ratio: 21 / 7; }
.detail-hero-main.comm .comm-sky { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(188,212,236,0.7), transparent 55%), linear-gradient(170deg, #bcd4ec, #9bb4cf 60%, #7d9bbb); }
.detail-hero-main .ribbon {
  position: absolute; top: 0; left: 26px; background: var(--navy); color: white;
  font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase;
  padding: 9px 16px 17px; white-space: nowrap; z-index: 2;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
}
.detail-hero-main .ribbon.summer { background: var(--navy-deep); }
.detail-hero-price {
  position: absolute; bottom: 16px; left: 20px; z-index: 2;
  background: var(--orange); color: #fff; font-family: var(--serif); font-size: 26px; font-weight: 600;
  padding: 6px 16px; border-radius: 8px; box-shadow: var(--shadow-1); letter-spacing: 0.01em;
}
.detail-hero-tag { position: relative; z-index: 1; color: #5c789a; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.detail-photocount { position: absolute; bottom: 16px; right: 16px; z-index: 2; background: rgba(13,41,68,0.55); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.detail-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.detail-thumb {
  aspect-ratio: 16 / 11; border-radius: 8px; border: 1px solid var(--border); cursor: pointer;
  background: linear-gradient(170deg, #d6e1ee, #aec3da); display: grid; place-items: end center; padding-bottom: 8px;
  transition: border-color .15s, transform .15s;
}
.detail-thumb:hover { border-color: var(--orange-line); transform: translateY(-2px); }
.detail-thumb span { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #5c789a; font-weight: 600; }

/* community hero stat row */
.detail-hero-stats { position: relative; z-index: 2; display: flex; gap: 0; background: rgba(13,41,68,0.62); backdrop-filter: blur(6px); border-radius: 12px; overflow: hidden; }
.dh-stat { padding: 14px 26px; border-right: 1px solid rgba(255,255,255,0.14); text-align: center; }
.dh-stat:last-child { border-right: 0; }
.dh-v { font-family: var(--serif); font-size: 26px; font-weight: 600; color: #fff; line-height: 1; }
.dh-l { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.7); margin-top: 5px; font-weight: 600; }

/* spec strip (key facts) */
.spec-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 18px; }
.spec { background: var(--surface); padding: 12px 6px; text-align: center; }
.spec-v { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1; }
.spec-l { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }

.incentive-box { margin-top: 20px; padding: 14px; background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 10px; }

/* floor plan rooms */
.rooms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.room { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; }
.room-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.room-dim { font-size: 12.5px; color: var(--orange); font-weight: 600; }
.floorplan-cta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }

/* home rows (in community) */
.home-row { display: flex; align-items: center; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.home-row:hover { border-color: var(--orange-line); box-shadow: var(--shadow-1); }
.home-row-thumb { width: 92px; height: 64px; border-radius: 8px; overflow: hidden; position: relative; flex-shrink: 0; background: linear-gradient(170deg, #cfdceb, #9bb4cf); }
.home-row-thumb .sky { position: absolute; inset: 0; background: linear-gradient(180deg, #bcd4ec, transparent 70%); }

/* ── Edit modal ── */
.edit-overlay { position: fixed; inset: 0; background: rgba(13,41,68,0.42); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.edit-modal {
  width: 520px; max-width: 100%; max-height: calc(100vh - 60px);
  background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2); display: flex; flex-direction: column; overflow: hidden;
}
.edit-head { padding: 18px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.edit-head .eyebrow.accent { display: flex; align-items: center; gap: 6px; }
.edit-head .eyebrow.accent svg { width: 12px; height: 12px; }
.edit-title { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--ink); margin-top: 5px; }
.edit-body { padding: 20px; overflow-y: auto; }
.edit-field { margin-bottom: 16px; }
.edit-label { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 7px; }
.edit-input {
  width: 100%; font-family: inherit; font-size: 13.5px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 10px 12px; outline: none; resize: vertical; box-sizing: border-box;
}
.edit-input:focus { border-color: var(--orange); background: var(--surface); box-shadow: 0 0 0 3px var(--orange-soft); }
textarea.edit-input { line-height: 1.55; }
.edit-ai { margin-top: 4px; font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; line-height: 1.45; background: var(--bg-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.edit-ai svg { color: var(--orange); flex-shrink: 0; }
.edit-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; background: var(--bg-2); }

.detail-hero-main .photo-grade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,41,68,0.22), transparent 35%, transparent 65%, rgba(13,41,68,0.30)); }
.detail-thumb span.on-photo { color: #fff; text-shadow: 0 1px 6px rgba(13,41,68,0.85); position: relative; z-index: 1; }
.detail-thumb { position: relative; overflow: hidden; }
.detail-thumb span { position: relative; z-index: 1; }
.detail-thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(13,41,68,0.45)); }
.email-hero span { z-index: 1; }

@media (max-width: 1100px) {
  .detail-thumbs { grid-template-columns: repeat(3, 1fr); }
  .rooms-grid { grid-template-columns: 1fr; }
  .detail-hero-stats { flex-wrap: wrap; }
}

/* ════════════════════════════════════════════════════
   NEAL ASSISTANT — DEMO PROMPTS & ANSWER CARDS
   ════════════════════════════════════════════════════ */
.copilot-reset {
  font-family: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: rgba(255,255,255,0.85); background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px; padding: 5px 10px; cursor: pointer; white-space: nowrap;
}
.copilot-reset:hover { background: rgba(255,255,255,0.2); }

/* prompt menu */
.demo-prompts { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.demo-prompt {
  display: flex; align-items: center; gap: 10px; text-align: left; width: 100%;
  font-family: inherit; font-size: 12.5px; font-weight: 600; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 9px;
  padding: 10px 12px; cursor: pointer; transition: border-color .15s, background .15s;
}
.demo-prompt:hover { border-color: var(--orange-line); background: var(--orange-soft); }
.demo-prompt .dp-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--orange-soft); border: 1px solid var(--orange-line); color: var(--orange); display: grid; place-items: center; flex-shrink: 0; }
.demo-prompt .dp-ic svg { width: 11px; height: 11px; }
.demo-prompt.played { opacity: 0.72; }
.demo-prompt.played .dp-ic { background: rgba(31,138,91,0.10); border-color: rgba(31,138,91,0.3); color: var(--good); }
.demo-prompt .dp-text { flex: 1; min-width: 0; }
.demo-prompt .dp-go { color: var(--subtle); flex-shrink: 0; }

/* compact weather-signal strip */
.wx-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; flex-wrap: wrap; }
.wx-strip-main { display: flex; align-items: center; gap: 12px; }
.wx-strip-cities { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ── Web activity feed (lead detail) ── */
.act-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.act-stat { background: var(--surface); padding: 12px 14px; }
.act-stat-v { font-family: var(--serif); font-size: 24px; font-weight: 600; color: var(--ink); line-height: 1; }
.act-stat-l { font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 600; }
.act-feed { display: flex; flex-direction: column; }
.act-row { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.act-row:last-child { border-bottom: 0; }
.act-ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex-shrink: 0; margin-top: 2px; }
.act-ic.page { background: rgba(46,123,214,0.10); color: var(--info); }
.act-ic.form { background: var(--orange-soft); color: var(--orange); }
.act-ic.email { background: rgba(21,64,108,0.08); color: var(--navy); }
.act-ic.journey { background: var(--orange-soft); color: var(--orange); }
.act-main { flex: 1; min-width: 0; }
.act-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.act-kind { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.act-time { font-size: 11px; color: var(--subtle); }
.act-title { font-size: 13.5px; font-weight: 700; color: var(--ink); margin-top: 3px; line-height: 1.4; }
.act-body { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.act-journey {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--orange);
  background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 999px;
  padding: 5px 11px; cursor: pointer;
}
.act-journey:hover { background: var(--surface); }
.act-journey svg { width: 11px; height: 11px; }

/* ── Ops pages: tours chart, integrations ── */
.ops-delta { font-size: 10.5px; font-weight: 700; color: var(--good); white-space: nowrap; }
.appt-chart { display: flex; gap: 10px; align-items: stretch; height: 150px; }
.appt-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.appt-bars { flex: 1; display: flex; gap: 3px; align-items: flex-end; justify-content: center; }
.appt-bar { width: 16px; border-radius: 4px 4px 0 0; position: relative; min-height: 6px; }
.appt-bar span { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 9.5px; font-weight: 600; color: var(--muted); }
.appt-bar.s { background: var(--navy); }
.appt-bar.c { background: var(--orange); }
.appt-week { text-align: center; font-size: 9.5px; color: var(--muted); margin-top: 7px; font-family: var(--mono); white-space: nowrap; }
.tbl .pill svg { width: 11px; height: 11px; margin-right: 3px; vertical-align: -1.5px; }

.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.int-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.int-logo { width: 38px; height: 38px; border-radius: 9px; color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; letter-spacing: 0.01em; }
.int-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.int-desc { font-size: 12px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.int-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--border); }
.int-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--good); }
.int-status .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.int-sync { font-size: 11px; color: var(--subtle); font-family: var(--mono); }
.int-request { border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
@media (max-width: 1100px) { .int-grid { grid-template-columns: repeat(2, 1fr); } }

/* up-next suggestion after an answer */
.next-up { margin-top: 2px; padding-top: 12px; border-top: 1px dashed var(--border-strong); }
.next-up-label { display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.next-up-label svg { width: 11px; height: 11px; }
.demo-prompt.next { border-color: var(--orange-line); background: var(--orange-soft); box-shadow: var(--shadow-1); }
.demo-prompt.next:hover { background: var(--surface); }

/* thinking */
.thinking { display: flex; align-items: center; gap: 5px; padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; width: fit-content; }
.t-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); opacity: 0.85; }
@media (prefers-reduced-motion: no-preference) {
  .t-dot { animation: tPulse 1s ease-in-out infinite; }
  .t-dot:nth-child(2) { animation-delay: .18s; }
  .t-dot:nth-child(3) { animation-delay: .36s; }
}
@keyframes tPulse { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
.t-label { font-size: 11.5px; color: var(--muted); margin-left: 6px; }

/* legend + shared bits */
.demo-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.demo-legend span { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.demo-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.demo-divider { height: 1px; background: var(--border); margin: 14px 0; }
.demo-stats { display: flex; gap: 0; }
.demo-stats > div { flex: 1; padding: 0 14px; border-right: 1px solid var(--border); }
.demo-stats > div:first-child { padding-left: 0; }
.demo-stats > div:last-child { border-right: 0; }
.ds-v { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.ds-v.big { font-size: 30px; line-height: 1; }
.ds-l { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-top: 3px; }

/* paired bars */
.pairbar-row { margin-bottom: 12px; }
.pairbar-row:last-child { margin-bottom: 0; }
.pairbar-label { font-size: 11.5px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.pairbar-tracks { display: flex; flex-direction: column; gap: 3px; }
.pairbar-track { display: flex; align-items: center; gap: 8px; height: 14px; }
.pairbar-fill { height: 12px; border-radius: 3px; min-width: 3px; }
.pairbar-fill.a { background: #2f6fae; }
.pairbar-fill.b { background: var(--orange); }
.pairbar-track .mono { font-size: 10.5px; color: var(--muted); }
.pairbar-note { font-size: 10.5px; color: var(--muted); margin-top: 3px; font-family: var(--mono); }
.pairbar-note.hot { color: var(--good); font-weight: 600; }

/* rank bars */
.rankbars { display: flex; flex-direction: column; gap: 14px; }
.rankbar { display: flex; gap: 12px; align-items: flex-start; }
.rankbar-rank { width: 22px; height: 22px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; font-size: 11px; font-weight: 700; color: var(--muted); flex-shrink: 0; }
.rankbar-head { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.rankbar-track { height: 8px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.rankbar-fill { height: 100%; background: var(--navy); border-radius: 4px; }
.rankbar-fill.top { background: linear-gradient(90deg, var(--orange), var(--orange-hi)); }
.rankbar-meta { font-size: 10.5px; color: var(--muted); margin-top: 4px; }

/* heat grid */
.heat-wrap { display: flex; flex-direction: column; gap: 16px; }
.heat-title { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.heat-grid { display: grid; grid-template-columns: 36px repeat(4, 1fr); gap: 3px; align-items: center; }
.heat-col { font-size: 9px; color: var(--muted); text-align: center; font-family: var(--mono); }
.heat-row { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.heat-cell { height: 16px; border-radius: 4px; }

/* mini funnel */
.mini-funnel { display: flex; flex-direction: column; gap: 9px; }
.mf-row { display: grid; grid-template-columns: 104px 1fr 52px 42px; align-items: center; gap: 10px; }
.mf-label { font-size: 11.5px; font-weight: 700; color: var(--ink); }
.mf-track { height: 14px; background: var(--bg-2); border-radius: 4px; overflow: hidden; }
.mf-fill { height: 100%; background: var(--navy); border-radius: 4px; min-width: 4px; }
.mf-fill.last { background: linear-gradient(90deg, var(--orange), var(--orange-hi)); }
.mf-v { font-size: 11.5px; font-weight: 600; color: var(--ink); text-align: right; }
.mf-pct { font-size: 10.5px; color: var(--muted); text-align: right; }

/* demo table */
.demo-tbl { width: 100%; border-collapse: collapse; }
.demo-tbl th { text-align: left; font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 0 8px 7px 0; border-bottom: 1px solid var(--border); }
.demo-tbl td { font-size: 12px; color: var(--text); padding: 8px 8px 8px 0; border-bottom: 1px solid var(--border); vertical-align: middle; }
.demo-tbl tr:last-child td { border-bottom: 0; }
.demo-tbl .hot-dom { color: var(--bad, #c4453a); font-weight: 700; }

/* takeaways */
.takeaways { margin-top: 10px; background: var(--orange-soft); border: 1px solid var(--orange-line); border-radius: 10px; padding: 12px 14px; }
.takeaways-head { display: flex; align-items: center; gap: 6px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--orange); font-weight: 700; margin-bottom: 8px; }
.takeaways-head svg { width: 11px; height: 11px; }
.takeaways ul { margin: 0; padding-left: 16px; }
.takeaways li { font-size: 12px; line-height: 1.55; color: var(--text); margin-bottom: 6px; }
.takeaways li:last-child { margin-bottom: 0; }
