/* ── AffiliatesHunter - Professional Dashboard CSS ── */
/* ── Theme: Dark (default) — Grey + Green accent ── */
:root, [data-theme="dark"] {
    --bg-primary: #111111;
    --bg-secondary: #1a1a1a;
    --bg-card: #1e1e1e;
    --bg-input: #171717;
    --border: #2e2e2e;
    --text-primary: #f0f0f0;
    --text-secondary: #b3b3b3;
    --text-muted: #808080;
    --text-faint: #555555;
    --accent: #10b981;
    --accent-hover: #34d399;
    --blue: #38bdf8;
    --green: #10b981;
    --green-bg: #0d2b1f;
    --red: #f87171;
    --red-bg: #2d1517;
    --purple: #a78bfa;
    --yellow: #fbbf24;
    --yellow-bg: #2d2305;
    --hover-bg: rgba(16,185,129,0.06);
    --sidebar-w: 220px;
    --radius: 8px;
    --radius-sm: 5px;
}

/* ── Theme: Light — Green & White ── */
[data-theme="light"] {
    --bg-primary: #f4f7f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #eef3f0;
    --border: #d5e0da;
    --text-primary: #111916;
    --text-secondary: #374a3f;
    --text-muted: #5e7a6c;
    --text-faint: #90a89a;
    --accent: #059669;
    --accent-hover: #10b981;
    --blue: #0284c7;
    --green: #059669;
    --green-bg: #dcfce7;
    --red: #dc2626;
    --red-bg: #fee2e2;
    --purple: #7c3aed;
    --yellow: #d97706;
    --yellow-bg: #fef3c7;
    --hover-bg: rgba(5,150,105,0.04);
}

/* ── Logo theme switching ── */
:root .logo-light, [data-theme="dark"] .logo-light { display: none !important; }
:root .logo-dark, [data-theme="dark"] .logo-dark { display: inline-block; }
[data-theme="light"] .logo-light { display: inline-block !important; }
[data-theme="light"] .logo-dark { display: none !important; }

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-secondary);
    min-height: 100vh;
    display: flex;
}

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-w);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.25s ease;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
}

.sidebar-brand {
    padding: 14px 14px;
    border-bottom: 1px solid var(--border);
}

.sidebar-brand h2 {
    font-size: 15px;
    font-weight: 800;
    color: var(--accent);
    line-height: 1.3;
    letter-spacing: -0.3px;
}
.sidebar-brand span {
    font-size: 10px;
    color: var(--text-faint);
    letter-spacing: 0.3px;
}

/* ── Site Switcher ── */
.site-switcher {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}
.site-switcher label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-faint);
    font-weight: 600;
    margin-bottom: 5px;
}
.site-switcher select {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}
.site-switcher select:focus {
    outline: none;
    border-color: var(--accent);
}
.site-email {
    font-size: 10px;
    color: var(--text-faint);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ── Nav Pipeline (mini workflow indicator) ── */
.nav-pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    gap: 0;
}
.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    transition: all 0.15s;
}
.pipeline-step .step-dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-faint);
    transition: all 0.2s;
}
.pipeline-step span {
    font-size: 9px;
    color: var(--text-faint);
    font-weight: 600;
    letter-spacing: 0.3px;
}
.pipeline-step.done .step-dot {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.pipeline-step.done span { color: var(--green); }
.pipeline-step.current .step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
}
.pipeline-step.current span { color: var(--accent); font-weight: 700; }
.pipeline-connector {
    width: 16px;
    height: 2px;
    background: var(--border);
    margin: 0 2px;
    margin-bottom: 14px;
}
.pipeline-step.done + .pipeline-connector,
.pipeline-connector:has(+ .pipeline-step.done),
.pipeline-connector:has(+ .pipeline-step.current) {
    background: var(--green);
}

/* ── Sidebar Nav ── */
.sidebar-nav { flex: 1; padding: 6px 8px; }

.nav-section-label {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-faint);
    font-weight: 700;
    padding: 10px 14px 4px;
    margin-top: 2px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 1px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s;
    position: relative;
}
.sidebar-nav a svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.15s;
}
.sidebar-nav a:hover { background: var(--hover-bg); color: var(--text-primary); }
.sidebar-nav a:hover svg { opacity: 1; }
.sidebar-nav a.active {
    background: rgba(16,185,129,0.12);
    color: var(--accent);
}
.sidebar-nav a.active svg { opacity: 1; }
.sidebar-nav a .badge {
    margin-left: auto;
    background: rgba(16,185,129,0.15);
    color: var(--accent);
    font-size: 10px;
    padding: 1px 7px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
.sidebar-nav a.active .badge { background: var(--accent); color: #fff; }
.badge.green-badge { background: var(--green); }
.badge.pulse {
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* ── Keyboard shortcut hint ── */
.nav-shortcut-hint {
    padding: 8px 14px;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-faint);
    text-align: center;
}
.nav-shortcut-hint kbd {
    display: inline-block;
    padding: 1px 5px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 3px;
    font-size: 9px;
    font-family: inherit;
    font-weight: 600;
    color: var(--text-muted);
}

/* ── Main Content ── */
.main { margin-left: var(--sidebar-w); flex: 1; min-height: 100vh; }

.topbar {
    padding: 10px 20px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.topbar h1 { font-size: 16px; font-weight: 700; color: var(--text-primary); }
.topbar .actions { display: flex; gap: 6px; }

/* ── Breadcrumb ── */
.breadcrumb-area { display: flex; align-items: center; }
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb-sep { color: var(--text-faint); font-size: 12px; }
.breadcrumb-current {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 18px;
}

.content { padding: 16px 20px; }

/* ── Page Transitions ── */
.page-enter {
    animation: pageEnter 0.25s ease-out;
}
.page-exit {
    animation: pageExit 0.12s ease-in forwards;
}
@keyframes pageEnter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes pageExit {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-4px); }
}

/* ── Navigation Loading Bar ── */
.nav-loading-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: transparent;
}
.nav-loading-bar.loading {
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: loadingSlide 0.8s ease-in-out infinite;
}
@keyframes loadingSlide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ── Mobile Topbar ── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border);
    z-index: 99;
    align-items: center;
    padding: 0 14px;
    gap: 12px;
}
.mobile-topbar h2 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}
.mobile-active-site {
    margin-left: auto;
    font-size: 11px;
    color: var(--text-muted);
    background: var(--bg-input);
    padding: 3px 8px;
    border-radius: 12px;
}

/* ── Hamburger ── */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all 0.2s;
}

/* ── Sidebar Overlay ── */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}
.sidebar-overlay.active { display: block; }

/* ── Cards ── */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.card-header h3 { font-size: 13px; font-weight: 600; color: var(--text-primary); letter-spacing: -0.1px; }

/* ── Stat Cards ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
}
.stat-card .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}
.stat-card .value { font-size: 22px; font-weight: 700; color: var(--text-primary); margin-top: 2px; line-height: 1.2; }
.stat-card .sub { font-size: 10px; color: var(--text-faint); margin-top: 2px; }
.stat-card.green .value { color: var(--green); }
.stat-card.orange .value { color: var(--accent); }
.stat-card.blue .value { color: var(--blue); }
.stat-card.purple .value { color: var(--purple); }

/* ── Tables ── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
    text-align: left;
    padding: 9px 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 600;
    white-space: nowrap;
}
tbody td {
    padding: 9px 12px;
    border-bottom: 1px solid rgba(45,53,85,0.3);
    vertical-align: middle;
}
tbody tr:hover { background: var(--hover-bg); }

/* ── Badges / Tags ── */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.tag-tier1 { background: rgba(16,185,129,0.12); color: var(--green); }
.tag-tier2 { background: rgba(251,191,36,0.12); color: var(--yellow); }
.tag-tier3 { background: rgba(248,113,113,0.12); color: var(--red); }
.tag-go { background: rgba(16,185,129,0.15); color: var(--green); }
.tag-maybe { background: rgba(251,191,36,0.15); color: var(--yellow); }
.tag-skip { background: rgba(248,113,113,0.15); color: var(--red); }
.tag-new { background: rgba(16,185,129,0.10); color: var(--accent); }
.tag-contacted { background: rgba(56,189,248,0.12); color: var(--blue); }
.tag-responded { background: rgba(16,185,129,0.15); color: var(--green); }
.tag-deal { background: rgba(16,185,129,0.18); color: var(--accent); }
.tag-qualified { background: rgba(16,185,129,0.12); color: var(--green); }
.tag-outreach_pending { background: rgba(251,191,36,0.12); color: var(--yellow); }
.tag-deal_closed { background: rgba(16,185,129,0.18); color: var(--accent); }

.status-dot {
    width: 8px; height: 8px; border-radius: 50%;
    display: inline-block; margin-right: 6px;
}
.status-dot.green { background: var(--green); }
.status-dot.orange { background: var(--accent); }
.status-dot.red { background: var(--red); }
.status-dot.blue { background: var(--blue); }
.status-dot.gray { background: var(--text-faint); }

/* ── Buttons ── */
.btn {
    padding: 6px 12px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s;
    text-decoration: none;
    letter-spacing: -0.1px;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-input); color: var(--text-secondary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 3px 8px; font-size: 11px; }
.btn-ghost { background: none; color: var(--text-muted); }
.btn-ghost:hover { color: var(--accent); }
.btn-danger { background: var(--red); color: #fff; }
.btn-success { background: var(--green); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-red { background: rgba(248,113,113,0.10); color: var(--red); border: 1px solid rgba(248,113,113,0.2); }
.btn-red:hover { background: rgba(248,113,113,0.18); }

/* ── Forms ── */
.form-group { margin-bottom: 12px; }
.form-group label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
    font-weight: 500;
}
.form-hint {
    font-size: 11px;
    color: var(--text-faint);
    margin-top: 4px;
}
input[type="text"], input[type="email"], input[type="url"], input[type="number"],
input[type="password"], select, textarea {
    width: 100%;
    padding: 8px 11px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-family: inherit;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(16,185,129,0.15);
}
textarea { resize: vertical; min-height: 100px; }
select { cursor: pointer; }
select option { background: var(--bg-secondary); }

/* ── Modal ── */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.6);
    display: none; align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-backdrop.active { display: flex; }
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 90%; max-width: 600px; max-height: 85vh;
    overflow-y: auto; padding: 22px;
}
.modal h2 { font-size: 17px; font-weight: 700; color: var(--text-primary); margin-bottom: 14px; }
.modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* ── Score Bar ── */
.score-bar {
    width: 100%; height: 5px; background: var(--bg-primary);
    border-radius: 3px; overflow: hidden;
}
.score-bar .fill { height: 100%; border-radius: 3px; transition: width 0.3s; }

/* ── Pipeline Visual ── */
.pipeline { display: flex; gap: 2px; margin-bottom: 12px; }
.pipeline-stage {
    flex: 1; padding: 10px; text-align: center;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}
.pipeline-stage .count { font-size: 20px; font-weight: 700; color: var(--text-primary); }
.pipeline-stage .label { font-size: 10px; color: var(--text-muted); margin-top: 2px; }
.pipeline-stage.active { border-color: var(--accent); }

/* ── Filters ── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; min-width: 130px; }

/* ── Loading ── */
.spinner {
    width: 16px; height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.toast-container {
    position: fixed; bottom: 20px; right: 20px; z-index: 2000;
    display: flex; flex-direction: column; gap: 6px;
}
.toast {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    animation: slideIn 0.3s;
    display: flex; align-items: center; gap: 8px;
}
.toast.success { border-left: 3px solid var(--accent); }
.toast.error { border-left: 3px solid var(--red); }
.toast.info { border-left: 3px solid var(--accent); }
@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } }

/* ── Email Preview ── */
.email-preview {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    font-family: 'Georgia', serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    white-space: pre-wrap;
}
.email-preview .subject {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: var(--accent);
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

/* ── Chart Area ── */
.chart-area {
    width: 100%; height: 300px;
    background: var(--bg-input);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-faint); font-size: 14px;
}

/* ── Theme Selector ── */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.theme-option {
    cursor: pointer;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    text-align: center;
    transition: all 0.15s;
}
.theme-option:hover { border-color: var(--text-muted); }
.theme-option.active { border-color: var(--accent); }
.theme-option span {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 6px;
}
.theme-preview {
    height: 44px;
    border-radius: 4px;
    padding: 6px;
}

/* ── Feature List (Settings) ── */
.feature-list { display: flex; flex-direction: column; gap: 4px; }
.feature-item {
    font-size: 12px;
    color: var(--text-muted);
    padding: 4px 0;
    padding-left: 14px;
    position: relative;
}
.feature-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

/* ── Responsive: Mobile ── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 260px;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .mobile-topbar { display: flex; }
    .main {
        margin-left: 0;
        padding-top: 50px;
    }
    .nav-shortcut-hint { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .theme-grid { grid-template-columns: repeat(2, 1fr); }
    .topbar { padding: 8px 12px; }
    .content { padding: 10px 12px; }
    .stat-card { padding: 10px 12px; }
    .stat-card .value { font-size: 18px; }
    .card { padding: 12px; margin-bottom: 8px; }
    .grid-2, .grid-3 { gap: 8px; }
    .dash-section { margin-bottom: 16px; }
    .dash-section-header h2 { font-size: 14px; }
    .dash-kpi-strip { gap: 6px; }
    .dash-kpi { padding: 10px 12px; }
    .dash-kpi-val { font-size: 16px; }
}

/* Desktop: hide mobile topbar */
@media (min-width: 769px) {
    .mobile-topbar { display: none !important; }
    .sidebar-overlay { display: none !important; }
}

/* ── Grid Layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 1024px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ── Prospect Detail ── */
.detail-row { display: flex; gap: 8px; margin-bottom: 6px; font-size: 13px; }
.detail-row .label { color: var(--text-muted); min-width: 100px; }
.detail-row .value { color: var(--text-primary); }

/* ── Question Mark Tooltips ── */
.th-wrap { display: inline-flex; align-items: center; gap: 4px; }
.tip-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 14px; height: 14px; border-radius: 50%;
    background: rgba(148,163,184,0.15); color: var(--text-faint);
    font-size: 9px; font-weight: 700; cursor: help;
    position: relative; flex-shrink: 0; line-height: 1;
    border: 1px solid rgba(148,163,184,0.2);
}
.tip-icon:hover { background: rgba(148,163,184,0.25); color: var(--text-muted); }
/* Hidden in DOM — actual tooltip is rendered via JS into body */
.tip-icon .tip-text { display: none; }
/* Floating tooltip appended to body */
.tip-float {
    position: fixed; z-index: 9999;
    background: var(--bg-secondary); color: var(--text-secondary);
    border: 1px solid var(--border); border-radius: 6px;
    padding: 6px 10px; font-size: 11px; font-weight: 400;
    white-space: normal; width: max-content; max-width: 240px;
    line-height: 1.4; text-align: left;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    pointer-events: none;
    opacity: 0; transition: opacity 0.15s;
}
.tip-float.visible { opacity: 1; }
.tip-float::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent; border-top-color: var(--border);
}

/* ── Competitor Tag ── */
.tag-competitor {
    background: rgba(239,68,68,0.12); color: var(--red);
    font-size: 10px; padding: 1px 6px; border-radius: 3px;
    font-weight: 600;
}

/* ── Deal Sub-tabs ── */
.deal-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.deal-tab {
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all 0.15s;
    cursor: pointer;
}
.deal-tab:hover {
    color: var(--text-primary);
    background: rgba(255,255,255,0.03);
}
.deal-tab.active {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
.tab-count {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}
.deal-tab.active .tab-count {
    background: rgba(255,107,0,0.15);
    color: var(--accent);
}

/* ── Affiliate Account Setup ── */
.account-setup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .account-setup-grid { grid-template-columns: 1fr; }
}
.account-setup-col {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px;
}
.account-field {
    margin-bottom: 8px;
}
.account-field label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.account-field input[type="text"],
.account-field input[type="email"],
.account-field input[type="url"],
.account-field input[type="password"],
.account-field input[type="number"],
.account-field select {
    width: 100%;
    font-size: 12px;
    padding: 5px 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    box-sizing: border-box;
}
.account-field .checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-primary);
    cursor: pointer;
}
.account-field .checkbox-label input[type="checkbox"] {
    width: auto;
}

/* ── Email Timeline ── */
.email-timeline {
    position: relative;
    padding-left: 24px;
    margin: 12px 0;
}
.email-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.timeline-item {
    position: relative;
    margin-bottom: 12px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-card);
}
.timeline-item.sent::before { background: var(--accent); }
.timeline-item.reply::before { background: var(--green); }
.timeline-item.note::before { background: var(--blue, #3b82f6); }
.timeline-item.offer::before { background: #a855f7; }
.timeline-item.counter_offer::before { background: #f59e0b; }
.timeline-item.closed::before { background: var(--green); }
.timeline-item.reply_summary::before { background: var(--green); }
.timeline-date {
    font-size: 10px;
    color: var(--text-faint);
    margin-bottom: 4px;
}
.timeline-subject {
    font-weight: 600;
    font-size: 13px;
    color: var(--text-primary);
}
.timeline-body {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    white-space: pre-wrap;
    max-height: 80px;
    overflow: hidden;
    line-height: 1.5;
}
.timeline-body.expanded { max-height: none; }
.timeline-expand {
    font-size: 11px;
    color: var(--accent);
    cursor: pointer;
    margin-top: 4px;
    display: inline-block;
}
.timeline-badges { display: flex; gap: 6px; margin-top: 4px; }
.timeline-badge {
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 600;
}
.timeline-badge.opened { background: rgba(34,197,94,0.12); color: var(--green); }
.timeline-badge.replied { background: rgba(59,130,246,0.12); color: #3b82f6; }
.timeline-badge.draft { background: rgba(148,163,184,0.12); color: var(--text-muted); }

/* ── Onboarding Checklist ── */
.checklist-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(45,53,85,0.15);
}
.checklist-item:last-child { border-bottom: none; }
.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--green);
    cursor: pointer;
    flex-shrink: 0;
}
.checklist-item.done .checklist-label {
    text-decoration: line-through;
    color: var(--text-faint);
}
.checklist-label {
    font-size: 13px;
    color: var(--text-primary);
    flex: 1;
}
.checklist-date {
    font-size: 10px;
    color: var(--text-faint);
    white-space: nowrap;
}
.checklist-remove {
    font-size: 14px;
    color: var(--text-faint);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
}
.checklist-item:hover .checklist-remove { opacity: 1; }
.checklist-remove:hover { color: var(--red); }

/* ── Progress Bar (reusable) ── */
.progress-bar-wrap {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.progress-bar {
    height: 6px;
    background: var(--bg-input);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}
.progress-bar .fill {
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    transition: width 0.3s;
}

/* ── Deal Card ── */
.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}
.deal-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    flex-wrap: wrap;
    gap: 8px;
}
.deal-card-header h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}
.deal-card-header .deal-url {
    font-size: 11px;
    color: var(--text-faint);
    display: block;
    margin-top: 2px;
}
.deal-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-shrink: 0;
}

/* ── Note Type Selector ── */
.note-type-select {
    font-size: 11px;
    padding: 4px 6px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* ── Empty State ── */
.empty-tab {
    text-align: center;
    padding: 48px 16px;
    color: var(--text-faint);
    font-size: 14px;
}

/* ── Negotiation Timeline Thread ── */
.neg-timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 8px;
    border: 1px solid var(--border);
    border-radius: 6px 6px 0 0;
}
.neg-timeline {
    position: relative;
    padding: 16px 16px 16px 36px;
    max-height: 600px;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 6px 6px;
}
.neg-timeline::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
}
.neg-timeline .tl-item {
    position: relative;
    margin-bottom: 16px;
    padding: 10px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.neg-timeline .tl-item:last-child { margin-bottom: 0; }
.neg-timeline .tl-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 14px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg-card);
    z-index: 1;
}
.neg-timeline .tl-item.sent::before { background: var(--accent); }
.neg-timeline .tl-item.reply::before { background: var(--green); }
.neg-timeline .tl-item.note::before { background: #3b82f6; }
.neg-timeline .tl-item.offer::before { background: #a855f7; }
.neg-timeline .tl-item.counter_offer::before { background: #f59e0b; }
.neg-timeline .tl-item.reply_summary::before { background: var(--green); }
.neg-timeline .tl-item.closed::before { background: var(--green); }
.neg-loading {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-muted);
    font-size: 12px;
}
.neg-empty {
    color: var(--text-faint);
    font-size: 12px;
    padding: 24px 16px;
    text-align: center;
}

/* ── Conversation Cards (inside columns) ── */
.conv-card {
    padding: 10px 12px;
    margin-bottom: 8px;
    border-radius: 6px;
    border-left: 3px solid var(--accent);
    background: var(--bg-input);
    position: relative;
}
.conv-card:last-child { margin-bottom: 0; }
.conv-card.reply_summary, .conv-card.replied { border-left-color: var(--green); }
.conv-card.offer { border-left-color: #a855f7; }
.conv-card.counter_offer { border-left-color: #f59e0b; }
.conv-card.closed { border-left-color: var(--green); }
.conv-card.note { border-left-color: #3b82f6; }
.conv-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
    flex-wrap: wrap;
    gap: 4px;
}
.conv-date {
    font-size: 10px;
    color: var(--text-faint);
}
.conv-type-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.conv-type-badge.note { background: rgba(59,130,246,0.12); color: #3b82f6; }
.conv-type-badge.reply_summary, .conv-type-badge.replied { background: rgba(34,197,94,0.12); color: var(--green); }
.conv-type-badge.offer { background: rgba(168,85,247,0.12); color: #a855f7; }
.conv-type-badge.counter_offer { background: rgba(245,158,11,0.12); color: #f59e0b; }
.conv-type-badge.closed { background: rgba(34,197,94,0.12); color: var(--green); }
.conv-body {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 100px;
    overflow: hidden;
    word-break: break-word;
}
.conv-body.expanded { max-height: none; }
.conv-subject {
    font-weight: 600;
    font-size: 12px;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.conv-badges { display: flex; gap: 4px; flex-wrap: wrap; }
.reply-sentiment {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.reply-sentiment.positive { background: rgba(34,197,94,0.15); color: #22c55e; }
.reply-sentiment.negative { background: rgba(239,68,68,0.15); color: #ef4444; }
.reply-sentiment.neutral { background: rgba(156,163,175,0.15); color: #9ca3af; }
.conv-step-tag {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-faint);
    margin-left: 4px;
}
.conv-reply-notice {
    font-style: italic;
    color: var(--text-faint) !important;
    font-size: 11px !important;
}
.conv-expand-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 11px;
    cursor: pointer;
    padding: 4px 0 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.conv-expand-btn:hover { color: var(--text-primary); }
.conv-amount {
    font-size: 13px;
    font-weight: 700;
    color: #a855f7;
    margin-bottom: 4px;
}
.conv-delete {
    position: absolute;
    top: 6px;
    right: 8px;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: 14px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s;
    padding: 0 4px;
    line-height: 1;
}
.conv-card:hover .conv-delete { opacity: 1; }
.conv-delete:hover { color: var(--red); }

/* ── Note Form ── */
.note-form {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.note-form-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin-bottom: 8px;
}
.note-form-row:last-child { margin-bottom: 0; }
.note-textarea {
    flex: 1;
    font-size: 12px;
    padding: 8px 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    resize: vertical;
    min-height: 42px;
    font-family: inherit;
    line-height: 1.5;
}
.note-textarea:focus { border-color: var(--accent); outline: none; }
.note-amount-input {
    font-size: 12px;
    padding: 6px 8px;
    background: var(--bg-input);
    color: #a855f7;
    border: 1px solid var(--border);
    border-radius: 4px;
    width: 160px;
    font-weight: 600;
}
.note-amount-input:focus { border-color: #a855f7; outline: none; }

/* ── Onboarding Instructions ── */
.onboarding-instructions {
    margin: 12px 0;
    padding: 12px 14px;
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.15);
    border-radius: 8px;
}
.instructions-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 10px;
}
.instruction-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.instruction-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.step-number {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}
.instruction-step strong {
    font-size: 12px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 2px;
}
.instruction-step p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}
.instruction-step code {
    font-size: 10px;
    background: var(--bg-input);
    padding: 2px 5px;
    border-radius: 3px;
    color: var(--accent);
    word-break: break-all;
}
.tracking-link-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin-bottom: 8px;
}
.tracking-link-code {
    flex: 1;
    font-size: 12px;
    color: var(--accent);
    word-break: break-all;
    font-family: monospace;
}
.tracking-link-explain {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0 0 4px;
    line-height: 1.5;
}
.tracking-link-explain code {
    font-size: 10px;
    background: var(--bg-input);
    padding: 1px 4px;
    border-radius: 3px;
    color: var(--accent);
}

/* ── Table Sort Indicators ── */
th[data-sort] { cursor: pointer; user-select: none; }
th[data-sort]::after { content: ' \21C5'; font-size: 10px; opacity: 0.3; }
th.sort-asc::after { content: ' \2191'; opacity: 0.8; }
th.sort-desc::after { content: ' \2193'; opacity: 0.8; }
/* ── Table Search Filter ── */
.table-search {
    font-size: 12px;
    padding: 6px 10px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 6px;
    width: 220px;
}
.table-search:focus { border-color: var(--accent); outline: none; }
.table-search::placeholder { color: var(--text-faint); }

/* ── Responsive Deal Card ── */
@media (max-width: 600px) {
    .deal-card { padding: 12px; }
    .deal-card-header { flex-direction: column; }
    .deal-card-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
    .note-form-row { flex-wrap: wrap; }
    .note-textarea { min-width: 100%; }
}

/* ═══════════════════════════════════════════════
   Dashboard — Redesigned Layout
   ═══════════════════════════════════════════════ */

/* ── Section wrapper ── */
.dash-section {
    margin-bottom: 18px;
}
.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.dash-section-header h2 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.2px;
}

/* ── Flexible row ── */
.dash-row {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}
@media (max-width: 900px) {
    .dash-row { flex-direction: column; }
}

/* ── KPI Strip ── */
.dash-kpi-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 190px;
}
.dash-kpi {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 12px;
}
.dash-kpi-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-kpi-icon svg { width: 16px; height: 16px; }
.dash-kpi-icon.blue-bg { background: rgba(56,189,248,0.12); color: var(--blue); }
.dash-kpi-icon.green-bg { background: rgba(16,185,129,0.12); color: var(--green); }
.dash-kpi-icon.purple-bg { background: rgba(167,139,250,0.12); color: var(--purple); }
.dash-kpi-icon.orange-bg { background: rgba(16,185,129,0.08); color: var(--accent); }
.dash-kpi-data {
    display: flex;
    flex-direction: column;
    flex: 1;
}
.dash-kpi-val {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
}
.dash-kpi-label {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.dash-kpi-rate {
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.rate-good { background: rgba(34,197,94,0.15); color: var(--green); }
.rate-mid { background: rgba(245,158,11,0.15); color: var(--yellow); }
.rate-low { background: rgba(239,68,68,0.15); color: var(--red); }

/* ── Email Funnel ── */
.dash-funnel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.funnel-bar {
    position: relative;
    height: 30px;
    background: var(--bg-input);
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.funnel-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    border-radius: 5px;
    opacity: 0.2;
    transition: width 0.5s ease;
}
.funnel-fill.blue-bg { background: var(--accent); }
.funnel-fill.green-bg { background: var(--green); }
.funnel-fill.purple-bg { background: var(--purple); }
.funnel-label {
    position: relative;
    z-index: 1;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    padding-left: 12px;
}
.funnel-val {
    position: relative;
    z-index: 1;
    margin-left: auto;
    padding-right: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Pipeline Visual ── */
.dash-pipeline-visual {
    display: flex;
    align-items: stretch;
    gap: 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 12px;
}
.dash-pipe-stage {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
}
.pipe-bar {
    height: 8px;
    background: var(--bg-input);
    border-radius: 4px;
    overflow: hidden;
}
.pipe-fill {
    height: 100%;
    border-radius: 4px;
    min-width: 4px;
    transition: width 0.5s ease;
}
.pipe-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}
.pipe-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.pipe-label {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.pipe-pct {
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 500;
}
.dash-pipe-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-faint);
    font-size: 16px;
    padding: 0 4px;
    opacity: 0.4;
}

@media (max-width: 600px) {
    .dash-pipeline-visual { flex-direction: column; gap: 8px; }
    .dash-pipe-stage { flex-direction: row; text-align: left; align-items: center; }
    .pipe-bar { flex: 1; height: 6px; }
    .pipe-info { flex-direction: row; gap: 8px; min-width: 120px; }
    .dash-pipe-arrow { transform: rotate(90deg); padding: 2px 0; }
}

/* ── Recent Deal List ── */
.dash-deal-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.dash-deal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 10px;
    background: var(--bg-input);
    border-radius: 5px;
    border-left: 3px solid var(--accent);
}
.dash-deal-info {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-deal-info strong {
    font-size: 13px;
    color: var(--text-primary);
}
.dash-deal-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    color: var(--text-muted);
}
.dash-deal-rev {
    font-weight: 700;
    color: var(--green);
    font-size: 13px;
}

/* ── Activity List ── */
.dash-activity-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dash-activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    border-radius: 6px;
    transition: background 0.1s;
}
.dash-activity-item:hover { background: var(--hover-bg); }
.dash-act-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dash-act-dot.sent { background: var(--accent); }
.dash-act-dot.opened { background: var(--yellow); }
.dash-act-dot.replied { background: var(--green); }
.dash-act-dot.new { background: var(--blue); }
.dash-act-dot.qualified { background: var(--green); }
.dash-act-dot.contacted { background: var(--purple); }
.dash-act-dot.responded { background: var(--green); }
.dash-act-dot.deal { background: var(--accent); }
.dash-act-content {
    flex: 1;
    min-width: 0;
}
.dash-act-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.dash-act-step {
    font-size: 10px;
    color: var(--text-faint);
    font-weight: 400;
}
.dash-act-sub {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    flex-wrap: wrap;
}
.dash-act-subject {
    font-size: 11px;
    color: var(--text-faint);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}
.dash-act-time {
    font-size: 11px;
    color: var(--text-faint);
    white-space: nowrap;
    flex-shrink: 0;
}
