/* ============================================
   Deal Intelligence Engine — Styles
   ============================================ */

:root {
    /* ── Color Palette ──────────────────────────────────────────── */
    --color-primary: #4F46E5;
    --color-primary-hover: #4338CA;
    --color-primary-light: #EEF2FF;
    --color-secondary: #475569;
    --color-secondary-light: #F1F5F9;
    --color-background: #F8FAFC;
    --color-surface: #FFFFFF;
    --color-sidebar-bg: #0F172A;
    --color-sidebar-text: #E2E8F0;
    --color-sidebar-active: #818CF8;
    --color-sidebar-hover: #1E293B;
    --color-success: #10B981;
    --color-success-light: #ECFDF5;
    --color-warning: #F59E0B;
    --color-warning-light: #FFFBEB;
    --color-danger: #F43F5E;
    --color-danger-light: #FFF1F2;
    --color-info: #0EA5E9;
    --color-info-light: #F0F9FF;
    --color-ai: #8B5CF6;
    --color-ai-light: #F5F3FF;
    --color-text-primary: #0F172A;
    --color-text-secondary: #64748B;
    --color-text-muted: #94A3B8;
    --color-border: #E2E8F0;

    /* ── Typography ─────────────────────────────────────────────── */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 0.875rem;
    --font-size-lg: 1rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;

    /* ── Spacing ────────────────────────────────────────────────── */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;

    /* ── Radii ──────────────────────────────────────────────────── */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    /* ── Shadows ────────────────────────────────────────────────── */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);

    /* ── Legacy aliases (keeps existing code working) ───────────── */
    --bg: var(--color-background);
    --bg-card: var(--color-surface);
    --bg-card-hover: var(--color-secondary-light);
    --bg-input: var(--color-background);
    --border: var(--color-border);
    --text: var(--color-text-primary);
    --text-muted: var(--color-text-secondary);
    --text-dim: var(--color-text-muted);
    --text-secondary: var(--color-text-secondary);
    --primary: var(--color-primary);
    --primary-hover: var(--color-primary-hover);
    --primary-soft: var(--color-primary-light);
    --primary-border: rgba(79,70,229,0.2);
    --primary-active: rgba(79,70,229,0.12);
    --accent: var(--color-info);
    --green: var(--color-success);
    --blue: var(--color-primary);
    --red: var(--color-danger);
    --yellow: var(--color-warning);
    --purple: var(--color-ai);
    --orange: #EA580C;
    --radius: var(--radius-md);
    --shadow: var(--shadow-md);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-family);
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
}

/* ─── App Layout ─────────────────────────────────────────────────── */
.app-layout {
    display: flex;
    min-height: 100vh;
}

.app-content {
    flex: 1;
    min-width: 0;
}

/* Unauthenticated full-width layout */
.container-auth {
    max-width: 480px;
    margin: 80px auto;
    padding: 0 20px;
}

/* ─── Sidebar ─────────────────────────────────────────────────────── */
.sidebar {
    width: 240px;
    flex-shrink: 0;
    background: var(--color-sidebar-bg);
    color: var(--color-sidebar-text);
    display: flex;
    flex-direction: column;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
    transition: width 0.2s ease;
    z-index: 50;
}

body.sidebar-collapsed .sidebar { width: 64px; }

/* Header */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 12px 12px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
    min-width: 0;
}

.sidebar-logo-mark {
    width: 30px;
    height: 30px;
    background: var(--color-primary);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: white;
    flex-shrink: 0;
    letter-spacing: -0.5px;
}

.sidebar-logo-name {
    font-size: 14px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.15s, max-width 0.2s;
    max-width: 160px;
}
body.sidebar-collapsed .sidebar-logo-name { opacity: 0; max-width: 0; }

.sidebar-toggle {
    background: none;
    border: none;
    color: rgba(226,232,240,0.45);
    cursor: pointer;
    padding: 4px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.sidebar-toggle:hover { color: var(--color-sidebar-text); background: var(--color-sidebar-hover); }
.sidebar-toggle svg { width: 16px; height: 16px; }
/* Rotate chevron when collapsed */
body.sidebar-collapsed .sidebar-toggle .toggle-icon { transform: rotate(180deg); }

/* Search */
.sidebar-search {
    padding: 0 10px 8px;
    flex-shrink: 0;
    position: relative;
}
.sidebar-search svg {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 13px;
    height: 13px;
    color: rgba(148,163,184,0.5);
    pointer-events: none;
}
.sidebar-search-input {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 7px;
    padding: 7px 10px 7px 30px;
    font-size: 12px;
    color: var(--color-sidebar-text);
    outline: none;
    font-family: var(--font-family);
    transition: border-color 0.15s, background 0.15s;
}
.sidebar-search-input::placeholder { color: rgba(226,232,240,0.3); }
.sidebar-search-input:focus {
    border-color: var(--color-sidebar-active);
    background: rgba(255,255,255,0.09);
}
body.sidebar-collapsed .sidebar-search { display: none; }

/* Sync strip */
.sidebar-sync {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px 10px;
    flex-shrink: 0;
}
.sidebar-sync-text {
    font-size: 10px;
    color: rgba(148,163,184,0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sidebar-sync-btn {
    display: flex;
    align-items: center;
    color: rgba(148,163,184,0.4);
    text-decoration: none;
    padding: 3px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.sidebar-sync-btn svg { width: 11px; height: 11px; }
.sidebar-sync-btn:hover { color: var(--color-sidebar-text); background: var(--color-sidebar-hover); }
body.sidebar-collapsed .sidebar-sync { display: none; }

.sidebar-divider {
    height: 1px;
    background: rgba(255,255,255,0.06);
    margin: 0 10px 6px;
    flex-shrink: 0;
}

/* Nav scroll area */
.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 8px 8px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.08) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 3px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

/* Section labels */
.sidebar-section {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(148,163,184,0.4);
    padding: 16px 8px 4px;
    white-space: nowrap;
    overflow: hidden;
    transition: opacity 0.15s;
}
body.sidebar-collapsed .sidebar-section { opacity: 0; }

/* Nav items */
.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 9px;
    border-radius: 7px;
    border-left: 2px solid transparent;
    color: rgba(226,232,240,0.6);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    transition: background 0.12s, color 0.12s, border-color 0.12s;
    margin-bottom: 1px;
}
.sidebar-nav-item svg { width: 15px; height: 15px; flex-shrink: 0; }
.sidebar-nav-item .nav-label { flex: 1; min-width: 0; transition: opacity 0.15s; }
.sidebar-nav-item:hover { background: var(--color-sidebar-hover); color: white; }
.sidebar-nav-item.active {
    background: var(--color-sidebar-hover);
    color: var(--color-sidebar-active);
    border-left-color: var(--color-sidebar-active);
}

/* Badges */
.sidebar-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 99px;
    line-height: 1.5;
    flex-shrink: 0;
    background: rgba(245,158,11,0.18);
    color: #f59e0b;
}
.sidebar-badge-red   { background: rgba(244,63,94,0.18);   color: var(--color-danger); }
.sidebar-badge-blue  { background: rgba(79,70,229,0.18);   color: var(--color-sidebar-active); }
.sidebar-badge-muted { background: rgba(148,163,184,0.12); color: var(--color-text-muted); border: 1px solid rgba(148,163,184,0.2); }

/* Collapsed: icon-only */
body.sidebar-collapsed .sidebar-nav-item {
    padding: 8px;
    justify-content: center;
}
body.sidebar-collapsed .sidebar-nav-item .nav-label { opacity: 0; width: 0; overflow: hidden; }
body.sidebar-collapsed .sidebar-badge { display: none; }
body.sidebar-collapsed .sidebar-section { visibility: hidden; height: 24px; padding: 12px 0 4px; }

/* Tooltip on hover when collapsed */
body.sidebar-collapsed .sidebar-nav-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-sidebar-hover);
    color: white;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 200;
    border: 1px solid rgba(255,255,255,0.08);
    box-shadow: var(--shadow-lg);
}
body.sidebar-collapsed .sidebar-nav-item[data-tooltip]:hover::after { opacity: 1; }

/* Bottom section */
.sidebar-bottom {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 8px 10px;
}
.sidebar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 7px;
    margin-top: 4px;
    overflow: hidden;
}
.sidebar-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}
.sidebar-user-name {
    flex: 1;
    font-size: 12px;
    color: rgba(226,232,240,0.5);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    transition: opacity 0.15s;
}
.sidebar-logout {
    display: flex;
    align-items: center;
    color: rgba(148,163,184,0.45);
    text-decoration: none;
    padding: 4px;
    border-radius: 4px;
    flex-shrink: 0;
    transition: color 0.15s;
}
.sidebar-logout svg { width: 14px; height: 14px; }
.sidebar-logout:hover { color: var(--color-danger); }

body.sidebar-collapsed .sidebar-user { padding: 8px; justify-content: center; }
body.sidebar-collapsed .sidebar-user-name { opacity: 0; width: 0; }
body.sidebar-collapsed .sidebar-logout { display: none; }

/* ─── Navbar (legacy — kept for compatibility, no longer rendered) ─── */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    width: 32px;
    height: 32px;
    background: var(--color-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: white;
}

.nav-title {
    font-weight: 600;
    font-size: 15px;
    color: var(--text);
}

.nav-links {
    display: flex;
    gap: 4px;
}

.nav-link {
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.15s;
}

.nav-link:hover {
    color: var(--text);
    background: var(--bg-input);
}
.nav-link.active {
    color: var(--primary);
    background: var(--primary-soft);
    border-bottom: 2px solid var(--primary);
}

.nav-refresh {
    background: var(--primary);
    color: white !important;
}

.nav-refresh:hover {
    background: var(--primary-hover);
}

.spinning { opacity: 0.6; pointer-events: none; }

/* ─── Container ─── */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 20px;
}

/* ─── Dashboard Header ─── */
.dash-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.dash-header h1 {
    font-size: 24px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-muted);
    font-size: 13px;
    margin-top: 4px;
}

/* Sync freshness indicators */
.sync-age-indicator { }
.sync-age-amber { color: #b45309; font-weight: 600; }
.sync-age-red   { color: #b91c1c; font-weight: 600; }

.dash-actions {
    display: flex;
    gap: 8px;
}

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover { background: var(--primary-hover); }

.btn-secondary {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-card-hover); }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-dim);
}

.btn-sm { padding: 5px 12px; font-size: 12px; }

.btn.disabled { opacity: 0.5; pointer-events: none; }

/* ─── Category Cards ─── */
.category-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.category-cards.has-pipeline {
    grid-template-columns: repeat(6, 1fr);
}

.cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.15s;
}

.cat-card:hover, .cat-card.active {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

/* Pipeline tile — same shape as cat-card but indigo accent */
.pipeline-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--color-sidebar-active);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.15s;
    position: relative;
}

.pipeline-tile:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    border-left-color: var(--color-sidebar-active);
}

.pipeline-tile-value {
    font-size: 26px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.1;
    margin-bottom: 2px;
}

.pipeline-tile-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.ptile-count {
    font-size: 11px;
    color: var(--text-muted);
    margin-right: 2px;
}

.ptile-dot {
    font-size: 10px;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ptile-dot-red    { background: rgba(220,38,38,0.12);  color: #b91c1c; }
.ptile-dot-orange { background: rgba(234,88,12,0.12);  color: #c2410c; }
.ptile-dot-yellow { background: rgba(217,119,6,0.12);  color: #b45309; }
.ptile-dot-green  { background: rgba(22,163,74,0.12);  color: #15803d; }

.pipeline-tile-chevron {
    position: absolute;
    top: 11px;
    right: 11px;
    font-size: 9px;
    color: var(--text-muted);
    transition: transform 0.2s;
    pointer-events: none;
}

.pipeline-tile-chevron.collapsed { transform: rotate(-90deg); }

.cat-count {
    font-size: 28px;
    font-weight: 700;
}

.cat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Unscored state — cat-cards before ICP scoring has run */
.cat-card-unscored {
    opacity: 0.75;
}

.cat-card-unscored .cat-count {
    color: var(--text-muted);
}

.cat-unscored-hint {
    font-size: 10px;
    color: var(--text-muted);
    margin-top: 3px;
    font-style: italic;
    opacity: 0.8;
}

/* Above-fold banner when deals exist but scoring hasn't run */
.unscored-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--color-primary-light) 0%, rgba(99,102,241,0.08) 100%);
    border: 1px solid rgba(79,70,229,0.25);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

.unscored-banner-left {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.unscored-banner-icon {
    font-size: 22px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}

.unscored-banner strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.unscored-banner p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.45;
}

/* ─── Filter Bar ─── */
.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-input, .filter-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 13px;
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.search-input:focus, .filter-select:focus {
    border-color: var(--primary);
}

.search-input {
    flex: 1;
}

.filter-select {
    min-width: 140px;
}

/* ─── Opportunity Cards ─── */
.opportunities-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.opp-card {
    display: flex;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: all 0.15s;
}

.opp-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.opp-card.hidden { display: none; }

/* Score badge */
.opp-score {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.score-num {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
}

.score-label {
    font-size: 10px;
    opacity: 0.8;
}

/* Content */
.opp-content {
    flex: 1;
    min-width: 0;
}

.opp-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.opp-company {
    font-size: 16px;
    font-weight: 600;
}

.opp-tag {
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.opp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.meta-item {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 2px 8px;
    border-radius: 4px;
}

.deal-meta {
    color: var(--blue);
    background: rgba(79, 70, 229, 0.08);
}

.opp-why {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-style: italic;
}

/* Flags */
.opp-flags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.flag {
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: 600;
}

.flag-stuck {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.25);
}

.flag-champion {
    background: rgba(124, 58, 237, 0.08);
    color: #6d28d9;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.flag-winback {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

/* Expansion intel row */
.expansion-intel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.ei-item {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 5px;
    font-weight: 500;
    background: rgba(79, 70, 229, 0.07);
    color: var(--color-primary-hover);
    border: 1px solid rgba(79, 70, 229, 0.18);
    white-space: nowrap;
}

.ei-owner {
    background: rgba(99, 102, 241, 0.08);
    color: var(--color-primary);
    border-color: rgba(99, 102, 241, 0.18);
}

.ei-renewal {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.2);
}

/* Account health badge colours */
.ei-health { font-weight: 600; }
.ei-health-healthy, .ei-health-green {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border-color: rgba(22, 163, 74, 0.25);
}
.ei-health-at-risk, .ei-health-yellow, .ei-health-amber {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border-color: rgba(217, 119, 6, 0.25);
}
.ei-health-churned, .ei-health-red, .ei-health-critical {
    background: rgba(220, 38, 38, 0.08);
    color: #b91c1c;
    border-color: rgba(220, 38, 38, 0.25);
}
.ei-health-unknown, .ei-health-na, .ei-health- {
    background: rgba(100, 116, 139, 0.12);
    color: #94a3b8;
    border-color: rgba(100, 116, 139, 0.25);
}

/* Score bars */
.score-bars {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.score-bar-group {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.bar-label {
    font-size: 11px;
    color: var(--text-dim);
    min-width: 62px;
}

.bar-track {
    flex: 1;
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.bar-value {
    font-size: 11px;
    color: var(--text-dim);
    min-width: 32px;
    text-align: right;
}

/* Angle */
.opp-angle {
    font-size: 13px;
    color: var(--text);
    background: rgba(79, 70, 229, 0.08);
    border-left: 3px solid var(--primary);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    margin-bottom: 10px;
}

.opp-angle strong {
    color: var(--primary);
}

/* HubSpot links */
.opp-hs-links {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.hs-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: all 0.15s;
}

.hs-link:hover {
    color: #ff7a59;
    border-color: #ff7a59;
    background: rgba(255, 122, 89, 0.08);
}

/* Actions */
.opp-actions {
    display: flex;
    gap: 8px;
}

/* ─── Empty State ─── */
.empty-state {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-muted);
}

.empty-state h2 {
    color: var(--text);
    margin-bottom: 8px;
}

.empty-state .btn {
    margin-top: 16px;
}

/* ─── Setup Page ─── */
.setup-page h1 {
    font-size: 24px;
    margin-bottom: 4px;
}

.connections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
    margin: 24px 0;
}

.connection-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.connection-card.connected {
    border-color: rgba(34, 197, 94, 0.3);
}

.connection-card.disconnected {
    border-color: rgba(239, 68, 68, 0.2);
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.connection-header h3 {
    font-size: 15px;
}

.connection-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.connection-status-dot.ok { background: var(--green); }
.connection-status-dot.error { background: var(--red); }

.connection-message {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.connection-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.connection-badge.ok {
    background: rgba(22, 163, 74, 0.08);
    color: var(--green);
}

.connection-badge.error {
    background: rgba(220, 38, 38, 0.08);
    color: var(--red);
}

.setup-instructions {
    margin: 30px 0;
}

.setup-instructions h2 {
    font-size: 18px;
    margin-bottom: 12px;
}

.setup-instructions details {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    overflow: hidden;
}

.setup-instructions summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.setup-instructions summary:hover {
    background: var(--bg-card-hover);
}

.setup-instructions ol {
    padding: 0 16px 16px 36px;
    font-size: 13px;
    color: var(--text-muted);
}

.setup-instructions li {
    margin-bottom: 6px;
}

.setup-instructions code {
    background: var(--bg-input);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--purple);
}

.setup-instructions a {
    color: var(--primary);
}

.setup-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

/* ─── Modals ─── */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    width: 100%;
    max-width: 640px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0,0,0,0.08);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 16px;
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
    padding: 0 4px;
}

.modal-close:hover { color: var(--text); }

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

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

/* Email display */
.email-output {
    font-family: var(--font-family);
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    color: var(--text);
}

.email-subject {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    font-size: 14px;
}

/* Activity list */
.activity-list {
    list-style: none;
}

.activity-item {
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}

.activity-item:last-child { border: none; }

.activity-type {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 11px;
    color: var(--primary);
    margin-bottom: 2px;
}

.activity-date {
    font-size: 11px;
    color: var(--text-dim);
}

.activity-subject {
    color: var(--text);
}

.activity-preview {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 2px;
}

.loading {
    text-align: center;
    color: var(--text-muted);
    padding: 30px;
}

/* ─── Export Dropdown ─── */
.export-dropdown {
    position: relative;
}

.export-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px 0;
    min-width: 220px;
    box-shadow: var(--shadow-md);
    z-index: 100;
}

.export-menu.active {
    display: block;
}

.export-link {
    display: block;
    padding: 10px 16px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.88rem;
    transition: background 0.1s;
}

.export-link:hover {
    background: var(--bg-card-hover);
    color: var(--primary);
}

.export-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    margin-bottom: 4px;
    cursor: pointer;
}

.export-option input[type="checkbox"] {
    accent-color: var(--primary);
}

.export-menu-section {
    padding: 6px 16px 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.export-menu-divider {
    height: 1px;
    background: var(--border);
    margin: 6px 0;
}

.export-link-new-logo:hover { color: var(--blue); }
.export-link-expansion:hover { color: var(--green); }
.export-link-winback:hover { color: var(--yellow); }

/* ─── Info Banner ─── */
.info-banner {
    background: linear-gradient(135deg, var(--color-info-light) 0%, var(--color-primary-light) 100%);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 12px;
    box-shadow: var(--shadow);
}

.info-banner-content {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.info-banner-label {
    background: rgba(79,70,229,0.08);
    color: var(--blue);
    border: 1px solid rgba(79,70,229,0.2);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-banner-highlight {
    color: var(--green);
    font-weight: 600;
}

.info-banner-time {
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* ─── Prospects Page ─── */
.prospects-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.prospect-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow);
    transition: background 0.15s, border-color 0.15s;
}

.prospect-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.prospect-tier {
    min-width: 70px;
    text-align: center;
    padding: 6px 10px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tier-tier1 {
    background: rgba(22,163,74,0.08);
    color: #15803d;
    border: 1px solid rgba(22,163,74,0.25);
}

.tier-tier2 {
    background: rgba(79,70,229,0.08);
    color: var(--color-primary-hover);
    border: 1px solid rgba(79,70,229,0.2);
}

.tier-tier3 {
    background: rgba(217,119,6,0.08);
    color: #b45309;
    border: 1px solid rgba(217,119,6,0.2);
}

.tier-small {
    background: rgba(148,163,184,0.1);
    color: var(--text-dim);
    border: 1px solid rgba(148,163,184,0.25);
}

.prospect-content {
    flex: 1;
    min-width: 0;
}

.prospect-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 6px;
    flex-wrap: wrap;
}

.prospect-name {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.prospect-services {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.prospect-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.prospect-actions {
    display: flex;
    gap: 8px;
}

/* ─── Services table (modal) ─── */
.services-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-top: 8px;
}

.services-table th {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 2px solid var(--border);
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.services-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.services-table tr:hover td {
    background: var(--bg-card-hover);
}

/* ─── My Open Pipeline ─── */
/* ─── Pipeline Panel (deal rows, expands below tile row) ───────────── */

.pipeline-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-height: 9999px;
    transition: max-height 0.35s ease, margin-bottom 0.3s ease, border-color 0.3s ease;
}

.pipeline-panel.collapsed {
    max-height: 0;
    margin-bottom: 0;
    border-color: transparent;
}

/* Scrollable inner wrapper for deal rows */
.pipeline-panel-inner {
    max-height: 68vh;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Subtle scrollbar styling */
.pipeline-panel-inner::-webkit-scrollbar { width: 6px; }
.pipeline-panel-inner::-webkit-scrollbar-track { background: transparent; }
.pipeline-panel-inner::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.1);
    border-radius: 3px;
}
.pipeline-panel-inner::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.18); }

/* Deal rows */
.pw-deal-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
    font-size: 13px;
}

.pw-deal-row:last-child { border-bottom: none; }
.pw-deal-row:hover { background: var(--bg-card-hover); }

/* Light-theme tints for alert/warn rows */
.pw-deal-row.pw-row-alert       { background: rgba(220,38,38,0.04); }
.pw-deal-row.pw-row-alert:hover { background: rgba(220,38,38,0.08); }
.pw-deal-row.pw-row-warn        { background: rgba(217,119,6,0.04); }
.pw-deal-row.pw-row-warn:hover  { background: rgba(217,119,6,0.08); }

/* Accent bar on left edge */
.pw-accent-bar {
    width: 4px;
    flex-shrink: 0;
    border-radius: 0;
}

/* Main deal content */
.pw-deal-main {
    flex: 1;
    min-width: 0;
    padding: 11px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pw-deal-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pw-company {
    font-weight: 600;
    color: var(--text);
}
.pw-company a { color: var(--text); text-decoration: none; }
.pw-company a:hover { color: #ff7a59; }

.pw-stage-badge {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--bg-input);
    color: var(--text-muted);
    white-space: nowrap;
}

.pw-amount {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.pw-close-date {
    font-size: 11px;
    color: var(--text-dim);
    white-space: nowrap;
}

/* Contact name chip in deal row header */
.pw-contact-name {
    font-size: 11px;
    color: var(--color-primary);
    background: rgba(99,102,241,0.08);
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    margin-left: 2px;
}
.pw-contact-title {
    color: var(--text-dim);
    font-style: italic;
}

/* HubSpot view links in action bar */
.pw-hs-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}
.pw-hs-link {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-dim);
    text-decoration: none;
    padding: 3px 7px;
    border: 1px solid var(--border);
    border-radius: 4px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.pw-hs-link:hover {
    color: #ff7a59;
    border-color: rgba(255,122,89,0.4);
    background: rgba(255,122,89,0.06);
}

.pw-deal-name {
    font-size: 12px;
    color: var(--text-muted);
}
.pw-deal-name a { color: var(--text-muted); text-decoration: none; }
.pw-deal-name a:hover { color: #ff7a59; }

/* Suggested action line */
.pw-insight-action {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 1px;
    line-height: 1.4;
}

.pw-insight-arrow {
    font-style: normal;
    font-weight: 700;
    margin-right: 2px;
    color: var(--text-dim);
}

/* Pipeline row quick-action buttons */
.pw-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 7px;
    flex-wrap: wrap;
}

.btn.btn-xs {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 5px;
    line-height: 1.5;
}

/* Right badge */
.pw-insight-badge {
    align-self: center;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid;
    white-space: nowrap;
    margin: 10px 16px 10px 8px;
    flex-shrink: 0;
}

/* ─── Link Modal ─── */
.link-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 8px;
    transition: background 0.15s;
}

.link-result:hover {
    background: var(--bg-card-hover);
}

.link-result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.link-result-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text);
}

.link-result-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.link-confirm {
    text-align: center;
    padding: 20px;
    background: rgba(34, 197, 94, 0.08);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 8px;
    color: var(--green);
    font-size: 14px;
}

.link-confirm strong {
    color: var(--text);
}

/* ─── Platform Badges (Customer Tabs) ─── */
.platform-badge {
    font-size: .7rem;
    padding: 2px 8px;
    border-radius: 99px;
    font-weight: 600;
    letter-spacing: .3px;
}
.platform-badge.both {
    background: rgba(217, 119, 6, .08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, .2);
}
.platform-badge.sp {
    background: rgba(22, 163, 74, .08);
    color: #15803d;
}
.platform-badge.secondary {
    background: rgba(79, 70, 229, .08);
    color: var(--color-primary-hover);
}

/* ─── Create Deal Modal ─── */
.btn-success {
    background: var(--green);
    color: #fff;
    border: none;
}
.btn-success:hover {
    background: #16a34a;
    color: #fff;
}

/* Target Account button */
.btn-target-account {
    background: transparent;
    color: #6b7280;
    border: 1px solid #d1d5db;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-target-account:hover {
    background: #fef3c7;
    color: #92400e;
    border-color: #f59e0b;
}
.btn-target-account.is-target {
    background: #ecfdf5;
    color: #065f46;
    border-color: #34d399;
    font-weight: 600;
}
.btn-target-account.is-target:hover {
    background: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}
.btn-target-account:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Draft Email button */
.btn-draft-email {
    background: transparent;
    color: var(--color-info);
    border: 1px solid rgba(14,165,233,0.45);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-draft-email:hover {
    background: rgba(2,132,199,0.08);
    color: #0369a1;
    border-color: var(--color-info);
}

/* Submit button inside quick-compose modal */
.btn-draft-email-submit {
    background: var(--color-info);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-draft-email-submit:hover { background: var(--color-info); }

/* Create Task button */
.btn-create-task {
    background: transparent;
    color: var(--color-primary);
    border: 1px solid rgba(99,102,241,0.35);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-create-task:hover {
    background: rgba(99,102,241,0.08);
    color: var(--color-primary);
    border-color: #6366f1;
}
.btn-create-task:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Create Task modal */
.modal.modal-task {
    max-width: 480px;
}

.task-notes-area {
    min-height: 88px;
}

.task-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(220,38,38,0.25);
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 13px;
}

/* Quick Compose modal */
.modal.modal-compose {
    max-width: 560px;
    width: 92vw;
}

.compose-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.compose-body-area {
    min-height: 200px;
    font-family: inherit;
    resize: vertical;
    line-height: 1.6;
}

/* Submit button inside task modal */
.btn-create-task-submit {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-create-task-submit:hover {
    background: var(--color-primary-hover);
}
.btn-create-task-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.modal.modal-wide {
    max-width: 860px;
    width: 90vw;
    max-height: 90vh;
}

/* Two-column layout inside modal */
.cd-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.cd-inputs {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cd-summary {
    width: 220px;
    flex-shrink: 0;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 10px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: sticky;
    top: 0;
}

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

.cd-acv-value {
    font-size: 30px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.1;
}

.cd-acv-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.cd-breakdown {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    margin-top: 4px;
}

.cd-bkd-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    color: var(--text-muted);
}

.cd-bkd-row span:last-child {
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
}

.cd-bkd-discount {
    color: var(--red);
}

.cd-bkd-discount span:last-child {
    color: var(--red);
}

.cd-bkd-total {
    border-top: 1px solid var(--border);
    padding-top: 4px;
    margin-top: 2px;
    font-weight: 700;
    color: var(--text) !important;
}

.cd-bkd-total span:last-child {
    color: var(--primary) !important;
}

.cd-bkd-empty {
    color: var(--text-dim);
    font-style: italic;
    font-size: 12px;
    text-align: center;
    padding: 8px 0;
}

.cd-section-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.cd-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.cd-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 7px 10px;
    color: var(--text);
    font-size: 13px;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
}

.cd-input:focus {
    border-color: var(--primary);
}

.cd-row {
    display: flex;
    gap: 12px;
}

.cd-row .cd-label {
    flex: 1 1 0;
    min-width: 0;
}

.cd-products {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cd-check {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    user-select: none;
}

.cd-check input[type="checkbox"] {
    accent-color: var(--primary);
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.cd-price-hint {
    font-size: 11px;
    color: var(--text-dim);
    margin-left: auto;
}

/* Success banner inside modal */
.cd-success-banner {
    padding: 14px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 8px;
    color: var(--green);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cd-success-banner a {
    color: var(--green);
    font-weight: 600;
    text-decoration: underline;
}

/* ─── Create Deal Context Bar ─── */
.cd-context-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 10px 24px;
    background: rgba(79, 70, 229, 0.06);
    border-bottom: 1px solid var(--border);
}

.cd-ctx-stat {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.cd-ctx-val {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}

.cd-ctx-lbl {
    font-size: 11px;
    color: var(--text-muted);
}

.cd-ctx-div {
    color: var(--text-dim);
    font-size: 13px;
    padding: 0 2px;
}

/* ─── Line Items Table ─── */
.cd-li-search-wrap {
    position: relative;
}

.cd-li-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-height: 260px;
    overflow-y: auto;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.08);
}

.cd-li-dropdown.open { display: block; }

.cd-li-drop-group {
    padding: 6px 12px 3px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    background: var(--bg);
    position: sticky;
    top: 0;
}

.cd-li-drop-item {
    padding: 7px 12px;
    font-size: 12px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.1s;
}

.cd-li-drop-item:hover { background: var(--bg-card-hover); }

.cd-li-drop-price {
    color: var(--text-dim);
    font-size: 11px;
    white-space: nowrap;
}

.cd-li-drop-empty {
    padding: 12px;
    color: var(--text-dim);
    font-size: 12px;
    text-align: center;
}

.cd-li-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-top: 8px;
}

.cd-li-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.cd-li-table thead th {
    padding: 7px 10px;
    text-align: left;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.cd-li-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.1s;
}

.cd-li-table tbody tr:last-child { border-bottom: none; }
.cd-li-table tbody tr:hover { background: var(--bg-card-hover); }

.cd-li-empty-row td {
    padding: 16px;
    text-align: center;
    color: var(--text-dim);
    font-style: italic;
}

.cd-li-name {
    padding: 8px 10px;
    color: var(--text);
    min-width: 180px;
    max-width: 240px;
}

.cd-li-unit {
    padding: 8px 6px;
    color: var(--text-muted);
    white-space: nowrap;
}

.cd-li-acv {
    padding: 8px 10px;
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
    text-align: right;
}

.cd-li-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 4px 6px;
    color: var(--text);
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    min-width: 0;
}

.cd-li-input:focus { border-color: var(--primary); }
.cd-li-qty  { width: 60px; }
.cd-li-price { width: 80px; }

.cd-li-billing {
    font-size: 10px;
    color: var(--text-dim);
    margin-left: 3px;
    white-space: nowrap;
}

.cd-li-remove {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.15s, background 0.15s;
}

.cd-li-remove:hover {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

/* ─── Quick Notes ─── */
.note-widget {
    margin: 8px 0 4px;
}

.note-display {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    border: 1px dashed var(--border);
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    min-height: 32px;
}

.note-display:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.05);
}

.note-display.note-has-content {
    border-style: solid;
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.04);
}

.note-display.note-has-content:hover {
    border-color: var(--primary);
    background: rgba(79, 70, 229, 0.09);
}

.note-icon {
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.7;
}

.note-text {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.note-has-content .note-text {
    color: var(--text-muted);
}

.note-editor {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.note-textarea {
    background: var(--bg-input);
    border: 1px solid var(--primary);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 12px;
    line-height: 1.5;
    font-family: inherit;
    resize: vertical;
    min-height: 64px;
    outline: none;
    width: 100%;
}

.note-editor-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.note-hint {
    font-size: 10px;
    color: var(--text-dim);
}

.note-editor-actions {
    display: flex;
    gap: 6px;
}

.btn-xs {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 5px;
}

/* ─── Touch Tracker ─── */
.btn-touch {
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
    background: transparent;
}

.btn-touch:hover {
    background: rgba(79, 70, 229, 0.08);
    border-color: var(--color-primary);
    color: var(--color-primary-hover);
}

/* ── Angle freshness indicator ───────────────────────────────────────────── */
.opp-angle-wrapper {
    margin-bottom: 8px;
}

.opp-angle-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    gap: 8px;
}

.opp-angle-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.angle-meta {
    display: flex;
    align-items: center;
    gap: 6px;
}

.angle-freshness {
    font-size: 10px;
    font-weight: 500;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.angle-fresh {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.angle-warm {
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary-hover);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.angle-stale {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

.btn-refresh-angle {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    border: 1px solid rgba(79, 70, 229, 0.3);
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.btn-refresh-angle:hover {
    background: rgba(79, 70, 229, 0.08);
    color: #3730a3;
    border-color: rgba(79, 70, 229, 0.5);
}

.btn-refresh-angle:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.opp-angle-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.angle-empty {
    color: var(--text-muted);
    font-style: italic;
}

/* Last-contacted badge, shown inline below HubSpot links */
.touch-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    margin-top: 6px;
    margin-bottom: 2px;
    font-weight: 500;
}

.touch-fresh {
    background: rgba(22, 163, 74, 0.08);
    color: #15803d;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

.touch-warm {
    background: rgba(79, 70, 229, 0.08);
    color: var(--color-primary-hover);
    border: 1px solid rgba(79, 70, 229, 0.2);
}

.touch-cold {
    background: rgba(217, 119, 6, 0.08);
    color: #b45309;
    border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Touch log modal form */
.modal-touch {
    max-width: 440px;
}

.touch-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.touch-label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.touch-optional {
    font-weight: 400;
    color: var(--text-dim);
    font-size: 11px;
}

.touch-input, .touch-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 10px;
    color: var(--text);
    font-size: 13px;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
}

.touch-input:focus, .touch-select:focus {
    border-color: var(--primary);
}

.touch-textarea {
    resize: vertical;
    min-height: 72px;
    font-family: inherit;
    line-height: 1.5;
}

.touch-select option {
    background: var(--bg-card);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .category-cards,
    .category-cards.has-pipeline { grid-template-columns: repeat(3, 1fr); }
    .score-bars { flex-direction: column; gap: 6px; }
    .filter-bar { flex-direction: column; }
    .dash-header { flex-direction: column; gap: 12px; }
    .opp-card { flex-direction: column; }
    .opp-score {
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 4px;
        padding: 6px 12px;
        align-self: flex-start;
    }
    .info-banner { flex-direction: column; }
    .prospect-card { flex-direction: column; align-items: flex-start; }
    .cd-layout { flex-direction: column; }
    .cd-summary { width: 100%; position: static; }
    .cd-products { grid-template-columns: 1fr; }
    .cd-row { flex-direction: column; gap: 8px; }
}


/* ─── Tasks Panel ────────────────────────────────────────────────── */

.tasks-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tasks-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    transition: background 0.15s;
}
.tasks-panel-header:hover { background: var(--bg-card-hover); }

.tasks-panel-chevron {
    font-size: 11px;
    color: var(--text-muted);
    transition: transform 0.2s;
    display: inline-block;
}
.tasks-panel-chevron.collapsed { transform: rotate(-90deg); }

.tasks-panel-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.tasks-panel-count {
    font-size: 12px;
    font-weight: 700;
    background: rgba(234,88,12,0.08);
    color: var(--orange);
    border-radius: 20px;
    padding: 2px 10px;
    min-width: 28px;
    text-align: center;
}

.tasks-panel-hint {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
}

.tasks-panel-inner {
    max-height: 60vh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 8px 0;
}
.tasks-panel-inner.collapsed { display: none; }

.tasks-panel-inner::-webkit-scrollbar { width: 6px; }
.tasks-panel-inner::-webkit-scrollbar-track { background: transparent; }
.tasks-panel-inner::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.tasks-loading {
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: 13px;
}

.tasks-empty {
    padding: 20px 24px;
    color: var(--text-muted);
    font-size: 13px;
    font-style: italic;
}

.task-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.15s, opacity 0.3s;
}
.task-row:last-child { border-bottom: none; }
.task-row:hover { background: var(--bg-card-hover); }
.task-row.completing { opacity: 0.4; pointer-events: none; }

.task-complete-btn {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    cursor: pointer;
    margin-top: 2px;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 11px;
}
.task-complete-btn:hover {
    border-color: var(--green);
    background: rgba(22,163,74,0.08);
    color: var(--green);
}

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

.task-subject {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.task-due {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    background: rgba(0,0,0,0.04);
    color: var(--text-muted);
}
.task-due.overdue {
    background: rgba(220,38,38,0.08);
    color: #b91c1c;
}

.task-assoc {
    display: flex;
    align-items: center;
    gap: 6px;
}

.task-hs-link {
    font-size: 11px;
    color: var(--text-muted);
    text-decoration: none;
    padding: 2px 7px;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: border-color 0.15s, color 0.15s;
}
.task-hs-link:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.task-notes {
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


/* ─── Deal row refresh button ────────────────────────────────────── */

.btn-deal-refresh {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, transform 0.15s;
    flex-shrink: 0;
    margin-left: 4px;
    padding: 0;
    line-height: 1;
}
.btn-deal-refresh:hover {
    border-color: var(--orange);
    color: var(--orange);
    transform: rotate(30deg);
}
.btn-deal-refresh:disabled {
    opacity: 0.5;
    cursor: default;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.btn-deal-refresh.spinning {
    animation: spin 0.6s linear infinite;
    color: var(--orange);
    border-color: var(--orange);
}
.btn-deal-refresh.refreshed {
    color: var(--green);
    border-color: var(--green);
}


/* ─── Email draft tone bar ───────────────────────────────────────── */

.compose-tone-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 20px 12px;
    border-bottom: 1px solid var(--border);
    background: rgba(0,0,0,0.02);
}

.compose-tone-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
    margin-right: 2px;
}

.tone-chip {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    white-space: nowrap;
}
.tone-chip:hover {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(251,146,60,0.08);
}
.tone-chip.active {
    border-color: var(--orange);
    color: var(--orange);
    background: rgba(251,146,60,0.12);
    font-weight: 600;
}

/* Redraft button */
.btn-redraft {
    background: transparent;
    border: 1px solid var(--orange);
    color: var(--orange);
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, opacity 0.15s;
}
.btn-redraft:hover   { background: rgba(251,146,60,0.1); }
.btn-redraft:disabled { opacity: 0.45; cursor: default; }

/* ── Prospect enrichment ─────────────────────────────────────────────────── */
.prospect-enrichment {
    margin: 8px 0 4px;
    padding: 10px 12px;
    background: rgba(22, 163, 74, 0.04);
    border: 1px solid rgba(22, 163, 74, 0.18);
    border-radius: 8px;
}

.enrich-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.enrich-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.enrich-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
}

a.enrich-chip:hover {
    border-color: var(--orange);
    color: var(--orange);
}

.is-enriched .prospect-tier {
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}

.create-success {
    font-size: 13px;
    font-weight: 600;
    color: var(--green);
    display: flex;
    align-items: center;
}

/* Enrich button styling */
.enrich-btn {
    color: var(--text-muted) !important;
    border-color: var(--border) !important;
}
.enrich-btn:hover {
    color: var(--orange) !important;
    border-color: var(--orange) !important;
}
.is-enriched .enrich-btn {
    color: rgba(34, 197, 94, 0.8) !important;
    border-color: rgba(34, 197, 94, 0.4) !important;
}

/* ─── Auth & Admin ─── */
.nav-sep {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 6px;
    display: inline-block;
    vertical-align: middle;
}

.flash {
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    margin-bottom: 16px;
}
.flash-success {
    background: #f0fdf4;
    color: #15803d;
    border: 1px solid rgba(22,163,74,0.3);
    border-left: 4px solid #16a34a;
}
.flash-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid rgba(220,38,38,0.25);
    border-left: 4px solid #dc2626;
}
.flash-info {
    background: #eff6ff;
    color: var(--color-primary-hover);
    border: 1px solid rgba(79,70,229,0.25);
    border-left: 4px solid var(--color-primary);
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.field-label {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.field-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--bg-input);
    color: var(--text);
    font-size: 13px;
    outline: none;
}
.field-input:focus { border-color: var(--primary); }

.btn-danger {
    background: #fef2f2;
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.25);
}
.btn-danger:hover { background: rgba(220,38,38,0.12); }

.data-table {
    border-collapse: collapse;
    font-size: 13px;
}
.data-table th {
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
}
.data-table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

/* ─── Opportunity Table (new list view) ─── */
.opp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.opp-table thead th {
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
    background: var(--bg);
    position: sticky;
    top: 56px;
    z-index: 10;
}
.opp-row {
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: background 0.12s;
}
.opp-row:hover { background: var(--bg-card-hover); }
.opp-row.expanded { background: var(--bg-card); border-left: 3px solid var(--primary); }
.opp-row.hidden { display: none; }
.opp-row td { padding: 11px 14px; vertical-align: middle; }
.score-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 26px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: white;
}
.opp-company-name {
    font-weight: 600;
    color: var(--text);
    font-size: 13px;
}
.opp-contact-sub {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}
.opp-detail-row td {
    padding: 0;
    background: var(--bg-card);
    border-bottom: 2px solid var(--primary);
}
.opp-detail-cell {
    padding: 20px 24px;
}
.opp-expand-icon {
    font-size: 10px;
    color: var(--text-dim);
    transition: transform 0.2s;
    margin-left: 6px;
}
.opp-row.expanded .opp-expand-icon { transform: rotate(90deg); }
.col-score    { width: 60px; }
.col-company  { min-width: 200px; }
.col-category { width: 130px; }
.col-meta     { min-width: 160px; color: var(--text-muted); font-size: 12px; }
.col-touch    { width: 120px; }
.col-stage    { width: 140px; }
.col-actions  { width: 200px; text-align: right; }
