/* ===== DESIGN TOKENS ===== */
:root {
  --blue-50: #eef4ff;
  --blue-100: #dce8ff;
  --blue-200: #b6cfff;
  --blue-400: #5b8def;
  --blue-500: #3b6fdb;
  --blue-600: #2756c4;
  --blue-700: #1e44a1;
  --ink: #0e1530;
  --muted: #5b6275;
  --bg: #fafbfd;
  --bg-secondary: #f1f4f9;
  --card: #ffffff;
  --border: #e6eaf2;
  --green: #16a34a;
  --green-bg: #f0fdf4;
  --green-border: #bbf7d0;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --red-border: #fecaca;
  --nav-height: 56px;
  --sidebar-w: 260px;
  --preview-w: 380px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 3px rgba(14,21,48,.07), 0 1px 2px rgba(14,21,48,.05);
  --shadow-panel: 0 4px 24px rgba(14,21,48,.09);
  --transition: 0.15s ease;
}
[data-theme="dark"] {
  --ink: #e8ecf4;
  --muted: #8b93a7;
  --bg: #0e1117;
  --bg-secondary: #161c27;
  --card: #1a2235;
  --border: #2a3349;
  --shadow-card: 0 1px 4px rgba(0,0,0,.35);
  --shadow-panel: 0 4px 24px rgba(0,0,0,.45);
  --green-bg: #052e16;
  --green-border: #166534;
  --amber-bg: #1c1200;
  --amber-border: #92400e;
  --red-bg: #1c0a0a;
  --red-border: #991b1b;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }
a { color: var(--blue-500); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY ===== */
.font-serif { font-family: 'Roboto', sans-serif; }
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.text-xs { font-size: 11px; }
.text-sm { font-size: 12px; }
.text-base { font-size: 14px; }
.text-lg { font-size: 16px; }
.text-xl { font-size: 18px; }
.text-2xl { font-size: 22px; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }

/* ===== LAYOUT ===== */
.app-shell { display: flex; flex-direction: column; height: 100vh; overflow: hidden; }
.workspace {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--preview-w);
  flex: 1;
  overflow: hidden;
  height: calc(100vh - var(--nav-height));
}

/* ===== TOP NAV ===== */
.topnav {
  height: var(--nav-height);
  background: var(--card);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}
.topnav__logo { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.topnav__wordmark { font-weight: 600; font-size: 14px; color: var(--ink); letter-spacing: -0.2px; }
.topnav__nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.topnav__navbtn {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.topnav__navbtn:hover { background: var(--bg-secondary); color: var(--ink); }
.topnav__navbtn--active { color: var(--blue-500); background: var(--blue-50); }
[data-theme="dark"] .topnav__navbtn--active { background: rgba(59,111,219,.15); }
.topnav__spacer { flex: 1; }
.topnav__search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 10px;
  height: 34px;
  width: 220px;
}
.topnav__search input {
  background: none;
  border: none;
  outline: none;
  color: var(--ink);
  font-size: 13px;
  width: 100%;
}
.topnav__search input::placeholder { color: var(--muted); }
.topnav__badge {
  padding: 3px 8px;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 600;
  border: 1px solid var(--blue-100);
  white-space: nowrap;
  flex-shrink: 0;
}
[data-theme="dark"] .topnav__badge { background: rgba(59,111,219,.2); border-color: rgba(59,111,219,.35); color: var(--blue-400); }
.topnav__iconbtn {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.topnav__iconbtn:hover { background: var(--bg-secondary); color: var(--ink); border-color: var(--border); }
.topnav__avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--blue-500);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  border: 2px solid var(--blue-200);
}
.topnav__user-wrap { position: relative; }
.topnav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-panel);
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}
.topnav__dropdown-header { padding: 12px 14px 10px; border-bottom: 1px solid var(--border); }
.topnav__dropdown-name { font-weight: 600; font-size: 13px; }
.topnav__dropdown-tier { color: var(--muted); font-size: 11px; margin-top: 2px; }
.topnav__dropdown-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}
.topnav__dropdown-item:hover { background: var(--bg-secondary); }
.topnav__dropdown-item--danger { color: var(--red); }
.topnav__dropdown-divider { height: 1px; background: var(--border); }

/* ===== FILTER SIDEBAR ===== */
.sidebar {
  background: var(--card);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sidebar__scroll {
  flex: 1;
  overflow-y: auto;
}
.sidebar__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--card); z-index: 10;
}
.sidebar__title { font-weight: 600; font-size: 13px; }
.sidebar__reset { font-size: 12px; color: var(--blue-500); background: none; border: none; cursor: pointer; }
.sidebar__reset:hover { text-decoration: underline; }
.sidebar__toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: var(--radius-sm);
  background: none; border: 1px solid var(--border);
  color: var(--muted); cursor: pointer; flex-shrink: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sidebar__toggle-btn:hover { background: var(--bg-secondary); color: var(--ink); border-color: var(--blue-400); }
.sidebar__toggle-btn--inline { border-color: transparent; }
.sidebar__toggle-btn--inline:hover { border-color: var(--border); }
.sidebar--collapsed {
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 14px;
  border-right: 1px solid var(--border); background: var(--card);
}
.sidebar--collapsed .sidebar__toggle-btn {
  width: 28px; height: 28px;
}
.sidebar__section { border-bottom: 1px solid var(--border); }
.sidebar__section summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
  list-style: none;
}
.sidebar__section summary::-webkit-details-marker { display: none; }
.sidebar__section summary::after { content: '▾'; color: var(--muted); font-size: 10px; transition: transform var(--transition); }
.sidebar__section[open] summary::after { transform: rotate(-180deg); }
.sidebar__section-body { padding: 4px 16px 12px; }
.sidebar__checkbox-label {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 0;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.sidebar__checkbox-label input[type="checkbox"] { accent-color: var(--blue-500); width: 14px; height: 14px; flex-shrink: 0; }
.sidebar__range { display: flex; gap: 6px; margin-top: 6px; }
.sidebar__range-input {
  flex: 1;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  outline: none;
  transition: border-color var(--transition);
}
.sidebar__range-input:focus { border-color: var(--blue-400); }
.sidebar__select {
  width: 100%;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  outline: none;
  margin-top: 6px;
}
.sidebar__actions {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
.sidebar__location-input {
  width: 100%;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  outline: none;
  margin-top: 8px;
}
.sidebar__location-input::placeholder { color: var(--muted); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background var(--transition), color var(--transition), opacity var(--transition);
  white-space: nowrap;
}
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--blue-600); }
.btn--outline { background: none; border: 1px solid var(--border); color: var(--ink); }
.btn--outline:hover { background: var(--bg-secondary); }
.btn--ghost { background: none; color: var(--muted); }
.btn--ghost:hover { color: var(--ink); }
.btn--sm { padding: 5px 10px; font-size: 12px; }
.btn--full { width: 100%; }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { opacity: 0.9; }

/* ===== MAIN COLUMN ===== */
.main-col {
  overflow-y: auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

/* ===== SEARCH BAR ===== */
.searchbar {
  padding: 20px 20px 0;
}
.searchbar__title {
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}
.searchbar__subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.searchbar__input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0 14px;
  height: 44px;
  box-shadow: var(--shadow-card);
  transition: border-color var(--transition);
}
.searchbar__input-wrap:focus-within { border-color: var(--blue-400); }
.searchbar__input-wrap input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-size: 13px;
  color: var(--ink);
}
.searchbar__input-wrap input::placeholder { color: var(--muted); }
.chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 20px 14px;
}
.chip {
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  transition: all var(--transition);
}
.chip:hover, .chip--active { background: var(--blue-50); border-color: var(--blue-200); color: var(--blue-600); }
[data-theme="dark"] .chip--active { background: rgba(59,111,219,.15); border-color: rgba(59,111,219,.4); color: var(--blue-400); }

/* ===== RESULTS HEADER ===== */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  gap: 10px;
  flex-shrink: 0;
}
.results-header__count { font-weight: 600; font-size: 13px; }
.results-header__freshness { color: var(--muted); font-size: 11px; margin-top: 1px; }
.results-header__controls { display: flex; align-items: center; gap: 8px; }
.results-header__sort {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  outline: none;
  cursor: pointer;
}
.view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle__btn {
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.view-toggle__btn--active { background: var(--blue-500); color: #fff; }

/* ===== DEAL LIST ===== */
.deal-list { flex: 1; overflow-y: auto; }
.deal-list__inner { display: flex; flex-direction: column; gap: 0; }

/* ===== DEAL CARD ===== */
.deal-card {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  cursor: pointer;
  transition: background var(--transition);
  position: relative;
}
.deal-card:hover { background: var(--bg-secondary); }
.deal-card--selected { border-left: 3px solid var(--blue-500); background: var(--blue-50) !important; }
[data-theme="dark"] .deal-card--selected { background: rgba(59,111,219,.08) !important; }
.deal-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.deal-card__title { font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.4; }
.deal-card__radar { flex-shrink: 0; }
.deal-card__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.deal-card__tag { font-size: 11px; color: var(--muted); }
.deal-card__dot { color: var(--border); font-size: 10px; }
.deal-card__desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.deal-card__financials {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  margin-bottom: 8px;
}
.deal-card__fin-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 2px; }
.deal-card__fin-value { font-size: 13px; font-weight: 600; color: var(--ink); }
.deal-card__fin-value--poa { color: var(--muted); font-weight: 500; font-style: italic; }
.deal-card__badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.deal-card__footer { display: flex; align-items: center; justify-content: space-between; }
.deal-card__source { font-size: 11px; color: var(--muted); }
.deal-card__actions { display: flex; gap: 4px; }
.deal-card__action {
  height: 28px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  display: flex; align-items: center; gap: 4px;
}
.deal-card__action:hover { background: var(--bg-secondary); border-color: var(--border); color: var(--ink); }
.deal-card__action--saved { color: var(--red); }
.deal-card__action--pipeline { color: var(--green); }

/* Compact mode */
.deal-card--compact { padding: 10px 20px; }
.deal-card--compact .deal-card__desc { display: none; }
.deal-card--compact .deal-card__financials { display: none; }
.deal-card--compact .deal-card__badges { display: none; }
.deal-card--compact .deal-card__footer { display: none; }
.deal-card--compact .deal-card__compact-row {
  display: flex; align-items: center; gap: 8px; margin-top: 4px;
}
.deal-card__compact-row { display: none; }
.deal-card__compact-price { font-size: 13px; font-weight: 600; color: var(--blue-600); }
[data-theme="dark"] .deal-card__compact-price { color: var(--blue-400); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}
.badge--blue { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.badge--green { background: var(--green-bg); color: var(--green); border: 1px solid var(--green-border); }
.badge--amber { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-border); }
.badge--red { background: var(--red-bg); color: var(--red); border: 1px solid var(--red-border); }
.badge--muted { background: var(--bg-secondary); color: var(--muted); border: 1px solid var(--border); }
.badge--team { background: #f5f0ff; color: #6d28d9; border: 1px solid #ddd6fe; font-size: 9px; }
.badge--institution { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; font-size: 9px; }
[data-theme="dark"] .badge--blue { background: rgba(59,111,219,.15); color: var(--blue-400); border-color: rgba(59,111,219,.3); }
[data-theme="dark"] .badge--team { background: rgba(109,40,217,.2); color: #a78bfa; border-color: rgba(109,40,217,.35); }
[data-theme="dark"] .badge--institution { background: rgba(194,65,12,.15); color: #fb923c; border-color: rgba(194,65,12,.3); }

/* ===== RADAR SCORE ===== */
.radar-score { display: flex; align-items: center; gap: 5px; }
.radar-score__circle { flex-shrink: 0; }
.radar-score__num { font-size: 12px; font-weight: 700; }
.radar-score__num--high { color: var(--green); }
.radar-score__num--mid { color: var(--amber); }
.radar-score__num--low { color: var(--red); }

/* ===== PREVIEW PANEL ===== */
.preview {
  background: var(--card);
  border-left: 1px solid var(--border);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.preview__empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
}
.preview__empty-icon { margin-bottom: 16px; opacity: 0.3; }
.preview__empty-title { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.preview__empty-desc { font-size: 12px; }
.preview__header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 10;
}
.preview__title { font-family: 'Roboto', sans-serif; font-size: 16px; font-weight: 500; line-height: 1.4; margin-bottom: 4px; }
.preview__meta { font-size: 11px; color: var(--muted); margin-bottom: 12px; }
.preview__header-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.preview__body { flex: 1; padding: 0; }
.preview__section { padding: 14px 20px; border-bottom: 1px solid var(--border); }
.preview__section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
  margin-bottom: 10px;
}

/* ===== KEY NUMBERS ===== */
.key-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key-num { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 10px 12px; }
.key-num__label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 3px; }
.key-num__value { font-size: 16px; font-weight: 700; color: var(--ink); }
.key-num__value--poa { font-size: 14px; font-style: italic; color: var(--muted); font-weight: 500; }
.key-num__sub { font-size: 10px; color: var(--muted); margin-top: 1px; }

/* ===== AI SUMMARY ===== */
.ai-summary { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 12px 14px; border: 1px solid var(--border); }
.ai-summary__header { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.ai-summary__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--blue-600); }
[data-theme="dark"] .ai-summary__label { color: var(--blue-400); }
.ai-summary__text { font-size: 12px; line-height: 1.6; color: var(--ink); }
.ai-summary__disclaimer { font-size: 10px; color: var(--muted); margin-top: 8px; font-style: italic; }

/* ===== BUYER FIT ===== */
.buyer-fit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buyer-fit__col-title { font-size: 11px; font-weight: 600; margin-bottom: 6px; }
.buyer-fit__col--good .buyer-fit__col-title { color: var(--green); }
.buyer-fit__col--watch .buyer-fit__col-title { color: var(--amber); }
.buyer-fit__item { display: flex; align-items: flex-start; gap: 5px; font-size: 11px; color: var(--ink); margin-bottom: 4px; line-height: 1.4; }
.buyer-fit__dot { width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; margin-top: 4px; }
.buyer-fit__col--good .buyer-fit__dot { background: var(--green); }
.buyer-fit__col--watch .buyer-fit__dot { background: var(--amber); }

/* ===== COMPANIES HOUSE CARD ===== */
.ch-card { border-radius: var(--radius-md); border: 1.5px solid var(--border); overflow: hidden; }
.ch-card--confirmed { border-color: var(--green-border); }
.ch-card--possible { border-color: var(--amber-border); }
.ch-card--not-found { border-color: var(--border); border-style: dashed; }
.ch-card__status-bar {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
}
.ch-card--confirmed .ch-card__status-bar { background: var(--green-bg); color: var(--green); }
.ch-card--possible .ch-card__status-bar { background: var(--amber-bg); color: var(--amber); }
.ch-card--not-found .ch-card__status-bar { background: var(--bg-secondary); color: var(--muted); }
.ch-card__body { padding: 12px; }
.ch-card__company-name { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.ch-card__company-num { font-size: 12px; color: var(--blue-500); margin-bottom: 8px; }
.ch-card__details { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 10px; }
.ch-card__detail-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; }
.ch-card__detail-value { font-size: 12px; color: var(--ink); margin-top: 1px; }
.ch-card__disclaimer { font-size: 10px; color: var(--muted); font-style: italic; border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; line-height: 1.5; }
.ch-card__possible-matches { display: flex; flex-direction: column; gap: 8px; }
.ch-card__match { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 10px; border: 1px solid var(--border); }
.ch-card__match-name { font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.ch-card__match-detail { font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.ch-card__warning { background: var(--amber-bg); border: 1px solid var(--amber-border); border-radius: var(--radius-sm); padding: 8px 10px; font-size: 11px; color: var(--amber); margin-bottom: 10px; line-height: 1.5; }

/* ===== VERIFICATION ===== */
.verification { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.verif-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.3px; margin-bottom: 2px; }
.verif-value { font-size: 12px; font-weight: 500; color: var(--ink); }
.verif-value--high { color: var(--green); }
.verif-value--medium { color: var(--amber); }
.verif-value--low { color: var(--red); }

/* ===== DILIGENCE BOX ===== */
.diligence { background: var(--bg-secondary); border-radius: var(--radius-md); padding: 12px 14px; border: 1px solid var(--border); }
.diligence__title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--amber); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.diligence__item { display: flex; align-items: flex-start; gap: 6px; font-size: 12px; color: var(--ink); margin-bottom: 5px; }
.diligence__icon { color: var(--amber); flex-shrink: 0; margin-top: 1px; }
.diligence__empty { font-size: 12px; color: var(--green); }

/* ===== SELLER QUESTIONS ===== */
.seller-q__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.seller-q__item { display: flex; gap: 8px; align-items: flex-start; }
.seller-q__num { min-width: 18px; height: 18px; background: var(--blue-500); color: #fff; border-radius: 50%; font-size: 10px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.seller-q__text { font-size: 12px; line-height: 1.5; color: var(--ink); }
.seller-q__actions { display: flex; justify-content: flex-end; margin-top: 10px; }

/* ===== PIPELINE STEPPER ===== */
.pipeline-stepper { display: flex; align-items: center; gap: 0; overflow-x: auto; padding-bottom: 4px; }
.pipeline-step {
  display: flex; align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.pipeline-step:hover { background: var(--bg-secondary); color: var(--ink); }
.pipeline-step--active { color: var(--blue-600); font-weight: 600; background: var(--blue-50); }
[data-theme="dark"] .pipeline-step--active { background: rgba(59,111,219,.15); color: var(--blue-400); }
.pipeline-step--completed { color: var(--green); }
.pipeline-sep { color: var(--border); font-size: 12px; flex-shrink: 0; padding: 0 2px; }

/* ===== SIMILAR DEALS ===== */
.similar-deals { display: flex; flex-direction: column; gap: 8px; }
.similar-deal {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  cursor: pointer;
  transition: background var(--transition);
}
.similar-deal:hover { background: var(--bg); border-color: var(--blue-200); }
.similar-deal__title { font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.similar-deal__meta { font-size: 11px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== ORIGINAL LISTING ===== */
.orig-listing { display: flex; flex-direction: column; gap: 10px; }
.orig-field__label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--muted); margin-bottom: 3px; }
.orig-field__value { font-size: 12px; color: var(--ink); line-height: 1.6; }

/* ===== DEAL HISTORY (Team locked) ===== */
.tier-lock { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.tier-lock__blur { filter: blur(3px); pointer-events: none; user-select: none; }
.tier-lock__overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px;
  background: rgba(250,251,253,.75);
  backdrop-filter: blur(1px);
}
[data-theme="dark"] .tier-lock__overlay { background: rgba(26,34,53,.75); }
.tier-lock__label { font-size: 11px; color: var(--muted); }

/* ===== TOAST ===== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-panel);
  min-width: 260px;
  max-width: 380px;
  pointer-events: all;
  animation: toast-in 0.2s ease;
}
.toast--success { border-left: 3px solid var(--green); }
.toast--info { border-left: 3px solid var(--blue-500); }
.toast--warning { border-left: 3px solid var(--amber); }
.toast__msg { font-size: 13px; color: var(--ink); flex: 1; }
.toast__close { width: 20px; height: 20px; border-radius: 50%; background: none; border: none; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 14px; }
.toast__close:hover { color: var(--ink); }
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ===== MODAL ===== */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(14,21,48,.45);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
}
.modal__header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal__title { font-size: 16px; font-weight: 600; }
.modal__close { width: 28px; height: 28px; border-radius: var(--radius-sm); background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.modal__close:hover { background: var(--bg-secondary); color: var(--ink); }
.modal__body { padding: 20px 24px; }
.modal__footer { padding: 14px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-input {
  width: 100%;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.form-input:focus { border-color: var(--blue-400); }
.form-radio-group { display: flex; flex-direction: column; gap: 8px; }
.form-radio { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.form-radio input { accent-color: var(--blue-500); }
.form-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
.form-check { display: flex; align-items: center; gap: 6px; font-size: 12px; cursor: pointer; }
.form-check input { accent-color: var(--blue-500); }

/* ===== BETA ACCESS SCREEN ===== */
.beta-access {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.beta-access__card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  padding: 40px 36px;
  width: 100%;
  max-width: 400px;
  text-align: center;
}
.beta-access__logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 24px; }
.beta-access__title { font-family: 'Roboto', sans-serif; font-size: 22px; font-weight: 500; margin-bottom: 6px; }
.beta-access__subtitle { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.beta-access__input-wrap { margin-bottom: 12px; }
.beta-access__input-wrap input {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  text-align: center;
  outline: none;
  transition: border-color var(--transition);
}
.beta-access__input-wrap input:focus { border-color: var(--blue-400); }
.beta-access__error { color: var(--red); font-size: 12px; margin-bottom: 10px; min-height: 18px; }
.beta-access__helper { font-size: 11px; color: var(--muted); margin-top: 12px; }

/* ===== UPGRADE MODAL ===== */
.upgrade-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.upgrade-tier {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  text-align: center;
}
.upgrade-tier--highlight { border-color: var(--blue-400); background: var(--blue-50); }
[data-theme="dark"] .upgrade-tier--highlight { background: rgba(59,111,219,.1); }
.upgrade-tier__name { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.upgrade-tier__price { font-size: 18px; font-weight: 700; color: var(--blue-500); margin-bottom: 8px; }
.upgrade-tier__price span { font-size: 11px; font-weight: 400; color: var(--muted); }
.upgrade-tier__features { text-align: left; font-size: 11px; color: var(--muted); line-height: 1.7; }

/* ===== EMPTY STATE ===== */
.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px;
  text-align: center;
}
.empty-state__icon { opacity: 0.2; margin-bottom: 16px; }
.empty-state__title { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty-state__desc { font-size: 13px; color: var(--muted); margin-bottom: 20px; }

/* ===== NOTES ===== */
.notes-area {
  width: 100%; min-height: 80px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 12px;
  font-family: inherit;
  resize: vertical;
  outline: none;
}
.notes-area:focus { border-color: var(--blue-400); }
.notes-area::placeholder { color: var(--muted); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  :root { --preview-w: 320px; }
}
@media (max-width: 900px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .sidebar--mobile-open { display: block; position: fixed; left: 0; top: var(--nav-height); bottom: 0; width: var(--sidebar-w); z-index: 500; box-shadow: var(--shadow-panel); }
  .preview { display: none; }
  .preview--mobile-open { display: flex; position: fixed; right: 0; top: var(--nav-height); bottom: 0; width: 100%; max-width: 480px; z-index: 500; box-shadow: var(--shadow-panel); }
}

/* ===== WORKSPACE VARIANTS ===== */
.workspace--sidebar-closed {
  grid-template-columns: 40px 1fr var(--preview-w);
}
.workspace--no-sidebar {
  grid-template-columns: 1fr var(--preview-w);
}

/* ===== WATCHLIST PAGE ===== */
.watchlist {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  height: 100%;
}
.watchlist__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.watchlist__title { font-family: 'Roboto', sans-serif; font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 4px; }
.watchlist__subtitle { font-size: 12px; color: var(--muted); }
.watchlist__search {
  height: 34px; padding: 0 10px 0 10px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
  font-size: 12px; outline: none; min-width: 200px;
}
.watchlist__search:focus { border-color: var(--blue-400); }
.watchlist__toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; border-bottom: 1px solid var(--border); flex-shrink: 0; gap: 12px;
}
.watchlist__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.watchlist__chip {
  height: 28px; padding: 0 10px; border-radius: 14px;
  border: 1px solid var(--border); background: var(--bg);
  font-size: 12px; color: var(--muted); cursor: pointer;
  display: flex; align-items: center; gap: 4px; white-space: nowrap;
}
.watchlist__chip:hover { border-color: var(--blue-400); color: var(--ink); }
.watchlist__chip--active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); font-weight: 500; }
.watchlist__chip--active:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.watchlist__chip-count { font-size: 11px; opacity: 0.8; }
.watchlist__sort {
  height: 28px; padding: 0 8px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
  font-size: 12px; outline: none; cursor: pointer; flex-shrink: 0;
}
.watchlist__list {
  flex: 1; overflow-y: auto; padding: 12px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.watchlist__divider {
  display: flex; align-items: center; gap: 12px;
  font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: 0.05em;
  text-transform: uppercase; margin: 6px 0;
}
.watchlist__divider::before, .watchlist__divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ===== WATCHLIST CARD ===== */
.wl-card {
  display: flex; border-radius: var(--radius-md);
  border: 1px solid var(--border); background: var(--card);
  cursor: pointer; transition: box-shadow 0.15s, border-color 0.15s;
  overflow: hidden; position: relative;
}
.wl-card:hover { border-color: var(--blue-400); box-shadow: 0 2px 12px rgba(59,111,219,0.08); }
.wl-card--selected { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(59,111,219,0.15); }
.wl-card--sold { opacity: 0.6; }
.wl-card__strip { width: 4px; flex-shrink: 0; }
.wl-card__body { flex: 1; padding: 14px 16px 12px; min-width: 0; }
.wl-card__top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.wl-card__save-date { font-size: 11px; color: var(--muted); white-space: nowrap; flex-shrink: 0; }
.wl-card__badge {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 10px;
  font-size: 11px; font-weight: 500; white-space: nowrap;
}
.wl-card__badge--drop { background: rgba(16,185,129,0.12); color: #047857; }
.wl-card__badge--rise { background: rgba(245,158,11,0.12); color: #b45309; }
.wl-card__badge--sold { background: rgba(107,114,128,0.12); color: #374151; }
.wl-card__title { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 2px; line-height: 1.4; }
.wl-card__meta { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.wl-card__financials { display: flex; gap: 16px; margin-bottom: 10px; }
.wl-card__fin { min-width: 0; }
.wl-card__fin-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1px; }
.wl-card__fin-value { font-size: 13px; font-weight: 600; color: var(--ink); display: flex; align-items: baseline; gap: 5px; }
.wl-card__price-old { font-size: 11px; font-weight: 400; color: var(--muted); text-decoration: line-through; }
.wl-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.wl-card__tag {
  padding: 2px 7px; border-radius: 10px; font-size: 11px;
  background: var(--bg-secondary); color: var(--muted); border: 1px solid var(--border);
}
.wl-card__note-row { margin-bottom: 10px; min-height: 20px; }
.wl-card__note {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--muted); font-style: italic;
  cursor: pointer; border-radius: 4px; padding: 2px 4px;
}
.wl-card__note:hover { background: var(--bg-secondary); }
.wl-card__note-add {
  font-size: 12px; color: var(--border); background: none; border: none;
  cursor: pointer; padding: 2px 4px; border-radius: 4px;
}
.wl-card__note-add:hover { color: var(--muted); }
.wl-card__note-input {
  width: 100%; height: 28px; padding: 0 8px;
  border: 1px solid var(--blue-400); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font-size: 12px; outline: none;
  font-style: italic;
}
.wl-card__actions {
  display: flex; gap: 6px; align-items: center;
  opacity: 0; transition: opacity 0.15s;
}
.wl-card:hover .wl-card__actions, .wl-card--selected .wl-card__actions { opacity: 1; }

/* ===== WATCHLIST EMPTY STATE ===== */
.watchlist-empty {
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; padding: 32px 16px; text-align: center; color: var(--muted);
}
.watchlist-empty--full { flex: 1; justify-content: center; }
.watchlist-empty__icon { font-size: 36px; opacity: 0.3; margin-bottom: 4px; }
.watchlist-empty__title { font-size: 15px; font-weight: 600; color: var(--ink); }
.watchlist-empty__desc { font-size: 13px; max-width: 320px; line-height: 1.6; }

/* ===== PIPELINE PAGE ===== */
.pipeline-page {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - var(--nav-height));
}
.pipeline-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.pipeline__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.pipeline__title { font-family: 'Roboto', sans-serif; font-size: 22px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.pipeline__stats { font-size: 12px; color: var(--muted); }
.pipeline__content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* Board */
.pip-board { display: flex; gap: 0; flex: 1; overflow-x: auto; overflow-y: hidden; }
.pip-col {
  display: flex; flex-direction: column;
  min-width: 220px; flex: 1;
  border-right: 1px solid var(--border);
}
.pip-col:last-child { border-right: none; }
.pip-col__header { padding: 12px 14px 0; flex-shrink: 0; }
.pip-col__header-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 2px; }
.pip-col__name { font-size: 12px; font-weight: 600; color: var(--ink); }
.pip-col__count { font-size: 11px; color: var(--muted); background: var(--bg-secondary); border-radius: 10px; padding: 1px 6px; }
.pip-col__total { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.pip-col__underline { height: 3px; border-radius: 2px; margin-bottom: 0; }
.pip-col__body {
  flex: 1; overflow-y: auto; padding: 10px 10px 16px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background 0.15s;
}
.pip-col__body--dragover { background: var(--bg-secondary); }
.pip-col__empty {
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; font-size: 11px; color: var(--muted);
  margin-top: 4px;
}

/* Pipeline card */
.pip-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px;
  cursor: pointer; transition: box-shadow 0.12s, border-color 0.12s;
  user-select: none;
}
.pip-card:hover { border-color: var(--blue-400); box-shadow: 0 1px 8px rgba(59,111,219,0.09); }
.pip-card--selected { border-color: var(--blue-500); box-shadow: 0 0 0 2px rgba(59,111,219,0.15); }
.pip-card--stale { background: #fffbeb; }
[data-theme="dark"] .pip-card--stale { background: rgba(245,158,11,0.06); }
.pip-card__title { font-size: 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.pip-card__meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 6px; }
.pip-card__price { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.pip-card__footer { display: flex; align-items: center; gap: 8px; }
.pip-card__days { font-size: 11px; display: flex; align-items: center; gap: 3px; font-weight: 500; }
.pip-card__dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.pip-card__notec { font-size: 11px; color: var(--muted); }
.pip-card__last { font-size: 11px; color: var(--muted); margin-left: auto; }
.pip-card__manual-badge { font-size: 10px; background: var(--bg-secondary); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; padding: 1px 5px; }

/* Pipeline panel */
.pip-panel__stages { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.pip-panel__stage-btn {
  font-size: 11px; padding: 4px 10px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--muted); cursor: pointer; transition: all 0.12s;
}
.pip-panel__stage-btn:hover { border-color: var(--blue-400); color: var(--ink); }
.pip-panel__stage-btn--active { font-weight: 600; }
.pip-panel__days { font-size: 11px; display: flex; align-items: center; gap: 6px; }
.pip-panel__stale-badge {
  font-size: 10px; background: #fffbeb; color: #b45309;
  border: 1px solid #f59e0b44; border-radius: 8px; padding: 1px 6px; font-weight: 500;
}
.pip-panel__notes { display: flex; flex-direction: column; gap: 10px; }
.pip-panel__note { background: var(--bg-secondary); border-radius: var(--radius-sm); padding: 10px 12px; }
.pip-panel__note-date { font-size: 10px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.04em; }
.pip-panel__note-text { font-size: 12px; color: var(--ink); line-height: 1.6; white-space: pre-wrap; }
.pip-panel__note-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--blue-400);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink);
  font-size: 12px; outline: none; resize: vertical; min-height: 72px;
  font-family: inherit; line-height: 1.5;
}
.pip-panel__note-actions { display: flex; gap: 6px; margin-top: 6px; }

/* List view */
.pip-list { flex: 1; overflow-y: auto; }
.pip-list__toolbar { padding: 10px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pip-list__chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pip-list__chip {
  height: 26px; padding: 0 10px; border-radius: 13px;
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  font-size: 11px; cursor: pointer;
}
.pip-list__chip:hover { border-color: var(--blue-400); color: var(--ink); }
.pip-list__chip--active { background: var(--blue-500); color: #fff; border-color: var(--blue-500); font-weight: 500; }
.pip-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.pip-table th {
  padding: 8px 14px; text-align: left; font-size: 11px; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid var(--border);
  background: var(--bg); position: sticky; top: 0; z-index: 1;
  white-space: nowrap;
}
.pip-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.pip-table__row { cursor: pointer; transition: background 0.1s; }
.pip-table__row:hover { background: var(--bg-secondary); }
.pip-table__row--selected { background: rgba(59,111,219,0.06); }
.pip-table__row--stale td:first-child { border-left: 3px solid #f59e0b; }
.pip-table__deal-title { font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.pip-table__deal-meta { font-size: 11px; color: var(--muted); }
.pip-table__stage-badge { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 8px; border: 1px solid; white-space: nowrap; }
.pip-table__move-select {
  font-size: 11px; padding: 3px 6px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); outline: none;
}

/* Terminal sections */
.pipeline__terminal { padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--border); }
.pipeline__terminal-section {}
.pipeline__terminal-toggle {
  display: flex; align-items: center; gap: 10px; width: 100%;
  background: none; border: none; cursor: pointer; font-size: 12px;
  color: var(--muted); font-weight: 500; padding: 6px 0; letter-spacing: 0.03em;
}
.pipeline__terminal-line { flex: 1; height: 1px; background: var(--border); }
.pipeline__terminal-cards { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px 0 4px; }
.pip-terminal-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; min-width: 180px;
}
.pip-terminal-card--completed { border-left: 3px solid #10b981; }
.pip-terminal-card--passed { opacity: 0.65; }

/* Empty state */
.pipeline-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px 24px;
}
.pipeline-empty__icon { font-size: 40px; opacity: 0.25; margin-bottom: 12px; }
.pipeline-empty__title { font-size: 16px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.pipeline-empty__desc { font-size: 13px; color: var(--muted); max-width: 300px; line-height: 1.6; margin-bottom: 20px; }

/* Add deal modal */
.add-deal-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.add-deal-tab {
  padding: 8px 16px; font-size: 13px; background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer; color: var(--muted); margin-bottom: -1px;
}
.add-deal-tab--active { color: var(--blue-500); border-bottom-color: var(--blue-500); font-weight: 500; }
.add-deal-watchlist { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; }
.add-deal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; background: var(--bg-secondary); border-radius: var(--radius-sm); }
.add-deal-row__title { font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.add-deal-row__meta { font-size: 11px; color: var(--muted); }

/* ===== REPORTS ===== */
.reports-page {
  display: flex;
  flex-direction: column;
  padding: 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.reports-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.reports-title {
  font-size: 22px;
  font-weight: 600;
  font-family: 'Roboto', sans-serif;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.reports-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.reports-filter-bar {
  position: sticky;
  top: var(--nav-height);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  z-index: 10;
  margin-bottom: 20px;
}

.reports-filter-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.reports-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.reports-filter-select {
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: border-color var(--transition);
}

.reports-filter-select:hover {
  border-color: var(--blue-400);
}

.reports-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  padding: 3px 8px 3px 10px;
  background: var(--blue-50);
  border: 1px solid var(--blue-200);
  border-radius: var(--radius-pill);
  color: var(--blue-600);
}

[data-theme="dark"] .reports-chip {
  background: rgba(59,111,219,0.15);
  border-color: rgba(59,111,219,0.3);
  color: var(--blue-400);
}

.reports-chip button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  opacity: 0.7;
}

.reports-chip button:hover { opacity: 1; }

.reports-chip-clear {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 0 4px;
  text-decoration: underline;
}

.reports-chip-clear:hover { color: var(--ink); }

/* Report card */
.report-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-card);
}

.report-card__title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}

.report-card__subtitle {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

/* Sector snapshot stats */
.snap-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.snap-stat {
  padding: 14px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
}

.snap-stat__label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.snap-stat__value {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  margin: 4px 0;
  line-height: 1.2;
}

.snap-stat__delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  user-select: none;
}

.snap-stat__tooltip {
  position: absolute;
  z-index: 20;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 11px;
  color: var(--ink);
  white-space: nowrap;
  bottom: 26px;
  left: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  line-height: 1.6;
}

/* Valuation percentiles */
.val-percentiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.val-percentile {
  padding: 10px 14px;
  border-right: 1px solid var(--border);
}

.val-percentile:last-child {
  border-right: none;
}

.val-percentile__label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.val-percentile__value {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

/* Time on market */
.tom-chart-wrap {
  position: relative;
}

.tom-view-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.tom-view-toggle:hover {
  border-color: var(--blue-400);
  color: var(--ink);
}

.tom-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 8px;
}

.tom-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.tom-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.tom-table tr:last-child td { border-bottom: none; }
.tom-table tr:hover td { background: var(--bg-secondary); }

/* Market movement legend */
.movement-legend {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.movement-legend-chip {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  cursor: pointer;
  background: none;
  color: var(--muted);
  transition: all var(--transition);
}

.movement-legend-chip--inactive {
  background: var(--bg-secondary);
  color: var(--muted);
}

.movement-legend-chip--active {
  color: #fff;
}

/* Broker table */
.broker-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.broker-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  letter-spacing: 0.03em;
  white-space: nowrap;
  user-select: none;
}

.broker-table th:hover { color: var(--ink); }

.broker-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}

.broker-table tr:last-child td { border-bottom: none; }
.broker-table tr:hover td { background: var(--bg-secondary); }

.broker-name-btn {
  background: none;
  border: none;
  color: var(--blue-500);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  padding: 0;
}

.broker-name-btn:hover { text-decoration: underline; }

.broker-activity-dots {
  display: flex;
  flex-direction: row;
  gap: 3px;
  align-items: center;
}

.broker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.broker-dot--filled {
  background: var(--blue-500);
}

/* Reports footer */
.reports-footer {
  margin-top: 32px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 32px;
}

/* Reports skeleton */
.reports-skeleton {
  background: linear-gradient(90deg, var(--bg-secondary) 25%, var(--border) 50%, var(--bg-secondary) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive */
@media (max-width: 768px) {
  .snap-stats {
    grid-template-columns: 1fr 1fr;
  }
  .val-percentiles {
    grid-template-columns: 1fr 1fr;
  }
  .val-percentile:nth-child(2) {
    border-right: none;
  }
  .broker-table td:nth-child(3),
  .broker-table th:nth-child(3) {
    display: none;
  }
  .reports-page {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .snap-stats {
    grid-template-columns: 1fr;
  }
}

/* ===== ALERTS PAGE ===== */

.alerts-page {
  flex: 1;
  overflow-y: auto;
  padding: 24px 32px;
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.alerts-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.alerts-title {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px 0;
}

.alerts-subtitle {
  font-size: 13px;
  color: var(--muted);
}

/* Paused banner */
.alerts-paused-banner {
  background: var(--amber-bg);
  border: 1px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--ink);
  margin-bottom: 16px;
}

/* Delivery prefs card */
.alerts-prefs-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.alerts-prefs-email {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.alerts-prefs-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* Saved search cards */
.alert-search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 14px;
  border-left: 4px solid transparent;
}

.alert-search-card--snoozed {
  border-left-color: var(--amber);
}

.alert-search-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.alert-search-card__name-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.alert-search-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0;
}

.alert-search-card__name-input {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--blue-500);
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  background: var(--bg);
  outline: none;
}

.alert-search-card__badges {
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-search-card__match-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--muted);
}

.alert-search-card__status-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 500;
}

.alert-search-card__status-pill--active {
  background: var(--green-bg);
  color: var(--green);
}

.alert-search-card__status-pill--snoozed {
  background: var(--amber-bg);
  color: var(--amber);
}

.alert-search-card__status-pill--paused {
  background: var(--bg-secondary);
  color: var(--muted);
}

.alert-search-card__filter-summary {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.alert-search-card__section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.alert-toggles {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.alert-toggle-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
}

.alert-toggle-row input[type="checkbox"] {
  accent-color: var(--blue-500);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.alert-threshold-pills {
  display: flex;
  gap: 4px;
  margin-left: 4px;
}

.alert-threshold-pill {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
}

.alert-threshold-pill--active {
  background: var(--blue-500);
  border-color: var(--blue-500);
  color: #fff;
}

.alert-freq-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.alert-freq-option {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
}

.alert-freq-option input[type="radio"] {
  accent-color: var(--blue-500);
  cursor: pointer;
}

.alert-search-card__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  position: relative;
}

.alert-snooze-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  z-index: 30;
  min-width: 180px;
  overflow: hidden;
}

.alert-snooze-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 14px;
  font-size: 13px;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
}

.alert-snooze-option:hover {
  background: var(--bg-secondary);
}

/* Activity feed */
.alerts-activity {
  margin-top: 28px;
}

.alerts-activity__header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.alerts-activity__title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--muted);
}

.alerts-activity__count {
  font-size: 11px;
  padding: 1px 7px;
  background: var(--blue-500);
  color: #fff;
  border-radius: 10px;
}

.alerts-group-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0 6px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2px;
}

.alert-event-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.alert-event-row:hover {
  background: var(--bg-secondary);
}

.alert-event-row--unread {
  background: var(--bg-secondary);
}

.alert-event-row--unread:hover {
  background: var(--bg);
  border: 1px solid var(--border);
}

.alert-event-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 1px;
}

.alert-event-icon--price-drop { background: rgba(217, 119, 6, 0.12); color: var(--amber); }
.alert-event-icon--price-rise { background: rgba(22, 163, 74, 0.12); color: var(--green); }
.alert-event-icon--new-listing { background: rgba(59, 111, 219, 0.12); color: var(--blue-500); }
.alert-event-icon--status-change { background: var(--bg-secondary); color: var(--muted); }
.alert-event-icon--relisted { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.alert-event-icon--sold { background: var(--bg-secondary); color: var(--muted); }

.alert-event-body {
  flex: 1;
  min-width: 0;
}

.alert-event-deal {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-event-desc {
  font-size: 12px;
  color: var(--muted);
  margin-top: 1px;
}

.alert-event-match {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.alert-event-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.alert-event-time {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.alert-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-500);
}

/* Empty state */
.alerts-empty {
  text-align: center;
  padding: 60px 20px;
}

.alerts-empty__icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.alerts-empty__title {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.alerts-empty__desc {
  font-size: 13px;
  color: var(--muted);
  max-width: 360px;
  margin: 0 auto 20px auto;
  line-height: 1.6;
}

/* Delivery prefs modal */
.alerts-prefs-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.alerts-prefs-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.alerts-prefs-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.alerts-prefs-radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.alerts-prefs-radio-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
}

.alerts-prefs-select {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  width: 100%;
}

.alerts-prefs-input {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  color: var(--muted);
  font-size: 13px;
  width: 100%;
  cursor: not-allowed;
}

.alerts-footer-note {
  margin-top: 28px;
  padding: 16px 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .alerts-page { padding: 16px; }
  .alerts-header { flex-direction: column; gap: 10px; }
  .alerts-prefs-card { flex-direction: column; align-items: flex-start; gap: 8px; }
  .alert-search-card__badges { flex-wrap: wrap; }
  .alert-freq-row { flex-wrap: wrap; gap: 8px; }
}


/* ===== AUTH SCREEN ===== */

.auth-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-size: 14px;
  color: var(--muted);
}

.auth-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
}

.auth-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.auth-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-wordmark {
  font-family: 'Roboto', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.auth-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
}

.auth-tab {
  background: none;
  border: none;
  padding: 8px 16px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  position: relative;
  bottom: -2px;
  border-bottom: 2px solid transparent;
}

.auth-tab--active {
  color: var(--blue-500);
  border-bottom-color: var(--blue-500);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.auth-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-input {
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  outline: none;
  transition: border-color 0.15s;
}

.auth-input:focus {
  border-color: var(--blue-500);
}

.auth-error {
  font-size: 13px;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.auth-info {
  font-size: 13px;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid var(--green);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.auth-submit {
  margin-top: 4px;
  padding: 10px;
  background: var(--blue-500);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.auth-submit:hover:not(:disabled) {
  background: var(--blue-600);
}

.auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.auth-footer-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}


/* ===== TIER BADGES ===== */

.topnav__badge--tier {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

/* Free — subtle grey */
.topnav__badge--free {
  background: var(--bg-secondary);
  color: var(--muted);
  border: 1px solid var(--border);
}

/* Pro — blue */
.topnav__badge--pro {
  background: var(--blue-500);
  color: #fff;
  border: 1px solid transparent;
}

/* Enterprise — deep indigo */
.topnav__badge--enterprise {
  background: #4f46e5;
  color: #fff;
  border: 1px solid transparent;
}

/* ===== LOCKED PAGE ===== */

.locked-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.locked-page__inner {
  text-align: center;
  max-width: 400px;
}

.locked-page__icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.6;
}

.locked-page__title {
  font-family: 'Roboto', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 10px;
}

.locked-page__desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 24px;
}

.locked-page__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.locked-page__note {
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
