:root {
  --bg: #0f1117;
  --surface: #1a1d27;
  --surface2: #232637;
  --border: #2e3147;
  --accent: #6c63ff;
  --accent2: #00d4aa;
  --danger: #ff4757;
  --warn: #ffa502;
  --text: #e8eaf0;
  --muted: #7a7f9a;
  --pill-new: #3d4263;
  --pill-reach: #1e3a5f;
  --pill-out: #1a3d5c;
  --pill-connected: #1a3d2a;
  --pill-talking: #3d2e1a;
  --pill-converted: #2a1a3d;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }

/* ── Site nav ── */
.site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--text);
}
.nav-brand .logo {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.nav-brand .brand-text { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; }
.nav-brand .brand-text span { color: var(--accent); }
.nav-brand .brand-sub { font-size: 0.68rem; color: var(--muted); }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface2); }
.nav-links a.active { color: #fff; background: var(--accent); }

/* ── Page header ── */
.page-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-header h1 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.page-header h1 span { color: var(--accent); }
.page-header .subtitle { font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.header-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ── Hub ── */
.hub-main { max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.hub-hero { margin-bottom: 32px; }
.hub-hero h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.hub-hero h2 span { color: var(--accent2); }
.hub-hero p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; max-width: 600px; }
.hub-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.hub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, transform 0.15s;
  display: block;
}
.hub-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.hub-card .card-icon { font-size: 2rem; margin-bottom: 12px; }
.hub-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.hub-card p { font-size: 0.85rem; color: var(--muted); line-height: 1.5; margin-bottom: 16px; }
.hub-card .card-stat { font-size: 0.75rem; color: var(--accent2); font-weight: 600; }

/* ── Stats bar ── */
.stats-bar { display: flex; gap: 12px; padding: 16px 24px; flex-wrap: wrap; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 12px 18px; min-width: 110px; }
.stat-card .num { font-size: 1.6rem; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-card .lbl { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }

/* ── Toolbar ── */
.toolbar { padding: 0 24px 16px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
input[type="search"], select { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 12px; font-size: 0.875rem; outline: none; }
input[type="search"] { width: 260px; }
input[type="search"]:focus, select:focus { border-color: var(--accent); }
select option { background: var(--surface2); }

/* ── View toggle ── */
.view-toggle { display: flex; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; margin-left: auto; }
.view-toggle button { background: none; border: none; color: var(--muted); padding: 7px 14px; cursor: pointer; font-size: 0.8rem; transition: all 0.15s; }
.view-toggle button.active { background: var(--accent); color: #fff; }

/* ── Buttons ── */
.btn { border: none; border-radius: 8px; padding: 8px 16px; font-size: 0.875rem; font-weight: 600; cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 6px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #7c74ff; }
.btn-ghost { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn-sm { padding: 5px 10px; font-size: 0.78rem; }
.btn-export { background: var(--surface2); color: var(--accent2); border: 1px solid var(--accent2); }
.btn-export:hover { background: var(--accent2); color: #000; }
.btn-export.added { background: #1a3d2a; color: #50d890; border-color: #50d890; cursor: default; }

/* ── Table view ── */
#tableView { padding: 0 24px 24px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th { text-align: left; padding: 10px 12px; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); border-bottom: 1px solid var(--border); cursor: pointer; white-space: nowrap; user-select: none; }
thead th:hover { color: var(--text); }
thead th .sort-icon { margin-left: 4px; opacity: 0.4; }
thead th.sorted .sort-icon { opacity: 1; color: var(--accent); }
tbody tr { border-bottom: 1px solid var(--border); transition: background 0.1s; cursor: pointer; }
tbody tr:hover { background: var(--surface); }
tbody td { padding: 12px 12px; font-size: 0.85rem; vertical-align: middle; }
td.name-cell { font-weight: 600; white-space: nowrap; }
td.name-cell .creds { font-size: 0.72rem; color: var(--muted); font-weight: 400; display: block; }
td.company-cell { color: var(--muted); }
td.actions-cell { white-space: nowrap; }

/* ── Status pills ── */
.pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.pill-new { background: var(--pill-new); color: #a0a8ff; }
.pill-reach { background: var(--pill-reach); color: #60aaff; }
.pill-out { background: var(--pill-out); color: #80c8ff; }
.pill-connected { background: var(--pill-connected); color: #50d890; }
.pill-talking { background: var(--pill-talking); color: #ffaa50; }
.pill-converted { background: var(--pill-converted); color: #c080ff; }

/* ── Relationship tags ── */
.rel-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.7rem; font-weight: 600; }
.rel-colleague { background: #1a2a3d; color: #60c0ff; }
.rel-agency { background: #1a3022; color: #50d890; }
.rel-job { background: #2a1a3d; color: #c080ff; }
.rel-saas { background: #3d2a1a; color: #ff9050; }
.rel-personal { background: #2a2a1a; color: #ffcc50; }

/* ── Card view ── */
#cardView { display: none; padding: 0 24px 24px; }
#cardView.visible { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; transition: border-color 0.15s, transform 0.15s; cursor: pointer; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1rem; flex-shrink: 0; color: #fff; }
.card-meta { flex: 1; min-width: 0; }
.card-name { font-weight: 700; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-creds { font-size: 0.7rem; color: var(--muted); }
.card-title { font-size: 0.8rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-company { font-size: 0.8rem; color: var(--accent2); font-weight: 600; }
.card-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.card-notes { font-size: 0.78rem; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--border); padding-top: 10px; margin-top: 4px; max-height: 60px; overflow: hidden; }
.card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.card-date { font-size: 0.7rem; color: var(--muted); }
.card-actions { display: flex; gap: 6px; }

/* ── Pipeline view ── */
#pipelineView { display: none; padding: 0 24px 24px; overflow-x: auto; }
#pipelineView.visible { display: flex; gap: 16px; min-height: 500px; }
.pipeline-col { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px; width: 220px; flex-shrink: 0; }
.pipeline-col-header { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.pipeline-col-header .count { background: var(--surface2); border-radius: 20px; padding: 1px 8px; font-size: 0.7rem; }
.pipeline-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; transition: border-color 0.15s; }
.pipeline-card:hover { border-color: var(--accent); }
.pipeline-card .pc-name { font-size: 0.85rem; font-weight: 600; }
.pipeline-card .pc-company { font-size: 0.72rem; color: var(--muted); }

/* ── Modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.7); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; width: 100%; max-width: 620px; max-height: 90vh; overflow-y: auto; }
.modal-header { padding: 20px 24px 0; display: flex; justify-content: space-between; align-items: center; }
.modal-header h2 { font-size: 1.1rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; padding: 4px; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 20px 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="date"], textarea, select.full-select {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 12px; font-size: 0.875rem; outline: none; width: 100%;
}
input:focus, textarea:focus, select.full-select:focus { border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; font-family: inherit; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }

/* ── Detail modal ── */
.detail-section { margin-bottom: 18px; }
.detail-section h3 { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); margin-bottom: 8px; border-bottom: 1px solid var(--border); padding-bottom: 6px; }
.detail-row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 0.875rem; }
.detail-row .dl { color: var(--muted); min-width: 110px; font-size: 0.8rem; }
.detail-row .dv { flex: 1; word-break: break-word; }
.detail-row a { color: var(--accent2); text-decoration: none; }
.detail-row a:hover { text-decoration: underline; }
.detail-notes { font-size: 0.875rem; line-height: 1.6; color: var(--text); white-space: pre-wrap; }
.big-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent2)); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.5rem; color: #fff; margin-bottom: 4px; }

/* ── OLA Reports ── */
.reports-main { padding: 0 24px 24px; }
.report-list { display: flex; flex-direction: column; gap: 10px; }
.report-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.report-item:hover { border-color: var(--accent); }
.report-item .ri-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.report-item .ri-title { font-weight: 600; font-size: 0.95rem; }
.report-item .ri-meta { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.report-item .ri-type { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 0.68rem; font-weight: 600; background: var(--surface2); color: var(--accent2); }
.report-detail { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 20px; margin-top: 16px; }
.report-detail h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.report-excerpt { font-size: 0.82rem; color: var(--muted); line-height: 1.6; background: var(--bg); border-radius: 8px; padding: 14px; margin-top: 12px; font-family: 'SF Mono', 'Fira Code', monospace; white-space: pre-wrap; word-break: break-word; }
.report-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* ── OLA table extras ── */
.type-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; background: #1a2a3d; color: #60c0ff; white-space: nowrap; }
.sector-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; background: #1a3022; color: #50d890; white-space: nowrap; }
.date-range { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--muted); }
input[type="date"] { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 12px; font-size: 0.875rem; outline: none; }
input[type="date"]:focus { border-color: var(--accent); }
.btn-pipeline { background: var(--surface2); color: var(--accent2); border: 1px solid var(--accent2); }
.btn-pipeline:hover { background: var(--accent2); color: #000; }
.btn-pipeline.added { background: #1a3d2a; color: #50d890; border-color: #50d890; cursor: default; }
.pipeline-added { color: #50d890; font-size: 0.78rem; font-weight: 600; }
.modal-wide { max-width: 820px; }
.auditor-list { display: flex; flex-wrap: wrap; gap: 8px; }
.auditor-chip { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; font-size: 0.78rem; }
.auditor-chip .name { font-weight: 600; }
.auditor-chip .creds { color: var(--muted); font-weight: 400; }
.auditor-chip .meta { color: var(--muted); font-size: 0.7rem; margin-top: 2px; }
.text-preview { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 14px; font-size: 0.78rem; line-height: 1.6; color: var(--muted); max-height: 280px; overflow-y: auto; white-space: pre-wrap; font-family: 'SF Mono', Menlo, monospace; }
.text-preview.expanded { max-height: 60vh; }
.load-error { background: #3d1a1a; border: 1px solid var(--danger); color: #ff8a95; padding: 16px 24px; margin: 16px 24px; border-radius: 10px; font-size: 0.875rem; line-height: 1.6; }
.load-error code { color: var(--accent2); }
.toast { position: fixed; bottom: 24px; right: 24px; background: #1a3d2a; border: 1px solid #50d890; color: #50d890; padding: 12px 18px; border-radius: 10px; font-size: 0.875rem; font-weight: 600; z-index: 2000; }

/* ── LinkedIn lookup ── */
.li-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface2); color: var(--muted); cursor: pointer; text-decoration: none; font-size: 0.75rem; transition: all 0.15s; }
.li-btn:hover { border-color: var(--accent); color: var(--accent); }
.li-btn.li-found { background: #0a2a4a; border-color: #0077b5; color: #0077b5; }
.li-btn.li-found:hover { background: #0077b5; color: #fff; }
.li-btn.li-candidate { border-color: var(--warn); color: var(--warn); }
.li-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.li-paste-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.li-paste-input { flex: 1; min-width: 180px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 8px 12px; font-size: 0.85rem; }
.li-form-row { display: flex; gap: 8px; align-items: center; }
.li-form-row input { flex: 1; }

/* ── Empty state ── */
.empty { text-align: center; padding: 60px 24px; color: var(--muted); }
.empty .empty-icon { font-size: 2.5rem; margin-bottom: 12px; }

/* ── Tag chips ── */
.tag-chip { display: inline-block; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; font-size: 0.7rem; color: var(--muted); margin: 2px; }

/* ── Tax Tracker ── */
.tax-tabs { display: flex; gap: 4px; padding: 12px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--border); background: var(--surface); }
.tax-tab { background: var(--surface2); border: 1px solid var(--border); color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: 0.8rem; font-weight: 500; cursor: pointer; transition: all 0.15s; font-family: inherit; }
.tax-tab:hover { color: var(--text); border-color: var(--accent); }
.tax-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.tax-type-pill { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.tax-pill-mileage { background: #1a2a3d; color: #60c0ff; }
.tax-pill-expense { background: #2a1a3d; color: #c080ff; }
.tax-pill-travel { background: #1a3022; color: #50d890; }
.tax-pill-research { background: #3d2e1a; color: #ffb347; }
.tax-pill-meeting { background: #1a3d5c; color: #80c0ff; }
.tax-dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 20px 24px; }
@media (max-width: 768px) { .tax-dashboard-grid { grid-template-columns: 1fr; } }
.tax-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.tax-panel h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 16px; }
.tax-bar-row { display: grid; grid-template-columns: 140px 1fr 70px; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 0.8rem; }
.tax-bar-label { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tax-bar-track { background: var(--surface2); border-radius: 4px; height: 8px; overflow: hidden; }
.tax-bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent2)); height: 100%; border-radius: 4px; min-width: 2px; }
.tax-bar-val { text-align: right; font-weight: 600; color: var(--accent2); font-size: 0.78rem; }
.tax-type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.tax-type-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; transition: border-color 0.15s; text-align: center; }
.tax-type-card:hover { border-color: var(--accent); }
.tax-type-icon { font-size: 1.4rem; margin-bottom: 6px; }
.tax-type-name { font-size: 0.78rem; font-weight: 600; margin-bottom: 4px; }
.tax-type-amt { font-size: 0.95rem; font-weight: 700; color: var(--accent2); }
.tax-type-count { font-size: 0.68rem; color: var(--muted); margin-top: 4px; }
.tax-scenario-box { margin: 0 24px 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.tax-scenario-box h3 { font-size: 0.85rem; font-weight: 700; margin-bottom: 14px; }
.tax-scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-bottom: 12px; }
.tax-scenario-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; font-size: 0.82rem; line-height: 1.55; }
.tax-scenario-good { border-color: #2a5a3a; }
.tax-scenario-warn { border-color: #5a3a1a; }
.sc-label { font-weight: 700; margin-bottom: 10px; font-size: 0.85rem; }
.sc-row { display: flex; justify-content: space-between; margin-bottom: 4px; color: var(--muted); }
.sc-row span:last-child { color: var(--text); font-weight: 600; }
.sc-total { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-weight: 700; color: var(--accent2); }
.tax-scenario-note { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.trip-tracker { padding: 0 24px 16px; }
.trip-tracker .tax-panel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.trip-tracker .tax-panel h3 { margin-bottom: 4px; }
.trip-tracker-inner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trip-elapsed { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent2); }
.trip-status { font-size: 0.82rem; color: var(--muted); }
.trip-sticky-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 1px solid var(--accent); padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; z-index: 1500; box-shadow: 0 -4px 20px rgba(0,0,0,0.25); }
.trip-sticky-info { display: flex; align-items: center; gap: 14px; }
.trip-sticky-label { font-size: 0.85rem; font-weight: 600; }
.trip-sticky-bar .trip-elapsed { font-size: 1.25rem; }
.tax-quick-stats { display: flex; gap: 16px; flex-wrap: wrap; padding: 0 24px 24px; font-size: 0.82rem; color: var(--muted); }
.vehicle-optimizer { margin-top: 0; }
.vo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .vo-grid { grid-template-columns: 1fr; } }
.vo-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.vo-form .vo-full { grid-column: 1 / -1; }
.vo-form label { display: block; font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.vo-form input, .vo-form select { width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; color: var(--text); font-size: 0.85rem; font-family: inherit; }
.vo-form input:focus, .vo-form select:focus { outline: none; border-color: var(--accent); }
.vo-results { display: flex; flex-direction: column; gap: 12px; }
.vo-result-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.vo-result-card.vo-highlight { border-color: var(--accent); }
.vo-result-card.vo-negative { border-color: #5a3a1a; }
.vo-result-card.vo-positive { border-color: #2a5a3a; }
.vo-result-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 8px; }
.vo-big-num { font-size: 1.75rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.vo-big-num.positive { color: var(--accent2); }
.vo-big-num.negative { color: #f59e0b; }
.vo-big-num.neutral { color: var(--text); }
.vo-sub { font-size: 0.78rem; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.vo-row { display: flex; justify-content: space-between; font-size: 0.82rem; margin-bottom: 5px; color: var(--muted); }
.vo-row span:last-child { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.vo-row.vo-total { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); font-weight: 700; color: var(--text); }
.vo-row.vo-total span:last-child { color: var(--accent2); }
.vo-offset-bar { margin-top: 10px; }
.vo-offset-track { background: var(--surface2); border-radius: 6px; height: 10px; overflow: hidden; display: flex; }
.vo-offset-fill { height: 100%; transition: width 0.2s; }
.vo-offset-fill.vo-used { background: linear-gradient(90deg, var(--accent), var(--accent2)); }
.vo-offset-fill.vo-waste { background: #5a3a1a; }
.vo-offset-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-top: 4px; }
.vo-class-note { font-size: 0.76rem; color: var(--muted); line-height: 1.45; padding: 10px 12px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); }
.vo-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 500px) { .vo-compare-grid { grid-template-columns: 1fr; } }
.vo-compare-cell { text-align: center; padding: 10px; background: var(--surface2); border-radius: 8px; border: 1px solid var(--border); }
.vo-compare-cell .vo-compare-val { font-size: 1.1rem; font-weight: 700; color: var(--accent2); }
.vo-compare-cell .vo-compare-lbl { font-size: 0.68rem; color: var(--muted); margin-top: 3px; }
.tax-profile-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 20px 24px 24px; align-items: start; }
@media (max-width: 900px) { .tax-profile-wrap { grid-template-columns: 1fr; } }
.tax-profile-main { display: flex; flex-direction: column; gap: 16px; }
.tax-profile-section { background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.tax-profile-section h4 { font-size: 0.8rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.tax-profile-income .vo-row { margin-bottom: 6px; }
.req-row { display: flex; align-items: flex-start; gap: 8px; font-size: 0.82rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.req-row:last-child { border-bottom: none; }
.req-pass .req-icon { color: var(--accent2); font-weight: 700; }
.req-fail .req-icon { color: #f59e0b; }
.req-fail { color: var(--muted); }
.req-detail { font-size: 0.75rem; color: var(--muted); }
.req-score { font-weight: 400; color: var(--accent2); font-size: 0.75rem; }
.req-manual-grid { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.req-check { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; cursor: pointer; }
.req-check input { accent-color: var(--accent); }
.qual-badge { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; padding: 4px 10px; border-radius: 6px; margin-bottom: 10px; }
.qual-badge-good { background: #1a3a2a; color: var(--accent2); border: 1px solid #2a5a3a; }
.qual-badge-warn { background: #3a2a1a; color: #f59e0b; border: 1px solid #5a3a1a; }
.vo-warnings { font-size: 0.78rem; color: #f59e0b; background: #3a2a1a; border: 1px solid #5a3a1a; border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; line-height: 1.45; }
.vo-warnings a { color: var(--accent); }
.vo-dashboard-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.vo-dashboard-header h3 { margin: 0; }
.vo-dashboard-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.vo-results-dashboard { max-width: 520px; }
.calc-preview { background: #1a2a3d; border: 1px solid #2a4a6d; border-radius: 8px; padding: 10px 14px; font-size: 0.85rem; color: var(--accent2); font-weight: 600; }
.contact-picker-row { display: flex; gap: 8px; align-items: center; }
.contact-picker-row select { flex: 1; min-width: 0; }
.contact-picker-row .btn { white-space: nowrap; flex-shrink: 0; }
.crm-link { font-size: 0.78rem; color: var(--accent); text-decoration: none; margin-left: 6px; }
.crm-link:hover { text-decoration: underline; }
.detail-contact-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.export-dropdown { position: relative; }
.export-menu { position: absolute; top: calc(100% + 6px); right: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; min-width: 200px; z-index: 200; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.export-menu button { display: block; width: 100%; text-align: left; background: none; border: none; color: var(--text); padding: 10px 16px; font-size: 0.82rem; cursor: pointer; font-family: inherit; }
.export-menu button:hover { background: var(--surface2); }
.export-menu hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.tax-guide { padding: 20px 24px 40px; max-width: 900px; }
.tax-guide details { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.tax-guide summary { padding: 14px 18px; font-weight: 600; font-size: 0.9rem; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.tax-guide summary::-webkit-details-marker { display: none; }
.tax-guide summary:hover { background: var(--surface2); }
.tax-guide details[open] summary { border-bottom: 1px solid var(--border); }
.guide-content { padding: 16px 18px; font-size: 0.85rem; line-height: 1.65; color: var(--muted); }
.guide-content p { margin-bottom: 10px; }
.guide-content ul { margin: 8px 0 12px 20px; }
.guide-content li { margin-bottom: 4px; }
.guide-content h4 { color: var(--text); font-size: 0.82rem; margin: 14px 0 8px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; margin: 10px 0; }
.guide-table th, .guide-table td { padding: 8px 12px; border: 1px solid var(--border); text-align: left; }
.guide-table th { background: var(--surface2); color: var(--text); font-weight: 600; }

/* ── CSV Import ── */
.import-badge { display: inline-block; background: var(--warn); color: #000; font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px; margin-left: 4px; vertical-align: middle; }
.import-hint { font-size: 0.75rem; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.import-mapping-grid { margin-top: 12px; }
.import-preview-wrap { margin-top: 16px; }
.import-preview-title { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 8px; }
.import-preview-table { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.import-preview-table table { width: 100%; border-collapse: collapse; font-size: 0.78rem; }
.import-preview-table th, .import-preview-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.import-preview-table th { background: var(--surface2); color: var(--muted); font-weight: 600; }
.import-preview-table tr:last-child td { border-bottom: none; }
.import-row-count { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.import-queue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 0 12px; }
.import-select-all { font-size: 0.82rem; color: var(--muted); display: flex; align-items: center; gap: 8px; cursor: pointer; }
.import-queue-actions { display: flex; gap: 8px; }
.import-queue-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.import-queue-table th, .import-queue-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.import-queue-table th { background: var(--surface); color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; position: sticky; top: 0; }
.import-desc-cell { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-cat-select { font-size: 0.78rem; padding: 6px 8px; min-width: 160px; }
.import-pct-input { width: 64px; background: var(--surface2); border: 1px solid var(--border); border-radius: 6px; color: var(--text); padding: 6px 8px; font-size: 0.78rem; text-align: right; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
