/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0A2540;
  --navy2:   #0D3060;
  --cyan:    #00B4D8;
  --cyan-lt: #90E0EF;
  --green:   #22C55E;
  --orange:  #F59E0B;
  --red:     #EF4444;
  --bg:      #F1F5F9;
  --white:   #FFFFFF;
  --card:    #FFFFFF;
  --border:  #E2E8F0;
  --text:    #1E293B;
  --muted:   #64748B;
  --radius:  10px;
  --shadow:  0 2px 12px rgba(10,37,64,.10);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy2); text-decoration: none; }
a:hover { color: var(--cyan); }

/* ── Navbar ───────────────────────────────────────────────────────────────── */
.navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -.3px;
}
.brand-icon { margin-right: 4px; }
.brand-sub { font-size: 12px; color: var(--cyan-lt); font-weight: 400; margin-left: 6px; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: rgba(255,255,255,.8); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--white); }
.btn-nav-primary {
  background: var(--cyan);
  color: var(--navy) !important;
  padding: 7px 16px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 13px !important;
}
.btn-nav-primary:hover { background: var(--cyan-lt); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white);
  padding: 64px 24px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -1px; color: var(--white); }
.hero-sub { font-size: 18px; color: rgba(255,255,255,.75); margin: 16px 0 32px; }
.btn-hero {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 8px;
  transition: background .15s;
}
.btn-hero:hover { background: var(--cyan-lt); color: var(--navy); }

/* ── Page Header ──────────────────────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white);
  padding: 40px 24px 36px;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header h1 { font-size: 30px; font-weight: 800; color: var(--white); letter-spacing: -.5px; }
.page-header p { color: rgba(255,255,255,.75); margin-top: 6px; font-size: 15px; }
.breadcrumb { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 10px; }
.breadcrumb a { color: rgba(255,255,255,.6); }
.breadcrumb a:hover { color: var(--white); }

/* ── Page Content ─────────────────────────────────────────────────────────── */
.page-content { max-width: 1200px; margin: 0 auto; padding: 32px 24px 80px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--navy2); color: var(--white); }
.btn-primary.btn-large { padding: 13px 28px; font-size: 15px; }
.btn-primary.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: 8px 18px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .15s;
}
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-ghost {
  display: inline-block;
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 7px;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s;
}
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-ghost.btn-sm { padding: 5px 12px; font-size: 12px; }
.full-width { width: 100%; text-align: center; display: block; }
.mt-1 { margin-top: 12px; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.card-link { display: block; transition: box-shadow .15s, border-color .15s; }
.card-link:hover { box-shadow: 0 4px 20px rgba(10,37,64,.15); border-color: var(--cyan); }
.card-title { font-weight: 700; font-size: 15px; color: var(--text); }
.card-sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.card-meta { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ── Stats Row ────────────────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-number { font-size: 40px; font-weight: 800; color: var(--navy); letter-spacing: -1px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 500; margin-top: 4px; }

/* ── Two Column ───────────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.section-title { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.empty-state { color: var(--muted); font-size: 14px; padding: 24px 0; }
.empty-state.large { text-align: center; padding: 60px 0; font-size: 16px; }
.empty-state a { color: var(--navy); font-weight: 600; }

/* ── Workflow ─────────────────────────────────────────────────────────────── */
.workflow-section { margin-top: 48px; }
.workflow-steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.workflow-step { flex: 1; text-align: center; padding: 0 12px; }
.step-num {
  width: 40px; height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-weight: 800;
  font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.step-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.step-desc { font-size: 13px; color: var(--muted); line-height: 1.5; }
.workflow-arrow { font-size: 24px; color: var(--cyan); padding-top: 8px; flex-shrink: 0; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.form-section { padding: 28px 32px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; }
.form-section-title { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
  font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,216,.1);
}
.label-hint { font-size: 12px; color: var(--muted); font-weight: 400; }
.form-hint { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.form-actions { padding: 24px 32px; display: flex; gap: 12px; justify-content: flex-end; background: #F8FAFC; }
.costar-tip {
  margin-top: 16px;
  padding: 12px 16px;
  background: #EFF6FF;
  border-left: 3px solid var(--cyan);
  border-radius: 6px;
  font-size: 13px;
  color: #1E40AF;
}
.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-form-row:last-child { border-bottom: none; }

/* ── Tables ───────────────────────────────────────────────────────────────── */
.table-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 16px;
}
.search-input {
  padding: 9px 14px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 14px;
  width: 280px;
}
.search-input:focus { outline: none; border-color: var(--cyan); }
.table-wrap { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { background: #F8FAFC; padding: 11px 16px; text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--border); }
.data-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: #F8FAFC; }
.text-muted { color: var(--muted); }

/* ── Badges ───────────────────────────────────────────────────────────────── */
.badge-verified { background: #DCFCE7; color: #166534; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.badge-estimated { background: #FEF9C3; color: #854D0E; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.badge-manual { background: #DBEAFE; color: #1E40AF; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.sent-badge { background: #DCFCE7; color: #166534; padding: 6px 14px; border-radius: 6px; font-size: 13px; font-weight: 700; }
.estimated-badge { background: #FEF9C3; color: #92400E; padding: 6px 10px; border-radius: 6px; font-size: 12px; margin-bottom: 12px; }

.cat-badge { padding: 3px 10px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.cat-FOOD_QSR, .cat-FOOD_FAST_CASUAL, .cat-FOOD_CASUAL_DINING { background: #FEE2E2; color: #991B1B; }
.cat-BEVERAGE { background: #E0F2FE; color: #0C4A6E; }
.cat-FITNESS { background: #DCFCE7; color: #14532D; }
.cat-AUTO_PARTS, .cat-AUTO_SERVICE { background: #F3F4F6; color: #374151; }
.cat-CHILDCARE { background: #FDF4FF; color: #6B21A8; }
.cat-PET { background: #FFF7ED; color: #9A3412; }
.cat-BEAUTY { background: #FCE7F3; color: #9D174D; }
.cat-MEDICAL { background: #EFF6FF; color: #1E3A8A; }
.cat-FINANCIAL { background: #F0FDF4; color: #166534; }

/* ── Match Results ────────────────────────────────────────────────────────── */
.results-actions { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.match-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--border);
}
.match-hot { border-top-color: var(--green); }
.match-warm { border-top-color: var(--orange); }
.match-cool { border-top-color: var(--cyan); }

.match-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.match-name { font-size: 17px; font-weight: 800; color: var(--navy); }
.match-sub { font-size: 12px; color: var(--muted); margin-top: 3px; }
.match-score-ring {
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.score-num { font-size: 20px; font-weight: 800; line-height: 1; }
.score-label { font-size: 9px; color: rgba(255,255,255,.6); text-transform: uppercase; }

.breakdown-bars { margin-bottom: 14px; }
.breakdown-row { margin-bottom: 8px; }
.breakdown-label { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.breakdown-bar-wrap { height: 5px; background: var(--border); border-radius: 3px; overflow: hidden; }
.breakdown-bar { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--navy2)); border-radius: 3px; transition: width .4s ease; }

.contact-row { background: #F8FAFC; border-radius: 8px; padding: 12px; margin-bottom: 12px; }
.contact-info { display: flex; flex-direction: column; gap: 3px; }
.contact-title { font-size: 12px; color: var(--muted); }
.contact-email { font-size: 12px; color: var(--cyan); }
.contact-phone { font-size: 12px; color: var(--muted); }

.match-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

.disq-section {
  margin-top: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.disq-section summary {
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  list-style: none;
}
.disq-section summary::-webkit-details-marker { display: none; }
.disq-hint { font-weight: 400; margin-left: 8px; }
.disq-list { padding: 0 20px 16px; }
.disq-row { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.disq-row:last-child { border-bottom: none; }
.disq-name { font-weight: 600; font-size: 14px; min-width: 200px; }
.disq-reason { font-size: 13px; color: var(--red); }

.prop-stats { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.prop-badge { background: rgba(255,255,255,.15); color: var(--white); padding: 4px 12px; border-radius: 20px; font-size: 13px; font-weight: 500; }

/* ── Property Grid ────────────────────────────────────────────────────────── */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.prop-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: block;
  transition: box-shadow .15s, border-color .15s;
}
.prop-card:hover { box-shadow: 0 6px 24px rgba(10,37,64,.15); border-color: var(--cyan); }
.prop-card-header { margin-bottom: 16px; }
.prop-card-name { font-size: 18px; font-weight: 800; color: var(--navy); }
.prop-card-loc { font-size: 13px; color: var(--muted); margin-top: 3px; }
.prop-card-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 14px; }
.prop-stat { text-align: center; }
.prop-stat-val { font-size: 22px; font-weight: 800; color: var(--navy); }
.prop-stat-label { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.prop-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-badge-sm { background: #EFF6FF; color: #1E40AF; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }

/* ── Tenant Detail ────────────────────────────────────────────────────────── */
.detail-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.detail-card h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.detail-grid { display: flex; flex-direction: column; gap: 0; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: none; }
.detail-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.detail-val { font-size: 14px; font-weight: 600; color: var(--text); text-align: right; }
.detail-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.action-card { background: #F8FAFC; }

.contact-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}
.contact-primary { border-color: var(--cyan); border-width: 2px; }
.primary-tag { font-size: 11px; font-weight: 700; color: var(--cyan); text-transform: uppercase; margin-bottom: 8px; }
.contact-name { font-weight: 700; font-size: 15px; }
.contact-title-detail { font-size: 13px; color: var(--muted); margin: 3px 0; }
.contact-region { font-size: 12px; color: var(--muted); }
.contact-email-link { display: block; color: var(--cyan); font-size: 13px; margin-top: 6px; }
.contact-phone-detail { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Email Preview ────────────────────────────────────────────────────────── */
.email-editor-wrap { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: flex-start; }
.email-editor-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.email-to-display { padding: 10px 14px; background: #F8FAFC; border-radius: 7px; font-size: 14px; color: var(--text); border: 1.5px solid var(--border); }
.inline-input { border: none; background: transparent; font-size: 14px; width: 100%; outline: none; }
.subject-input { width: 100%; padding: 10px 14px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 14px; font-weight: 600; }
.body-input { width: 100%; padding: 14px; border: 2px solid #6366f1; border-radius: 7px; font-size: 13px; font-family: 'Courier New', monospace; line-height: 1.6; resize: vertical; background: #fafafa; cursor: text; box-shadow: 0 0 0 3px rgba(99,102,241,.08); }
.subject-input:focus, .body-input:focus { outline: none; border-color: var(--cyan); }
.email-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px; }
.send-result { margin-top: 16px; padding: 12px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; }
.send-success { background: #DCFCE7; color: #166534; }
.send-error { background: #FEE2E2; color: #991B1B; }

.email-tips { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.email-tips h3 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.email-tips ul { padding-left: 18px; }
.email-tips li { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 10px; }
.alt-send { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.alt-send p { font-size: 13px; color: var(--muted); margin-bottom: 10px; }

/* ── Local Discovery ──────────────────────────────────────────────────────── */
.search-form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.search-row { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.search-hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.prop-context { margin-top: 12px; background: rgba(255,255,255,.15); display: inline-block; padding: 6px 14px; border-radius: 20px; font-size: 13px; color: rgba(255,255,255,.9); }
.results-meta { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.discovery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

.discovery-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.biz-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.biz-name { font-size: 16px; font-weight: 800; color: var(--navy); }
.biz-category { font-size: 12px; color: var(--muted); margin-top: 2px; }
.biz-address { font-size: 12px; color: var(--muted); margin-top: 6px; }
.biz-rating-block { text-align: center; flex-shrink: 0; }
.biz-rating { font-size: 28px; font-weight: 800; color: var(--navy); line-height: 1; }
.biz-stars { color: #F59E0B; font-size: 13px; }
.biz-reviews { font-size: 11px; color: var(--muted); }
.biz-links { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.biz-phone { font-size: 13px; color: var(--muted); }
.biz-link { font-size: 13px; color: var(--cyan); font-weight: 500; }
.generate-btn { margin-bottom: 12px; }

.pitch-output { border-top: 1px solid var(--border); padding-top: 14px; }
.pitch-tabs { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 7px; overflow: hidden; margin-bottom: 12px; width: fit-content; }
.pitch-tab { padding: 7px 18px; font-size: 13px; font-weight: 600; border: none; cursor: pointer; background: var(--bg); color: var(--muted); transition: all .15s; }
.pitch-tab.active { background: var(--navy); color: var(--white); }
.pitch-text { width: 100%; padding: 12px; border: 1.5px solid var(--border); border-radius: 7px; font-size: 12px; font-family: 'Courier New', monospace; line-height: 1.5; resize: vertical; margin-bottom: 8px; }
.ig-tip { font-size: 12px; color: var(--muted); margin-top: 6px; }

.error-banner { background: #FEE2E2; border: 1px solid #FECACA; border-radius: 8px; padding: 16px 20px; color: #991B1B; margin-bottom: 20px; }

/* ── Pipeline / Boss Dashboard ────────────────────────────────────────────── */
.kpi-row { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; margin-bottom: 28px; }
.kpi-card { background: var(--white); border-radius: var(--radius); padding: 20px 16px; text-align: center; box-shadow: var(--shadow); border-top: 4px solid var(--border); }
.kpi-blue  { border-top-color: #3B82F6; }
.kpi-navy  { border-top-color: var(--navy); }
.kpi-cyan  { border-top-color: var(--cyan); }
.kpi-green { border-top-color: var(--green); }
.kpi-gold  { border-top-color: #F59E0B; }
.kpi-red   { border-top-color: var(--red); }
.kpi-num  { font-size: 28px; font-weight: 800; color: var(--navy); letter-spacing: -1px; line-height: 1; }
.kpi-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; margin-top: 6px; }
.kpi-sub  { font-size: 11px; color: var(--green); font-weight: 600; margin-top: 3px; }

.dashboard-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 20px; }
.dash-card-title { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 16px; }
.dash-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pipeline-filters { display: flex; gap: 10px; align-items: center; }
.search-input-sm { padding: 7px 12px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 13px; width: 180px; }
.search-input-sm:focus { outline: none; border-color: var(--cyan); }

/* Funnel */
.funnel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.funnel-label { font-size: 12px; color: var(--muted); font-weight: 600; width: 100px; flex-shrink: 0; }
.funnel-bar-wrap { flex: 1; height: 22px; background: #F1F5F9; border-radius: 4px; overflow: hidden; }
.funnel-bar { height: 100%; border-radius: 4px; min-width: 4px; transition: width .5s ease; }
.funnel-count { font-size: 13px; font-weight: 700; color: var(--navy); width: 28px; text-align: right; }

.stage-DISCOVERED  .funnel-bar, .funnel-bar.stage-DISCOVERED  { background: #94A3B8; }
.stage-CONTACTED   .funnel-bar, .funnel-bar.stage-CONTACTED   { background: #3B82F6; }
.stage-RESPONDED   .funnel-bar, .funnel-bar.stage-RESPONDED   { background: var(--cyan); }
.stage-INTERESTED  .funnel-bar, .funnel-bar.stage-INTERESTED  { background: #8B5CF6; }
.stage-SHOWING     .funnel-bar, .funnel-bar.stage-SHOWING     { background: #F59E0B; }
.stage-NEGOTIATING .funnel-bar, .funnel-bar.stage-NEGOTIATING { background: #F97316; }
.stage-LOI         .funnel-bar, .funnel-bar.stage-LOI         { background: #22C55E; }
.stage-LEASE       .funnel-bar, .funnel-bar.stage-LEASE       { background: #15803D; }

/* Stage pills */
.stage-pill { display: inline-block; padding: 3px 10px; border-radius: 12px; font-size: 11px; font-weight: 700; }
.stage-pill-lg { padding: 8px 20px; border-radius: 20px; font-size: 14px; font-weight: 700; }
.stage-pill.stage-DISCOVERED, .stage-pill-lg.stage-DISCOVERED   { background: #F1F5F9; color: #64748B; }
.stage-pill.stage-CONTACTED,  .stage-pill-lg.stage-CONTACTED    { background: #DBEAFE; color: #1D4ED8; }
.stage-pill.stage-RESPONDED,  .stage-pill-lg.stage-RESPONDED    { background: #E0F2FE; color: #0369A1; }
.stage-pill.stage-INTERESTED, .stage-pill-lg.stage-INTERESTED   { background: #EDE9FE; color: #6D28D9; }
.stage-pill.stage-SHOWING,    .stage-pill-lg.stage-SHOWING      { background: #FEF3C7; color: #92400E; }
.stage-pill.stage-NEGOTIATING,.stage-pill-lg.stage-NEGOTIATING  { background: #FFEDD5; color: #C2410C; }
.stage-pill.stage-LOI,        .stage-pill-lg.stage-LOI          { background: #DCFCE7; color: #15803D; }
.stage-pill.stage-LEASE,      .stage-pill-lg.stage-LEASE        { background: #BBF7D0; color: #14532D; }
.stage-pill.stage-DEAD,       .stage-pill-lg.stage-DEAD         { background: #FEE2E2; color: #991B1B; }
.stage-pill.stage-NOT_NOW,    .stage-pill-lg.stage-NOT_NOW      { background: #F3F4F6; color: #6B7280; }

/* Score pills */
.score-pill { display: inline-block; width: 38px; text-align: center; padding: 3px 0; border-radius: 6px; font-size: 13px; font-weight: 800; }
.score-hot  { background: #DCFCE7; color: #15803D; }
.score-warm { background: #FEF3C7; color: #92400E; }
.score-cool { background: #F1F5F9; color: #475569; }

/* Prospect table extras */
.local-badge { display: inline-block; background: #FFF7ED; color: #9A3412; padding: 1px 7px; border-radius: 4px; font-size: 10px; font-weight: 700; margin-left: 6px; vertical-align: middle; }
.star-rating { font-size: 11px; color: #F59E0B; margin-top: 2px; }
.dead-reason-tiny { font-size: 11px; color: var(--red); margin-top: 3px; }
.contact-sm { font-size: 12px; }
.contact-email-sm { font-size: 11px; color: var(--cyan); display: block; }
.last-touch { font-size: 13px; font-weight: 600; }
.touch-channel { font-size: 11px; color: var(--muted); }

/* Dead reasons */
.dead-reason-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.dead-reason-row:last-child { border-bottom: none; }
.dead-reason-label { color: var(--text); }
.dead-reason-count { font-weight: 700; color: var(--red); }

/* Team rows */
.team-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.team-row:last-child { border-bottom: none; }
.team-name { font-weight: 600; }
.team-count { color: var(--muted); }
.role-tag { display: inline-block; background: #EFF6FF; color: #1D4ED8; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; margin-left: 8px; }

/* Activity feed (dashboard) */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); align-items: flex-start; }
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 32px; height: 32px; border-radius: 50%; background: #F1F5F9; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.activity-body { flex: 1; }
.activity-biz { font-weight: 700; font-size: 13px; }
.activity-prop { font-size: 12px; color: var(--muted); margin-left: 6px; }
.activity-text { font-size: 12px; color: var(--muted); margin-top: 3px; }
.activity-time { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ── Prospect Detail ──────────────────────────────────────────────────────── */
.prospect-header-row { display: flex; justify-content: space-between; align-items: flex-start; }
.prospect-grid { display: grid; grid-template-columns: 420px 1fr; gap: 24px; }
.stage-mover-card { border-left: 4px solid var(--cyan); }
.stage-form .form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stage-form .full { grid-column: 1 / -1; }

/* Timeline */
.timeline-card { max-height: 800px; overflow-y: auto; }
.timeline { display: flex; flex-direction: column; gap: 0; }
.timeline-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.timeline-item:last-child { border-bottom: none; }
.timeline-icon { width: 34px; height: 34px; border-radius: 50%; background: #F1F5F9; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.tl-EMAIL_SENT { background: #DBEAFE; }
.tl-EMAIL_RECEIVED { background: #D1FAE5; }
.tl-STAGE_CHANGE { background: #EDE9FE; }
.tl-CALL { background: #FEF3C7; }
.tl-NOTE { background: #F3F4F6; }
.timeline-body { flex: 1; }
.timeline-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 4px; flex-wrap: wrap; }
.timeline-type { font-size: 12px; font-weight: 700; color: var(--navy); }
.timeline-who { font-size: 12px; color: var(--muted); }
.timeline-when { font-size: 11px; color: var(--muted); margin-left: auto; }
.timeline-subject { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.timeline-text { font-size: 12px; color: var(--muted); line-height: 1.5; white-space: pre-wrap; }
.stage-change-line { font-size: 12px; color: #6D28D9; font-weight: 600; margin-top: 4px; }

/* Follow-up section */
.followup-section { background: #F8FAFC; border-radius: 8px; padding: 14px; margin-bottom: 16px; }
.followup-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }
.followup-item { display: flex; gap: 10px; align-items: center; font-size: 13px; padding: 6px 0; }
.followup-step { font-weight: 700; color: var(--navy); }
.followup-date { color: var(--muted); flex: 1; }
.followup-sent { opacity: .6; text-decoration: line-through; }
.followup-done { color: var(--green); font-weight: 700; font-size: 12px; }
.followup-pending { color: var(--orange); font-weight: 600; font-size: 12px; }

/* ── Property Health Dashboard ────────────────────────────────────────────── */
.health-header-row { display: flex; justify-content: space-between; align-items: flex-start; }
.health-score-ring {
  width: 90px; height: 90px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 5px solid var(--green); flex-shrink: 0;
}
.ring-green { border-color: var(--green); }
.ring-yellow { border-color: #F59E0B; }
.ring-red { border-color: var(--red); }
.health-score-num { font-size: 26px; font-weight: 800; color: var(--white); line-height: 1; }
.health-score-label { font-size: 10px; color: rgba(255,255,255,.7); text-transform: uppercase; }

.health-metrics {
  display: grid; grid-template-columns: repeat(7,1fr);
  gap: 12px; margin-bottom: 20px;
}
.health-metric {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 12px; text-align: center;
  box-shadow: var(--shadow);
}
.hm-alert { border-color: var(--red); border-width: 2px; }
.hm-num { font-size: 22px; font-weight: 800; color: var(--navy); }
.hm-label { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.text-green { color: var(--green) !important; }
.text-red { color: var(--red) !important; }
.text-orange { color: #F59E0B !important; }

/* Occupancy bar */
.occ-bar-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 24px; box-shadow: var(--shadow); }
.occ-bar-wrap { display: flex; height: 32px; border-radius: 8px; overflow: hidden; gap: 2px; margin-bottom: 12px; }
.occ-unit { min-width: 4px; transition: opacity .2s; cursor: pointer; }
.occ-unit:hover { opacity: .8; }
.occ-occupied  { background: var(--green); }
.occ-expiring  { background: #F59E0B; }
.occ-critical  { background: #EF4444; }
.occ-vacant    { background: #E2E8F0; }
.occ-legend { display: flex; gap: 20px; }
.leg-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.leg-dot { width: 12px; height: 12px; border-radius: 3px; }
.leg-occupied { background: var(--green); }
.leg-expiring { background: #F59E0B; }
.leg-critical { background: #EF4444; }
.leg-vacant   { background: #E2E8F0; }

/* Alert sections */
.alert-section { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px; overflow: hidden; box-shadow: var(--shadow); }
.alert-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-weight: 700; font-size: 14px; }
.alert-red    { background: #FEE2E2; color: #991B1B; }
.alert-orange { background: #FFF7ED; color: #9A3412; }
.alert-yellow { background: #FEFCE8; color: #854D0E; }
.btn-white { background: var(--white); color: var(--navy); padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; border: none; cursor: pointer; }

.vacancy-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--white); }
.vac-suite { font-weight: 700; font-size: 14px; width: 80px; }
.vac-sf { font-size: 13px; color: var(--muted); flex: 1; }
.vac-action { display: flex; gap: 8px; }

.expiry-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); background: var(--white); }
.exp-tenant { font-weight: 600; font-size: 14px; flex: 1; }
.exp-suite { font-size: 12px; color: var(--muted); min-width: 140px; }
.exp-date { text-align: right; }
.exp-days { display: block; font-size: 13px; font-weight: 700; }
.critical-days { color: var(--red); }
.exp-date-label { font-size: 11px; color: var(--muted); }

/* Unit list */
.unit-list { display: flex; flex-direction: column; }
.unit-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.unit-row:last-child { border-bottom: none; }
.unit-vacant .unit-name { color: var(--red); font-style: italic; }
.unit-critical { background: #FFF5F5; margin: 0 -4px; padding-left: 4px; padding-right: 4px; border-radius: 4px; }
.unit-expiring { background: #FFFBF0; margin: 0 -4px; padding-left: 4px; padding-right: 4px; border-radius: 4px; }
.unit-suite { font-weight: 700; font-size: 13px; color: var(--muted); width: 50px; flex-shrink: 0; }
.unit-info { flex: 1; }
.unit-name { font-size: 13px; font-weight: 600; }
.unit-sf { font-size: 11px; color: var(--muted); }
.unit-right { text-align: right; }
.unit-rent { font-size: 12px; font-weight: 700; color: var(--navy); }
.unit-expiry { font-size: 11px; color: var(--muted); }
.vacant-tag { background: #FEE2E2; color: #991B1B; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; }

.all-clear-card { background: #F0FDF4; border: 1px solid #BBF7D0; border-radius: var(--radius); padding: 32px; text-align: center; }
.all-clear-icon { font-size: 36px; color: var(--green); margin-bottom: 12px; }
.all-clear-text { font-size: 15px; color: #166534; font-weight: 600; }

.upload-refresh-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; box-shadow: var(--shadow); margin-top: 24px; }
.upload-title { font-weight: 700; font-size: 15px; }
.upload-sub { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Upload page */
.upload-page-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: flex-start; }
.upload-sidebar {}
.dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 40px 24px; text-align: center; cursor: pointer; transition: all .15s; background: #F8FAFC; }
.dropzone:hover, .dz-hover { border-color: var(--cyan); background: #F0F9FF; }
.dz-selected { border-color: var(--green); background: #F0FDF4; }
.dz-icon { font-size: 40px; margin-bottom: 12px; }
.dz-text { font-size: 15px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.dz-sub { font-size: 13px; color: var(--muted); }
.dz-filename { font-size: 14px; color: var(--green); font-weight: 600; margin-top: 12px; }

.what-happens { display: flex; flex-direction: column; gap: 14px; }
.wh-step { display: flex; gap: 12px; align-items: flex-start; }
.wh-num { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: var(--white); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.wh-text { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── Tenant Universe ──────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-bottom: 20px;
}
.filter-input {
  flex: 1; min-width: 180px; padding: 8px 12px; border: 1px solid var(--border);
  border-radius: 6px; font-size: 14px; background: var(--bg);
}
.filter-input:focus { outline: none; border-color: var(--cyan); }
.filter-select {
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
  font-size: 13px; background: var(--bg); cursor: pointer;
}
.filter-count { font-size: 13px; color: var(--muted); margin-left: auto; white-space: nowrap; }

.tenant-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.tenant-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .15s, border-color .15s;
}
.tenant-card:hover { box-shadow: var(--shadow); border-color: var(--cyan-lt); }

.tc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.tc-name { font-weight: 700; font-size: 15px; color: var(--navy); line-height: 1.3; }
.tc-badges { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; flex-shrink: 0; }
.tc-cat { font-size: 12px; color: var(--muted); }

.exp-badge {
  font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; white-space: nowrap;
}
.exp-aggressive { background: #FEF3C7; color: #92400E; }
.exp-active     { background: #D1FAE5; color: #065F46; }
.exp-selective  { background: #FEF9C3; color: #713F12; }
.exp-stable     { background: #F1F5F9; color: var(--muted); }
.exp-paused     { background: #FEE2E2; color: #991B1B; }
.exp-unknown    { background: #F1F5F9; color: var(--muted); }

.src-badge { font-size: 11px; padding: 2px 7px; border-radius: 99px; }
.src-verified { background: #DBEAFE; color: #1D4ED8; }
.src-estimated { background: #F1F5F9; color: var(--muted); }

.tc-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.tc-spec {
  background: var(--bg); border-radius: 6px; padding: 5px 9px;
  display: flex; flex-direction: column; font-size: 12px;
}
.tc-spec-label { color: var(--muted); font-size: 11px; }
.tc-spec-val { font-weight: 600; color: var(--navy); }
.tc-required { color: var(--orange); }

.tc-contact {
  border-top: 1px solid var(--border); padding-top: 10px;
  display: flex; flex-direction: column; gap: 2px;
}
.tc-contact-name { font-weight: 600; font-size: 13px; }
.tc-contact-title { font-size: 12px; color: var(--muted); }
.tc-contact-email { font-size: 12px; color: var(--cyan); text-decoration: none; }
.tc-contact-email:hover { text-decoration: underline; }
.tc-contact-phone { font-size: 12px; color: var(--muted); }
.tc-portal-link { font-size: 12px; color: var(--cyan); text-decoration: none; }
.tc-portal-link:hover { text-decoration: underline; }

.tc-footer { display: flex; flex-direction: column; gap: 6px; margin-top: auto; padding-top: 6px; }
.tc-notes { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* Import page */
.import-success {
  text-align: center; padding: 48px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.import-success-icon { font-size: 48px; color: var(--green); }
.import-success-title { font-size: 22px; font-weight: 800; color: var(--navy); }
.import-success-sub { font-size: 15px; color: var(--muted); }

.csv-map-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.csv-map-table th { text-align: left; padding: 6px 8px; background: var(--bg); color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--border); }
.csv-map-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.csv-map-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.csv-map-table td:last-child { color: var(--muted); font-family: monospace; font-size: 11px; }

.how-to-list { margin: 0; padding-left: 20px; font-size: 13px; color: var(--muted); line-height: 2; }

.btn-danger {
  background: var(--red); color: white; border: none; border-radius: 6px;
  padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 600;
}
.btn-danger:hover { background: #DC2626; }

/* ── Blast / Bulk Send UI ──────────────────────────────────────────────────── */
.blast-bar {
  position: sticky;
  top: 60px;
  z-index: 50;
  background: var(--navy);
  border-radius: var(--radius);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  box-shadow: 0 4px 20px rgba(10,37,64,.35);
}
.blast-bar-left { display: flex; align-items: center; gap: 16px; }
.blast-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.blast-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.blast-select-all input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--cyan);
  cursor: pointer;
}
.blast-count {
  font-size: 13px;
  color: var(--cyan-lt);
  font-weight: 600;
  white-space: nowrap;
}

.blast-filters { display: flex; gap: 6px; align-items: center; }
.filter-chip {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.filter-chip:hover { background: rgba(255,255,255,.2); }
.filter-chip.active { background: var(--cyan); border-color: var(--cyan); color: var(--navy); }
.filter-chip-select {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 99px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip-select option { background: var(--navy); color: white; }

.btn-blast {
  background: var(--cyan);
  color: var(--navy);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.btn-blast:hover { background: var(--cyan-lt); transform: translateY(-1px); }
.btn-blast:disabled { background: rgba(255,255,255,.2); color: rgba(255,255,255,.4); cursor: not-allowed; transform: none; }

/* Blast list rows */
.blast-list { display: flex; flex-direction: column; gap: 8px; }

.blast-row {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 36px 52px 1fr 200px 1fr 120px;
  align-items: center;
  gap: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.blast-row:hover { border-color: var(--cyan); box-shadow: 0 2px 12px rgba(0,180,216,.1); }
.blast-row.hot { border-left: 3px solid var(--green); }
.blast-row.warm { border-left: 3px solid var(--orange); }
.blast-row.cool { border-left: 3px solid var(--border); }

.blast-check { display: flex; align-items: center; justify-content: center; }
.blast-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--cyan); cursor: pointer; }
.sent-dot { font-size: 16px; color: var(--green); font-weight: 800; }
.no-email-dot { font-size: 16px; color: var(--muted); }

.blast-score-ring {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  border: 3px solid;
  flex-shrink: 0;
}
.ring-hot  { border-color: var(--green); color: var(--green); }
.ring-warm { border-color: var(--orange); color: var(--orange); }
.ring-cool { border-color: var(--muted); color: var(--muted); }

.blast-tenant { min-width: 0; }
.blast-name { font-size: 15px; font-weight: 800; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blast-sub  { font-size: 12px; color: var(--muted); margin-top: 1px; }
.blast-unit { font-size: 11px; color: var(--cyan); font-weight: 600; margin-top: 2px; background: rgba(0,180,216,.08); display: inline-block; padding: 1px 6px; border-radius: 4px; }

.blast-contact { min-width: 0; }
.blast-contact-name  { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blast-contact-title { font-size: 11px; color: var(--muted); }
.blast-contact-email { font-size: 11px; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blast-no-email { font-size: 11px; color: var(--red); font-style: italic; }

.blast-breakdown { display: flex; flex-wrap: wrap; gap: 4px; align-content: flex-start; }
.bd-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 99px;
  white-space: nowrap;
}
.pill-green  { background: rgba(34,197,94,.12);  color: #16a34a; }
.pill-yellow { background: rgba(245,158,11,.12); color: #d97706; }
.pill-red    { background: rgba(239,68,68,.12);  color: #dc2626; }

.blast-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }

/* Blast modal overlay */
.blast-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,37,64,.7);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.blast-modal {
  background: white;
  border-radius: 16px;
  width: 560px;
  max-width: 95vw;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  overflow: hidden;
}
.blast-modal-header {
  background: var(--navy);
  padding: 24px 28px 20px;
}
.blast-modal-title { font-size: 20px; font-weight: 800; color: white; margin-bottom: 4px; }
.blast-modal-sub   { font-size: 13px; color: var(--cyan-lt); }

.blast-progress-wrap {
  height: 4px;
  background: var(--border);
}
.blast-progress-bar {
  height: 4px;
  background: var(--cyan);
  transition: width .3s ease;
}

.blast-log {
  padding: 16px 20px;
  max-height: 320px;
  overflow-y: auto;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 80px;
}
.log-entry { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; padding: 4px 0; border-bottom: 1px solid var(--border); }
.log-ok   { color: var(--text); }
.log-skip { color: var(--muted); }
.log-err  { color: var(--red); }
.log-check     { color: var(--green); font-weight: 800; flex-shrink: 0; }
.log-skip-icon { color: var(--muted); font-weight: 800; flex-shrink: 0; }
.log-x         { color: var(--red);   font-weight: 800; flex-shrink: 0; }

.blast-modal-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
}

/* stat-chip (used in tenant_reps) */
.stat-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

/* ── Setup Page ───────────────────────────────────────────────────────────── */
.setup-status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.setup-status-card {
  background: var(--card);
  border-radius: var(--radius);
  border: 2px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: var(--shadow);
}
.setup-status-card.status-green { border-color: var(--green); }
.setup-status-card.status-yellow { border-color: var(--orange); }
.setup-status-card.status-red { border-color: var(--red); }

.ssc-icon { font-size: 24px; }
.ssc-label { font-size: 14px; font-weight: 700; color: var(--navy); }
.ssc-status { font-size: 13px; margin-top: 2px; }
.ssc-detail { font-size: 12px; color: var(--muted); }

.setup-section {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.setup-section h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 12px;
}

.setup-intro {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.7;
}

.env-table { display: flex; flex-direction: column; gap: 0; }
.env-row {
  display: grid;
  grid-template-columns: 24px 200px 1fr 80px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.env-row:last-child { border-bottom: none; }
.env-check { font-size: 16px; font-weight: 700; }
.env-check.check-green { color: var(--green); }
.env-check.check-red { color: var(--red); }
.env-name { font-family: monospace; font-size: 13px; color: var(--navy); font-weight: 600; }
.env-desc { font-size: 12px; color: var(--muted); }
.env-val { font-size: 12px; text-align: right; }
.text-green { color: var(--green); font-weight: 600; }
.text-red { color: var(--red); font-weight: 600; }

.setup-steps { display: flex; flex-direction: column; gap: 0; }
.setup-step {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.setup-step:last-child { border-bottom: none; }
.step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-body { flex: 1; }
.step-title { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.step-text { font-size: 13px; color: var(--muted); line-height: 1.7; }
.step-text code { background: var(--bg); padding: 1px 5px; border-radius: 4px; font-family: monospace; font-size: 12px; color: var(--navy2); }
.step-text strong { color: var(--text); }

.badge-green {
  display: inline-block;
  background: rgba(34,197,94,.12);
  color: #16a34a;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.badge-yellow {
  display: inline-block;
  background: rgba(245,158,11,.12);
  color: #d97706;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}
.badge-red {
  display: inline-block;
  background: rgba(239,68,68,.12);
  color: #dc2626;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links a:not(.btn-nav-primary) { display: none; }
  .stats-row { grid-template-columns: repeat(3,1fr); }
  .two-col { grid-template-columns: 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .contact-form-row { grid-template-columns: 1fr 1fr; }
  .email-editor-wrap { grid-template-columns: 1fr; }
  .workflow-steps { flex-direction: column; }
  .workflow-arrow { transform: rotate(90deg); margin: 0 auto; }
  .match-grid { grid-template-columns: 1fr; }
  .search-row { flex-direction: column; }
  .setup-status-row { grid-template-columns: 1fr; }
  .env-row { grid-template-columns: 24px 1fr 60px; }
  .env-desc { display: none; }
}

/* ── PDF Attachment Badge (email preview) ───────────────────────────────── */
.pdf-attach-badge {
  display: flex; align-items: center; gap: 12px;
  background: rgba(0,180,216,.07);
  border: 1.5px solid rgba(0,180,216,.3);
  border-radius: 10px; padding: 12px 16px;
  margin-top: 16px;
}
.attach-icon { font-size: 22px; flex-shrink: 0; }
.attach-label { font-weight: 700; font-size: 13px; color: var(--navy); }
.attach-sub   { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── Find Contact Button ──────────────────────────────────────────────────── */
.find-contact-btn {
  width: 28px; height: 28px;
  border: 1.5px solid var(--cyan);
  background: rgba(0,180,216,.08);
  color: var(--cyan);
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .1s;
  flex-shrink: 0;
}
.find-contact-btn:hover {
  background: var(--cyan);
  color: #fff;
  transform: scale(1.1);
}

.find-link {
  background: none; border: none; cursor: pointer;
  color: var(--cyan); font-size: 11px; font-weight: 600;
  padding: 0 4px; text-decoration: underline;
}
.find-link:hover { color: #0089a3; }

/* ── Research Modal ──────────────────────────────────────────────────────── */
.research-modal {
  max-width: 560px;
  width: 90%;
  max-height: 82vh;
  overflow-y: auto;
}

.modal-close-btn {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.6); font-size: 18px; font-weight: 700;
  padding: 0 4px; line-height: 1;
  transition: color .15s;
}
.modal-close-btn:hover { color: #fff; }

.blast-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.research-loading {
  color: var(--muted); font-size: 13px; padding: 8px 0;
}

.research-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted);
  margin: 16px 0 8px;
}

/* Hunter.io contacts */
.hunter-contact {
  background: #f8fafc; border: 1px solid var(--border);
  border-radius: 6px; padding: 8px 12px; margin-bottom: 6px;
  cursor: pointer; transition: border-color .15s, background .15s;
}
.hunter-contact:hover { border-color: var(--cyan); background: rgba(0,180,216,.05); }

.hunter-email {
  font-size: 13px; font-weight: 600; color: var(--navy);
}
.hunter-conf {
  display: inline-block; margin-left: 6px;
  padding: 1px 6px; border-radius: 10px;
  background: var(--green); color: #fff; font-size: 10px; font-weight: 700;
}
.hunter-meta { font-size: 11px; color: var(--muted); margin-top: 2px; }
.hunter-pos  { font-style: italic; }

.hunter-pattern {
  font-size: 12px; color: var(--muted);
  background: #f1f5f9; border-radius: 5px;
  padding: 6px 10px; margin-top: 6px; font-family: monospace;
}

/* Search links */
.research-link {
  display: block;
  padding: 9px 14px; margin-bottom: 5px;
  border-radius: 7px; border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--navy); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: border-color .15s, background .15s;
}
.research-link:hover { border-color: var(--cyan); background: rgba(0,180,216,.06); }

.linkedin-link {
  background: rgba(0,119,181,.06);
  border-color: rgba(0,119,181,.3);
  color: #005582;
}
.linkedin-link:hover { border-color: #0077b5; background: rgba(0,119,181,.1); }

/* Save form */
.research-save-form {
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.rsf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.rsf-input {
  padding: 7px 10px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
}
.rsf-input:focus { border-color: var(--cyan); }

.rsf-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 700;
}

.rsf-msg {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  min-height: 18px;
}

/* ── Research Queue — API bar & controls ────────────────────────────────── */
.rq-api-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 16px;
}
.rq-api-chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rq-api-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 12px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.rq-api-chip small { font-weight: 400; opacity: .8; }
.chip-green { background: #dcfce7; color: #15803d; }
.chip-gray  { background: #f1f5f9; color: var(--muted); }
.chip-red   { background: #fee2e2; color: #b91c1c; }

.rq-api-actions { display: flex; gap: 10px; align-items: center; }
.rq-conf-label { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rq-conf-select {
  padding: 5px 8px; border: 1.5px solid var(--border); border-radius: 6px;
  font-size: 12px; background: #fff; color: var(--text);
}

/* Batch progress bar */
.rq-progress-bar-bg {
  height: 8px; background: var(--border); border-radius: 4px; overflow: hidden;
}
.rq-progress-bar-fill {
  height: 100%; background: var(--cyan); border-radius: 4px;
  transition: width .4s ease;
}
.rq-progress-meta {
  font-size: 12px; color: var(--muted); margin-top: 5px;
}

/* Status dot */
.rq-status-dot {
  width: 10px; height: 10px; border-radius: 50%; display: inline-block;
  transition: background .3s;
}
.dot-gray    { background: #cbd5e1; }
.dot-green   { background: var(--green); }
.dot-red     { background: var(--red); }
.dot-loading {
  background: var(--cyan);
  animation: pulse-dot .7s infinite alternate;
}
@keyframes pulse-dot { from { opacity:.3; } to { opacity:1; } }

/* Per-row buttons */
.rq-auto-btn {
  background: rgba(0,180,216,.1); border: 1.5px solid var(--cyan);
  color: var(--cyan); border-radius: 6px; padding: 3px 8px;
  font-size: 14px; cursor: pointer; transition: background .15s;
}
.rq-auto-btn:hover:not(:disabled) { background: var(--cyan); color: #fff; }
.rq-auto-btn:disabled { opacity: .5; cursor: default; }
.rq-find-btn {
  background: none; border: 1.5px solid var(--border);
  color: var(--muted); border-radius: 6px; padding: 3px 8px;
  font-size: 14px; cursor: pointer; transition: all .15s; margin-left: 4px;
}
.rq-find-btn:hover { border-color: var(--navy); color: var(--navy); }
.pitch-btn {
  display: inline-block;
  background: rgba(99,102,241,.1); border: 1.5px solid #6366f1;
  color: #6366f1; border-radius: 6px; padding: 3px 9px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  text-decoration: none; transition: all .15s; white-space: nowrap;
}
.pitch-btn:hover { background: #6366f1; color: #fff; }

/* Found result cell */
.rq-found-email { font-size: 13px; font-weight: 600; color: var(--navy); }
.rq-found-name  { font-size: 11px; color: var(--muted); }
.rq-not-found   { font-size: 11px; color: #e53e3e; }

/* Confidence badges */
.conf-badge {
  display: inline-block; padding: 1px 6px; border-radius: 10px;
  font-size: 10px; font-weight: 700; margin-right: 2px;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.badge-blue  { background: rgba(0,180,216,.12); color: #0284c7; }
.badge-gray  { background: #f1f5f9; color: var(--muted); }

/* Supporting text */
.rq-brand   { font-weight: 600; font-size: 13px; }
.rq-sub     { font-size: 11px; color: var(--muted); margin-top: 1px; }
.text-red-sm { color: #e53e3e !important; }
.rq-result-cell { max-width: 220px; }
.rq-status-cell { text-align: center; }

/* ── Research Queue Page ─────────────────────────────────────────────────── */
.rq-table {
  width: 100%; border-collapse: collapse;
}
.rq-table th {
  background: var(--navy); color: #fff;
  padding: 10px 14px; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; text-align: left;
}
.rq-table td {
  padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.rq-table tr:hover td { background: #f8fafc; }
.rq-match-badge {
  display: inline-block; padding: 2px 7px;
  background: var(--cyan); color: #fff;
  border-radius: 10px; font-size: 11px; font-weight: 700;
}
.rq-cat-pill {
  display: inline-block; padding: 2px 8px;
  background: #e2e8f0; color: var(--navy);
  border-radius: 10px; font-size: 11px;
}
.rq-portal-link {
  color: var(--cyan); font-size: 12px; text-decoration: none;
}
.rq-portal-link:hover { text-decoration: underline; }

/* LinkedIn */
.linkedin-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #0a66c2; color: #fff; border: none;
  padding: 6px 12px; border-radius: 6px; font-size: 12px;
  font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.linkedin-btn:hover { background: #004182; color: #fff; }
.linkedin-btn-sm { padding: 3px 8px; font-size: 11px; }

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE OVERHAUL — full responsive pass for phones (≤640px) and tablets
   ══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 640px) {

  /* ── Page structure ─────────────────────────────────────────── */
  .page-header { padding: 16px 14px 18px; }
  .page-header h1 { font-size: 20px; letter-spacing: -.3px; }
  .page-header p  { font-size: 13px; }
  .page-content   { padding: 14px 12px 60px; }
  .prop-stats     { gap: 6px; margin-top: 8px; }
  .prop-badge     { font-size: 11px; padding: 3px 9px; }

  /* ── Blast bar (results page) ────────────────────────────────── */
  .blast-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
    position: sticky; top: 52px; z-index: 90;
  }
  .blast-bar-left  { width: 100%; }
  .blast-bar-right { width: 100%; flex-direction: column; align-items: stretch; gap: 8px; }
  .blast-filters   { flex-wrap: wrap; gap: 5px; }
  .filter-chip     { font-size: .72rem; padding: 5px 10px; }
  .filter-chip-select { width: 100%; }
  .btn-blast       { width: 100%; justify-content: center; font-size: .88rem; padding: 11px 16px; }
  .btn-secondary.btn-sm { width: 100%; text-align: center; margin-left: 0 !important; }

  /* ── Blast row: reflow 6-col grid → 3-col card ──────────────── */
  .blast-row {
    grid-template-columns: 32px 44px 1fr;
    grid-template-rows: auto auto auto;
    gap: 2px 8px;
    padding: 10px 10px;
  }
  /* Checkbox stays col 1, score ring col 2, tenant name col 3 */
  .blast-check        { grid-column: 1; grid-row: 1; }
  .blast-score-ring   { grid-column: 2; grid-row: 1; width: 40px; height: 40px; font-size: 13px; }
  .blast-tenant       { grid-column: 3; grid-row: 1; }
  .blast-name         { font-size: 13px; }
  /* Contact spans full width on row 2 */
  .blast-contact      { grid-column: 1 / -1; grid-row: 2; padding-left: 4px; border-top: 1px solid #f1f5f9; padding-top: 6px; margin-top: 2px; }
  /* Breakdown pills hidden on mobile (too cluttered) */
  .blast-breakdown    { display: none; }
  /* Actions span full width on row 3, align right */
  .blast-actions      { grid-column: 1 / -1; grid-row: 3; flex-direction: row; justify-content: flex-end; padding-top: 4px; }

  /* ── KPI strip ───────────────────────────────────────────────── */
  .kpi-row { grid-template-columns: repeat(3, 1fr); gap: 8px; }

  /* ── Stats row ───────────────────────────────────────────────── */
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 8px; }

  /* ── Pipeline kanban ─────────────────────────────────────────── */
  .kanban-board { flex-direction: column; gap: 12px; overflow-x: visible; }
  .kanban-col   { min-width: 0; width: 100%; }

  /* ── Tables → scroll horizontally on mobile ──────────────────── */
  .table-wrap, table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ── Two-col + three-col layouts → single col ───────────────── */
  .two-col, .three-col, .prospect-grid,
  .upload-page-grid, .email-editor-wrap { grid-template-columns: 1fr !important; }

  /* ── Leasing deal thread ─────────────────────────────────────── */
  .deal-layout { flex-direction: column; }
  .deal-sidebar { width: 100%; }

  /* ── Replies inbox cards ─────────────────────────────────────── */
  .msg-card-header { flex-wrap: wrap; gap: 8px; }
  .msg-avatar      { width: 34px; height: 34px; font-size: .78rem; }
  .msg-meta        { flex: 1; text-align: left; }

  /* ── Topbar CTA label ────────────────────────────────────────── */
  .topbar-cta span { display: none; }
  .topbar-cta::after { content: '+'; }

  /* ── Broker scorecard ────────────────────────────────────────── */
  .broker-grid { grid-template-columns: 1fr !important; }

  /* ── Chain discovery cards ───────────────────────────────────── */
  .chain-card { flex-direction: column; }

  /* ── Modals full screen on mobile ────────────────────────────── */
  .blast-modal, .research-modal {
    width: 100% !important;
    max-width: 100% !important;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
    margin-top: auto;
  }
  .blast-overlay { align-items: flex-end; }

  /* ── Prevent horizontal scroll on body ──────────────────────── */
  body { overflow-x: hidden; }
  .page-content, .ri-body { overflow-x: hidden; }
}

/* Tablet tweaks (641-900px) */
@media (min-width: 641px) and (max-width: 900px) {
  .blast-row { grid-template-columns: 32px 48px 1fr 160px 100px; }
  .blast-breakdown { display: none; }
  .kpi-row { grid-template-columns: repeat(3, 1fr); }
}
