/* =============================================================================
   TalentVelo 2026 Redesign - Phase 1 Design System (talentvelo-v2.css)
   -----------------------------------------------------------------------------
   Loaded LAST inside head-common (after legacy styles) so visual upgrades apply
   cleanly without breaking Spring Boot / Thymeleaf bindings.
   Strictly Preserved Untouched:
     - Existing TalentVelo Brand Logo (.tv-brand, logo.svg, wordmark, slogan)
     - Existing Role-Based Footer (footer.tv-footer, .tv-footer-workspace)
     - Existing Admin Impersonation Bar, Live Chat, Global Search & Toasts
   ============================================================================= */

:root,
html[data-theme="light"] {
    --v2-bg: #F6F8FC;
    --v2-surface: #FFFFFF;
    --v2-surface-soft: #F8FAFC;
    --v2-surface-hover: #F1F5F9;
    --v2-ink: #0F172A;
    --v2-ink-2: #334155;
    --v2-muted: #64748B;
    --v2-border: #E2E8F0;
    --v2-border-strong: #CBD5E1;

    --v2-primary: #1D4ED8;
    --v2-primary-hover: #1E40AF;
    --v2-primary-soft: #EFF6FF;
    --v2-primary-border: #BFDBFE;
    --v2-navy: #091833;

    --v2-emerald: #059669;
    --v2-emerald-soft: #ECFDF5;
    --v2-emerald-border: #A7F3D0;

    --v2-amber: #D97706;
    --v2-amber-soft: #FFFBEB;
    --v2-amber-border: #FDE68A;

    --v2-danger: #DC2626;
    --v2-danger-soft: #FEF2F2;
    --v2-danger-border: #FECACA;

    --v2-shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --v2-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --v2-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --v2-shadow-lg: 0 22px 54px rgba(15, 23, 42, 0.16);

    --v2-radius-sm: 8px;
    --v2-radius-md: 12px;
    --v2-radius-lg: 16px;
    --v2-font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --v2-font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

html[data-theme="dark"] {
    --v2-bg: #090D16;
    --v2-surface: #111827;
    --v2-surface-soft: #0F172A;
    --v2-surface-hover: #1E293B;
    --v2-ink: #F8FAFC;
    --v2-ink-2: #CBD5E1;
    --v2-muted: #94A3B8;
    --v2-border: #1E293B;
    --v2-border-strong: #334155;

    --v2-primary: #3B82F6;
    --v2-primary-hover: #2563EB;
    --v2-primary-soft: rgba(59, 130, 246, 0.15);
    --v2-primary-border: rgba(96, 165, 250, 0.35);
    --v2-navy: #0B1220;

    --v2-emerald: #34D399;
    --v2-emerald-soft: rgba(16, 185, 129, 0.14);
    --v2-emerald-border: rgba(52, 211, 153, 0.32);

    --v2-amber: #FBBF24;
    --v2-amber-soft: rgba(245, 158, 11, 0.15);
    --v2-amber-border: rgba(251, 191, 36, 0.34);

    --v2-danger: #F87171;
    --v2-danger-soft: rgba(239, 68, 68, 0.15);
    --v2-danger-border: rgba(248, 113, 113, 0.34);

    --v2-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
    --v2-shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.30);
    --v2-shadow-md: 0 12px 32px rgba(0, 0, 0, 0.42);
    --v2-shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.60);
}

/* =============================================================================
   1. GLOBAL CANVAS & TYPOGRAPHY (Excluding Pre-Login Auth Pages)
   ============================================================================= */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) {
    background: var(--v2-bg) !important;
    color: var(--v2-ink) !important;
    font-family: var(--v2-font-sans) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html body:not(.tv-auth-body):not(.tv-auth-clean-body) h1,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) h2,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-page-title,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-card-title {
    font-family: var(--v2-font-display) !important;
    letter-spacing: -0.02em !important;
}

/* =============================================================================
   2. UNIFIED SLIM FROSTED TOPBAR (Logo 100% Preserved)
   ============================================================================= */
html body header.tv-header {
    background: rgba(255, 255, 255, 0.92) !important;
    -webkit-backdrop-filter: blur(14px) saturate(160%) !important;
    backdrop-filter: blur(14px) saturate(160%) !important;
    border-bottom: 1px solid var(--v2-border) !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

html[data-theme="dark"] body header.tv-header {
    background: rgba(9, 13, 22, 0.88) !important;
    border-bottom-color: var(--v2-border) !important;
}

@media (min-width: 1101px) {
    html body header.tv-header .tv-nav {
        min-height: 60px !important;
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    html body header.tv-header .tv-gs-box {
        height: 36px !important;
        border-radius: 10px !important;
        border: 1px solid var(--v2-border) !important;
        background: var(--v2-surface-soft) !important;
        transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
    }

    html body header.tv-header .tv-gs-box:focus-within {
        background: var(--v2-surface) !important;
        border-color: var(--v2-primary) !important;
        box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
    }

    html body header.tv-header .tv-menu .tv-link {
        border-radius: 8px !important;
        padding: 6px 11px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: var(--v2-muted) !important;
        box-shadow: none !important;
        transition: background 0.15s ease, color 0.15s ease !important;
    }

    html body header.tv-header .tv-menu .tv-link:hover {
        color: var(--v2-ink) !important;
        background: var(--v2-surface-hover) !important;
    }

    html body header.tv-header .tv-menu .tv-link.active {
        color: var(--v2-primary) !important;
        background: var(--v2-primary-soft) !important;
        box-shadow: none !important;
    }

    html body header.tv-header .tv-settings-btn {
        border: 1px solid var(--v2-border) !important;
        background: var(--v2-surface) !important;
        box-shadow: var(--v2-shadow-xs) !important;
    }

    html body header.tv-header .tv-settings-btn:hover {
        border-color: var(--v2-border-strong) !important;
        background: var(--v2-surface-soft) !important;
    }
}

/* =============================================================================
   3. SLEEK BORDERLESS CONTEXTUAL SUB-NAV (Replaces Heavy Box-Inside-Box Bar)
   ============================================================================= */
html body .tv-global-welcome {
    margin-top: 10px !important;
}

html body .tv-subnav-bar {
    margin-top: 0 !important;
}

html body .tv-subnav-bar .tv-subnav-inner {
    min-height: 40px !important;
    padding: 4px 0 !important;
    gap: 6px !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 1px solid var(--v2-border) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html body .tv-subnav-bar .tv-subnav-pill {
    padding: 6px 12px !important;
    border-radius: 8px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--v2-muted) !important;
    transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease !important;
}

html body .tv-subnav-bar .tv-subnav-pill:hover:not(.on):not(.active) {
    background: var(--v2-surface) !important;
    border-color: var(--v2-border) !important;
    color: var(--v2-ink) !important;
}

html body .tv-subnav-bar .tv-subnav-pill.on,
html body .tv-subnav-bar .tv-subnav-pill.active {
    background: var(--v2-surface) !important;
    border-color: var(--v2-primary-border) !important;
    color: var(--v2-primary) !important;
    -webkit-text-fill-color: var(--v2-primary) !important;
    box-shadow: var(--v2-shadow-xs) !important;
    font-weight: 700 !important;
}

/* =============================================================================
   4. MODERN CARDS, BUTTONS, INPUTS & PAGINATION
   ============================================================================= */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-card {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius-lg) !important;
    box-shadow: var(--v2-shadow-sm) !important;
}

html body .tv-btn {
    border-radius: var(--v2-radius-sm) !important;
    font-weight: 600 !important;
    letter-spacing: -0.005em !important;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease !important;
}

html body .tv-btn-primary {
    background: var(--v2-primary) !important;
    border-color: var(--v2-primary) !important;
    color: #FFFFFF !important;
    box-shadow: 0 1px 2px rgba(29, 78, 216, 0.22) !important;
}

html body .tv-btn-primary:hover {
    background: var(--v2-primary-hover) !important;
    border-color: var(--v2-primary-hover) !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.24) !important;
}

html body .tv-btn-soft {
    background: var(--v2-primary-soft) !important;
    border: 1px solid var(--v2-primary-border) !important;
    color: var(--v2-primary) !important;
}

html body .tv-btn-soft:hover {
    background: var(--v2-primary) !important;
    border-color: var(--v2-primary) !important;
    color: #FFFFFF !important;
}

html body .tv-btn-ghost {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    color: var(--v2-ink-2) !important;
}

html body .tv-btn-ghost:hover {
    background: var(--v2-surface-soft) !important;
    border-color: var(--v2-border-strong) !important;
    color: var(--v2-ink) !important;
}

html body nav.tv-pagebar {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: var(--v2-radius-md) !important;
    box-shadow: var(--v2-shadow-xs) !important;
}

/* =============================================================================
   5. PHASE 1B JOBS EXPLORER DESIGN SYSTEM (Split/Feed View, Command Bar, Drawers)
   ============================================================================= */

/* Top Page Header Row */
.tv2-jobs-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-bottom: 14px;
}

.tv2-jobs-head-left h1 {
    margin: 0 0 3px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--v2-ink) !important;
    line-height: 1.2 !important;
}

.tv2-jobs-head-left p {
    margin: 0 !important;
    font-size: 13px !important;
    color: var(--v2-muted) !important;
}

.tv2-jobs-head-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Command-Style Integrated Search Bar */
.tv2-cmd-shell {
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 14px;
    padding: 6px;
    box-shadow: var(--v2-shadow-sm);
    margin-bottom: 12px;
}

.tv2-cmd-bar {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 1px minmax(150px, 0.9fr) 1px minmax(150px, 0.85fr) auto;
    align-items: center;
    gap: 4px;
}

.tv2-cmd-sep {
    width: 1px;
    height: 24px;
    background: var(--v2-border);
}

.tv2-cmd-field {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    height: 40px;
    min-width: 0;
}

.tv2-cmd-field .tv2-ico {
    color: var(--v2-muted);
    font-size: 14px;
    flex-shrink: 0;
}

.tv2-cmd-field input,
.tv2-cmd-field select {
    width: 100% !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--v2-ink) !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}

.tv2-cmd-field input::placeholder {
    color: var(--v2-muted);
}

.tv2-cmd-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    padding-right: 2px;
}

.tv2-cmd-submit {
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap;
}

/* Stream Filter Strip + Controls Row */
.tv2-controls-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-bottom: 12px;
}

.tv2-stream-strip {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
}

.tv2-stream-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 11px;
    border-radius: 999px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    color: var(--v2-ink-2);
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.14s ease;
}

.tv2-stream-pill:hover {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
    background: var(--v2-primary-soft);
}

.tv2-stream-pill .tv2-cnt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    background: var(--v2-surface-hover);
    color: var(--v2-muted);
}

.tv2-stream-pill.active,
.tv2-stream-pill.active:hover {
    background: linear-gradient(135deg, #091833 0%, #1D4ED8 100%) !important;
    border-color: #1D4ED8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.24);
}

.tv2-stream-pill.active .tv2-cnt {
    background: rgba(255, 255, 255, 0.20) !important;
    color: #FFFFFF !important;
}

/* Toolbar below streams (Count, Filter Trigger, Sort, Split/Feed Toggle) */
.tv2-subtoolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 12px;
}

.tv2-subtoolbar-left,
.tv2-subtoolbar-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tv2-count-text {
    font-size: 13px;
    color: var(--v2-muted);
    font-weight: 500;
}

.tv2-count-text b {
    color: var(--v2-ink);
    font-weight: 700;
}

.tv2-filter-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid var(--v2-border);
    background: var(--v2-surface);
    color: var(--v2-ink);
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.14s ease;
}

.tv2-filter-trigger:hover {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
    background: var(--v2-primary-soft);
}

.tv2-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--v2-primary);
    color: #FFFFFF;
    font-size: 10.5px;
    font-weight: 700;
}

.tv2-view-switch {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    border-radius: 9px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
}

.tv2-view-btn {
    height: 28px;
    padding: 0 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--v2-muted);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.14s ease;
}

.tv2-view-btn.active {
    background: var(--v2-primary-soft);
    color: var(--v2-primary);
    font-weight: 700;
}

.tv2-sort-select {
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 28px 0 10px !important;
    border-radius: 8px !important;
    border: 1px solid var(--v2-border) !important;
    background: var(--v2-surface) !important;
    color: var(--v2-ink) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}

/* Split-Pane & Feed Explorer Grid */
.tv2-explorer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

@media (min-width: 1024px) {
    .tv2-explorer.is-split {
        grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
        gap: 18px;
    }
}

.tv2-list-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

.tv2-preview-col {
    display: none;
    position: sticky;
    top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: var(--v2-radius-lg);
    box-shadow: var(--v2-shadow-md);
    padding: 20px 22px;
    min-width: 0;
}

@media (min-width: 1024px) {
    .tv2-explorer.is-split .tv2-preview-col {
        display: block;
    }
}

/* Clean 3-Row Modern Job Card (Zero Rainbow Clutter) */
.tv2-job-card {
    position: relative;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-radius: 14px;
    padding: 15px 17px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    box-shadow: var(--v2-shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.14s ease, background 0.15s ease;
}

.tv2-job-card:hover {
    border-color: var(--v2-primary-border);
    box-shadow: var(--v2-shadow-sm);
}

.tv2-job-card.is-selected {
    border-color: var(--v2-primary);
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.14), var(--v2-shadow-sm);
}

.tv2-job-card.tv-bulk-selected {
    border-color: var(--v2-primary) !important;
    background: var(--v2-primary-soft);
}

.tv2-jc-row1 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.tv2-jc-logo {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    border: 1px solid var(--v2-border);
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 3px;
    flex-shrink: 0;
}

.tv2-jc-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 6px;
}

.tv2-jc-logo span {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    background: linear-gradient(135deg, #091833 0%, #1D4ED8 100%);
    color: #FFFFFF;
    font-family: var(--v2-font-display);
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tv2-jc-head-main {
    flex: 1 1 auto;
    min-width: 0;
}

.tv2-jc-title {
    margin: 0 0 2px !important;
    font-family: var(--v2-font-display) !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--v2-ink) !important;
    line-height: 1.3 !important;
    letter-spacing: -0.015em;
}

.tv2-jc-title a {
    color: inherit;
    text-decoration: none;
}

.tv2-jc-title a:hover {
    color: var(--v2-primary);
}

.tv2-jc-company-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 8px;
    font-size: 13px;
    color: var(--v2-ink-2);
    font-weight: 600;
}

.tv2-jc-company-line a {
    color: var(--v2-primary);
    text-decoration: none;
}

.tv2-jc-company-line a:hover {
    text-decoration: underline;
}

.tv2-jc-stream-chip {
    font-size: 11px;
    font-weight: 600;
    color: var(--v2-muted);
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    padding: 1px 7px;
    border-radius: 6px;
}

.tv2-jc-head-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.tv2-salary-pill {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 7px;
    background: var(--v2-emerald-soft);
    border: 1px solid var(--v2-emerald-border);
    color: var(--v2-emerald);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.tv2-match-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--v2-primary-soft);
    border: 1px solid var(--v2-primary-border);
    color: var(--v2-primary);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* Row 2: Clean Unified Metadata Line */
.tv2-jc-row2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 12.5px;
    color: var(--v2-muted);
    font-weight: 500;
}

.tv2-jc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.tv2-jc-urgent {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--v2-amber);
    font-weight: 700;
    font-size: 11.5px;
}

.tv2-jc-summary {
    margin: 0;
    font-size: 12.8px;
    line-height: 1.48;
    color: var(--v2-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Row 3: Subtle Monochrome Skills + Crisp Right CTAs */
.tv2-jc-row3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 12px;
    padding-top: 9px;
    border-top: 1px solid var(--v2-border);
}

.tv2-jc-skills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 0;
}

.tv2-skill {
    display: inline-flex;
    align-items: center;
    padding: 2.5px 8px;
    border-radius: 6px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    color: var(--v2-ink-2);
    font-size: 11.5px;
    font-weight: 500;
}

.tv2-skill.hit {
    background: var(--v2-primary-soft);
    border-color: var(--v2-primary-border);
    color: var(--v2-primary);
    font-weight: 600;
}

.tv2-jc-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.tv2-jc-actions form {
    margin: 0;
    display: inline-flex;
}

.tv2-stat-mini {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--v2-muted);
    text-decoration: none;
    padding: 3px 8px;
    border-radius: 6px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
}

a.tv2-stat-mini:hover {
    color: var(--v2-primary);
    border-color: var(--v2-primary-border);
}

/* Sticky Right Preview Pane Styling */
.tv2-pv-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--v2-border);
}

.tv2-pv-title {
    margin: 0 0 4px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--v2-ink) !important;
    line-height: 1.28 !important;
}

.tv2-pv-cta-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.tv2-pv-cta-row form {
    margin: 0;
}

.tv2-pv-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.tv2-pv-meta-box {
    padding: 9px 11px;
    border-radius: 10px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
}

.tv2-pv-meta-box small {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--v2-muted);
    margin-bottom: 2px;
}

.tv2-pv-meta-box strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--v2-ink);
}

.tv2-pv-sec {
    margin-top: 14px;
}

.tv2-pv-sec h4 {
    margin: 0 0 6px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--v2-muted) !important;
}

.tv2-pv-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.62;
    color: var(--v2-ink-2);
    white-space: pre-line;
}

.tv2-pv-company-box {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 12px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
}

/* Slide-Over Drawers (All Filters & + Post Job Modal) */
.tv2-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    background: rgba(15, 23, 42, 0.52);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: flex-end;
    animation: tv-fade-in 0.16s ease-out;
}

.tv2-drawer-backdrop[hidden] {
    display: none !important;
}

.tv2-drawer {
    width: min(440px, 100vw);
    height: 100dvh;
    background: var(--v2-surface);
    color: var(--v2-ink);
    border-left: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.tv2-drawer.tv2-drawer-wide {
    width: min(760px, 100vw);
}

.tv2-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--v2-border);
    background: var(--v2-surface);
}

.tv2-drawer-head h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--v2-ink) !important;
}

.tv2-drawer-close {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    border: 1px solid var(--v2-border);
    background: var(--v2-surface-soft);
    color: var(--v2-ink);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tv2-drawer-close:hover {
    border-color: var(--v2-primary);
    color: var(--v2-primary);
}

.tv2-drawer-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 16px 20px 24px;
}

.tv2-drawer-foot {
    padding: 12px 20px;
    border-top: 1px solid var(--v2-border);
    background: var(--v2-surface-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

/* Responsive Command Bar & Split Fallback */
@media (max-width: 960px) {
    .tv2-cmd-bar {
        grid-template-columns: minmax(0, 1fr);
        gap: 6px;
        padding: 4px;
    }
    .tv2-cmd-sep {
        display: none;
    }
    .tv2-cmd-field {
        border: 1px solid var(--v2-border);
        border-radius: 9px;
        background: var(--v2-surface-soft);
    }
    .tv2-cmd-actions {
        padding-right: 0;
    }
    .tv2-cmd-submit {
        width: 100%;
    }
}

@media (max-width: 1023px) {
    .tv2-view-switch {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .tv2-stream-strip {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding-bottom: 2px;
    }
    .tv2-stream-strip::-webkit-scrollbar {
        display: none;
    }
    .tv2-jc-row1 {
        gap: 10px;
    }
    .tv2-jc-logo {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    .tv2-pv-meta-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* === TV2-CARD-OVERLAP-HOTFIX-V1 === */
/* Neutralize legacy .tv-opening (grid-template-columns: 52px 1fr auto) & .tv-job-row */
html body main .tv2-explorer .tv2-job-card,
html body main .tv2-explorer .tv2-job-card.tv-opening,
html body main .tv2-explorer .tv2-job-card.tv-job-row {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 14px 16px !important;
    margin: 0 !important;
    border: 1px solid var(--v2-border) !important;
    border-left: 3px solid transparent !important;
    border-radius: 13px !important;
    background: var(--v2-surface) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

html body main .tv2-explorer .tv2-job-card:hover {
    border-color: var(--v2-primary-border) !important;
    box-shadow: var(--v2-shadow-sm) !important;
}

html body main .tv2-explorer .tv2-job-card.is-selected {
    border-color: var(--v2-primary-border) !important;
    border-left: 3px solid var(--v2-primary) !important;
    background: var(--v2-surface) !important;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.10) !important;
}

html body main .tv2-explorer .tv2-job-card > * {
    position: static !important;
    grid-column: auto !important;
    grid-row: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

html body main .tv2-explorer .tv2-jc-row1 {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    gap: 12px !important;
}

html body main .tv2-explorer .tv2-jc-logo {
    flex: 0 0 40px !important;
    width: 40px !important;
    height: 40px !important;
}

html body main .tv2-explorer .tv2-jc-head-main {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
}

html body main .tv2-explorer .tv2-jc-title {
    white-space: normal !important;
    word-break: break-word !important;
    overflow: visible !important;
}

html body main .tv2-explorer .tv2-jc-head-right {
    flex: 0 0 auto !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
}

html body main .tv2-explorer .tv2-jc-row2 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px 12px !important;
}

html body main .tv2-explorer .tv2-jc-row3 {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
}

html body main .tv2-explorer .tv2-jc-skills {
    flex: 1 1 200px !important;
    min-width: 0 !important;
}

html body main .tv2-explorer .tv2-jc-actions {
    flex: 0 0 auto !important;
    width: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: auto !important;
}

/* Tighten Above-the-Fold Vertical Spacing so Split Cards Start High on Screen */
html body main.tv-main {
    padding-top: 12px !important;
}
html body .tv2-jobs-head {
    margin-bottom: 10px !important;
    align-items: center !important;
}
html body .tv2-jobs-head-left h1 {
    font-size: 20px !important;
    margin-bottom: 1px !important;
}
html body .tv2-cmd-shell {
    padding: 4px 5px !important;
    margin-bottom: 8px !important;
}
html body .tv2-controls-row {
    margin-bottom: 8px !important;
}
html body .tv2-subtoolbar {
    margin-bottom: 10px !important;
}
html body .tv2-rec-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 10px !important;
}
html body .tv2-rec-card {
    padding: 8px 11px !important;
    gap: 2px !important;
}
html body .tv2-rec-card strong {
    font-size: 12.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
@media (max-width: 900px) {
    html body .tv2-rec-strip {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}
/* === END TV2-CARD-OVERLAP-HOTFIX-V1 === */

/* === TV2-FULL-APP-SYSTEM-V2 === */

/* -----------------------------------------------------------------------------
   A. Screenshot Micro-Polish (Header Search Width + Recommended Match Pill)
   ----------------------------------------------------------------------------- */
@media (min-width: 1101px) {
    html body .tv-header .tv-gsearch,
    html body #tvGlobalSearch {
        flex: 0 1 255px !important;
        width: 255px !important;
        max-width: 265px !important;
    }
    html body .tv-header .tv-gsearch:focus-within,
    html body #tvGlobalSearch:focus-within {
        flex: 0 1 275px !important;
        max-width: 275px !important;
    }
}

html body .tv2-rec-card .tv-row-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
}
html body .tv2-rec-card .tv-row-between strong {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
html body .tv2-rec-card .tv2-match-pill {
    flex: 0 0 auto !important;
}

/* -----------------------------------------------------------------------------
   B. Executive Welcome / Hero Banners Across All Modules
   ----------------------------------------------------------------------------- */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-welcome {
    background: linear-gradient(135deg, #091833 0%, #173A8A 62%, #1D4ED8 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 30px rgba(9, 24, 51, 0.16) !important;
    padding: 22px 26px !important;
    margin-bottom: 16px !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-welcome h1,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-welcome h2 {
    font-family: var(--v2-font-display) !important;
    letter-spacing: -0.02em !important;
    color: #FFFFFF !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-welcome p {
    color: rgba(241, 245, 249, 0.88) !important;
}

/* Page Titles & Section Headers */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-page-title {
    font-size: 21px !important;
    font-weight: 800 !important;
    color: var(--v2-ink) !important;
    line-height: 1.25 !important;
    margin: 0 0 4px !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-lead {
    font-size: 13.5px !important;
    color: var(--v2-muted) !important;
    line-height: 1.5 !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-card-head {
    padding-bottom: 12px !important;
    margin-bottom: 14px !important;
    border-bottom: 1px solid var(--v2-border) !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-card-title,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-card h2,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-card h3 {
    font-family: var(--v2-font-display) !important;
    color: var(--v2-ink) !important;
    letter-spacing: -0.015em !important;
}

/* -----------------------------------------------------------------------------
   C. Executive KPI Strip & Stat Tiles (Dashboard, Recruiter, Admin, Insights)
   ----------------------------------------------------------------------------- */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-kpis .tv-kpi,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-stat-card {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--v2-shadow-xs) !important;
    transition: border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-kpis .tv-kpi:hover,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-stat-card:hover {
    border-color: var(--v2-primary-border) !important;
    box-shadow: var(--v2-shadow-sm) !important;
    transform: translateY(-1px) !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-kpi strong,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-kpi b {
    font-family: var(--v2-font-display) !important;
    font-variant-numeric: tabular-nums !important;
    color: var(--v2-ink) !important;
}
html[data-theme="dark"] body .tv-kpis.tv-kpi-strip-4 > .tv-kpi > i {
    background: var(--v2-primary-soft) !important;
    border-color: var(--v2-primary-border) !important;
    color: #93C5FD !important;
}

/* -----------------------------------------------------------------------------
   D. Modern Forms, Inputs, Selects & Textareas Across Full Application
   ----------------------------------------------------------------------------- */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="text"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="email"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="password"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="search"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="number"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="tel"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="url"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="date"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input[type="datetime-local"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main select,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main textarea {
    border: 1px solid var(--v2-border) !important;
    border-radius: 9px !important;
    background: var(--v2-surface) !important;
    color: var(--v2-ink) !important;
    font-family: var(--v2-font-sans) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}

html body:not(.tv-auth-body):not(.tv-auth-clean-body) main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main select:focus,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main textarea:focus {
    border-color: var(--v2-primary) !important;
    box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.12) !important;
    outline: none !important;
}

/* Preserve borderless command bar inputs inside .tv2-cmd-field */
html body main .tv2-cmd-field input,
html body main .tv2-cmd-field select {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
html body main .tv2-cmd-field input:focus,
html body main .tv2-cmd-field select:focus {
    border: 0 !important;
    box-shadow: none !important;
}

html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv-field > label {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--v2-ink-2) !important;
    letter-spacing: 0.01em !important;
    margin-bottom: 5px !important;
}

/* -----------------------------------------------------------------------------
   E. Clean SaaS Data Tables (Admin Console, Reports, Applicants, Payments)
   ----------------------------------------------------------------------------- */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-table-wrap {
    border: 1px solid var(--v2-border) !important;
    border-radius: 12px !important;
    background: var(--v2-surface) !important;
    overflow-x: auto !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main table thead th {
    background: var(--v2-surface-soft) !important;
    color: var(--v2-muted) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    padding: 10px 14px !important;
    border-bottom: 1px solid var(--v2-border) !important;
    white-space: nowrap;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main table tbody td {
    padding: 11px 14px !important;
    font-size: 13px !important;
    color: var(--v2-ink-2) !important;
    border-bottom: 1px solid var(--v2-border) !important;
    vertical-align: middle !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main table tbody tr:last-child td {
    border-bottom: 0 !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main table tbody tr:hover td {
    background: var(--v2-surface-soft) !important;
}

/* -----------------------------------------------------------------------------
   F. Companies, Candidates, Applicants, Applications & Career Hub Cards
   ----------------------------------------------------------------------------- */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-candidate,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-ap-card,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-co-card,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-emp-card,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-ur-user,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-tool-card {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--v2-shadow-xs) !important;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.14s ease !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-candidate:hover,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-ap-card:hover,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-co-card:hover,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) .tv-tool-card:hover {
    border-color: var(--v2-primary-border) !important;
    box-shadow: var(--v2-shadow-sm) !important;
}

/* Profile Sidebar & Resume Cards */
html body .tv-card.tv-pc {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 16px !important;
}
html body .tv-card.tv-pc .tv-exp > div {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 10px !important;
}
html body .tv-ks-chip {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    color: var(--v2-ink-2) !important;
    border-radius: 8px !important;
}
html body .tv-rs-file {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 11px !important;
    padding: 10px 12px !important;
}

/* Tabs, Mode Switches, Badges & Status Chips */
html body .tv-tabs {
    gap: 6px !important;
    border-bottom: 1px solid var(--v2-border);
    padding-bottom: 10px;
}
html body .tv-tab {
    border-radius: 9px !important;
    padding: 6px 13px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}
html body .tv-status-chip {
    border-radius: 999px !important;
    padding: 3px 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em !important;
}
html body .tv-chip {
    border-radius: 7px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    border: 1px solid var(--v2-border) !important;
    background: var(--v2-surface-soft) !important;
    color: var(--v2-ink-2) !important;
}
html body .tv-chip-ok {
    background: var(--v2-primary-soft) !important;
    border-color: var(--v2-primary-border) !important;
    color: var(--v2-primary) !important;
}

/* Global Search & Settings Avatar Dropdowns */
html body .tv-settings-dropdown,
html body .tv-gs-dropdown {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--v2-shadow-lg) !important;
}
html body .tv-sd-item {
    border-radius: 9px !important;
    transition: background 0.14s ease !important;
}
html body .tv-sd-item:hover {
    background: var(--v2-surface-soft) !important;
}

/* Semantic Soft Danger & Success Buttons */
html body .tv-btn-success {
    background: var(--v2-emerald) !important;
    border-color: var(--v2-emerald) !important;
    color: #FFFFFF !important;
}
html body .tv-btn-soft-danger {
    background: var(--v2-danger-soft) !important;
    border: 1px solid var(--v2-danger-border) !important;
    color: var(--v2-danger) !important;
}
html body .tv-btn-soft-danger:hover {
    background: var(--v2-danger) !important;
    border-color: var(--v2-danger) !important;
    color: #FFFFFF !important;
}

/* Clean Empty States */
html body .tv-empty-card {
    background: var(--v2-surface) !important;
    border: 1.5px dashed var(--v2-border-strong) !important;
    border-radius: 16px !important;
    padding: 28px 20px !important;
}
/* === END TV2-FULL-APP-SYSTEM-V2 === */

/* === TV2-PHASE2B-WORKSPACE-CSS === */

/* Workspace Top Greeting & Quick Action Bar */
.tv2-ws-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 14px;
}
.tv2-ws-head h1 {
    margin: 0 0 2px !important;
    font-size: 21px !important;
    font-weight: 800 !important;
    color: var(--v2-ink) !important;
    line-height: 1.2 !important;
}
.tv2-ws-head p {
    margin: 0 !important;
    font-size: 13px !important;
    color: var(--v2-muted) !important;
}
.tv2-ws-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

/* Bento Dashboard 2-Column Layout Refinements */
@media (min-width: 1024px) {
    html body .tv-grid-2.tv-dash-grid {
        grid-template-columns: 344px minmax(0, 1fr) !important;
        gap: 16px !important;
        align-items: start !important;
    }
}
.tv2-dash-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

/* Sleek Resume Action Bar on Dashboard */
.tv2-resume-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px !important;
}
.tv2-resume-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 260px;
    min-width: 0;
}
.tv2-resume-ico {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 10px;
    background: var(--v2-primary-soft);
    border: 1px solid var(--v2-primary-border);
    color: var(--v2-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 800;
}
.tv2-resume-meta {
    min-width: 0;
    flex: 1 1 auto;
}
.tv2-resume-meta strong {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--v2-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tv2-resume-meta small {
    display: block;
    font-size: 12px;
    color: var(--v2-muted);
    margin-top: 2px;
}
.tv2-resume-right {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    flex-shrink: 0;
}
.tv2-resume-right form { margin: 0; display: inline-flex; }

/* Bento Dashboard Mini Job Rows */
.tv2-mini-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tv2-mini-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 11px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.14s ease, background 0.14s ease, transform 0.12s ease;
}
.tv2-mini-row:hover {
    border-color: var(--v2-primary-border);
    background: var(--v2-surface);
    transform: translateY(-1px);
}
.tv2-mini-row-main {
    flex: 1 1 auto;
    min-width: 0;
}
.tv2-mini-row-main h4 {
    margin: 0 0 2px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: var(--v2-ink) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tv2-mini-row-main p {
    margin: 0 !important;
    font-size: 12px !important;
    color: var(--v2-muted) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Recruiter Funnel Stage Pills (6-Column Bento Grid) */
.tv2-stage-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}
.tv2-stage-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 11px 8px;
    border-radius: 11px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    text-decoration: none !important;
    transition: border-color 0.15s ease, transform 0.14s ease, background 0.15s ease;
}
.tv2-stage-tile:hover {
    border-color: var(--v2-primary-border);
    background: var(--v2-primary-soft);
    transform: translateY(-1px);
}
.tv2-stage-tile strong {
    font-family: var(--v2-font-display);
    font-size: 17px;
    font-weight: 800;
    color: var(--v2-ink);
    font-variant-numeric: tabular-nums;
}
.tv2-stage-tile span {
    font-size: 11px;
    font-weight: 600;
    color: var(--v2-muted);
    white-space: nowrap;
}
@media (max-width: 768px) {
    .tv2-stage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Companies Bento Grid & A-Z Strip */
.tv2-co-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
@media (max-width: 1024px) { .tv2-co-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .tv2-co-grid { grid-template-columns: minmax(0, 1fr); } }

.tv2-co-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-xs);
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.14s ease;
}
.tv2-co-card:hover {
    border-color: var(--v2-primary-border);
    box-shadow: var(--v2-shadow-md);
    transform: translateY(-2px);
}
.tv2-co-card.off { opacity: 0.65; }
.tv2-co-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tv2-co-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 12px;
    font-size: 12px;
    color: var(--v2-muted);
}
.tv2-co-card-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--v2-ink-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tv2-co-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--v2-border);
    font-size: 12px;
    font-weight: 700;
}

/* Interview Timeline Cards */
.tv2-iv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tv2-iv-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-left: 4px solid var(--v2-primary);
    box-shadow: var(--v2-shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tv2-iv-card:hover { box-shadow: var(--v2-shadow-sm); }
.tv2-iv-card.past { border-left-color: var(--v2-muted); opacity: 0.88; }
.tv2-iv-card.cancelled { border-left-color: var(--v2-danger); opacity: 0.78; }
.tv2-iv-when {
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
}
.tv2-iv-when strong {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-ink);
    line-height: 1.35;
}
.tv2-iv-when span {
    display: inline-block;
    margin-top: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--v2-primary);
}
.tv2-iv-main h3 {
    margin: 0 0 4px !important;
    font-size: 15.5px !important;
    font-weight: 700 !important;
    color: var(--v2-ink) !important;
}
.tv2-iv-main p {
    margin: 2px 0 !important;
    font-size: 12.8px !important;
    color: var(--v2-muted) !important;
}
.tv2-iv-acts {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}
@media (max-width: 820px) {
    .tv2-iv-card {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
    .tv2-iv-acts {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }
}
/* === END TV2-PHASE2B-WORKSPACE-CSS === */

/* === TV2-PHASE2B2-RECRUITER-PROFILE-ADMIN-CSS === */

/* Segmented Executive Workspace Tabs (Recruiter Portal) */
.tv2-ws-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 5px;
    margin: 0 0 14px;
    border-radius: 12px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-xs);
}
.tv2-ws-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--v2-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.14s ease;
}
.tv2-ws-tab:hover {
    color: var(--v2-ink);
    background: var(--v2-surface-soft);
}
.tv2-ws-tab.active {
    background: linear-gradient(135deg, #091833 0%, #1D4ED8 100%);
    color: #FFFFFF;
    box-shadow: 0 3px 10px rgba(29, 78, 216, 0.22);
}
.tv2-ws-tab .tv2-cnt {
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--v2-surface-hover);
    color: var(--v2-muted);
}
.tv2-ws-tab.active .tv2-cnt {
    background: rgba(255, 255, 255, 0.22);
    color: #FFFFFF;
}
.tv2-ws-panel[hidden] { display: none !important; }

/* Recruiter Filter Bar & Team Rows */
.tv2-filter-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 10px;
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: 12px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
}
.tv2-filter-inputs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 520px;
}
.tv2-filter-inputs input[type="search"] {
    flex: 1 1 200px;
    min-width: 160px;
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 13px !important;
}
.tv2-filter-inputs select {
    height: 34px !important;
    padding: 0 26px 0 10px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
}
.tv2-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 14px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    border-radius: 12px;
}
.tv2-team-row.pending {
    border-color: var(--v2-amber-border);
    background: var(--v2-amber-soft);
}

/* Profile Portfolio Mode Banner & Tiles */
.tv2-pf-mode-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 11px 16px;
    margin-bottom: 14px;
    border-radius: 14px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    border-left: 4px solid var(--v2-primary);
    box-shadow: var(--v2-shadow-xs);
}
html body .tv-acct-tile {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 13px !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
html body .tv-acct-tile:hover {
    border-color: var(--v2-primary-border) !important;
    box-shadow: var(--v2-shadow-sm) !important;
}

/* Executive Admin Console 2026 Bento Polish (Zero Script / Grid Breakage) */
html body main #tvAdminConsoleTopRow {
    gap: 14px !important;
    margin-bottom: 14px !important;
}
html body main #tvAdminProfileCard,
html body main #tvAdminHarvesterCard,
html body main #tvAdminChatControlCard,
html body main .tv-admin-hub-card,
html body main #user-mgmt {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 16px !important;
    box-shadow: var(--v2-shadow-sm) !important;
}
html body main .tv-stats .tv-stat,
html body main .tv-metric-grid .tv-metric,
html body main .tv-wv-grid .tv-wv-stat {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 12px !important;
}
html body main .tv-tel-collapsible > summary.tv-tel-summary {
    padding: 11px 16px !important;
    border-radius: 12px !important;
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    color: var(--v2-ink) !important;
    font-weight: 700 !important;
    font-size: 13.5px !important;
    margin-bottom: 12px !important;
}
html body main #user-mgmt table.tv-table.tv-um-table.tv-um-v2 {
    border-color: var(--v2-border) !important;
    border-radius: 13px !important;
    background: var(--v2-surface) !important;
}
html body main #user-mgmt table.tv-table.tv-um-table.tv-um-v2 thead tr {
    background: var(--v2-surface-soft) !important;
    border-bottom-color: var(--v2-border) !important;
}
html body main #tvAdminChatControlCard .tv-gov-tab {
    border-radius: 9px !important;
    font-size: 12.5px !important;
}
/* === END TV2-PHASE2B2-RECRUITER-PROFILE-ADMIN-CSS === */

/* === TV2-PHASE3-ACTIVITY-PIPELINE-CAREERHUB-CSS === */

/* 1. Application Tracker Cards (my-applications.html) */
.tv2-app-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.tv2-app-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
    box-shadow: var(--v2-shadow-xs);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.tv2-app-card:hover {
    border-color: var(--v2-primary-border);
    box-shadow: var(--v2-shadow-sm);
}
.tv2-app-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 14px;
}
.tv2-app-top h3 {
    margin: 0 0 3px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: var(--v2-ink) !important;
}
.tv2-iv-box {
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--v2-primary-soft);
    border: 1px solid var(--v2-primary-border);
}
.tv2-iv-box.past,
.tv2-iv-box.cancelled {
    background: var(--v2-surface-soft);
    border-color: var(--v2-border);
    opacity: 0.85;
}
.tv2-iv-box h4 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--v2-ink) !important;
}
.tv2-iv-box dl {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 4px 12px;
    margin: 0 0 10px;
    font-size: 13px;
}
.tv2-iv-box dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--v2-muted);
}
.tv2-iv-box dd {
    margin: 0;
    color: var(--v2-ink);
    overflow-wrap: anywhere;
}
.tv2-gap-box {
    padding: 12px 14px;
    border-radius: 11px;
    background: var(--v2-surface-soft);
    border: 1px solid var(--v2-border);
    font-size: 12.8px;
}
.tv2-note-win {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--v2-emerald-soft);
    border: 1px solid var(--v2-emerald-border);
    color: var(--v2-emerald);
    font-size: 13px;
    font-weight: 600;
}
.tv2-note-rej {
    margin: 0;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--v2-danger-soft);
    border: 1px solid var(--v2-danger-border);
    color: var(--v2-danger);
    font-size: 13px;
    font-weight: 500;
}

/* 2. Hiring Pipeline & Resdex Filter Strips (applicants.html & candidates.html) */
.tv2-adv-filters {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
}
.tv2-adv-filters > summary {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    color: var(--v2-ink);
    list-style: none;
}
.tv2-adv-filters > summary em {
    font-style: normal;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: var(--v2-primary-soft);
    color: var(--v2-primary);
    border: 1px solid var(--v2-primary-border);
}
.tv2-adv-filters[open] > summary {
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--v2-border);
}
.tv2-resdex-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
    align-items: center;
    gap: 8px 10px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--v2-surface);
    border: 1px solid var(--v2-border);
}
.tv2-resdex-row select {
    height: 35px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    padding: 0 26px 0 10px !important;
}
@media (max-width: 960px) {
    .tv2-resdex-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 560px) {
    .tv2-resdex-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* 3. Modernized Pipeline Stepper, Interview & Feedback Accordions */
html body .tv-ap-card {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 15px !important;
    padding: 16px 18px !important;
    box-shadow: var(--v2-shadow-xs) !important;
}
html body .tv-ap-card:hover {
    border-color: var(--v2-primary-border) !important;
    box-shadow: var(--v2-shadow-sm) !important;
}
html body .tv-ap-bar {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
}
html body .tv-iv,
html body .tv-fb {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 11px !important;
}
html body .tv-fb-item {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 10px !important;
}

/* 4. Global Phase 3 Polish: Career AI, ATS Checker, Skill Test, Mock Interview,
      Salary Calculator, Alerts, Shortlists, Insights, Stats & Career Details */
html body .tv-roadmap-card,
html body .tv-quiz-card,
html body .tv-alert-row,
html body .tv-sl-card,
html body .tv-ins-tile,
html body .tv-st-tile,
html body .tv-job-card {
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 14px !important;
    box-shadow: var(--v2-shadow-xs) !important;
    transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}
html body .tv-roadmap-card:hover,
html body .tv-alert-row:hover,
html body .tv-sl-card:hover,
html body .tv-job-card:hover {
    border-color: var(--v2-primary-border) !important;
    box-shadow: var(--v2-shadow-sm) !important;
}
html body .tv-quiz-card {
    padding: 16px 18px !important;
}
html body .tv-quiz-opt {
    border-radius: 9px !important;
    border: 1px solid var(--v2-border) !important;
    background: var(--v2-surface-soft) !important;
    transition: border-color 0.14s ease, background 0.14s ease !important;
}
html body .tv-quiz-opt:has(input:checked) {
    border-color: var(--v2-primary) !important;
    background: var(--v2-primary-soft) !important;
}
html body .tv-ai-score-ring {
    background: linear-gradient(135deg, #091833 0%, #1D4ED8 100%) !important;
    box-shadow: 0 10px 24px rgba(29, 78, 216, 0.24) !important;
}
html body .tv-cf-section {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--v2-border);
}
html body .tv-cf-section:last-of-type {
    border-bottom: 0;
}
html body .tv-emp-card {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 12px !important;
}
html body .tv-bio-box {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 12px !important;
}
html body .tv-freq label {
    background: var(--v2-surface-soft) !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 12px !important;
}
html body .tv-freq label:has(input:checked) {
    border-color: var(--v2-primary) !important;
    background: var(--v2-primary-soft) !important;
}
/* === END TV2-PHASE3-ACTIVITY-PIPELINE-CAREERHUB-CSS === */

/* === TV2-VISUAL-AUDIT-6BUGS-FIX === */

/* FIX 1: Dashboard Right Column Order on Desktop (>= 1024px)
   Forces KPI Strip #1 at the very top, followed by Resume Bar #2, Key Skills #3, Activity #4, Jobs #5
   (Mobile <= 1023px keeps Profile -> Resume -> KPI Strip untouched) */
@media (min-width: 1024px) {
    html body main .tv-candidate-dash .tv-dash-main-col > * {
        order: 10 !important;
    }
    html body main .tv-candidate-dash .tv-dash-main-col > #dashCandidateKpiStrip {
        order: 1 !important;
    }
    html body main .tv-candidate-dash .tv-dash-main-col > #dashResume {
        order: 2 !important;
    }
    html body main .tv-candidate-dash .tv-dash-main-col > #dashSkillsCard {
        order: 3 !important;
    }
    html body main .tv-candidate-dash .tv-dash-main-col > #who-viewed {
        order: 4 !important;
    }
    html body main .tv-candidate-dash .tv-dash-main-col > .tv-duo {
        order: 5 !important;
    }
}

/* FIX 2: Eliminate "Box-Inside-Box" Double Border Inside Command Bar (Desktop & Mobile) */
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv2-cmd-shell .tv2-cmd-field input[type="text"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv2-cmd-shell .tv2-cmd-field input[type="search"],
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv2-cmd-shell .tv2-cmd-field select {
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv2-cmd-shell .tv2-cmd-field input:focus,
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv2-cmd-shell .tv2-cmd-field select:focus {
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
html body:not(.tv-auth-body):not(.tv-auth-clean-body) main .tv2-cmd-shell .tv2-cmd-field:focus-within {
    background: var(--v2-surface-soft) !important;
    border-radius: 9px !important;
}

/* FIX 3: Header Global Search Zero-Clipping + High-Contrast Header Live Chat Icon */
@media (min-width: 1101px) {
    html body header.tv-header .tv-nav {
        gap: 10px !important;
    }
    html body header.tv-header .tv-gsearch,
    html body header.tv-header #tvGlobalSearch {
        flex: 0 0 250px !important;
        width: 250px !important;
        min-width: 235px !important;
        max-width: 260px !important;
    }
    html body header.tv-header .tv-gs-box {
        padding: 0 9px !important;
        gap: 6px !important;
    }
    html body header.tv-header .tv-gs-input,
    html body header.tv-header #tvGlobalSearchInput {
        font-size: 11.8px !important;
        letter-spacing: -0.01em !important;
    }
    html body header.tv-header .tv-menu .tv-link {
        padding: 6px 9px !important;
        font-size: 12.8px !important;
    }
}
html body header.tv-header .tv-nav-chat {
    border: 1px solid var(--v2-border) !important;
    background: var(--v2-surface-soft) !important;
    color: var(--v2-ink) !important;
    border-radius: 9px !important;
    padding: 5px 8px !important;
    filter: contrast(1.25) saturate(1.2);
}
html body header.tv-header .tv-nav-chat:hover {
    border-color: var(--v2-primary-border) !important;
    background: var(--v2-primary-soft) !important;
}

/* FIX 4: Admin Harvester Card Stat Heading Zero-Truncation (AUTO-EXPIRED ARCHIVED) */
html body main #tvAdminHarvesterCard .tv-stat h4 {
    font-size: 10.5px !important;
    letter-spacing: 0.02em !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.25 !important;
}

/* FIX 5: AI Career Hub Analyzer Form Single-Row Alignment (Desktop >= 860px) */
@media (min-width: 860px) {
    html body main form[action*="/auth/career-ai"] .tv-form-grid {
        display: grid !important;
        grid-template-columns: minmax(190px, 0.85fr) minmax(240px, 1.45fr) auto !important;
        gap: 12px !important;
        align-items: end !important;
    }
}
/* === END TV2-VISUAL-AUDIT-6BUGS-FIX === */

/* === TV2-DEEP-MISMATCH-FIX-V1 === */

/* 1. Eliminate Duplicate Search Bars on Mobile (<= 1100px) when Page has Command Search Bar */
@media (max-width: 1100px) {
    html body:has(.tv2-cmd-shell) header.tv-header #tvGlobalSearch,
    html body:has(.tv2-cmd-shell) header.tv-header .tv-gsearch {
        display: none !important;
    }
    html body main.tv-main {
        padding-bottom: 84px !important;
    }
}

/* Desktop Header Search: Fit full placeholder with zero clipping */
@media (min-width: 1101px) {
    html body header.tv-header .tv-gsearch,
    html body header.tv-header #tvGlobalSearch {
        flex: 0 0 248px !important;
        width: 248px !important;
        min-width: 240px !important;
        max-width: 255px !important;
    }
    html body header.tv-header .tv-gs-input,
    html body header.tv-header #tvGlobalSearchInput {
        font-size: 11.4px !important;
    }
}

/* 2. Prototype-Matched Compact Midnight-Navy Hero Command Strip */
.tv2-hero-banner {
    background: radial-gradient(circle at 86% 14%, rgba(29, 78, 216, 0.38) 0%, transparent 46%),
                radial-gradient(circle at 8% 92%, rgba(56, 189, 248, 0.16) 0%, transparent 45%),
                linear-gradient(135deg, #071226 0%, #0D2247 58%, #102B5C 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.18) !important;
    border-radius: 16px !important;
    padding: 18px 20px 16px !important;
    margin: 0 0 12px !important;
    box-shadow: 0 12px 30px -8px rgba(9, 24, 51, 0.28) !important;
    box-sizing: border-box !important;
}
.tv2-hero-banner .tv2-jobs-head {
    margin-bottom: 12px !important;
}
.tv2-hero-banner .tv2-jobs-head-left h1 {
    color: #FFFFFF !important;
    font-size: 21px !important;
    margin: 0 !important;
}
.tv2-hero-banner .tv2-jobs-head-left p {
    color: rgba(226, 232, 240, 0.88) !important;
    font-size: 12.8px !important;
    margin: 3px 0 0 !important;
}
.tv2-hero-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
}
.tv2-hero-count-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.34);
    color: #BAE6FD;
    font-size: 11.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.tv2-hero-count-pill i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #34D399;
    display: inline-block;
}
.tv2-hero-banner .tv2-jobs-head-actions .tv-btn-ghost {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #FFFFFF !important;
}
.tv2-hero-banner .tv2-jobs-head-actions .tv-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18) !important;
}
.tv2-hero-banner .tv2-jobs-head-actions .tv-btn-soft {
    background: rgba(56, 189, 248, 0.16) !important;
    border-color: rgba(125, 211, 252, 0.36) !important;
    color: #E0F2FE !important;
}
.tv2-hero-banner .tv2-jobs-head-actions .tv-btn-soft:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    color: #FFFFFF !important;
}
.tv2-hero-banner .tv2-cmd-shell {
    margin: 0 !important;
    background: var(--v2-surface) !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    box-shadow: 0 10px 24px -6px rgba(2, 6, 23, 0.36) !important;
}

/* 3. Zero-Shift, Zero-Clipping Lock on Explorer Wrappers & Job Cards (Desktop + Mobile) */
html body main [data-skeleton-target],
html body main .tv2-explorer,
html body main .tv2-explorer .tv2-list-col {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

html body main .tv2-explorer .tv2-job-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 14px 16px !important;
    border: 1px solid var(--v2-border) !important;
    border-left: 3px solid transparent !important;
    border-radius: 13px !important;
    background: var(--v2-surface) !important;
    box-sizing: border-box !important;
}

html body main .tv2-explorer .tv2-job-card.is-selected {
    border-color: var(--v2-primary-border) !important;
    border-left: 3px solid var(--v2-primary) !important;
    box-shadow: 0 4px 16px rgba(29, 78, 216, 0.11) !important;
}

html body main .tv2-explorer .tv2-job-card > * {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Mobile Refinements (<= 768px / 400px) */
@media (max-width: 768px) {
    .tv2-hero-banner {
        padding: 14px 12px 12px !important;
        border-radius: 14px !important;
    }
    .tv2-hero-banner .tv2-jobs-head-left h1 {
        font-size: 18px !important;
    }
    .tv2-hero-banner .tv2-cmd-shell {
        padding: 6px !important;
        border-radius: 12px !important;
    }
    .tv2-hero-banner .tv2-cmd-field,
    .tv2-cmd-shell .tv2-cmd-field {
        height: 36px !important;
        padding: 0 10px !important;
    }
    .tv2-hero-banner .tv2-cmd-submit,
    .tv2-cmd-shell .tv2-cmd-submit {
        height: 36px !important;
        min-height: 36px !important;
    }
    html body main .tv2-explorer .tv2-job-card {
        padding: 13px 14px !important;
    }
    html body .tv-subnav-bar .tv-subnav-inner {
        padding-right: 16px !important;
    }
}
/* === END TV2-DEEP-MISMATCH-FIX-V1 === */

/* === TV2-DEEP-AUDIT-6FIXES-V2 === */

/* 1. SLIM SINGLE-ROW MOBILE HEADER (<= 1100px) WITH ON-DEMAND SEARCH TOGGLE */
.tv-mob-search-btn {
    display: none !important;
}
@media (max-width: 1100px) {
    html body header.tv-header .tv-nav {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        min-height: 56px !important;
        padding: 8px 12px !important;
    }
    html body header.tv-header .tv-brand {
        margin-right: auto !important;
    }
    html body header.tv-header .tv-mob-search-btn {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        min-height: 38px !important;
        border-radius: 10px !important;
        border: 1px solid var(--v2-border) !important;
        background: var(--v2-surface-soft) !important;
        color: var(--v2-ink) !important;
        font-size: 15px !important;
        cursor: pointer !important;
        padding: 0 !important;
        flex: 0 0 auto !important;
    }
    html body header.tv-header .tv-mob-search-btn[aria-expanded="true"] {
        border-color: var(--v2-primary) !important;
        background: var(--v2-primary-soft) !important;
        color: var(--v2-primary) !important;
    }
    /* Hide bulky 2nd-row search bar by default on ALL mobile pages; reveal only when toggled */
    html body header.tv-header #tvGlobalSearch,
    html body header.tv-header .tv-gsearch {
        display: none !important;
        order: 99 !important;
        flex: 1 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 4px 0 2px !important;
    }
    html body header.tv-header.tv-mob-search-open #tvGlobalSearch,
    html body header.tv-header.tv-mob-search-open .tv-gsearch {
        display: block !important;
    }
}

/* 2. DASHBOARD MOBILE 4-CARD KPI STRIP: BALANCED COMPACT HORIZONTAL 2x2 TILES */
@media (max-width: 768px) {
    html body main .tv-kpis.tv-kpi-strip-4 {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-bottom: 0 !important;
    }
    html body main .tv-kpis.tv-kpi-strip-4 > .tv-kpi {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        gap: 9px !important;
        padding: 10px 10px !important;
        min-height: 0 !important;
        border-radius: 12px !important;
        box-sizing: border-box !important;
    }
    html body main .tv-kpis.tv-kpi-strip-4 > .tv-kpi > i {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
        min-height: 34px !important;
        margin: 0 !important;
        flex: 0 0 34px !important;
        font-size: 15px !important;
        border-radius: 9px !important;
    }
    html body main .tv-kpis.tv-kpi-strip-4 > .tv-kpi > div {
        flex: 1 1 0% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1px !important;
        margin: 0 !important;
    }
    html body main .tv-kpis.tv-kpi-strip-4 > .tv-kpi strong {
        font-size: 15.5px !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
    }
    html body main .tv-kpis.tv-kpi-strip-4 > .tv-kpi span {
        font-size: 10px !important;
        line-height: 1.25 !important;
        letter-spacing: 0.02em !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}

/* 3. ZERO MID-WORD WRAPPING ON STATUS CHIPS ("Applied" NEVER wraps to "Applie / d") */
html body .tv-status-chip,
html body .tv2-match-pill,
html body .tv2-salary-pill,
html body .tv2-jc-stream-chip,
html body .tv-badge {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    flex-shrink: 0 !important;
}
html body .tv2-mini-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
}
html body .tv2-mini-row-main {
    flex: 1 1 0% !important;
    min-width: 0 !important;
    overflow: hidden !important;
}
html body .tv2-mini-row > .tv-status-chip,
html body .tv2-mini-row > .tv2-match-pill,
html body .tv2-mini-row > .tv2-jc-stream-chip {
    flex: 0 0 auto !important;
}

/* 4. MOBILE JOB CARD #1 ZERO BORDER/PADDING/:target/:focus SHIFT */
html body main .tv2-explorer .tv2-job-card::before,
html body main .tv2-explorer .tv2-job-card::after {
    content: none !important;
    display: none !important;
}
html body main .tv2-explorer .tv2-job-card,
html body main .tv2-explorer .tv2-job-card:first-child,
html body main .tv2-explorer .tv2-job-card.is-selected,
html body main .tv2-explorer .tv2-job-card:focus,
html body main .tv2-explorer .tv2-job-card:focus-visible,
html body main .tv2-explorer .tv2-job-card:target {
    margin: 0 !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    outline: none !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}
/* Restrict desktop Split-View .is-selected 3px blue border strictly to Desktop (>= 1024px) */
@media (max-width: 1023px) {
    html body main .tv2-explorer .tv2-job-card,
    html body main .tv2-explorer .tv2-job-card:first-child,
    html body main .tv2-explorer .tv2-job-card.is-selected,
    html body main .tv2-explorer .tv2-job-card:focus,
    html body main .tv2-explorer .tv2-job-card:target {
        padding: 13px 14px !important;
        border: 1px solid var(--v2-border) !important;
        border-left: 1px solid var(--v2-border) !important;
        box-shadow: var(--v2-shadow-xs) !important;
        background: var(--v2-surface) !important;
    }
    html body main .tv2-explorer .tv2-job-card.tv-bulk-selected {
        border-color: var(--v2-primary) !important;
        background: var(--v2-primary-soft) !important;
    }
}

/* 5. SLEEK 2-ROW MOBILE PAGINATION BAR (<= 640px, Zero Multi-Line Wrapping) */
@media (max-width: 640px) {
    html body nav.tv-pagebar {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px 8px !important;
        padding: 10px 12px !important;
        border-radius: 13px !important;
        box-sizing: border-box !important;
    }
    html body nav.tv-pagebar .tv-pagebar-nav {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        overflow-x: auto !important;
        scrollbar-width: none !important;
    }
    html body nav.tv-pagebar .tv-pagebar-nav::-webkit-scrollbar {
        display: none !important;
    }
    /* Hide First & Last edge buttons on compact phones to prevent wrapping */
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-edge:first-child,
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-edge:last-child {
        display: none !important;
    }
    /* Show active page + up to 2 nearby pages cleanly in 1 single line */
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-num {
        display: none !important;
    }
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-num.active,
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-num.active + .tv-pg-num,
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-num.active + .tv-pg-num + .tv-pg-num,
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg-num:has(+ .tv-pg-num.active) {
        display: inline-flex !important;
    }
    html body nav.tv-pagebar .tv-pagebar-nav > .tv-pg {
        height: 32px !important;
        min-height: 32px !important;
        min-width: 32px !important;
        padding: 0 10px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
        flex: 0 0 auto !important;
    }
    html body nav.tv-pagebar .tv-pagebar-info {
        order: 2 !important;
        font-size: 11.5px !important;
        text-align: left !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    html body nav.tv-pagebar .tv-pagebar-size {
        order: 3 !important;
        flex: 0 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        font-size: 11.5px !important;
    }
    html body nav.tv-pagebar .tv-pagebar-size select {
        height: 30px !important;
        min-height: 30px !important;
        padding: 0 22px 0 8px !important;
        font-size: 12px !important;
    }
}
/* === END TV2-DEEP-AUDIT-6FIXES-V2 === */

/* === TV2-COMMAND-PALETTE-NAVBAR-FIX === */

/* 1. Clean Global Search Command Palette Overlay (Zero Navbar Collision on ALL Screens) */
html body #tvGlobalSearch.tv-gsearch {
    display: none !important;
    position: fixed !important;
    top: 72px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: min(620px, calc(100vw - 24px)) !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px !important;
    z-index: 1600 !important;
    background: var(--v2-surface) !important;
    border: 1px solid var(--v2-border-strong) !important;
    border-radius: 16px !important;
    box-shadow: var(--v2-shadow-lg) !important;
    box-sizing: border-box !important;
}
html body.tv-gsearch-modal-open #tvGlobalSearch.tv-gsearch {
    display: block !important;
}
.tv-gs-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1550;
    background: rgba(9, 24, 51, 0.45);
    backdrop-filter: blur(3px);
}
.tv-gs-backdrop[hidden] {
    display: none !important;
}
html body #tvGlobalSearch .tv-gs-box {
    width: 100% !important;
    height: 44px !important;
    padding: 0 10px 0 14px !important;
    border-radius: 11px !important;
    border: 1.5px solid var(--v2-primary) !important;
    background: var(--v2-surface-soft) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}
html body #tvGlobalSearch .tv-gs-input,
html body #tvGlobalSearch #tvGlobalSearchInput {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    height: 40px !important;
    font-size: 14px !important;
    color: var(--v2-ink) !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
}
.tv-gs-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    border: 1px solid var(--v2-border);
    background: var(--v2-surface);
    color: var(--v2-muted);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tv-gs-close-btn:hover {
    color: var(--v2-ink);
    border-color: var(--v2-border-strong);
}
html body #tvGlobalSearch .tv-gs-dropdown {
    position: static !important;
    margin-top: 8px !important;
    width: 100% !important;
    max-height: 62vh !important;
    overflow-y: auto !important;
    border: 1px solid var(--v2-border) !important;
    border-radius: 12px !important;
    box-shadow: none !important;
}

/* 2. Uniform High-Contrast Header Utility Icon Buttons (Search, Bell, Live Chat) */
.tv-nav-svg {
    width: 17px;
    height: 17px;
    display: block;
    flex-shrink: 0;
}

@media (min-width: 1101px) {
    html body header.tv-header .tv-nav {
        gap: 16px !important;
    }
    html body header.tv-header .tv-menu {
        gap: 6px !important;
    }
    html body header.tv-header .tv-menu .tv-link {
        padding: 7px 11px !important;
        font-size: 13px !important;
    }
    html body header.tv-header .tv-desk-search-btn,
    html body header.tv-header .tv-bell,
    html body header.tv-header .tv-nav-chat {
        position: relative !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        border: 1px solid var(--v2-border) !important;
        background: var(--v2-surface) !important;
        color: var(--v2-ink-2) !important;
        filter: none !important;
        box-shadow: var(--v2-shadow-xs) !important;
        transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease !important;
    }
    html body header.tv-header .tv-desk-search-btn:hover,
    html body header.tv-header .tv-bell:hover,
    html body header.tv-header .tv-nav-chat:hover {
        border-color: var(--v2-primary-border) !important;
        background: var(--v2-primary-soft) !important;
        color: var(--v2-primary) !important;
    }
    html body header.tv-header .tv-bell .tv-bell-count,
    html body header.tv-header .tv-nav-chat .tv-bell-count {
        position: absolute !important;
        top: -5px !important;
        right: -5px !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 5px !important;
        border-radius: 999px !important;
        background: #DC2626 !important;
        color: #FFFFFF !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-shadow: 0 0 0 2px var(--v2-surface) !important;
    }
    html body header.tv-header .tv-settings-wrap {
        margin-left: 4px !important;
    }
}

@media (max-width: 1100px) {
    html body header.tv-header .tv-desk-search-btn {
        display: none !important;
    }
    html body header.tv-header .tv-nav-chat {
        border: 0 !important;
        background: transparent !important;
        color: var(--v2-ink) !important;
        filter: none !important;
    }
}
/* === END TV2-COMMAND-PALETTE-NAVBAR-FIX === */

/* === TV2-MOBILE-HEADER-ORDER-FIX === */
@media (max-width: 1100px) {
    html body header.tv-header .tv-brand {
        order: 1 !important;
        margin-right: auto !important;
    }
    html body header.tv-header .tv-mob-search-btn {
        order: 2 !important;
        margin-left: 0 !important;
    }
    html body header.tv-header .tv-burger {
        order: 3 !important;
        margin-left: 0 !important;
    }
}
/* === END TV2-MOBILE-HEADER-ORDER-FIX === */

/* === TV2-ANTI-FLICKER-STABILITY-FIX === */
/* Prevent vertical scrollbar jump across short/tall Job Seeker tabs (Dashboard, Saved, Alerts, Openings) */
html {
    scrollbar-gutter: stable;
}
/* Respect saved Feed View pre-paint so desktop never flashes Split -> Feed */
html.tv2-pref-feed .tv2-explorer.is-split {
    grid-template-columns: minmax(0, 1fr) !important;
}
html.tv2-pref-feed .tv2-explorer.is-split .tv2-preview-col {
    display: none !important;
}
/* Disable entry fade animation on loading bar & cards during tab switches to eliminate flash */
html body .tv-main,
html body .tv-card,
html body .tv2-job-card,
html body .tv-subnav-pill {
    animation: none !important;
}
/* Prevent header compact-mode flash during desktop page navigation */
@media (min-width: 1101px) {
    html body header.tv-header.tv-nav-compact .tv-menu {
        display: flex !important;
        position: static !important;
        box-shadow: none !important;
        background: transparent !important;
        border: 0 !important;
        padding: 0 !important;
    }
    html body header.tv-header.tv-nav-compact .tv-burger {
        display: none !important;
    }
}
/* === END TV2-ANTI-FLICKER-STABILITY-FIX === */