@charset "UTF-8";
/**
 * Front-end Dashboard Styles - Dark Theme Edition
 * Prospecting SaaS Plugin
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===================================
   COLOR VARIABLES (WordPress Controlled)
   =================================== */
:root {
    /* Primary colors */
    --ps-primary: #0ea5e9;
    --ps-primary-hover: #0284c7;
    --ps-secondary: #0e1f2e;
    --ps-accent: #1a3a52;
    /* Text colors */
    --ps-text-primary: #e0f2fe;
    --ps-text-secondary: #7dd3fc;
    --ps-text-muted: #4a7a9b;
    --ps-text-light: #2d5a7a;
    /* Background colors */
    --ps-bg-primary: #0a1117;
    --ps-bg-secondary: #0d1a26;
    --ps-bg-card: #0e1f2e;
    /* Border colors */
    --ps-border-light: #1a3a52;
    --ps-border-medium: #1e4a65;
    /* Status colors */
    --ps-status-pending-bg: rgba(251, 191, 36, 0.1);
    --ps-status-pending-text: #fbbf24;
    --ps-status-approved-bg: rgba(74, 222, 128, 0.1);
    --ps-status-approved-text: #4ade80;
    --ps-status-rejected-bg: rgba(251, 113, 133, 0.1);
    --ps-status-rejected-text: #fb7185;
    --ps-status-qualified-bg: rgba(124, 143, 255, 0.1);
    --ps-status-qualified-text: #0ea5e9;
    /* Alert colors */
    --ps-alert-error-bg: rgba(251, 113, 133, 0.1);
    --ps-alert-error-border: rgba(251, 113, 133, 0.25);
    --ps-alert-error-text: #fb7185;
    --ps-alert-success-bg: rgba(74, 222, 128, 0.1);
    --ps-alert-success-border: rgba(74, 222, 128, 0.25);
    --ps-alert-success-text: #4ade80;
    /* Button colors */
    --ps-btn-secondary-bg: #1a3a52;
    --ps-btn-secondary-hover: #1e4a65;
    --ps-btn-logout-bg: #fb7185;
    --ps-btn-logout-hover: #f43f5e;
    /* Shadows */
    --ps-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --ps-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --ps-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
    --ps-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.5);
    /* Border radius */
    --ps-radius-sm: 8px;
    --ps-radius-md: 10px;
    --ps-radius-lg: 14px;
    --ps-radius-full: 9999px;
    /* Spacing */
    --ps-spacing-xs: 8px;
    --ps-spacing-sm: 12px;
    --ps-spacing-md: 20px;
    --ps-spacing-lg: 32px;
    --ps-spacing-xl: 48px;
}

/* ===================================
   DASHBOARD THEMES (client-selectable)
   Each theme only re-declares the colour tokens; everything else
   inherits from :root (Midnight). Selected via the theme picker,
   persisted in user meta, applied as data-theme on .prospecting-dashboard.
   Semantic status colours (pending/approved/rejected) are intentionally
   left untouched so state stays readable across every theme.
   =================================== */

/* Graphite — neutral charcoal, periwinkle accent */
.prospecting-dashboard[data-theme="graphite"],
#ps-review-modal[data-theme="graphite"] {
    --ps-primary: #7c8fff;
    --ps-primary-hover: #6979e8;
    --ps-secondary: #1e2127;
    --ps-accent: #2a2e36;
    --ps-text-primary: #e6e8ec;
    --ps-text-secondary: #c3c8d2;
    --ps-text-muted: #8a8f99;
    --ps-text-light: #6a6f79;
    --ps-bg-primary: #0f1115;
    --ps-bg-secondary: #14161a;
    --ps-bg-card: #1e2127;
    --ps-border-light: #2a2e36;
    --ps-border-medium: #353a44;
    --ps-status-qualified-text: #7c8fff;
    --ps-btn-secondary-bg: #2a2e36;
    --ps-btn-secondary-hover: #353a44;
    /* GoWinDeal redesign tokens — these drive the visible dashboard */
    --gwd-bg-0: #0a0b0f;
    --gwd-bg-1: #14161a;
    --gwd-card: #1e2127;
    --gwd-accent: #7c8fff;
    --gwd-accent-2: #9aa8ff;
    --gwd-accent-g: linear-gradient(135deg, #7c8fff 0%, #9aa8ff 100%);
    --gwd-text-1: #e6e8ec;
    --gwd-text-2: #9da3af;
    --gwd-text-3: #6a6f79;
}

/* Emerald — deep green, emerald accent */
.prospecting-dashboard[data-theme="emerald"],
#ps-review-modal[data-theme="emerald"] {
    --ps-primary: #10b981;
    --ps-primary-hover: #0e9f6e;
    --ps-secondary: #14211d;
    --ps-accent: #1c3a32;
    --ps-text-primary: #e0f2ee;
    --ps-text-secondary: #8fd9c3;
    --ps-text-muted: #5a9b87;
    --ps-text-light: #3f7565;
    --ps-bg-primary: #081210;
    --ps-bg-secondary: #0c1714;
    --ps-bg-card: #14211d;
    --ps-border-light: #1c3a32;
    --ps-border-medium: #265045;
    --ps-status-qualified-text: #10b981;
    --ps-btn-secondary-bg: #1c3a32;
    --ps-btn-secondary-hover: #265045;
    /* GoWinDeal redesign tokens — these drive the visible dashboard */
    --gwd-bg-0: #060d0b;
    --gwd-bg-1: #0c1714;
    --gwd-card: #14211d;
    --gwd-accent: #10b981;
    --gwd-accent-2: #34d399;
    --gwd-accent-g: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --gwd-text-1: #e0f2ee;
    --gwd-text-2: #7fb3a3;
    --gwd-text-3: #4f7565;
}

/* Violet — deep plum, violet accent */
.prospecting-dashboard[data-theme="violet"],
#ps-review-modal[data-theme="violet"] {
    --ps-primary: #8b5cf6;
    --ps-primary-hover: #7c4ddb;
    --ps-secondary: #1d1830;
    --ps-accent: #322a4d;
    --ps-text-primary: #ece8f5;
    --ps-text-secondary: #c5b8ec;
    --ps-text-muted: #9384b8;
    --ps-text-light: #6e6293;
    --ps-bg-primary: #0f0d18;
    --ps-bg-secondary: #14111f;
    --ps-bg-card: #1d1830;
    --ps-border-light: #322a4d;
    --ps-border-medium: #443a63;
    --ps-status-qualified-text: #8b5cf6;
    --ps-btn-secondary-bg: #322a4d;
    --ps-btn-secondary-hover: #443a63;
    /* GoWinDeal redesign tokens — these drive the visible dashboard */
    --gwd-bg-0: #0b0912;
    --gwd-bg-1: #14111f;
    --gwd-card: #1d1830;
    --gwd-accent: #8b5cf6;
    --gwd-accent-2: #a78bfa;
    --gwd-accent-g: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
    --gwd-text-1: #ece8f5;
    --gwd-text-2: #a99cc4;
    --gwd-text-3: #6e6293;
}

/* Daylight — light mode. Inverts text/surface tokens and the white-alpha
   borders, and paints the wrapper light so the dark Elementor page behind
   the shortcode doesn't show through. */
.prospecting-dashboard[data-theme="daylight"],
#ps-review-modal[data-theme="daylight"] {
    --ps-primary: #0284c7;
    --ps-primary-hover: #0369a1;
    --ps-secondary: #ffffff;
    --ps-accent: #e2e8f0;
    --ps-text-primary: #0f1b2a;
    --ps-text-secondary: #1e4a65;
    --ps-text-muted: #64748b;
    --ps-text-light: #94a3b8;
    --ps-bg-primary: #eef1f6;
    --ps-bg-secondary: #f4f6fa;
    --ps-bg-card: #ffffff;
    --ps-border-light: #d6dce6;
    --ps-border-medium: #c2cad6;
    --ps-status-qualified-text: #0284c7;
    --ps-btn-secondary-bg: #e2e8f0;
    --ps-btn-secondary-hover: #d6dce6;
    /* GoWinDeal redesign tokens — light */
    --gwd-bg-0: #e9edf3;
    --gwd-bg-1: #f4f6fa;
    --gwd-card: #ffffff;
    --gwd-border: rgba(15,27,42,0.10);
    --gwd-border-hi: rgba(15,27,42,0.18);
    --gwd-accent: #0ea5e9;
    --gwd-accent-2: #0284c7;
    --gwd-accent-g: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    --gwd-text-1: #0f1b2a;
    --gwd-text-2: #475569;
    --gwd-text-3: #7c8aa0;
}
/* Light page background lives on the dashboard wrapper only — NOT the modal root,
   so the modal keeps a transparent backdrop and the dimmed page shows through. */
.prospecting-dashboard[data-theme="daylight"] {
    background: var(--gwd-bg-1);
    min-height: 100vh;
}
/* Daylight: icon buttons + hovers use dark ink instead of white-on-white */
.prospecting-dashboard[data-theme="daylight"] .ps-theme-btn,
.prospecting-dashboard[data-theme="daylight"] .ps-notif-btn {
    background: rgba(15,27,42,0.04);
    color: var(--gwd-text-2);
}
.prospecting-dashboard[data-theme="daylight"] .ps-theme-btn:hover,
.prospecting-dashboard[data-theme="daylight"] .ps-notif-btn:hover,
.prospecting-dashboard[data-theme="daylight"] .ps-download-trigger:hover {
    background: rgba(15,27,42,0.10);
    color: var(--gwd-text-1);
}
/* Daylight: the modal scrim must be a soft, light-friendly dim — the dark
   default hides the light page entirely behind the modal. */
#ps-review-modal[data-theme="daylight"] .ps-modal-overlay {
    background: rgba(15, 27, 42, 0.45) !important;
}

/* ===================================
   THEME PICKER (pen button + popover)
   Selectors prefixed with .prospecting-dashboard to beat Elementor's
   button styles; SVG sized with !important because a theme/Elementor
   rule collapses inline SVGs to 1px (same fix as the bell icon).
   =================================== */
.prospecting-dashboard .ps-theme-wrap {
    position: relative;
    display: inline-flex;
}
.prospecting-dashboard .ps-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
    cursor: pointer;
    padding: 0;
    transition: background .18s, color .18s, transform .12s, border-color .18s;
}
.prospecting-dashboard .ps-theme-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    border-color: var(--gwd-accent);
}
.prospecting-dashboard .ps-theme-btn:active {
    transform: scale(.94);
}
.prospecting-dashboard .ps-theme-btn svg {
    width: 17px !important;
    height: 17px !important;
    flex: 0 0 auto;
    display: block;
    pointer-events: none;
}
.prospecting-dashboard .ps-theme-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 210px;
    padding: 8px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow-lg);
}
.prospecting-dashboard .ps-theme-panel-head {
    font-size: 12px;
    font-weight: 600;
    color: var(--gwd-text-2);
    padding: 4px 8px 8px;
}
.prospecting-dashboard .ps-theme-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px;
    border: 1px solid transparent;
    border-radius: var(--ps-radius-sm);
    background: transparent;
    color: var(--gwd-text-1);
    font-size: 13px;
    text-align: left;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease;
}
.prospecting-dashboard .ps-theme-opt:hover {
    background: rgba(255,255,255,.06);
}
.prospecting-dashboard .ps-theme-opt.active {
    border-color: var(--gwd-accent);
}
.prospecting-dashboard .ps-theme-swatch {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 2px solid var(--swatch-accent, #0ea5e9);
    background: var(--swatch-bg, #0d1a26);
}
.prospecting-dashboard .ps-theme-name {
    flex: 1 1 auto;
}
.prospecting-dashboard .ps-theme-opt .ps-theme-check {
    margin-left: auto;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 auto;
    color: var(--gwd-accent);
    opacity: 0;
}
.prospecting-dashboard .ps-theme-opt.active .ps-theme-check {
    opacity: 1;
}

/* Remove br tags injected by Elementor / wpautop — !important required to beat Elementor's cascade */
.ps-btn br,
.ps-lead-date br,
.ps-lead-footer br,
.prospecting-dashboard br {
    display: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Fix <p> wrappers that wpautop wraps around buttons inside flex containers */
.ps-lead-footer > p {
    display: contents !important; /* transparent to flex — children become direct flex items */
    margin: 0 !important;
    padding: 0 !important;
}

/* Force single line for button content */
.ps-btn {
    white-space: nowrap !important;
}

/* ===================================
   TYPOGRAPHY
   =================================== */
.prospecting-dashboard,
.ps-client-dashboard {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    color: var(--ps-text-primary);
}

/* ===================================
   DASHBOARD LAYOUT
   =================================== */
.ps-client-dashboard {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: var(--ps-bg-primary);
    min-height: 100vh;
}

.prospecting-dashboard {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 auto;
    padding: var(--ps-spacing-lg);
    box-sizing: border-box !important;
}

div.ps-leads-grid[class*="ps-leads-grid"] {
    display: flex !important;
    justify-content: space-evenly;
}

/* ===================================
   HEADER
   =================================== */
.ps-header {
    padding: 32px;
    margin-bottom: 2px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #2e3e4d;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #3a4652 0%, #4e5c69 50%, #3a4652 100%);
}



.ps-header-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.ps-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.ps-header-right {
    position: absolute;
    top: 18px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    z-index: 2;
}

.ps-header-title {
    font-size: 52px;
    font-weight: 800;
    color: #0f1f2f;
    margin: 0 0 6px 0;
    line-height: 1.2;
    letter-spacing: 0.3px;
    text-align: center;
    margin-top: 22px;
}

.ps-header-subtitle {
    font-size: 18px;
    color: #131f2e;
    margin: 0;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 1px;
}



/* ===================================
   LOGIN PAGE — GLASS PANEL
   Floats over any dark image background.
   =================================== */
.prospecting-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--ps-spacing-lg);
    background: transparent; /* let the section's image show through */
}

.prospecting-login-box {
    position: relative;
    /* translucent fill + blur = glassmorphism */
    background: rgba(13, 25, 38, 0.32);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
    backdrop-filter: blur(8px) saturate(125%);
    border-radius: var(--ps-radius-lg);
    border: 1px solid rgba(125, 211, 252, 0.14);
    box-shadow:
        0 24px 64px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    padding: 44px 48px;
    max-width: 440px;
    width: 100%;
    overflow: hidden;
}

    /* bright accent hairline along the top edge */
    .prospecting-login-box::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.85), transparent);
        z-index: 1;
    }

    /* soft glow bloom in the corner */
    .prospecting-login-box::after {
        content: '';
        position: absolute;
        top: -70px;
        right: -70px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(14, 165, 233, 0.22), transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    /* keep real content above the glow layer */
    .prospecting-login-box > * {
        position: relative;
        z-index: 2;
    }

    .prospecting-login-box h2 {
        margin: 0 0 6px;
        text-align: center;
        color: #f0f9ff;
        font-size: 28px;
        font-weight: 800;
        letter-spacing: -0.6px;
    }

.ps-login-header {
    margin-bottom: 28px;
}

.ps-login-subtitle {
    margin: 0;
    text-align: center;
    color: var(--ps-text-muted);
    font-size: 14px;
}

/* Inputs tuned for the glass surface (scoped so the dashboard is untouched) */
.prospecting-login-box .ps-form-group label {
    color: #cbe6f5;
    font-size: 13px;
    letter-spacing: 0.2px;
}

.prospecting-login-box .ps-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #eaf6ff;
    padding: 13px 16px;
}

    .prospecting-login-box .ps-input::placeholder {
        color: #5b7d96;
    }

    .prospecting-login-box .ps-input:focus {
        border-color: #0ea5e9;
        background: rgba(255, 255, 255, 0.08);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
    }

/* Custom checkbox */
.ps-checkbox-group {
    margin-bottom: 24px;
}

.ps-checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ps-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    border: 1px solid rgba(125, 211, 252, 0.3);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    position: relative;
    transition: all 0.15s ease;
}

    .ps-checkbox:checked {
        background: #0ea5e9;
        border-color: #0ea5e9;
    }

    .ps-checkbox:checked::after {
        content: '';
        position: absolute;
        left: 5px;
        top: 2px;
        width: 5px;
        height: 9px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.ps-checkbox-text {
    color: var(--ps-text-secondary);
    font-size: 14px;
}

/* Prominent gradient Sign In button (scoped to login) */
.prospecting-login-box .ps-btn-full {
    width: 100%;
    margin-top: 4px;
    padding: 14px 20px !important;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, #0ea5e9, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.35);
}

    .prospecting-login-box .ps-btn-full:hover {
        background: linear-gradient(135deg, #38bdf8, #3b82f6) !important;
        color: #ffffff !important;
        transform: translateY(-1px);
        box-shadow: 0 12px 28px rgba(14, 165, 233, 0.45);
    }

/* Register CTA (scoped to login) — outlined, secondary to Sign In */
.ps-login-register {
    margin-top: 14px;
    text-align: center;
}

    .ps-login-register .ps-register-prompt {
        display: block;
        margin-bottom: 8px;
        font-size: 13px;
        color: var(--ps-text-secondary);
    }

.prospecting-login-box .ps-btn-register {
    width: 100%;
    padding: 13px 20px !important;
    font-size: 15px;
    font-weight: 600;
    background: transparent !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.55) !important;
    box-shadow: none;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

    .prospecting-login-box .ps-btn-register:hover {
        background: rgba(56, 189, 248, 0.10) !important;
        color: #7dd3fc !important;
        border-color: rgba(56, 189, 248, 0.85) !important;
        transform: translateY(-1px);
        text-decoration: none !important;
    }

/* ===================================
   TABS - MODERN PILL DESIGN
   =================================== */
.ps-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    /* background + shadow now on .ps-tabs-wrapper */
}

    .ps-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari — hides scrollbar, keeps scroll */
    }

.ps-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    border-radius: var(--ps-radius-sm);
    color: #2d5a7a;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    position: relative;
    flex: 1;
    max-width: 200px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

    .ps-tab:hover {
        background: #0d1a26;
        color: #7dd3fc;
        text-decoration: none;
    }

    .ps-tab.active {
        background: #0f1f2f;
        color: #e0f2fe;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
        font-weight: 700;
    }

/* Tab count badge — use the span directly, not ::after */
.ps-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0284c7;
    color: #0a1f30;
    border-radius: var(--ps-radius-full);
    font-size: 11px;
    font-weight: 700;
    min-width: 22px;
    height: 20px;
    padding: 0 7px;
    transition: all 0.2s;
}

.ps-tab.active .ps-tab-count {
    background: #d3af37;
    color: #0a1f30;
}

/* Hide the old ::after pseudo badge since HTML has a real span */
.ps-tab::after {
    display: none;
}

/* ===================================
   LEADS GRID
   =================================== */
.ps-leads-grid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important; /* ← ADD THIS */
    grid-template-columns: none !important;
    justify-content: flex-start;
    box-sizing: border-box !important;
    grid-template-columns: repeat(auto-fill, 400px) !important; /* Fixed card width */
}

    .ps-leads-grid:has(.ps-lead-card:only-child) {
        justify-content: flex-start;
    }
/* ===================================
   LEAD CARD - ENHANCED DESIGN
   =================================== */
.ps-lead-card {
    background: #334754;
    border: 1px solid #1a3a52;
    border-left: 2px solid rgb(255 248 160 / 31%);
    border-radius: 14px;
    padding: 20px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--ps-shadow-sm), -4px 0 20px rgb(117 115 100 / 30%), -2px 0 8px rgb(255 239 160 / 5%);
    position: relative;
    overflow: visible;
    flex: 0 0 340px !important;
    width: 340px !important;
    max-width: 340px !important;
    min-width: 340px !important;
    box-sizing: border-box !important;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

    .ps-lead-card:hover {
        transform: translateY(-4px);
    }

/* Mobile — full width cards */
@media (max-width: 600px) {
    .ps-lead-card {
        flex: 0 0 calc(100vw - 40px) !important;
        width: calc(100vw - 40px) !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

/* ===================================
   PORTRAIT CARD — BANNER + AVATAR
   =================================== */
.ps-card-banner {
    height: 72px;
    background: linear-gradient( 45deg, #6e747a 0%, #445e6e 50%, #30424d 100% ) !important;
    border-radius: 4px 4px 0 0;
    position: relative;
    margin: -20px -21px 0 -21px;
    color: inherit;
    overflow: visible;
}

    /* Left-edge light streak inside banner */
    .ps-card-banner::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 4px 4px 4px 4px;
        background: linear-gradient( 90deg, rgba(180, 200, 255, 0.12) 0%, rgba(180, 200, 255, 0.0) 60% );
        pointer-events: none;
    }

/* Status badge top-right of banner */
.ps-lead-status-badge {
    position: absolute;
    top: 12px;
    right: 84px;
    font-size: 12px;
    font-weight: 700;
    padding: 1px 12px;
    border-radius: 20px;
    letter-spacing: 1.3px;
    text-transform: capitalize;
}

/* Avatar circle — overlaps banner bottom edge */
.ps-card-avatar {
    position: absolute;
    bottom: -28px;
    left: 18px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #99a3a8;
    overflow: hidden;
    background: #0d1a26;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 2;
}

    .ps-card-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.ps-card-initials {
    font-size: 20px;
    font-weight: 800;
    color: #0ea5e9;
    line-height: 1;
}

/* Score pill bottom-right of banner */
.ps-card-score-pill {
    position: absolute;
    bottom: 18px;
    right: 14px;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
    background: #0a1f30;
    border: 1px solid #646d75;
    border-radius: 20px;
    padding: 5px 13px;
}

.ps-card-score-val {
    font-size: 22zpx;
    font-weight: 800;
    line-height: 0;
}

.ps-card-score-max {
    font-size: 10px;
    color: #abb1d3;
}

/* Push body content down to clear the overlapping avatar */
.ps-lead-body {
    padding-top: 38px;
}



.ps-status-pending {
    color: #b6c4e1;
}

.ps-status-approved {
    color: #0a1f30;
}

.ps-status-rejected {
    background: var(--ps-status-rejected-bg);
    color: var(--ps-status-rejected-text);
}

.ps-status-not_qualified {
}

/* ===================================
   LEAD CARD CONTENT
   =================================== */
.ps-lead-name {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.2px;
    line-height: 1.3;
}

.ps-lead-title {
    margin: 0 0 4px 0;
    color: #ffffff;
    font-weight: 500;
    font-size: 13px;
}

.ps-lead-company {
    margin: 0 0 var(--ps-spacing-md) 0;
    color: #ffffff;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .ps-lead-company::before {
        content: '🏢';
        font-size: 13px;
    }

/* ===================================
   LEAD META INFO
   =================================== */
.ps-lead-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: var(--ps-spacing-md);
    padding: var(--ps-spacing-sm);
    background: #97a3a9;
    border: 1px solid #22252f;
    border-radius: var(--ps-radius-sm);
}

    .ps-lead-meta > div {
        font-size: 14px;
        color: #1b1b1e;
        display: flex;
        align-items: center;
        gap: 8px;
    }

        .ps-lead-meta > div::before {
            flex-shrink: 0;
        }



/* ===================================
   LEAD CARD FOOTER
   =================================== */
.ps-lead-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--ps-spacing-md);
    border-top: 1px solid #22252f;
    margin-top: auto;
}

.ps-lead-date {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===================================
   BUTTONS - MODERN DESIGN
   =================================== */
.ps-btn {
    padding: 11px 20px !important;
    border: none;
    border-radius: var(--ps-radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px;
    font-size: 14px;
    text-align: center;
    line-height: 1 !important;
    position: relative;
    overflow: hidden;
    height: auto;
    min-height: 40px;
}


    .ps-btn::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .ps-btn * {
        line-height: 1 !important;
        margin: 0 !important;
        vertical-align: middle;
    }

    .ps-btn svg {
        display: block !important;   /* block inside flex — no baseline tricks */
        flex-shrink: 0;
        margin: 0 !important;
    }

.ps-leads-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

.ps-btn:hover::before {
    opacity: 1;
}

.ps-review-lead {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

    .ps-review-lead svg {
        margin: 0 !important;
        padding: 0 !important;
    }

.ps-btn-primary {
    background: #121f2d;
    color: #67b47b;
    box-shadow: 0 2px 8px rgba(34, 113, 177, 0.25);
}

    .ps-btn-primary:hover {
        background: #bac4cd;
        color: var(--ps-bg-card);
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(34, 113, 177, 0.35);
    }

    .ps-btn-primary:active {
        transform: translateY(0);
    }

.ps-btn-secondary {
    background: #121f2d;
    color: #ff466c;
    border: 1px solid #1a3a52;
    box-shadow: none;
}

    .ps-btn-secondary:hover {
        background: #2e3347;
        color: #e0f2fe;
        text-decoration: none;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

.ps-btn-sm {
    padding: 8px 16px !important;   /* needs !important to beat .ps-btn's rule */
    font-size: 13px !important;
}

/* Add arrow icon to review buttons */
.ps-btn-primary::after {
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block;
    vertical-align: middle;
}


.ps-btn-primary:hover::after {
    transform: translateX(3px);
}

/* ===================================
   FORMS
   =================================== */
.ps-form-group {
    margin-bottom: var(--ps-spacing-md);
}

    .ps-form-group label {
        display: block;
        margin-bottom: var(--ps-spacing-xs);
        font-weight: 600;
        color: var(--ps-text-secondary);
        font-size: 14px;
    }

.ps-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #1a3a52;
    border-radius: var(--ps-radius-sm);
    font-size: 15px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
    background: #14161e;
    color: #7dd3fc;
}

    .ps-input:focus {
        outline: none;
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(124, 143, 255, 0.1);
    }

    .ps-input::placeholder {
        color: #2d5a7a;
    }

/* ===================================
   ALERTS
   =================================== */
.ps-alert {
    padding: var(--ps-spacing-md);
    border-radius: var(--ps-radius-sm);
    margin-bottom: var(--ps-spacing-md);
    display: flex;
    align-items: flex-start;
    gap: var(--ps-spacing-sm);
    font-size: 14px;
    line-height: 1.5;
}

    .ps-alert::before {
        font-size: 20px;
        flex-shrink: 0;
    }

.ps-alert-error {
    background: var(--ps-alert-error-bg);
    border: 1px solid var(--ps-alert-error-border);
    color: var(--ps-alert-error-text);
}

    .ps-alert-error::before {
        content: '⚠️';
    }

.ps-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ps-alert-success {
    background: var(--ps-alert-success-bg);
    border: 1px solid var(--ps-alert-success-border);
    color: var(--ps-alert-success-text);
}

    .ps-alert-success::before {
        content: '✅';
    }

/* ===================================
   EMPTY STATE
   =================================== */
.ps-empty-state {
    text-align: center;
    padding: var(--ps-spacing-xl) var(--ps-spacing-md);
    color: var(--ps-text-light);
    width: 100% !important;
    min-width: 100% !important;
    box-sizing: border-box !important;
}

    .ps-empty-state::before {
        content: '📭';
        display: block;
        font-size: 64px;
        margin-bottom: var(--ps-spacing-md);
        opacity: 0.5;
    }

/* ===================================
   MODAL
   =================================== */
.ps-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.ps-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
}

/* ===================================
   MODAL DIALOG WRAPPER - MISSING STYLES
   =================================== */
.ps-modal-dialog {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: var(--ps-spacing-md);
    pointer-events: none; /* Allow clicks through to overlay */
}

    /* Re-enable pointer events on content */
    .ps-modal-dialog > * {
        pointer-events: auto;
    }

/* Ensure the modal content is properly positioned */
.ps-modal .ps-modal-content {
    margin: auto;
}

/* ===================================
   LOADING SPINNER
   =================================== */
.ps-spinner {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-left-color: var(--ps-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ps-loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--ps-text-light);
}

    .ps-loading p {
        margin: 0;
        font-size: 16px;
    }


.ps-modal-content {
    position: relative;
    background: #334754;
    border: 1px solid #1a3a52;
    border-radius: var(--ps-radius-lg);
    padding: var(--ps-spacing-lg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #ffffff;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ps-modal-close {
    position: absolute;
    top: var(--ps-spacing-md);
    right: var(--ps-spacing-md);
    background: #0e1f2e;
    border: 1px solid #1a3a52;
    color: #aac4db;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 28px;
    line-height: 1;
    font-weight: 300;
    padding: 0;
}

    .ps-modal-close:hover {
        background: #1f6d7a;
        color: #d3af37;
        transform: rotate(5deg);
    }


#ps-modal-actions {
    display: flex;
    gap: var(--ps-spacing-md);
    margin-top: var(--ps-spacing-lg);
    padding-top: var(--ps-spacing-md);
    border-top: 1px solid #1a3a52;
}

    #ps-modal-actions .ps-btn {
        flex: 1;
        padding: 14px;
        font-size: 15px;
    }

/* ===================================
   PROFILE PHOTO IN MODAL
   =================================== */
.ps-lead-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .ps-lead-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
    }

    .ps-lead-photo.ps-no-photo {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }

.ps-avatar-placeholder {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    user-select: none;
}

.ps-modal-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #1a3a52;
}

.ps-modal-title-group {
    flex: 1;
    min-width: 0;
}

.ps-modal-title {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: 700;
    color: #e0f2fe;
    line-height: 1.2;
}

.ps-modal-subtitle {
    margin: 0;
    font-size: 14px;
    color: #c0ced8;
    line-height: 1.4;
}

.ps-lead-score-large {
    display: flex;
    align-items: baseline;
    gap: 4px;
    padding: 12px 20px;
    border-radius: var(--ps-radius-md);
    font-weight: 700;
    background: #0d1a26;
    flex-shrink: 0;
    margin-right: 62px;
}

.ps-score-value {
    font-size: 26px;
    line-height: 1;
}

.ps-score-max {
    font-size: 18px;
    opacity: 0.7;
}

/* Score gradient classes — only used in modal score badge, not on cards */
.ps-score-excellent {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.ps-score-good {
    background: rgba(74,222,128,0.12);
    color: #4ade80;
}

.ps-score-average {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
}

.ps-score-poor {
    background: rgba(251,113,133,0.12);
    color: #fb7185;
}

/* ===================================
   LEAD DETAILS
   =================================== */
.ps-lead-details {
    margin-top: var(--ps-spacing-md);
}

.ps-detail-section {
    margin-bottom: var(--ps-spacing-lg);
}

    .ps-detail-section h3 {
        margin: 0 0 var(--ps-spacing-md) 0;
        color: #d3af37;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: var(--ps-spacing-sm);
    }

        .ps-detail-section h3::before {
            content: '';
            width: 3px;
            height: 18px;
            background: #0ea5e9;
            border-radius: 2px;
        }

.ps-detail-table {
    width: 100%;
    border-collapse: collapse;
}

    .ps-detail-table td {
        padding: 12px 0;
        border-bottom: 1px solid #22252f;
        font-size: 14px;
    }

        .ps-detail-table td:first-child {
            width: 150px;
            color: #2d5a7a;
            font-weight: 500;
        }

        .ps-detail-table td:last-child {
            color: #7dd3fc;
            font-weight: 400;
        }

.ps-score-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--ps-primary), var(--ps-accent));
    color: var(--ps-bg-card);
    padding: 12px 24px;
    border-radius: var(--ps-radius-full);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: var(--ps-spacing-md);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

/* ===================================
   MESSAGE VARIANTS
   =================================== */
.ps-message-variants {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ps-message-variant {
    border: 2px solid #1a3a52;
    border-radius: var(--ps-radius-sm);
    padding: var(--ps-spacing-md);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    background: #25323b;
}

    .ps-message-variant:hover {
        border-color: #474c5f;
        background: #10171b;
    }

    .ps-message-variant input[type="radio"] {
        margin-right: var(--ps-spacing-sm);
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

        .ps-message-variant input[type="radio"]:checked ~ .ps-variant-label {
            color: var(--ps-primary);
            font-weight: 700;
        }

.ps-variant-label {
    display: inline-block;
    margin-bottom: var(--ps-spacing-sm);
    font-weight: 600;
    font-size: 14px;
}

.ps-message-textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 16px;
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-sm);
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
    transition: all 0.2s ease;
    line-height: 1.6;
    background: var(--gwd-card);
    color: var(--gwd-text-1);
}

    .ps-message-textarea:focus {
        outline: none;
        border-color: #0ea5e9;
        box-shadow: 0 0 0 3px rgba(124, 143, 255, 0.1);
    }

.ps-char-count {
    text-align: right;
    font-size: 12px;
    color: var(--ps-text-light);
    margin-top: 6px;
    font-weight: 500;
}

    .ps-char-count.over-limit {
        color: var(--ps-alert-error-text);
        font-weight: 700;
    }

/* ===================================
   LOADING STATE
   =================================== */
.ps-loading {
    text-align: center;
    padding: var(--ps-spacing-xl);
    color: var(--ps-text-light);
    font-size: 16px;
}

    .ps-loading::before {
        content: '⏳';
        display: block;
        font-size: 48px;
        margin-bottom: var(--ps-spacing-md);
        animation: spin 2s linear infinite;
    }

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* ===================================
   LOGIN FOOTER
   =================================== */
.ps-login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(125, 211, 252, 0.12);
}

    .ps-login-footer a {
        color: var(--ps-primary);
        text-decoration: none;
        font-weight: 500;
        transition: color 0.2s ease;
    }

        .ps-login-footer a:hover {
            color: var(--ps-primary-hover);
            text-decoration: underline;
        }

/* ===================================
   RESPONSIVE DESIGN
   =================================== */
@media (max-width: 1024px) {
    .prospecting-dashboard {
        padding: var(--ps-spacing-md);
        max-width: 100% !important;
        min-width: 100% !important;
        width: 100% !important;
        min-width: 100% !important; /* ← ADD THIS */
        box-sizing: border-box !important;
    }

    .ps-leads-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: var(--ps-spacing-md);
    }
}

@media (max-width: 768px) {
    :root {
        --ps-spacing-xs: 6px;
        --ps-spacing-sm: 10px;
        --ps-spacing-md: 16px;
        --ps-spacing-lg: 24px;
        --ps-spacing-xl: 32px;
    }

    .prospecting-login-box {
        max-width: 100%;
        padding: var(--ps-spacing-lg) var(--ps-spacing-md);
    }

    .prospecting-dashboard {
        padding: var(--ps-spacing-md);
    }

    .ps-header {
        padding: 24px 32px;
    }

    .ps-header-content {
        align-items: center;
        gap: 4px;
    }

    .ps-header-right {
        display: flex;
        top: 12px;
        right: 12px;
        gap: 6px;
    }


    .ps-header h1,
    .ps-header-title {
        font-size: 22px;
    }

    .ps-tabs {
        overflow-x: auto;
        padding-bottom: 4px;
        margin-left: calc(var(--ps-spacing-md) * -1);
        margin-right: calc(var(--ps-spacing-md) * -1);
        padding-left: var(--ps-spacing-md);
        padding-right: var(--ps-spacing-md);
    }

    .ps-tab {
        flex: 1;
        min-width: 80px; /* Minimum width for mobile */
        max-width: none;
    }

    .ps-leads-grid {
        grid-template-columns: 1fr;
    }

    .ps-lead-score {
        width: 54px;
        height: 54px;
        font-size: 14px; /* Reduced from 16px for mobile */
    }

    .ps-modal-content {
        width: 95%;
        padding: var(--ps-spacing-md);
        max-height: 85vh;
    }

    /* Profile photo responsive */
    .ps-modal-header {
        flex-wrap: wrap;
        gap: 16px;
    }

    .ps-lead-photo {
        width: 64px;
        height: 64px;
    }

    .ps-avatar-placeholder {
        font-size: 24px;
    }

    .ps-modal-title {
        font-size: 20px;
    }

    .ps-modal-subtitle {
        font-size: 13px;
    }

    .ps-lead-score-large {
        align-self: flex-start;
        padding: 10px 16px;
    }

    .ps-score-value {
        font-size: 28px;
    }

    .ps-score-max {
        font-size: 16px;
    }

    #ps-modal-actions {
        flex-direction: column;
    }

    .ps-detail-table td:first-child {
        width: 100px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .ps-btn {
        width: 100%;
    }

    .ps-lead-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ps-spacing-sm);
    }

        .ps-lead-footer .ps-btn {
            width: 100%;
        }

    .ps-lead-header {
        flex-wrap: wrap;
    }
}

/* ===================================
   ACCESSIBILITY
   =================================== */
.ps-btn:focus-visible,
.ps-input:focus-visible,
.ps-tab:focus-visible {
    outline: 3px solid var(--ps-primary);
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ps-lead-card {
        border: 2px solid currentColor;
    }

    .ps-btn {
        border: 2px solid currentColor;
    }
}

/* ===================================
   USER MENU DROPDOWN (Header Navigation)
   =================================== */
.menu-item-user {
    position: relative !important;
}

    .menu-item-user > .sub-menu {
        display: none;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: auto !important;
        background: var(--ps-bg-card) !important;
        box-shadow: var(--ps-shadow-md) !important;
        min-width: 180px !important;
        list-style: none !important;
        padding: 8px 0 !important;
        margin: 0 !important;
        border-radius: var(--ps-radius-sm) !important;
        z-index: 9999 !important;
        border: 1px solid var(--ps-border-light) !important;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
        transform: translateY(-10px);
    }

    .menu-item-user:hover > .sub-menu,
    .menu-item-user:focus-within > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0);
    }

    .menu-item-user .sub-menu li {
        padding: 0 !important;
        margin: 0 !important;
        list-style: none !important;
        border: none !important;
        background: transparent !important;
    }

    .menu-item-user .sub-menu a {
        display: block !important;
        padding: 12px 20px !important;
        color: var(--ps-text-primary) !important;
        text-decoration: none !important;
        font-size: 14px !important;
        line-height: 1.5 !important;
        font-weight: 500 !important;
        transition: all 0.2s ease;
        border-left: 3px solid transparent;
    }

        .menu-item-user .sub-menu a:hover,
        .menu-item-user .sub-menu a:focus {
            background-color: var(--ps-bg-secondary) !important;
            color: var(--ps-primary) !important;
            border-left-color: var(--ps-primary);
        }

    /* Remove theme's dropdown indicator if present */
    .menu-item-user > a::after {
        display: none;
    }

    /* Style the username link in header. 1.63.1: not the footer's (account-menu.js marks it
       data-ps-foot), which takes the footer menu's own look like the links next to it. */
    .menu-item-user > a:not([data-ps-foot]) {
        font-weight: 600 !important;
        color: inherit !important;
    }

/* Mobile responsive */
@media (max-width: 768px) {
    .menu-item-user > .sub-menu {
        position: static !important;
        display: none;
        box-shadow: none !important;
        border: 1px solid var(--ps-border-light) !important;
        margin-top: 8px !important;
    }

    .menu-item-user:hover > .sub-menu,
    .menu-item-user:focus-within > .sub-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}

/* ===================================
   BULLETPROOF MODAL VISIBILITY
   =================================== */
.ps-modal-visible {
    display: flex !important;
    opacity: 1 !important;
}

/* Ensure modal is hidden by default */
#ps-review-modal {
    display: none;
}

    #ps-review-modal.ps-modal-visible {
        display: flex !important;
    }

    /* ===================================
   SHOW MODAL CLASS (Matches JS)
   =================================== */
    #ps-review-modal.ps-show-modal {
        display: flex !important;
    }

body.modal-open {
    overflow: hidden;
}

/* ===================================
   TABS WRAPPER — this is now the dark pill
   ===================================== */
.ps-tabs-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
    padding: 6px;
    background: #374653;
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow-sm);
    margin-bottom: var(--ps-spacing-lg);
    overflow: hidden;
}

.ps-tabs-sep {
    width: 1px;
    height: 22px;
    background: rgba(255,255,255,0.12);
    margin: 0 6px;
    flex-shrink: 0;
}

.ps-tabs-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Safety net: if Elementor/wpautop wraps the button in a <p>, neutralise it */
.ps-tabs-wrapper > p {
    display: flex;
    align-items: center;
    align-self: center;
    margin: 0;
    padding: 0;
}

    .ps-tabs-wrapper > p:empty {
        display: none;
    }

/* ===================================
   DOWNLOAD BUTTON (single direct link)
   =================================== */
.ps-download-trigger {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 7px;
    padding: 10px 20px;
    background: #131f2e;
    color: #cdb04e !important;
    border: none;
    border-radius: var(--ps-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 1;
}

    .ps-download-trigger:hover {
        background: #0ea5e9;
        color: #fff;
        text-decoration: none;
    }

@media (max-width: 700px) {
    .ps-tabs-wrapper {
        flex-wrap: wrap;
        gap: 6px;
    }
}

/* =====================================================
   ⭐ MY LEADS REDESIGN — GoWinDeal homepage design language
   Overrides below win by appearing last in the cascade.
===================================================== */

.prospecting-dashboard,
#ps-review-modal {
    --gwd-bg-0: #07080C;
    --gwd-bg-1: #0E1117;
    --gwd-card: #181D27;
    --gwd-border: rgba(255,255,255,0.07);
    --gwd-border-hi: rgba(255,255,255,0.13);
    --gwd-accent: #4F80FF;
    --gwd-accent-2: #00C8FF;
    --gwd-accent-g: linear-gradient(135deg, #4F80FF 0%, #00C8FF 100%);
    --gwd-green: #22D3A0;
    --gwd-amber: #FFB454;
    --gwd-red: #FF6B81;
    --gwd-text-1: #EEF0F6;
    --gwd-text-2: #8490A8;
    --gwd-text-3: #525D72;
}
.prospecting-dashboard {
    background: transparent;
    font-family: inherit;
}

/* ⭐ wpautop armor: kill injected <p>/<br> gaps inside the dashboard */
.prospecting-dashboard p:empty {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.prospecting-dashboard br {
    display: none !important;
}

.prospecting-dashboard .ps-lead-card > p,
.prospecting-dashboard .ps-leads-grid > p,
.prospecting-dashboard .ps-tabs-wrapper > p,
.prospecting-dashboard .ps-header-left > p:not(.ps-header-subtitle),
.prospecting-dashboard .ps-header-content > p,
.prospecting-dashboard .ps-header-actions > p,
.prospecting-dashboard .ps-header-tools > p,
.prospecting-dashboard p:empty,
.prospecting-dashboard > p {
    display: none !important;
}

/* ---------- Header: compact chip + gradient title ---------- */
.prospecting-dashboard .ps-header {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 8px 0 4px;
    margin-bottom: 18px;
    min-height: 0;
}

.prospecting-dashboard .ps-header-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--gwd-accent);
    background: rgba(79,128,255,.08);
    border: 1px solid rgba(79,128,255,.35);
    margin-bottom: 12px;
}

.prospecting-dashboard .ps-header-title {
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gwd-text-1);
    margin: 0 0 6px;
    opacity: 1;
    text-align: left;
}

.prospecting-dashboard .ps-grad {
    background: var(--gwd-accent-g);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.prospecting-dashboard .ps-header-subtitle {
    color: var(--gwd-text-2);
    font-size: 14px;
    margin: 0;
    text-align: left;
}

/* Header stack: daily quote on top, then the Launch Vera + search/sort row below. */
.prospecting-dashboard .ps-header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin: 16px 0 4px;
}

/* Vera + search sit on one line, below the quote. */
.prospecting-dashboard .ps-header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 860px;
    flex: 0 0 auto;
}

.prospecting-dashboard .ps-header-tools .vera-launch-wrap {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.prospecting-dashboard .ps-header-tools .ps-toolbar {
    margin: 0;
    flex: 1 1 240px;
    flex-wrap: nowrap;
}

/* Match heights so Vera and the search field align cleanly on one row. */
.prospecting-dashboard .ps-header-tools .vera-launch-btn,
.prospecting-dashboard .ps-header-tools .ps-search,
.prospecting-dashboard .ps-header-tools .ps-sort {
    height: 44px;
    box-sizing: border-box;
}

.prospecting-dashboard .ps-header-tools .vera-launch-btn {
    padding-top: 0;
    padding-bottom: 0;
}

/* Daily motivational quote — first item in the header action row.
   Uses theme tokens so it adapts across all five dashboard themes. */
.prospecting-dashboard .ps-daily-quote {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 12px 16px;
    flex: 0 0 auto;
    max-width: 560px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-left: 3px solid var(--gwd-accent);
    border-radius: 10px;
}

.prospecting-dashboard .ps-daily-quote-mark {
    flex-shrink: 0;
    color: var(--gwd-accent);
    opacity: .9;
    align-self: flex-start;
    margin-top: 2px;
}

.prospecting-dashboard .ps-daily-quote-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.prospecting-dashboard .ps-daily-quote-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-daily-quote-author {
    font-size: 12px;
    color: var(--gwd-text-2);
}

.prospecting-dashboard .ps-daily-quote-chip {
    flex-shrink: 0;
    align-self: flex-start;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gwd-text-2);
    background: transparent;
    border: 1px solid var(--gwd-border);
    border-radius: 999px;
    padding: 3px 10px;
    white-space: nowrap;
}

@media (max-width: 640px) {
    .prospecting-dashboard .ps-daily-quote {
        flex-wrap: wrap;
    }
    .prospecting-dashboard .ps-daily-quote-chip {
        display: none;
    }
}

/* ⭐ Header content left-aligned */
.prospecting-dashboard .ps-header-content {
    justify-content: flex-start;
    text-align: left;
}

.prospecting-dashboard .ps-header-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0;
    flex: 1;
    min-width: 0;
}

/* ---------- Tabs: segmented pill bar ---------- */
.prospecting-dashboard .ps-tabs-wrapper {
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-radius: 999px;
    padding: 5px;
    box-shadow: none;
    overflow: visible;
    gap: 8px;
    align-items: center;
}

.prospecting-dashboard .ps-tabs {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

/* Right-side action slot inside the tabs pill (bell + download) */
.prospecting-dashboard .ps-tabs-sep {
    width: 1px;
    height: 24px;
    background: var(--gwd-border-hi);
    margin: 0 2px;
    flex-shrink: 0;
}

.prospecting-dashboard .ps-tabs-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    padding-right: 2px;
}

/* Notification bell — clean circular icon button matching the pill aesthetic */
.prospecting-dashboard .ps-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.prospecting-dashboard .ps-notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
    cursor: pointer;
    position: relative;
    transition: background .18s, color .18s, transform .12s;
}

.prospecting-dashboard .ps-notif-btn:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.prospecting-dashboard .ps-notif-btn:active {
    transform: scale(.94);
}

/* Force the bell icon to its intended size — a theme/Elementor rule was collapsing it to 1px wide */
.prospecting-dashboard .ps-notif-btn svg {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 auto;
    display: block;
}

.prospecting-dashboard .ps-notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: #E5484D;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 17px;
    text-align: center;
    border: 2px solid var(--gwd-card);
    box-sizing: border-box;
}

.prospecting-dashboard .ps-notif-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 340px;
    max-width: 90vw;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,.5);
    z-index: 9999;
    overflow: hidden;
}

.prospecting-dashboard .ps-tab {
    border-radius: 999px;
    border: none;
    background: transparent;
    color: var(--gwd-text-2);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    transition: all .18s;
}

.prospecting-dashboard .ps-tab:hover {
    background: rgba(255,255,255,.06);
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-tab.active {
    background: var(--gwd-accent-g);
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,128,255,.4);
}

.prospecting-dashboard .ps-tab::after {
    display: none;
}

.prospecting-dashboard .ps-tab-count {
    background: rgba(255,255,255,.08);
    color: var(--gwd-text-2);
    border-radius: 999px;
    font-size: 11px;
    padding: 1px 8px;
}

.prospecting-dashboard .ps-tab.active .ps-tab-count {
    background: rgba(255,255,255,.25);
    color: #fff;
}

.prospecting-dashboard .ps-download-trigger {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
    border-radius: 999px;
    font-weight: 600;
}

.prospecting-dashboard .ps-download-trigger:hover {
    background: rgba(255,255,255,.1);
    color: var(--gwd-text-1);
}

/* ---------- Toolbar: search + sort ---------- */
.prospecting-dashboard .ps-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 14px;
    flex-wrap: wrap;
}

.prospecting-dashboard .ps-search {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gwd-bg-1);
    border: 1px solid var(--gwd-border-hi);
    border-radius: 999px;
    padding: 0 16px;
    color: var(--gwd-text-3);
    transition: border-color .15s, box-shadow .15s;
}

.prospecting-dashboard .ps-search:focus-within {
    border-color: var(--gwd-accent);
    box-shadow: 0 0 0 3px rgba(79,128,255,.18);
}

.prospecting-dashboard .ps-search svg {
    flex-shrink: 0;
}

.prospecting-dashboard .ps-search input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    box-shadow: none;
    color: var(--gwd-text-1);
    font-size: 13.5px;
    font-family: inherit;
    padding: 10px 0;
    margin: 0;
}

.prospecting-dashboard .ps-search input::placeholder {
    color: var(--gwd-text-3);
}

.prospecting-dashboard .ps-sort {
    background: var(--gwd-bg-1);
    border: 1px solid var(--gwd-border-hi);
    border-radius: 999px;
    color: var(--gwd-text-1);
    font-size: 13px;
    font-family: inherit;
    padding: 9px 14px;
    cursor: pointer;
    outline: none;
}

.prospecting-dashboard .ps-sort option {
    background: var(--gwd-bg-1);
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-clear-search {
    color: var(--gwd-accent-2);
    font-size: 13px;
    text-decoration: underline;
}

/* ---------- Lead cards ---------- */
.prospecting-dashboard .ps-lead-card {
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-radius: 14px;
    padding: 18px;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    transition: transform .18s, border-color .18s;
    overflow: visible;
}

.prospecting-dashboard .ps-lead-card:hover {
    transform: translateY(-3px);
    border-color: var(--gwd-border-hi);
    box-shadow: none;
}

.prospecting-dashboard .ps-card-top {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.prospecting-dashboard .ps-card-avatar {
    position: static;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: none;
    box-shadow: none;
    background: rgba(79,128,255,.12);
}

.prospecting-dashboard .ps-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prospecting-dashboard .ps-card-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    color: var(--gwd-accent);
    background: transparent;
}

.prospecting-dashboard .ps-card-identity {
    flex: 1;
    min-width: 0;
}

.prospecting-dashboard .ps-lead-name {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--gwd-text-1);
    margin: 0 0 2px;
    line-height: 1.25;
}

.prospecting-dashboard .ps-lead-title {
    font-size: 12.5px;
    color: var(--gwd-text-2);
    margin: 0 0 4px;
    line-height: 1.35;
}

.prospecting-dashboard .ps-lead-company {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--gwd-text-3);
}

/* Score ring */
.prospecting-dashboard .ps-card-score {
    flex-shrink: 0;
    text-align: center;
}

.prospecting-dashboard .ps-card-score-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 3px solid var(--gwd-text-3);
    font-size: 14px;
    font-weight: 700;
    color: var(--gwd-text-3);
    margin: 0 auto;
}

.prospecting-dashboard .ps-card-score-label {
    display: block;
    font-size: 9.5px;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gwd-text-3);
    margin-top: 3px;
}

.prospecting-dashboard .ps-score-high .ps-card-score-ring { border-color: var(--gwd-green); color: var(--gwd-green); }
.prospecting-dashboard .ps-score-mid  .ps-card-score-ring { border-color: var(--gwd-accent); color: var(--gwd-accent); }
.prospecting-dashboard .ps-score-low  .ps-card-score-ring { border-color: var(--gwd-amber); color: var(--gwd-amber); }

/* Body + contact inset */
.prospecting-dashboard .ps-lead-body {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Contact box no longer needs its bottom margin once the body centers it */
.prospecting-dashboard .ps-lead-body .ps-lead-meta {
    margin-bottom: 0;
}

.prospecting-dashboard .ps-lead-meta {
    background: var(--gwd-bg-1);
    border: 1px solid var(--gwd-border);
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.prospecting-dashboard .ps-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--gwd-text-2);
    background: transparent;
    border: none;
    padding: 0;
    word-break: break-all;
}

.prospecting-dashboard .ps-meta-item svg {
    color: var(--gwd-text-3);
    flex-shrink: 0;
}

/* Footer */
.prospecting-dashboard .ps-lead-footer {
    border-top: 1px solid var(--gwd-border);
    background: transparent;
    padding: 12px 0 0;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prospecting-dashboard .ps-lead-date {
    color: var(--gwd-text-3);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}

/* Quick actions */
.prospecting-dashboard .ps-quick-actions {
    display: inline-flex;
    gap: 6px;
}

.prospecting-dashboard .ps-quick-btn {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    cursor: pointer;
    transition: all .15s;
    padding: 0;
}

.prospecting-dashboard .ps-quick-reject {
    border: 1px solid rgba(255,107,129,.4);
    color: var(--gwd-red);
}

.prospecting-dashboard .ps-quick-reject:hover {
    background: rgba(255,107,129,.12);
}

.prospecting-dashboard .ps-quick-approve {
    border: 1px solid rgba(34,211,160,.4);
    color: var(--gwd-green);
}

.prospecting-dashboard .ps-quick-approve:hover {
    background: rgba(34,211,160,.12);
}

/* Primary button → gradient pill */
.prospecting-dashboard .ps-btn {
    border-radius: 999px;
    font-family: inherit;
}

.prospecting-dashboard .ps-btn-primary {
    background: var(--gwd-accent-g);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,128,255,.35);
}

.prospecting-dashboard .ps-btn-primary:hover {
    background: var(--gwd-accent-g);
    box-shadow: 0 6px 28px rgba(79,128,255,.5);
    transform: translateY(-1px);
}

.prospecting-dashboard .ps-btn-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid var(--gwd-border-hi);
    color: var(--gwd-text-1);
}

.prospecting-dashboard .ps-btn-secondary:hover {
    background: rgba(255,255,255,.1);
}

/* ⭐ Approved-tab filter — custom popover (pill trigger + dark rounded panel),
   same design language as the theme picker. Native selects can't be themed. */
.prospecting-dashboard .ps-afilter-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin: 0 6px;
    flex-shrink: 0;
}

.prospecting-dashboard .ps-afilter-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.14));
    border-radius: 999px;
    color: var(--gwd-text-1);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    max-width: 220px;
    white-space: nowrap;
    transition: border-color .15s, background .15s;
}

.prospecting-dashboard .ps-afilter-btn:hover {
    background: rgba(255,255,255,.09);
}

.prospecting-dashboard .ps-afilter-btn:focus-visible {
    outline: none;
    border-color: var(--gwd-accent);
}

/* Active filter: accent ring so it's obvious a slice is applied */
.prospecting-dashboard .ps-afilter-btn.has-filter {
    border-color: var(--gwd-accent);
    color: var(--gwd-accent);
}

.prospecting-dashboard .ps-afilter-btn .ps-afilter-chev {
    color: var(--gwd-text-3);
    flex-shrink: 0;
}

.prospecting-dashboard .ps-afilter-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 220px;
    padding: 8px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-md);
    box-shadow: var(--ps-shadow-lg);
}

.prospecting-dashboard .ps-afilter-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--ps-radius-sm);
    background: transparent;
    color: var(--gwd-text-1);
    font-family: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.prospecting-dashboard .ps-afilter-opt:hover {
    background: rgba(255,255,255,.06);
}

.prospecting-dashboard .ps-afilter-opt.active {
    border-color: var(--gwd-accent);
}

.prospecting-dashboard .ps-afilter-opt span {
    flex: 1 1 auto;
}

.prospecting-dashboard .ps-afilter-opt .ps-afilter-check {
    margin-left: auto;
    flex: 0 0 auto;
    color: var(--gwd-accent);
    opacity: 0;
}

.prospecting-dashboard .ps-afilter-opt.active .ps-afilter-check {
    opacity: 1;
}

/* Daylight: soften the alpha hovers for the light surface */
.prospecting-dashboard[data-theme="daylight"] .ps-afilter-btn {
    background: rgba(15,27,42,.04);
}

.prospecting-dashboard[data-theme="daylight"] .ps-afilter-btn:hover {
    background: rgba(15,27,42,.08);
}

.prospecting-dashboard[data-theme="daylight"] .ps-afilter-opt:hover {
    background: rgba(15,27,42,.06);
}

@media (max-width: 700px) {
    .prospecting-dashboard .ps-afilter-btn { max-width: 160px; }
    .prospecting-dashboard .ps-afilter-btn span { overflow: hidden; text-overflow: ellipsis; }
}

/* Rejection reason strip — compact icon + label + reason row.
   Base (amber) = informational, used on not_qualified cards.
   Rejected cards get the quiet red variant below. */
.prospecting-dashboard .ps-rejection-reason {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 12px;
    margin: 0 0 12px;
    background: rgba(255,180,84,.07);
    border: 1px solid rgba(255,180,84,.3);
    border-radius: 10px;
    color: var(--gwd-text-2);
    font-size: 13px;
    line-height: 1.45;
}

.prospecting-dashboard .ps-rejection-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    margin-top: 2px;
    color: var(--gwd-amber);
}

.prospecting-dashboard .ps-rejection-icon svg {
    width: 14px;
    height: 14px;
}

.prospecting-dashboard .ps-rejection-content {
    min-width: 0;
}

.prospecting-dashboard .ps-rejection-content p {
    margin: 1px 0 0;
    color: var(--gwd-text-2);
    font-size: 13px;
}

.prospecting-dashboard .ps-rejection-reason strong {
    display: block;
    color: var(--gwd-amber);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* Red variant on rejected cards — the signal, kept quiet */
.prospecting-dashboard .ps-status-rejected .ps-rejection-reason {
    background: rgba(251,113,133,.06);
    border-color: rgba(251,113,133,.22);
}

.prospecting-dashboard .ps-status-rejected .ps-rejection-reason strong,
.prospecting-dashboard .ps-status-rejected .ps-rejection-icon {
    color: var(--ps-status-rejected-text, #fb7185);
}

/* Daylight: #fb7185 is only 2.7:1 on white — use a darker rose for AA */
.prospecting-dashboard[data-theme="daylight"] .ps-status-rejected .ps-rejection-reason strong,
.prospecting-dashboard[data-theme="daylight"] .ps-status-rejected .ps-rejection-icon {
    color: #be123c;
}

/* Empty state */
.prospecting-dashboard .ps-empty-state {
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border);
    border-radius: 14px;
    color: var(--gwd-text-2);
}

.prospecting-dashboard .ps-empty-title {
    color: var(--gwd-text-1);
}

@media (max-width: 700px) {
    .prospecting-dashboard .ps-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    .prospecting-dashboard .ps-search {
        min-width: 0;
    }
}

/* =====================================================
   ⭐ RESPONSIVE FIXES — header tools + tabs pill
   Portrait phones AND landscape phones both crammed these
   two rows onto a single line, causing the Manual Search /
   Launch Vera buttons to run off-screen and the status tabs
   to squash under the action buttons. Let both rows wrap.
===================================================== */

/* Header action row: Manual Search + Launch Vera + search/sort.
   Below ~860px (covers landscape phones) let the items wrap; on
   the narrowest widths give each control its own full-width line. */
@media (max-width: 860px) {
    .prospecting-dashboard .ps-header-tools {
        flex-wrap: wrap;
    }
    /* Buttons keep their existing size and appearance — only allowed to
       wrap onto the next line. No restyling. */
    .prospecting-dashboard .ps-header-tools .psms-launch-wrap,
    .prospecting-dashboard .ps-header-tools .vera-launch-wrap {
        flex: 0 0 auto;
    }
    /* Search + sort drop to their own full-width row below the buttons. */
    .prospecting-dashboard .ps-header-tools .ps-toolbar {
        flex: 1 1 100%;
    }
}

/* Tabs pill: on phones the 4 status tabs + bell/theme/download
   can't share one row, so the tabs get squished to a sliver.
   Give the tabs their own full-width row (scrollable if needed)
   and drop the action buttons onto a second row. */
@media (max-width: 768px) {
    .prospecting-dashboard .ps-tabs-wrapper {
        flex-wrap: wrap;
        border-radius: var(--ps-radius-md, 14px);
        row-gap: 6px;
    }
    /* Tabs wrap two-up so all four stay visible (no cut-off / scroll). */
    .prospecting-dashboard .ps-tabs {
        flex: 1 1 100%;
        min-width: 0;
        flex-wrap: wrap;
        overflow: visible;
        gap: 4px;
        margin: 0;
        padding: 0;
    }
    .prospecting-dashboard .ps-tab {
        flex: 1 1 calc(50% - 4px);
        min-width: 0;
        max-width: none;
        justify-content: center;
    }
    .prospecting-dashboard .ps-tabs-sep {
        display: none;
    }
    .prospecting-dashboard .ps-tabs-actions {
        flex: 1 1 100%;
        margin-left: 0;
        justify-content: flex-end;
    }
}

/* =====================================================
   ⭐ REVIEW MODAL — minimal, GoWinDeal design language
===================================================== */

.ps-modal .ps-modal-overlay {
    background: rgba(2, 3, 6, 0.82);
    backdrop-filter: blur(4px);
}

.ps-modal .ps-modal-content {
    background: var(--gwd-bg-1);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 18px;
    color: var(--gwd-text-1);
    box-shadow: 0 24px 80px rgba(0,0,0,.6);
}

.ps-modal .ps-modal-close {
    background: rgba(255,255,255,.05);
    border: none;
    color: var(--gwd-text-2);
    border-radius: 999px;
    transition: background .15s, color .15s;
}

.ps-modal .ps-modal-close:hover {
    background: rgba(255,107,129,.12);
    color: #FF6B81;
}

/* Neutralize legacy section chrome */
.ps-modal .ps-lead-details {
    background: transparent;
    border: none;
    padding: 4px 0 0;
    display: block;
}

/* ---------- Header ---------- */
.ps-mr-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 0 18px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.ps-mr-photo {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(79,128,255,.12);
    flex-shrink: 0;
}

.ps-mr-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ps-mr-initial {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 18px;
    font-weight: 600;
    color: var(--gwd-accent);
}

.ps-mr-id {
    flex: 1;
    min-width: 0;
}

.ps-mr-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--gwd-text-1);
    margin: 0 0 2px;
    line-height: 1.25;
}

.ps-mr-sub {
    font-size: 12.5px;
    color: var(--gwd-text-2);
    margin: 0;
    line-height: 1.4;
}

.ps-mr-score {
    order: -1;               /* move to the far left of the header */
    text-align: center;
    flex-shrink: 0;
    padding: 8px 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
}

.ps-mr-score-num {
    font-size: 22px;
    font-weight: 700;
    color: var(--gwd-text-2);
}

.ps-mr-score-max {
    font-size: 13px;
    color: var(--gwd-text-3);
}

.ps-mr-score-cap {
    display: block;
    font-size: 9.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gwd-text-3);
    margin-top: 1px;
}

.ps-mr-score.ps-score-excellent .ps-mr-score-num { color: #22D3A0; }
.ps-mr-score.ps-score-good .ps-mr-score-num      { color: var(--gwd-accent); }
.ps-mr-score.ps-score-average .ps-mr-score-num   { color: #FFB454; }
.ps-mr-score.ps-score-poor .ps-mr-score-num      { color: #FF6B81; }

/* ---------- Minimal sections ---------- */
.ps-mr-label {
    font-size: 10.5px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gwd-text-3);
    font-weight: 600;
    margin: 18px 0 8px;
}

.ps-mr-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 22px;
    font-size: 13.5px;
}

.ps-mr-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--gwd-text-2);
    word-break: break-all;
}

.ps-mr-item svg {
    color: var(--gwd-text-3);
    flex-shrink: 0;
}

.ps-mr-link,
.ps-mr-link:hover {
    color: var(--gwd-accent-2);
    text-decoration: none;
}

.ps-mr-link:hover {
    text-decoration: underline;
}

.ps-mr-text {
    color: var(--gwd-text-2);
    gap: 6px 10px;
}

.ps-mr-dot {
    color: var(--gwd-text-3);
}

.ps-mr-trigger {
    display: inline-flex;
    align-items: center;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gwd-accent);
    background: rgba(79,128,255,.08);
    border: 1px solid rgba(79,128,255,.35);
    margin-bottom: 8px;
}

.ps-mr-reasoning {
    font-size: 13.5px;
    color: var(--gwd-text-2);
    line-height: 1.6;
    border-left: 2px solid rgba(79,128,255,.5);
    padding-left: 12px;
}

.ps-mr-reasoning p {
    margin: 0 0 8px;
}

.ps-mr-reasoning p:last-child {
    margin-bottom: 0;
}

.ps-mr-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    font-size: 11px;
    color: var(--gwd-text-3);
    margin-top: 6px;
}

.ps-mr-lang {
    color: var(--gwd-text-3);
}

/* ---------- Variant tabs ---------- */
.ps-modal .ps-variant-tab-nav {
    background: var(--gwd-card);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 999px;
    padding: 5px;
    gap: 4px;
}

.ps-modal .ps-vtab-btn {
    background: transparent;
    border: none;
    border-radius: 999px;
    color: var(--gwd-text-2);
    font-weight: 600;
    transition: all .15s;
}

.ps-modal .ps-vtab-btn:hover {
    background: rgba(255,255,255,.06);
    color: var(--gwd-text-1);
}

.ps-modal .ps-vtab-btn.active {
    background: linear-gradient(135deg, var(--gwd-accent) 0%, var(--gwd-accent-2) 100%);
    color: #fff;
    box-shadow: 0 4px 18px rgba(79,128,255,.4);
}

.ps-modal .ps-vtab-pill {
    background: rgba(255,255,255,.12);
    color: inherit;
    border-radius: 999px;
}

.ps-modal .ps-vtab-btn.active .ps-vtab-pill {
    background: rgba(255,255,255,.25);
    color: #fff;
}

/* ---------- Variant panels (minimal: inputs only) ---------- */
.ps-modal .ps-vtab-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 12px 0 0;
    box-shadow: none;
}

.ps-modal .ps-char-count {
    color: var(--gwd-text-3);
}

.ps-modal .ps-subject-input {
    width: 100%;
    margin-bottom: 8px;
    padding: 9px 13px;
    font-size: 13px;
}

.ps-modal .ps-message-textarea {
    width: 100%;
    min-height: 140px;
    padding: 11px 13px;
    font-size: 13px;
    line-height: 1.55;
    resize: vertical;
}

.ps-modal .ps-subject-input,
.ps-modal .ps-message-textarea {
    background: var(--gwd-bg-1);
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 10px;
    color: var(--gwd-text-1);
    font-family: inherit;
    transition: border-color .15s, box-shadow .15s;
}

.ps-modal .ps-subject-input::placeholder,
.ps-modal .ps-message-textarea::placeholder {
    color: var(--gwd-text-3);
}

.ps-modal .ps-subject-input:focus,
.ps-modal .ps-message-textarea:focus {
    outline: none;
    border-color: var(--gwd-accent);
    box-shadow: 0 0 0 3px rgba(79,128,255,.18);
}

/* ---------- Modal footer buttons ---------- */
.ps-modal .ps-modal-footer {
    background: transparent;
    border-top: 1px solid rgba(255,255,255,.07);
}

.ps-modal .ps-btn {
    border-radius: 999px;
    font-family: inherit;
}

.ps-modal .ps-btn-primary {
    background: linear-gradient(135deg, var(--gwd-accent) 0%, var(--gwd-accent-2) 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(79,128,255,.35);
}

.ps-modal .ps-btn-primary:hover {
    background: linear-gradient(135deg, var(--gwd-accent) 0%, var(--gwd-accent-2) 100%);
    box-shadow: 0 6px 28px rgba(79,128,255,.5);
    transform: translateY(-1px);
}

.ps-modal .ps-btn-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,107,129,.4);
    color: #FF6B81;
}

.ps-modal .ps-btn-secondary:hover {
    background: rgba(255,107,129,.12);
    color: #FF6B81;
}

/* Loading spinner */
.ps-modal .ps-loading {
    color: var(--gwd-text-2);
}

.ps-modal .ps-spinner {
    border-color: rgba(255,255,255,.1);
    border-top-color: var(--gwd-accent);
}

/* =========================================================================
   NOTIFICATION BELL
   ========================================================================= */

.ps-notif-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.ps-notif-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: var(--gwd-text-2);
    cursor: pointer;
    position: relative;
    transition: background .15s, color .15s;
}

.ps-notif-btn:hover {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.ps-notif-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #E24B4A;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    border: 1.5px solid #0d0d0d;
}

.ps-notif-panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    background: #1a1f2e;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
}

.ps-notif-header {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    border-bottom: 1px solid rgba(255,255,255,.07);
}

.ps-notif-list {
    max-height: 340px;
    overflow-y: auto;
}

.ps-notif-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.05);
    cursor: pointer;
    transition: background .12s;
}

.ps-notif-item:last-child { border-bottom: none; }

.ps-notif-item:hover { background: rgba(255,255,255,.05); }

.ps-notif-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-notif-icon-reply  { background: rgba(52,168,83,.15);  color: #34a853; }
.ps-notif-icon-draft  { background: rgba(251,188,4,.15);  color: #fbbc04; }
.ps-notif-icon-pending { background: rgba(79,128,255,.15); color: var(--gwd-accent); }
.ps-notif-icon-found  { background: rgba(0,200,255,.15);  color: var(--gwd-accent-2); }

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

.ps-notif-name {
    font-size: 13px;
    font-weight: 500;
    color: #e8eaf0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ps-notif-desc {
    font-size: 11px;
    color: #6b7280;
    margin-top: 2px;
    line-height: 1.4;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ps-notif-time {
    font-size: 10px;
    color: #4b5563;
    margin-top: 3px;
}

.ps-notif-empty {
    padding: 24px 16px;
    text-align: center;
    font-size: 13px;
    color: #4b5563;
}

.ps-notif-loading {
    padding: 20px 16px;
    text-align: center;
    font-size: 12px;
    color: #4b5563;
}


/* =========================================================================
   Lead-fit feedback (👍/👎) — v1.6.0
   Pure client signal; does not affect outreach. Lives in the lead card footer.
   ========================================================================= */
.ps-fit-feedback {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 6px;
}
.ps-fit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.15s ease;
}
.ps-fit-btn:hover { background: #f3f4f6; color: #374151; }
.ps-fit-btn.ps-fit-like.is-active {
    background: #e7f5e9;
    border-color: #00a32a;
    color: #00a32a;
}
.ps-fit-btn.ps-fit-dislike.is-active {
    background: #ffe5e5;
    border-color: #d63638;
    color: #d63638;
}
.ps-fit-feedback.is-saving { opacity: 0.5; pointer-events: none; }

/* Lead-fit thumbs inside the dark review modal footer (v1.6.0) */
#ps-modal-actions { align-items: center; }
#ps-modal-fit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin-right: 4px;
}
#ps-modal-fit .ps-fit-label {
    font-size: 13px;
    color: #9ca3af;
    white-space: nowrap;
}
#ps-modal-fit .ps-fit-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border-color: rgba(255,255,255,.18);
    color: #cbd5e1;
}
#ps-modal-fit .ps-fit-btn:hover { background: rgba(255,255,255,.06); color: #fff; }
#ps-modal-fit .ps-fit-btn.ps-fit-like.is-active {
    background: rgba(0,163,42,.18);
    border-color: #00a32a;
    color: #34d399;
}
#ps-modal-fit .ps-fit-btn.ps-fit-dislike.is-active {
    background: rgba(214,54,56,.18);
    border-color: #d63638;
    color: #f87171;
}

/* =========================================================================
   Lead card — taller cards, status backgrounds & in-card lead-fit thumbs
   ========================================================================= */

/* 1) Taller cards */
.prospecting-dashboard .ps-lead-card {
    min-height: 420px;
}

/* 2) Status-based card backgrounds */
/* Approved/Deployed: neutral theme card + thin green edge — matches the rejected-card language */
.prospecting-dashboard .ps-lead-card.ps-status-approved,
.prospecting-dashboard .ps-lead-card.ps-status-deployed {
    background: var(--gwd-card);
    border-left: 3px solid rgba(74,222,128,.45);
    color: inherit;
}
/* Rejected: neutral theme card + thin red edge — the red is a signature, not a wash */
.prospecting-dashboard .ps-lead-card.ps-status-rejected {
    background: var(--gwd-card);
    border-left: 3px solid rgba(251,113,133,.45);
    color: inherit;
}
/* Archived: same language, amber edge (reason strip stays base amber) */
.prospecting-dashboard .ps-lead-card.ps-status-archived {
    background: var(--gwd-card);
    border-left: 3px solid rgba(255,180,84,.5);
    color: inherit;
}
.prospecting-dashboard .ps-lead-card.ps-status-not_qualified { background: #181818; }

/* 3) In-card lead-fit (👍/👎) row — sits between body and footer */
.prospecting-dashboard .ps-card-fit-row {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 4px 0 12px;
}
.prospecting-dashboard .ps-card-fit .ps-fit-label {
    font-size: 12.5px;
    color: var(--gwd-text-3);
    white-space: nowrap;
    margin-right: 2px;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn {
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    color: #cbd5e1;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn.ps-fit-like.is-active {
    background: rgba(0,163,42,.18);
    border-color: #00a32a;
    color: #34d399;
}
.prospecting-dashboard .ps-card-fit .ps-fit-btn.ps-fit-dislike.is-active {
    background: rgba(214,54,56,.18);
    border-color: #d63638;
    color: #f87171;
}

/* ✅ Resolve button — success tint, only shown on cards where the prospect replied */
.prospecting-dashboard .ps-btn.ps-resolve-lead {
    border: 1px solid rgba(34,211,160,.4);
    color: #22D3A0;
    background: rgba(34,211,160,.08);
}

.prospecting-dashboard .ps-btn.ps-resolve-lead:hover {
    background: rgba(34,211,160,.16);
    border-color: rgba(34,211,160,.6);
    color: #22D3A0;
}

/* ===================================
   TABS BAR — RESPONSIVE (v1.14.1)
   5 tabs + filter + actions no longer fit one row below ~1150px.
   Tablet/mobile: tabs become a full-width scrollable strip (row 1),
   filter + actions drop to their own right-aligned row (row 2).
   Overrides the old squish (.ps-tab{flex:1;min-width:80px}) and the
   old ≤700 wrap that produced the two-column tab mess.
   =================================== */
@media (max-width: 1150px) {
    .prospecting-dashboard .ps-tabs-wrapper {
        flex-wrap: wrap;
        row-gap: 8px;
        overflow: visible;
    }
    .prospecting-dashboard .ps-tabs {
        order: 1;
        flex: 1 1 100%;
        min-width: 0;
        overflow-x: auto;
        padding: 0;
        margin: 0;
    }
    .prospecting-dashboard .ps-tab {
        flex: 0 0 auto;      /* natural width — the STRIP scrolls, tabs never squish */
        min-width: 0;
        white-space: nowrap;
    }
    .prospecting-dashboard .ps-tabs-sep {
        display: none;
    }
    .prospecting-dashboard .ps-afilter-wrap {
        order: 2;
        margin: 0 auto 0 2px; /* filter left, actions right */
    }
    .prospecting-dashboard .ps-tabs-actions {
        order: 3;
        margin-left: auto;
    }
}

@media (max-width: 700px) {
    .prospecting-dashboard .ps-tab {
        padding: 9px 14px;
        font-size: 13.5px;
    }
    .prospecting-dashboard .ps-tabs-actions {
        width: 100%;
        justify-content: flex-end;
        gap: 8px;
    }
    .prospecting-dashboard .ps-tabs-actions .ps-download-trigger {
        flex: 1 1 auto;
        justify-content: center;
    }
    .prospecting-dashboard .ps-afilter-wrap {
        width: 100%;
        margin: 0;
    }
    .prospecting-dashboard .ps-afilter-btn {
        width: 100%;
        max-width: none;
        justify-content: space-between;
    }
}
/* =====================================================
   R25 · LEAD CARD FOOTER — redesigned action row (Sep 30 2026, mockup approved)
   Card size untouched: only the footer's internal layout changes.
   Structure: .ps-lf2 > .ps-lf-meta (age · opens · status pill)
                     > .ps-lf-actions (one primary + equal-height secondaries)
                     > .ps-outcome (segmented control)
   .ps-lf-btn is its own class so the theme's button rules and .ps-btn never apply.
===================================================== */
.prospecting-dashboard .ps-lead-card .ps-lead-footer.ps-lf2 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 0 0;
    margin-top: auto;
    border-top: 1px solid var(--gwd-border, rgba(255,255,255,.07));
    flex-wrap: nowrap;
}
.prospecting-dashboard .ps-lf2 .ps-lf-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    min-height: 26px;
}
.prospecting-dashboard .ps-lf2 .ps-lead-date {
    margin: 0;
    font-size: 12px;
    color: var(--gwd-text-3, #6a6f79);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.prospecting-dashboard .ps-lf2 .ps-lead-date .ps-email-tracking { margin-left: 8px; }
.prospecting-dashboard .ps-lf2 .ps-lf-status { display: inline-flex; align-items: center; margin-left: auto; }
/* status pills — one shape, colour = meaning */
.prospecting-dashboard .ps-lf2 .ps-followup-indicator,
.prospecting-dashboard .ps-lf2 .ps-reply-chip {
    margin: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.3;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.prospecting-dashboard .ps-lf2 .ps-followup-indicator.fu-active   { color: #a9b6ff; background: rgba(124,143,255,.12); border: 1px solid rgba(124,143,255,.3); }
.prospecting-dashboard .ps-lf2 .ps-followup-indicator.fu-complete { color: var(--gwd-text-2, #9da3af); background: rgba(255,255,255,.04); border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.13)); }
.prospecting-dashboard .ps-lf2 .ps-followup-indicator.fu-paused   { color: var(--gwd-amber, #FFB454); background: rgba(255,180,84,.1); border: 1px solid rgba(255,180,84,.3); }
.prospecting-dashboard .ps-lf2 .ps-followup-indicator.fu-replied,
.prospecting-dashboard .ps-lf2 .ps-reply-chip { color: var(--gwd-green, #22D3A0); background: rgba(34,211,160,.1); border: 1px solid rgba(34,211,160,.3); }
.prospecting-dashboard .ps-lf2 .ps-reply-chip .ps-reply-n { background: var(--gwd-green, #22D3A0); color: #062a20; border-radius: 999px; padding: 0 6px; font-size: 10.5px; font-weight: 800; min-width: 16px; text-align: center; line-height: 16px; }

/* action row */
.prospecting-dashboard .ps-lf2 .ps-lf-actions {
    display: flex;
    align-items: stretch;
    gap: 8px;
    width: 100%;
}
.prospecting-dashboard .ps-lf2 .ps-vera-revised-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; height: 38px;
    border: 1px solid rgba(91,140,255,.35); background: rgba(91,140,255,.10); border-radius: 10px;
    color: #8ea6ff; font-size: 11px; font-weight: 600; white-space: nowrap;
}
.prospecting-dashboard .ps-lf2 .ps-lf-btn,
.prospecting-dashboard .ps-lf2 .ps-lf-btn:visited {
    all: unset;
    box-sizing: border-box;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.13));
    background: rgba(255,255,255,.03);
    color: var(--gwd-text-1, #e6e8ec);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, border-color .15s, filter .15s;
    flex: 0 0 auto;
    min-width: 0;
}
.prospecting-dashboard .ps-lf2 .ps-lf-btn svg { flex: 0 0 auto; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.22); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn:focus-visible { outline: 2px solid var(--gwd-accent, #4F80FF); outline-offset: 2px; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn:disabled,
.prospecting-dashboard .ps-lf2 .ps-lf-btn[disabled] { opacity: .55; cursor: default; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-pri {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
    padding: 0 10px;
    background: var(--gwd-accent-g, linear-gradient(135deg, #4F80FF, #00C8FF));
    border-color: transparent;
    color: #fff;
    text-shadow: 0 1px 0 rgba(0,0,0,.15);
}
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-pri:hover { filter: brightness(1.07); background: var(--gwd-accent-g, linear-gradient(135deg, #4F80FF, #00C8FF)); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-pri::after { content: none !important; } /* kill .ps-btn-primary arrow if it ever cascades */
.prospecting-dashboard .ps-lf2 .ps-lf-cnt { background: rgba(0,0,0,.22); border-radius: 999px; padding: 2px 7px; font-size: 11px; line-height: 1.2; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-warn svg { color: var(--gwd-amber, #FFB454); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-warn:hover { background: rgba(255,180,84,.08); border-color: rgba(255,180,84,.35); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-ok { border-color: rgba(34,211,160,.35); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-ok svg { color: var(--gwd-green, #22D3A0); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-ok:hover { background: rgba(34,211,160,.1); }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-icon { width: 38px; padding: 0; }
/* the pause button keeps its legacy class for the JS; neutralise its old pill styling */
.prospecting-dashboard .ps-lf2 .ps-stop-followups { margin: 0; border-radius: 10px; font-size: 12.5px; }

/* outcome — segmented control (beats the inline .ps-outcome rules by specificity) */
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
    line-height: 1;
}
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-label {
    font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
    color: var(--gwd-text-3, #6a6f79); margin: 0;
}
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-seg {
    display: inline-flex;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.13));
    border-radius: 9px;
    overflow: hidden;
}
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn {
    all: unset;
    box-sizing: border-box;
    height: 28px;
    padding: 0 11px;
    display: inline-flex; align-items: center;
    border-right: 1px solid var(--gwd-border, rgba(255,255,255,.07));
    background: transparent;
    color: var(--gwd-text-2, #9da3af);
    font-family: inherit; font-size: 12px; font-weight: 600; line-height: 1;
    cursor: pointer;
    transition: background .14s, color .14s;
}
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn:last-child { border-right: 0; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn:hover { color: var(--gwd-text-1, #e6e8ec); background: rgba(255,255,255,.05); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active { color: #fff; background: rgba(79,128,255,.22); box-shadow: inset 0 0 0 1px rgba(79,128,255,.45); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-oc-none { color: var(--gwd-text-1, #e6e8ec); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-oc-won  { color: var(--gwd-green, #22D3A0); background: rgba(34,211,160,.14); box-shadow: inset 0 0 0 1px rgba(34,211,160,.4); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-oc-lost { color: var(--gwd-red, #FF6B81); background: rgba(255,107,129,.12); box-shadow: inset 0 0 0 1px rgba(255,107,129,.4); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome.is-busy { opacity: .6; pointer-events: none; }
/* R40 (1.64.0) — Reply: Positive / Neutral / Negative, next to Outcome */
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-md-positive { color: #86EFAC; background: rgba(74,222,128,.14); box-shadow: inset 0 0 0 1px rgba(74,222,128,.4); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-md-neutral  { color: var(--gwd-text-1, #e6e8ec); background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-md-negative { color: #FDBA74; background: rgba(249,115,22,.14); box-shadow: inset 0 0 0 1px rgba(249,115,22,.45); }

/* light theme keeps the same shapes; only the ghost fills flip */
.prospecting-dashboard[data-theme="daylight"] .ps-lf2 .ps-lf-btn { background: rgba(15,27,42,.03); }
.prospecting-dashboard[data-theme="daylight"] .ps-lf2 .ps-lf-btn:hover { background: rgba(15,27,42,.07); }
.prospecting-dashboard[data-theme="daylight"] .ps-lead-card .ps-lf2 .ps-outcome-seg { background: rgba(15,27,42,.03); }

/* phone: the old rule forced every .ps-btn to 100% — the new row stays a row */
@media (max-width: 768px) {
    .prospecting-dashboard .ps-lead-card .ps-lead-footer.ps-lf2 { flex-direction: column; align-items: stretch; }
    .prospecting-dashboard .ps-lf2 .ps-lf-actions { flex-wrap: wrap; }
    .prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-pri { flex-basis: 100%; }
}

/* R25b — lock the footer control sizes against the theme's global button rules
   (live check Sep 30 13:09: theme padding/margin made every button ~56px and
   pushed Pause/Archive down). Same selectors, now with !important on the
   box-model properties only; colours above still apply. */
.prospecting-dashboard .ps-lf2 .ps-lf-btn,
.prospecting-dashboard .ps-lf2 .ps-stop-followups {
    height: 38px !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 12px !important;
    line-height: 1 !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: 10px !important;
    border-width: 1px !important;
    border-style: solid !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
    vertical-align: middle !important;
    align-self: auto !important;
}
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-pri { padding: 0 10px !important; flex: 1 1 0 !important; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-icon { width: 38px !important; padding: 0 !important; flex: 0 0 38px !important; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn svg { width: 14px !important; height: 14px !important; margin: 0 !important; }
.prospecting-dashboard .ps-lf2 .ps-lf-btn.ps-lf-pri svg { width: 15px !important; height: 15px !important; }
.prospecting-dashboard .ps-lf2 .ps-lf-actions { margin: 0 !important; padding: 0 !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome { margin: 0 !important; padding: 0 !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-seg { margin: 0 !important; padding: 0 !important; height: 28px !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn {
    height: 26px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 11px !important;
    line-height: 1 !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: 0 !important;
    border-width: 0 1px 0 0 !important;
    border-style: solid !important;
    box-shadow: none !important;
    width: auto !important;
    min-width: 0 !important;
}
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn:last-child { border-width: 0 !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active { box-shadow: inset 0 0 0 1px rgba(79,128,255,.45) !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-oc-none { box-shadow: inset 0 0 0 1px rgba(255,255,255,.18) !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-oc-won  { box-shadow: inset 0 0 0 1px rgba(34,211,160,.4) !important; }
.prospecting-dashboard .ps-lead-card .ps-lf2 .ps-outcome-btn.is-active.ps-oc-lost { box-shadow: inset 0 0 0 1px rgba(255,107,129,.4) !important; }
.prospecting-dashboard .ps-lf2 .ps-vera-revised-chip { height: 38px !important; margin: 0 !important; padding: 0 10px !important; }
.prospecting-dashboard .ps-lf2 .ps-lf-meta { margin: 0 !important; padding: 0 !important; }
.prospecting-dashboard .ps-lf2 .ps-followup-indicator,
.prospecting-dashboard .ps-lf2 .ps-reply-chip { margin: 0 !important; padding: 4px 10px !important; height: auto !important; line-height: 1.3 !important; }
/* R25-P2: Details is an <a> now — keep it identical to the buttons */
.prospecting-dashboard .ps-lf2 a.ps-lf-btn,
.prospecting-dashboard .ps-lf2 a.ps-lf-btn:hover,
.prospecting-dashboard .ps-lf2 a.ps-lf-btn:visited { text-decoration: none !important; color: #fff !important; }

/* R25-A1 — wpautop armor for the redesigned footer. The dashboard shortcode's
   output passes through wpautop, which can wrap the action buttons in <p> and
   inject <br>. The footer is now emitted on one line (class-frontend.php), and
   whatever still slips through is made transparent here. */
.prospecting-dashboard .ps-lf2 p,
.prospecting-dashboard .ps-lf2 .ps-lf-actions > p,
.prospecting-dashboard .ps-lf2 .ps-lf-meta > p,
.prospecting-dashboard .ps-lf2 .ps-outcome > p {
    display: contents !important;
    margin: 0 !important;
    padding: 0 !important;
}
.prospecting-dashboard .ps-lf2 br { display: none !important; }
.prospecting-dashboard .ps-lead-card > p:empty { display: none !important; }

/* =====================================================
   R27 — Import / Export menu (replaces the Download Leads button in the
   tabs pill). A <details>: opens without JS, frontend.js closes it on an
   outside click or Esc. The summary keeps the .ps-download-trigger look.
   ===================================================== */
.prospecting-dashboard .ps-io { position: relative; display: inline-flex; flex-shrink: 0; margin: 0; padding: 0; border: 0; }
.prospecting-dashboard .ps-io > summary { list-style: none; cursor: pointer; user-select: none; gap: 8px; }
.prospecting-dashboard .ps-io > summary::-webkit-details-marker { display: none; }
.prospecting-dashboard .ps-io > summary::marker { content: ""; }
.prospecting-dashboard .ps-io > summary:focus-visible { outline: 2px solid var(--gwd-accent); outline-offset: 2px; }
.prospecting-dashboard .ps-io .ps-io-btn svg { flex-shrink: 0; }
.prospecting-dashboard .ps-io .ps-io-caret { opacity: .7; transition: transform .15s ease; }
.prospecting-dashboard .ps-io[open] .ps-io-caret { transform: rotate(180deg); }
.prospecting-dashboard .ps-io[open] > summary { background: rgba(255,255,255,.1); }
.prospecting-dashboard .ps-io-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 60;
    width: 272px;
    padding: 6px;
    background: var(--gwd-card);
    border: 1px solid var(--gwd-border-hi);
    border-radius: var(--ps-radius-md, 10px);
    box-shadow: var(--ps-shadow-lg, 0 10px 30px rgba(0,0,0,.5));
}
.prospecting-dashboard .ps-io-menu > p:empty { display: none; }
.prospecting-dashboard a.ps-io-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    color: var(--gwd-text-1);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}
.prospecting-dashboard a.ps-io-item:hover,
.prospecting-dashboard a.ps-io-item:focus-visible { background: rgba(91,140,255,.14); color: var(--gwd-text-1); text-decoration: none; outline: none; }
.prospecting-dashboard .ps-io-item > svg { flex-shrink: 0; margin-top: 1px; color: var(--gwd-accent-2); }
.prospecting-dashboard .ps-io-tx { display: block; min-width: 0; }
.prospecting-dashboard .ps-io-t { display: block; }
.prospecting-dashboard .ps-io-item small { display: block; margin-top: 2px; font-weight: 500; font-size: 11.5px; color: var(--gwd-text-3); }
.prospecting-dashboard .ps-io-ent {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .08em;
    vertical-align: 1px;
    color: #f5c542;
    background: rgba(245,197,66,.1);
    border: 1px solid rgba(245,197,66,.35);
}
.prospecting-dashboard[data-theme="daylight"] .ps-io[open] > summary { background: rgba(15,27,42,0.10); }
.prospecting-dashboard[data-theme="daylight"] a.ps-io-item:hover { background: rgba(14,165,233,.10); }
.prospecting-dashboard[data-theme="daylight"] .ps-io-ent { color: #9a7400; background: rgba(245,197,66,.16); }
@media (max-width: 768px) {
    .prospecting-dashboard .ps-tabs-actions .ps-io { flex: 1 1 auto; }
    .prospecting-dashboard .ps-tabs-actions .ps-io > summary { width: 100%; justify-content: center; }
    .prospecting-dashboard .ps-io-menu { width: min(272px, calc(100vw - 32px)); }
}

/* =====================================================
   R27 phase 4 — imported leads on the dashboard
   ===================================================== */
.prospecting-dashboard .ps-score-import .ps-card-score-ring {
    border-style: dashed;
    border-color: rgba(125, 162, 255, .55);
    color: #a9c1ff;
    background: rgba(91, 140, 255, .08);
}
.prospecting-dashboard .ps-card-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: -4px 0 12px; }
.prospecting-dashboard .ps-card-tags > p, .prospecting-dashboard .ps-card-tags br { display: none; }
.prospecting-dashboard .ps-card-tag {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.3;
    padding: 2px 8px;
    border-radius: 999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.prospecting-dashboard .ps-tag-import { color: #a9c1ff; background: rgba(91,140,255,.12); border: 1px solid rgba(91,140,255,.35); }
.prospecting-dashboard .ps-tag-ap     { color: #7dffb0; background: rgba(34,197,94,.1);  border: 1px solid rgba(34,197,94,.3); }
.prospecting-dashboard .ps-tag-old    { color: #ffe0a3; background: rgba(255,196,80,.09); border: 1px solid rgba(255,196,80,.3); }
.prospecting-dashboard[data-theme="daylight"] .ps-tag-import { color: #2f5bd8; }
.prospecting-dashboard[data-theme="daylight"] .ps-tag-ap     { color: #127a3f; }
.prospecting-dashboard[data-theme="daylight"] .ps-tag-old    { color: #8a5a00; }

/* Pending: imported-list chips + Approve all */
.prospecting-dashboard .ps-ilist-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.prospecting-dashboard .ps-ilist-bar > p { display: contents; margin: 0; }
.prospecting-dashboard .ps-ilist-bar br { display: none; }
.prospecting-dashboard a.ps-ilist-chip {
    display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--gwd-border); background: rgba(255,255,255,.03); color: var(--gwd-text-2);
    font-size: 12.5px; font-weight: 600; text-decoration: none; max-width: 280px;
}
.prospecting-dashboard a.ps-ilist-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospecting-dashboard a.ps-ilist-chip b { font-size: 11px; font-weight: 800; background: rgba(255,255,255,.08); border-radius: 999px; padding: 1px 7px; }
.prospecting-dashboard a.ps-ilist-chip:hover { color: var(--gwd-text-1); border-color: var(--gwd-border-hi); text-decoration: none; }
.prospecting-dashboard a.ps-ilist-chip.is-on { color: #fff; border-color: rgba(91,140,255,.6); background: rgba(91,140,255,.16); }
.prospecting-dashboard .ps-ilist-approve-wrap { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prospecting-dashboard .ps-ilist-approve,
.prospecting-dashboard .ps-ilist-cancel {
    display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px;
    font-family: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; line-height: 1; text-transform: none;
}
.prospecting-dashboard .ps-ilist-approve { border: 1px solid rgba(52,226,176,.45); background: rgba(52,226,176,.1); color: #34e2b0; }
.prospecting-dashboard .ps-ilist-approve:hover { background: rgba(52,226,176,.18); color: #34e2b0; }
.prospecting-dashboard .ps-ilist-approve.is-confirm { background: linear-gradient(180deg,#22c55e,#15974a); color: #fff; border-color: transparent; }
.prospecting-dashboard .ps-ilist-approve.is-busy { opacity: .75; cursor: progress; }
.prospecting-dashboard .ps-ilist-approve.is-disabled { margin-left: auto; cursor: default; opacity: .6; color: var(--gwd-text-3); border-color: var(--gwd-border); background: transparent; }
.prospecting-dashboard .ps-ilist-cancel { border: 1px solid var(--gwd-border); background: transparent; color: var(--gwd-text-2); }
.prospecting-dashboard .ps-ilist-note { font-size: 11.5px; color: var(--gwd-text-3); }

/* =====================================================
   R28 — Autopilot works through the leads already in Pending
   ===================================================== */
.prospecting-dashboard .ps-ap-strip {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin: 0 0 12px;
    border-radius: 14px; border: 1px solid rgba(34,197,94,.35);
    background: linear-gradient(90deg, rgba(34,197,94,.1), rgba(34,211,238,.05));
}
.prospecting-dashboard .ps-ap-strip > p { display: contents; margin: 0; }
.prospecting-dashboard .ps-ap-strip br, .prospecting-dashboard .ps-ap-strip-note br { display: none; }
.prospecting-dashboard .ps-ap-strip-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,197,94,.18); color: #7dffb0; flex: 0 0 auto; }
.prospecting-dashboard .ps-ap-strip-tx { flex: 1 1 280px; min-width: 0; font-size: 13px; color: var(--gwd-text-2); line-height: 1.5; }
.prospecting-dashboard .ps-ap-strip-tx b { color: var(--gwd-text-1); }
.prospecting-dashboard .ps-ap-strip-bar { display: block; flex: 0 1 180px; min-width: 120px; }
.prospecting-dashboard .ps-ap-strip-track { display: block; height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.prospecting-dashboard .ps-ap-strip-track i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #22d3ee); border-radius: 999px; }
.prospecting-dashboard .ps-ap-strip-bar small { display: block; font-size: 11px; color: var(--gwd-text-3); margin-top: 5px; text-align: right; }
.prospecting-dashboard .ps-ap-strip-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 14px; padding: 0 4px; font-size: 12px; color: #ffe0a3; line-height: 1.45; }
.prospecting-dashboard .ps-ap-strip-note svg { flex: 0 0 auto; margin-top: 1px; }
.prospecting-dashboard[data-theme="daylight"] .ps-ap-strip-note { color: #8a5a00; }

/* Enable dialog: the leads already in Pending (modal styles are fixed-dark, like the rest of it) */
.ps-ap-backlog { border: 1px solid rgba(34,211,238,.28); background: linear-gradient(180deg, rgba(34,211,238,.07), rgba(79,139,255,.05)); border-radius: 14px; padding: 14px 16px; margin: 4px 0 16px; }
.ps-ap-backlog > p { margin: 0; }
.ps-ap-backlog br { display: none; }
.ps-ap-bl-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 0; }
.ps-ap-bl-row input { flex: 0 0 auto; width: 19px; height: 19px; margin: 2px 0 0; accent-color: #4f8bff; cursor: pointer; }
.ps-ap-bl-body { display: block; min-width: 0; }
.ps-ap-bl-title { font-size: 14.5px; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ps-ap-bl-count { font-size: 12px; font-weight: 800; color: #bff4ff; background: rgba(34,211,238,.16); border: 1px solid rgba(34,211,238,.35); border-radius: 999px; padding: 1px 9px; }
.ps-ap-bl-sub { display: block; font-size: 13px; color: #aeb6c6; line-height: 1.55; margin-top: 3px; }
.ps-ap-bl-sub b { color: #e7ebf3; }
.ps-ap-bl-off { display: none; }
.ps-ap-backlog.is-off .ps-ap-bl-on, .ps-ap-backlog.is-off .ps-ap-plan, .ps-ap-backlog.is-off .ps-ap-bl-old { display: none; }
.ps-ap-backlog.is-off .ps-ap-bl-off { display: block; }
.ps-ap-plan { display: flex; gap: 6px; margin: 12px 0 0 31px; }
.ps-ap-plan i { flex: 1; min-width: 0; font-style: normal; border-radius: 8px; background: rgba(79,139,255,.14); border: 1px solid rgba(79,139,255,.25); padding: 6px 8px; font-size: 11px; color: #9fb9ff; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-ap-plan i b { display: block; font-size: 14px; color: #fff; }
.ps-ap-plan i.today { background: linear-gradient(180deg, rgba(79,139,255,.45), rgba(47,107,255,.35)); border-color: rgba(120,160,255,.6); color: #dbe6ff; }
.ps-ap-bl-old { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0 31px; font-size: 12px; color: #ffe0a3; line-height: 1.45; }
.ps-ap-bl-old svg { flex: 0 0 auto; margin-top: 1px; }
@media (max-width: 560px) {
    .ps-ap-plan, .ps-ap-bl-old { margin-left: 0; }
    .ps-ap-plan { flex-wrap: wrap; }
    .ps-ap-plan i { flex: 1 1 60px; }
}
/* R27/R28 daylight contrast */
.prospecting-dashboard[data-theme="daylight"] a.ps-ilist-chip.is-on { color: #1d4ed8; background: rgba(14,165,233,.12); border-color: rgba(14,165,233,.5); }
.prospecting-dashboard[data-theme="daylight"] a.ps-ilist-chip b { background: rgba(15,27,42,.08); }
.prospecting-dashboard[data-theme="daylight"] .ps-ilist-approve { color: #127a3f; border-color: rgba(18,122,63,.45); background: rgba(34,197,94,.1); }
.prospecting-dashboard[data-theme="daylight"] .ps-ilist-approve.is-confirm { color: #fff; }
.prospecting-dashboard[data-theme="daylight"] .ps-ap-strip-ic { color: #127a3f; }
.prospecting-dashboard[data-theme="daylight"] .ps-ap-strip-track { background: rgba(15,27,42,.1); }
.prospecting-dashboard[data-theme="daylight"] .ps-score-import .ps-card-score-ring { color: #2f5bd8; border-color: rgba(47,91,216,.5); }

/* 1.34.1 — typed text stays readable in focused fields (Amir, Oct 2 2026). The theme's
   global.min.css (Kadence) sets input[type="text"]:focus { color: var(--global-palette3) },
   i.e. #25323b, with higher specificity than our field colours, so on the dark login form
   (and any dark .ps-input) the text went near-invisible while typing. Doubled class = more
   specific than the theme rule, without !important. */
.ps-input.ps-input:focus { color: #7dd3fc; }
.prospecting-login-box .ps-input.ps-input:focus { color: #eaf6ff; }
.prospecting-dashboard .ps-search.ps-search input:focus { color: var(--gwd-text-1); }

/* 1.34.2 — "Show password" on the login form (Amir, Oct 2 2026): sits on the Password label's
   row, right-aligned. The row keeps the old label-to-field gap (32px = what the label + the
   wpautop <br> gave before), so nothing else on the form moves. */
.prospecting-login-box .ps-pwd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.prospecting-login-box .ps-pwd-head > label { margin: 0; }
.prospecting-login-box .ps-pwd-head .ps-show-pwd { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; user-select: none; font-weight: 500; font-size: 13px; color: #9fb4c8; letter-spacing: .2px; }
.prospecting-login-box .ps-pwd-head .ps-show-pwd:hover { color: #eaf6ff; }
.prospecting-login-box .ps-show-pwd .ps-checkbox { width: 16px; height: 16px; border-radius: 4px; }
.prospecting-login-box .ps-show-pwd .ps-checkbox:checked::after { left: 4px; top: 1px; width: 5px; height: 9px; }
.prospecting-login-box .ps-show-pwd .ps-checkbox:focus-visible { outline: 2px solid #0ea5e9; outline-offset: 2px; }

/* 1.34.3 — Campaign Configuration page dark from the first paint (body class added in
   class-frontend.php). Its own dark styling arrives with the form, partway down the page;
   until then Kadence's boxed content area (body.page .content-bg) was white, which flashed
   on every reload and on Submit. */
body.qai-dark-app { background-color: #07080C !important; }
body.qai-dark-app .content-bg,
body.qai-dark-app .site,
body.qai-dark-app .site-main,
body.qai-dark-app article.page,
body.qai-dark-app .entry-content { background-color: transparent !important; }

/* 1.34.4 — "Remember me" tick box beside its text on the login form (Amir, Oct 2 2026).
   .ps-form-group label { display: block } outranked .ps-checkbox-label's flex, and the
   wpautop <br>s (now gone from the markup) stacked the box above the text. */
.prospecting-login-box .ps-checkbox-group .ps-checkbox-label { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; }
.prospecting-login-box .ps-checkbox-group { margin-top: 4px; }

/* 1.35.0 — login page messages (wrong / empty password, reset link sent). The ⚠️ / ✅ come
   from .ps-alert-error / .ps-alert-success ::before. */
.prospecting-login-box .qai-login-note { align-items: center; }
.prospecting-login-box .qai-login-note a.qai-login-reset { color: #ffffff; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.prospecting-login-box .qai-login-note a.qai-login-reset:hover { color: #9fd0ff; }

/* 1.53.0 FIX (Amir, Oct 13 2026): the header row (Autopilot, credits, Manual Search, Launch Vera,
   search + sort) stopped fitting on one line once the credits pill joined it. .ps-header-tools is capped
   at 860px and never wrapped above 860px of screen, so the search box ran past the dashboard's edge and
   the sort menu was cut off ("Newest fi…"). The row now wraps: the buttons stay on the first line and
   search + sort move to the next line whenever they don't fit. */
.prospecting-dashboard .ps-header-tools {
    flex-wrap: wrap;
    max-width: 100%;
    row-gap: 10px;
}
.prospecting-dashboard .ps-header-tools .ps-toolbar {
    flex: 1 1 420px;
    max-width: 640px;
    min-width: 0;
}

/* =====================================================
   1.55.0 — Upcoming follow-ups (Approved tab, ?view=followups)
   Mockup followup-preview-mockup-2026-10-14.html. Markup from includes/qai-followups.php.
   ===================================================== */
.prospecting-dashboard .qfu-segrow { display: flex; justify-content: center; margin: 12px 0 4px; }
.prospecting-dashboard .qfu-seg { display: inline-flex; gap: 2px; background: var(--gwd-card); border: 1px solid var(--gwd-border-hi); border-radius: 999px; padding: 3px; max-width: 100%; overflow-x: auto; }
.prospecting-dashboard .qfu-seg a { font-size: 12.5px; font-weight: 700; color: var(--gwd-text-2); border-radius: 999px; padding: 7px 14px; white-space: nowrap; text-decoration: none !important; line-height: 1.3; }
.prospecting-dashboard .qfu-seg a:hover { color: var(--gwd-text-1); }
.prospecting-dashboard .qfu-seg a.on { background: var(--gwd-accent-g); color: #fff; }
.prospecting-dashboard .qfu-seg .qfu-c { font-size: 11px; font-weight: 800; background: rgba(139,124,255,.22); color: var(--gwd-text-1); border-radius: 999px; padding: 1px 7px; margin-left: 5px; }
.prospecting-dashboard .qfu-seg a.on .qfu-c { background: rgba(255,255,255,.25); color: #fff; }

.prospecting-dashboard .qfu-list { max-width: 1010px; margin: 8px auto 0; }
.prospecting-dashboard .qfu-day { display: flex; align-items: center; gap: 10px; margin: 20px 4px 10px; font-size: 13px; color: var(--gwd-text-1); }
.prospecting-dashboard .qfu-day b { font-weight: 800; }
.prospecting-dashboard .qfu-day small { font-weight: 600; color: var(--gwd-text-2); font-size: 12.5px; }
.prospecting-dashboard .qfu-day i { flex: 1; height: 1px; background: var(--gwd-border-hi); }

.prospecting-dashboard .qfu-row { background: var(--gwd-card); border: 1px solid var(--gwd-border); border-radius: 14px; padding: 14px 16px; color: var(--gwd-text-1); margin-bottom: 10px; transition: opacity .25s, transform .25s; }
.prospecting-dashboard .qfu-row.open { border-color: rgba(79,128,255,.55); box-shadow: 0 0 0 3px rgba(79,128,255,.10); }
.prospecting-dashboard .qfu-row.is-gone { opacity: 0; transform: translateY(-4px); }
.prospecting-dashboard .qfu-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.prospecting-dashboard .qfu-av { width: 40px; height: 40px; border-radius: 50%; background: rgba(79,128,255,.16); color: var(--gwd-accent); font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; font-size: 13px; }
.prospecting-dashboard .qfu-who { flex: 1 1 220px; min-width: 0; }
.prospecting-dashboard .qfu-who b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 18px; font-weight: 700; color: var(--gwd-text-1); }
.prospecting-dashboard .qfu-who small { display: block; font-size: 12px; color: var(--gwd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospecting-dashboard .qfu-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.prospecting-dashboard .qfu-stg { font-size: 11.5px; font-weight: 700; color: var(--gwd-text-1); background: rgba(79,128,255,.14); border: 1px solid rgba(79,128,255,.4); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.prospecting-dashboard .qfu-chip { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.prospecting-dashboard .qfu-chip[hidden] { display: none; }
.prospecting-dashboard .qfu-auto { color: #22D3A0; background: rgba(34,211,160,.10); border: 1px solid rgba(34,211,160,.4); }
.prospecting-dashboard .qfu-wait { color: #FFB454; background: rgba(255,180,84,.10); border: 1px solid rgba(255,180,84,.45); }
.prospecting-dashboard .qfu-edited { color: #b9adff; background: rgba(139,124,255,.12); border: 1px solid rgba(139,124,255,.45); }
.prospecting-dashboard .qfu-subj { margin: 10px 0 2px; font-size: 13px; font-weight: 600; color: var(--gwd-text-1); overflow-wrap: anywhere; }
.prospecting-dashboard .qfu-prev { font-size: 13px; color: var(--gwd-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.prospecting-dashboard .qfu-subj[hidden], .prospecting-dashboard .qfu-prev[hidden], .prospecting-dashboard .qfu-editor[hidden], .prospecting-dashboard .qfu-msg[hidden], .prospecting-dashboard .qfu-b[hidden] { display: none !important; }

.prospecting-dashboard .qfu-editor { margin-top: 12px; }
.prospecting-dashboard .qfu-editor label { display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--gwd-text-3); margin: 10px 0 6px; }
.prospecting-dashboard .qfu-editor label .qfu-when { text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--gwd-text-2); }
.prospecting-dashboard .qfu-editor input.qfu-in-subj,
.prospecting-dashboard .qfu-editor textarea.qfu-in-body { width: 100%; box-sizing: border-box; background: var(--gwd-bg-1); border: 1px solid var(--gwd-border-hi); border-radius: 10px; padding: 10px 14px; color: var(--gwd-text-1); font-family: inherit; font-size: 13.5px; line-height: 1.6; margin: 0; }
.prospecting-dashboard .qfu-editor textarea.qfu-in-body { min-height: 180px; resize: vertical; }
.prospecting-dashboard .qfu-editor input.qfu-in-subj:focus,
.prospecting-dashboard .qfu-editor textarea.qfu-in-body:focus { outline: none; border-color: var(--gwd-accent); box-shadow: 0 0 0 3px rgba(79,128,255,.15); }
.prospecting-dashboard .qfu-note { margin-top: 10px; font-size: 12.5px; color: var(--gwd-text-2); background: rgba(255,180,84,.07); border: 1px solid rgba(255,180,84,.3); border-radius: 9px; padding: 8px 10px; }
.prospecting-dashboard .qfu-note b { color: #FFB454; }

.prospecting-dashboard .qfu-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; align-items: center; }
.prospecting-dashboard .qfu-b,
.prospecting-dashboard button.qfu-b { font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.3; border-radius: 10px; padding: 8px 12px; border: 1px solid var(--gwd-border-hi); background: rgba(255,255,255,.03); color: var(--gwd-text-1); cursor: pointer; white-space: nowrap; text-decoration: none !important; box-shadow: none; text-transform: none; letter-spacing: 0; }
.prospecting-dashboard button.qfu-b:hover { background: rgba(255,255,255,.07); color: var(--gwd-text-1); }
.prospecting-dashboard button.qfu-b:disabled { opacity: .55; cursor: default; }
.prospecting-dashboard button.qfu-pri, .prospecting-dashboard button.qfu-pri:hover { background: var(--gwd-accent-g); border-color: transparent; color: #fff; }
.prospecting-dashboard button.qfu-warn { color: #FFB454; border-color: rgba(255,180,84,.4); }
.prospecting-dashboard button.qfu-skip.is-armed { color: #FF6B81; border-color: rgba(255,107,129,.5); }
.prospecting-dashboard a.qfu-ghost { margin-left: auto; color: var(--gwd-accent); border-color: transparent; background: none; }
.prospecting-dashboard a.qfu-ghost:hover { text-decoration: underline !important; }
.prospecting-dashboard .qfu-msg { margin-top: 8px; font-size: 12.5px; color: #22D3A0; }
.prospecting-dashboard .qfu-msg.is-bad { color: #FF6B81; }
.prospecting-dashboard .qfu-done { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--gwd-border-hi); font-size: 13px; color: var(--gwd-text-2); }
.prospecting-dashboard .qfu-done button.qfu-b { padding: 5px 10px; }
.prospecting-dashboard .qfu-empty { margin-top: 18px; }
.prospecting-dashboard .qfu-list p:empty, .prospecting-dashboard .qfu-list br { display: none; }

@media (max-width: 640px) {
    .prospecting-dashboard .qfu-row { padding: 12px; }
    .prospecting-dashboard .qfu-who { flex: 1 1 140px; }
    .prospecting-dashboard .qfu-chips { flex-basis: 100%; }
    .prospecting-dashboard .qfu-act .qfu-b { flex: 1 1 auto; text-align: center; }
    .prospecting-dashboard a.qfu-ghost { margin-left: 0; }
}

/* Daylight */
.prospecting-dashboard[data-theme="daylight"] .qfu-row { box-shadow: 0 1px 3px rgba(15,27,42,.06); }
.prospecting-dashboard[data-theme="daylight"] button.qfu-b { background: rgba(15,27,42,.03); }
.prospecting-dashboard[data-theme="daylight"] button.qfu-b:hover { background: rgba(15,27,42,.07); }
.prospecting-dashboard[data-theme="daylight"] button.qfu-pri, .prospecting-dashboard[data-theme="daylight"] button.qfu-pri:hover { background: var(--gwd-accent-g); color: #fff; }
.prospecting-dashboard[data-theme="daylight"] .qfu-auto { color: #047857; }
.prospecting-dashboard[data-theme="daylight"] .qfu-wait, .prospecting-dashboard[data-theme="daylight"] button.qfu-warn, .prospecting-dashboard[data-theme="daylight"] .qfu-note b { color: #9a5b00; }
.prospecting-dashboard[data-theme="daylight"] .qfu-edited { color: #5b4bd6; }
.prospecting-dashboard[data-theme="daylight"] .qfu-msg { color: #047857; }
.prospecting-dashboard[data-theme="daylight"] .qfu-seg .qfu-c { background: #ede9ff; color: #5b4bd6; }
.prospecting-dashboard[data-theme="daylight"] .qfu-seg a.on .qfu-c { background: rgba(255,255,255,.3); color: #fff; }
/* Bell heads-up link line */
.ps-notif-item .ps-notif-link { color: var(--gwd-accent, #4F80FF); font-weight: 700; }

/* =====================================================
   1.59.0 Load more (mockup "Lead list · Load more", approved Oct 22 2026)
   Under the lead grid: "Showing X of Y", a thin progress bar and the Load more pill.
   !important where the Elementor kit styles bare <button>s.
   ===================================================== */
.prospecting-dashboard .ps-more {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 28px 0 8px;
    text-align: center;
    box-sizing: border-box;
}
.prospecting-dashboard .ps-more-count {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gwd-text-2);
}
.prospecting-dashboard .ps-more-count b { color: var(--gwd-text-1); font-weight: 700; }
.prospecting-dashboard .ps-more-bar {
    display: block;
    width: 240px;
    max-width: 70%;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
}
.prospecting-dashboard .ps-more-bar i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--gwd-accent-g);
    transition: width .3s ease;
}
.prospecting-dashboard button.ps-more-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 9px !important;
    height: 46px !important;
    min-height: 46px !important;
    margin: 0 !important;
    padding: 0 26px !important;
    border-radius: 999px !important;
    border: 1px solid var(--gwd-border-hi) !important;
    background: rgba(255,255,255,.06) !important;
    color: var(--gwd-text-1) !important;
    font-family: inherit !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    box-shadow: none !important;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.prospecting-dashboard button.ps-more-btn:hover,
.prospecting-dashboard button.ps-more-btn:focus {
    background: rgba(255,255,255,.1) !important;
    border-color: var(--gwd-accent) !important;
    color: var(--gwd-text-1) !important;
}
.prospecting-dashboard button.ps-more-btn:focus-visible { outline: 2px solid var(--gwd-accent); outline-offset: 2px; }
.prospecting-dashboard button.ps-more-btn[disabled] { cursor: default; color: var(--gwd-text-2) !important; border-color: var(--gwd-border-hi) !important; }
.prospecting-dashboard .ps-more-btn svg { flex-shrink: 0; color: var(--gwd-accent-2); }
.prospecting-dashboard .ps-more-btn.is-busy svg { animation: psMoreSpin .8s linear infinite; }
@keyframes psMoreSpin { to { transform: rotate(360deg); } }
.prospecting-dashboard .ps-more-done {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gwd-text-2);
}
.prospecting-dashboard .ps-more-done svg { flex-shrink: 0; color: var(--gwd-green, #22D3A0); }
.prospecting-dashboard .ps-more-err { font-size: 12.5px; color: var(--gwd-red, #FF6B81); }
.prospecting-dashboard .ps-more-err[hidden] { display: none !important; }
@media (max-width: 600px) {
    .prospecting-dashboard .ps-more { padding-top: 20px; }
    .prospecting-dashboard button.ps-more-btn { width: 100% !important; }
}
/* Daylight */
.prospecting-dashboard[data-theme="daylight"] .ps-more-bar { background: rgba(15,27,42,.08); }
.prospecting-dashboard[data-theme="daylight"] button.ps-more-btn { background: rgba(15,27,42,.03) !important; }
.prospecting-dashboard[data-theme="daylight"] button.ps-more-btn:hover,
.prospecting-dashboard[data-theme="daylight"] button.ps-more-btn:focus { background: rgba(15,27,42,.07) !important; }
.prospecting-dashboard[data-theme="daylight"] .ps-more-done svg { color: #047857; }

/* 1.67.0 — "Follow-ups need my approval" (My account). Strip above Upcoming follow-ups,
   the "Waiting since" group, and the "Are you sure you want to send this follow-up?" dialog
   (the dialog sits on <body>; frontend.js copies the dashboard theme's colours onto it). */
.prospecting-dashboard .qfu-need { max-width: 1010px; margin: 10px auto 0; box-sizing: border-box; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-radius: 12px; background: rgba(255,180,84,.07); border: 1px solid rgba(255,180,84,.35); color: #FFB454; }
.prospecting-dashboard .qfu-need svg { flex: none; }
.prospecting-dashboard .qfu-need-tx { flex: 1 1 260px; font-size: 13px; line-height: 1.5; color: var(--gwd-text-2); }
.prospecting-dashboard .qfu-need-tx b { color: var(--gwd-text-1); font-weight: 800; }
.prospecting-dashboard a.qfu-need-link { font-size: 12.5px; font-weight: 700; color: var(--gwd-accent); text-decoration: none !important; white-space: nowrap; }
.prospecting-dashboard a.qfu-need-link:hover { text-decoration: underline !important; }
.prospecting-dashboard .qfu-day-wait b { color: #FFB454; }
.prospecting-dashboard .qfu-day-wait.is-done b, .prospecting-dashboard[data-theme="daylight"] .qfu-day-wait.is-done b { color: var(--gwd-text-1); }
.prospecting-dashboard[data-theme="daylight"] .qfu-need { color: #9a5b00; }
.prospecting-dashboard[data-theme="daylight"] .qfu-day-wait b { color: #9a5b00; }

.qai-ask-ov { position: fixed; inset: 0; z-index: 1000000; background: rgba(3,6,12,.72); display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; font-family: 'Plus Jakarta Sans', -apple-system, 'Segoe UI', sans-serif; }
.qai-ask-ov .qai-ask { width: 540px; max-width: 100%; box-sizing: border-box; background: var(--gwd-card, #181D27); color: var(--gwd-text-1, #EEF0F6); border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.13)); border-radius: 16px; padding: 26px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 14px; text-align: left; }
.qai-ask-ov .qai-ask-t { font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--gwd-text-1, #EEF0F6); }
.qai-ask-ov .qai-ask-box { display: grid; grid-template-columns: 90px minmax(0, 1fr); row-gap: 8px; column-gap: 12px; font-size: 13.5px; line-height: 1.45; padding: 14px 16px; border-radius: 12px; background: var(--gwd-bg-1, #0E1117); border: 1px solid var(--gwd-border, rgba(255,255,255,.08)); }
.qai-ask-ov .qai-ask-k { color: var(--gwd-text-3, #8490A8); }
.qai-ask-ov .qai-ask-v { color: var(--gwd-text-1, #EEF0F6); overflow-wrap: anywhere; min-width: 0; }
.qai-ask-ov .qai-ask-v b { font-weight: 700; }
.qai-ask-ov .qai-ask-em { color: var(--gwd-text-2, #98A2B8); }
.qai-ask-ov [hidden] { display: none !important; }
.qai-ask-ov .qai-ask-err { font-size: 13px; color: #FF6B81; }
.qai-ask-ov .qai-ask-btns { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.qai-ask-ov .qai-ask-btns button { height: 44px !important; min-height: 0 !important; padding: 0 22px !important; margin: 0 !important; border-radius: 999px !important; font-family: inherit !important; font-size: 14px !important; font-weight: 700 !important; line-height: 1 !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; box-shadow: none !important; width: auto !important; }
.qai-ask-ov button.qai-ask-no { border: 1px solid var(--gwd-border-hi, rgba(255,255,255,.13)) !important; background: rgba(255,255,255,.04) !important; color: var(--gwd-text-1, #EEF0F6) !important; }
.qai-ask-ov button.qai-ask-no:hover { background: rgba(255,255,255,.09) !important; }
.qai-ask-ov button.qai-ask-yes { border: none !important; background: var(--gwd-accent-g, linear-gradient(135deg, #4F80FF, #00C8FF)) !important; color: #fff !important; }
.qai-ask-ov button:disabled { opacity: .6; cursor: default; }
.qai-ask-ov button:focus-visible { outline: 2px solid var(--gwd-accent, #4F80FF) !important; outline-offset: 2px; }
.qai-ask-ov[data-theme="daylight"] { background: rgba(15,27,42,.45); }
.qai-ask-ov[data-theme="daylight"] .qai-ask { box-shadow: 0 30px 80px rgba(15,27,42,.25); }
.qai-ask-ov[data-theme="daylight"] button.qai-ask-no { background: rgba(15,27,42,.03) !important; }
@media (max-width: 640px) {
    .qai-ask-ov { align-items: flex-end; padding: 0; }
    .qai-ask-ov .qai-ask { width: 100%; border-radius: 18px 18px 0 0; padding: 22px 18px 26px; }
    .qai-ask-ov .qai-ask-t { font-size: 18px; }
    .qai-ask-ov .qai-ask-box { grid-template-columns: 76px minmax(0, 1fr); }
    .qai-ask-ov .qai-ask-btns { flex-direction: column-reverse; }
    .qai-ask-ov .qai-ask-btns button { width: 100% !important; height: 50px !important; font-size: 15px !important; }
}

/* 1.84.0 Pause all / Resume all follow-ups (Approved tab) */
.qai-fub{display:flex;align-items:center;gap:10px;margin:12px 4px 4px;font-size:13px;color:var(--gwd-text-3,#8490A8)}
.qai-fub-dot{width:7px;height:7px;border-radius:50%;background:#22d3a0;flex:0 0 auto}
.qai-fub.is-paused .qai-fub-dot{background:#ffb454}
.qai-fub-cnt{white-space:nowrap}.qai-fub-cnt b{color:var(--gwd-text-1,#EEF0F6);font-weight:600}
.qai-fub .qai-fub-btn{margin-left:auto;white-space:nowrap;background:none!important;border:1px solid rgba(255,255,255,.14)!important;color:var(--gwd-text-1,#EEF0F6)!important;border-radius:999px!important;padding:5px 13px!important;font-size:12.5px!important;font-weight:600!important;font-family:inherit;cursor:pointer;line-height:1.3!important;box-shadow:none!important;text-transform:none!important}
.qai-fub .qai-fub-btn:hover{border-color:rgba(255,255,255,.3)!important}
/* 1.85.2: Resume all + Pause all side by side; a button with nothing to do is greyed out */
.qai-fub-btns{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.qai-fub .qai-fub-btns .qai-fub-btn{margin-left:0;display:inline-flex;align-items:center;gap:6px;min-height:32px}
.qai-fub .qai-fub-btn.qai-fub-resume{background:rgba(34,211,160,.12)!important;border-color:rgba(34,211,160,.45)!important;color:#7ef0c9!important}
.qai-fub .qai-fub-btn.qai-fub-resume:hover{border-color:rgba(34,211,160,.75)!important}
.qai-fub .qai-fub-btn[disabled],.qai-fub .qai-fub-btn[disabled]:hover{background:none!important;border-color:rgba(255,255,255,.08)!important;color:#7d8699!important;cursor:default}
@media(max-width:600px){.qai-fub-lbl{display:none}.qai-fub{font-size:12.5px;flex-wrap:wrap}}
.qai-fub-ov{position:fixed;inset:0;background:rgba(0,0,0,.6);display:flex;align-items:center;justify-content:center;z-index:100000}
.qai-fub-dlg{width:min(400px,92vw);background:#121620;border:1px solid rgba(255,255,255,.1);border-radius:18px;padding:20px 22px;color:#EEF0F6;box-shadow:0 30px 80px rgba(0,0,0,.6)}
.qai-fub-dlg h3{margin:0 0 6px;font-size:17px;color:#EEF0F6}.qai-fub-dlg p{color:#C7CEDC;margin:0 0 16px;font-size:13.5px;line-height:1.5}
.qai-fub-err{color:#ff8a9b;font-size:13px;margin:-6px 0 12px}
.qai-fub-acts{display:flex;gap:10px;justify-content:flex-end}
.qai-fub-acts button{border-radius:999px!important;padding:9px 18px!important;font-weight:600!important;font-family:inherit;cursor:pointer;font-size:13.5px!important;box-shadow:none!important;text-transform:none!important}
.qai-fub-c{border:1px solid rgba(255,255,255,.15)!important;background:transparent!important;color:#C7CEDC!important}
.qai-fub-ok{border:0!important;color:#111!important;background:#ffb454!important}.qai-fub-ok.g{background:#22d3a0!important}.qai-fub-ok[disabled]{opacity:.6}

