        /* ══════════════════════════════════════════════════
           AURES Vacancy Report — Design System
           Modern Corporate Dashboard — Clean & Airy
           ══════════════════════════════════════════════════ */

        :root {
            /* ── Brand Blue Palette ── */
            --brand-50: #eff6ff;
            --brand-100: #dbeafe;
            --brand-200: #bfdbfe;
            --brand-300: #93c5fd;
            --brand-400: #60a5fa;
            --brand-500: #3b82f6;
            --brand-600: #2563eb;
            --brand-700: #1d4ed8;
            --brand-800: #1e40af;
            --brand-900: #1e3a8a;

            /* ── Surfaces ── */
            --surface: #f8fafc;
            --surface-warm: #ffffff;
            --surface-card: #ffffff;

            /* ── Text Hierarchy ── */
            --text-primary: #0f172a;
            --text-secondary: #475569;
            --text-muted: #94a3b8;

            /* ── Borders ── */
            --border-light: rgba(15, 23, 42, 0.05);
            --border-medium: rgba(15, 23, 42, 0.08);

            /* ── Glass ── */
            --glass: rgba(255, 255, 255, 0.92);
            --glass-border: rgba(255, 255, 255, 0.7);

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

            /* ── Theme Helpers ── */
            --ambient-primary: rgba(59, 130, 246, 0.04);
            --ambient-secondary: rgba(59, 130, 246, 0.03);
        }

        html[data-theme="dark"] {
            --surface: #020617;
            --surface-warm: #0b1220;
            --surface-card: #0f172a;
            --text-primary: #e2e8f0;
            --text-secondary: #cbd5e1;
            --text-muted: #94a3b8;
            --border-light: rgba(148, 163, 184, 0.18);
            --border-medium: rgba(148, 163, 184, 0.28);
            --glass: rgba(15, 23, 42, 0.9);
            --glass-border: rgba(148, 163, 184, 0.2);
            --ambient-primary: rgba(59, 130, 246, 0.12);
            --ambient-secondary: rgba(59, 130, 246, 0.08);
        }

        html[data-theme="love"] {
            --brand-50: #fff1f7;
            --brand-100: #ffe4f0;
            --brand-200: #fecce1;
            --brand-300: #f9a8d4;
            --brand-400: #f472b6;
            --brand-500: #ec4899;
            --brand-600: #db2777;
            --brand-700: #be185d;
            --brand-800: #9d174d;
            --brand-900: #831843;
            --surface: #fff7fb;
            --surface-warm: #fff1f7;
            --surface-card: rgba(255, 252, 254, 0.92);
            --text-primary: #4a1230;
            --text-secondary: #7f244d;
            --text-muted: #c0628f;
            --border-light: rgba(190, 24, 93, 0.1);
            --border-medium: rgba(190, 24, 93, 0.18);
            --glass: rgba(255, 244, 250, 0.78);
            --glass-border: rgba(255, 255, 255, 0.8);
            --ambient-primary: rgba(236, 72, 153, 0.18);
            --ambient-secondary: rgba(244, 114, 182, 0.12);
        }

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

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--surface);
            color: var(--text-primary);
            overflow: hidden;
            height: 100vh;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* ── Ambient Background ───────────────────── */
        body::before {
            content: '';
            position: fixed;
            inset: 0;
            background:
                radial-gradient(ellipse 80% 60% at 5% -10%, var(--ambient-primary) 0%, transparent 60%),
                radial-gradient(ellipse 50% 40% at 95% 100%, var(--ambient-secondary) 0%, transparent 50%);
            pointer-events: none;
            z-index: 0;
        }

        body::after {
            content: '';
            position: fixed;
            top: -250px;
            right: -150px;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.03) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: 0;
            animation: ambientPulse 20s ease-in-out infinite;
        }

        html[data-theme="dark"] body::after {
            background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
        }

        html[data-theme="love"] body::before {
            background:
                radial-gradient(circle at 12% 18%, rgba(244, 114, 182, 0.28) 0%, transparent 28%),
                radial-gradient(circle at 88% 12%, rgba(251, 113, 133, 0.22) 0%, transparent 24%),
                radial-gradient(circle at 78% 82%, rgba(217, 70, 239, 0.14) 0%, transparent 26%),
                linear-gradient(180deg, rgba(255, 244, 250, 0.96) 0%, rgba(255, 247, 251, 0.98) 100%);
        }

        html[data-theme="love"] body::after {
            top: -180px;
            right: -100px;
            width: 720px;
            height: 720px;
            background:
                radial-gradient(circle, rgba(244, 114, 182, 0.24) 0%, rgba(244, 114, 182, 0.08) 38%, transparent 72%);
            filter: blur(2px);
        }

        @keyframes ambientPulse {

            0%,
            100% {
                opacity: 0.5;
                transform: scale(1);
            }

            50% {
                opacity: 1;
                transform: scale(1.1);
            }
        }

        /* ── Header ───────────────────────────────── */
        .app-header {
            background: var(--glass);
            backdrop-filter: blur(24px) saturate(1.3);
            -webkit-backdrop-filter: blur(24px) saturate(1.3);
            border-bottom: 1px solid var(--border-light);
            height: 64px;
            padding: 0 32px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 50;
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.015);
        }

        .logo-wrap {
            display: flex;
            align-items: center;
            gap: 14px;
            cursor: pointer;
        }

        .logo-mark {
            position: relative;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .logo-mark-bg {
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, var(--brand-500) 0%, var(--brand-600) 100%);
            border-radius: 10px;
            transform: rotate(0deg);
            transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
        }

        .logo-wrap:hover .logo-mark-bg {
            transform: rotate(6deg);
        }

        .logo-mark-inner {
            position: relative;
            z-index: 1;
            font-family: 'Inter', sans-serif;
            font-weight: 900;
            font-size: 16px;
            color: white;
            letter-spacing: -0.04em;
        }

        .logo-text {
            display: flex;
            flex-direction: column;
        }

        .firebase-status {
            display: inline-flex;
            align-self: flex-start;
            align-items: center;
            gap: 4px;
            margin-top: 2px;
            margin-left: -1px;
            width: fit-content;
            padding: 1px 6px;
            border-radius: 999px;
            border: 1px solid var(--border-light);
            background: var(--surface-card);
            color: var(--text-muted);
            font-size: 8px;
            line-height: 1.1;
            font-weight: 700;
            letter-spacing: 0.02em;
            text-transform: uppercase;
        }

        .firebase-status-dot {
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: currentColor;
            box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.12);
        }

        .firebase-status.loading {
            color: #f59e0b;
        }

        .firebase-status.connected {
            color: #10b981;
        }

        .firebase-status.degraded {
            color: #f97316;
        }

        .firebase-status.disconnected {
            color: #ef4444;
        }

        .logo-title {
            font-size: 19px;
            font-weight: 800;
            color: var(--text-primary);
            letter-spacing: -0.03em;
            line-height: 1;
        }

        .logo-title span {
            color: var(--brand-500);
        }

        .version-badge {
            display: inline-flex;
            align-items: center;
            margin-left: 6px;
            padding: 3px 9px;
            border-radius: 999px;
            border: 1px solid var(--border-light);
            background: linear-gradient(135deg, var(--surface) 0%, var(--surface-card) 100%);
            color: var(--text-muted);
            font-size: 10px;
            font-weight: 700;
            vertical-align: middle;
            letter-spacing: 0.04em;
            cursor: pointer;
            transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
            appearance: none;
            font-family: inherit;
        }

        .version-badge:hover {
            transform: translateY(-1px);
            border-color: var(--brand-300);
            color: var(--brand-600);
            box-shadow: 0 6px 18px rgba(148, 163, 184, 0.14);
        }

        .version-badge:focus-visible {
            outline: none;
            box-shadow: 0 0 0 4px rgba(236, 72, 153, 0.14);
        }

        html[data-theme="love"] .version-badge {
            background: linear-gradient(135deg, rgba(236, 72, 153, 0.18) 0%, rgba(251, 113, 133, 0.28) 100%);
            border-color: rgba(236, 72, 153, 0.26);
            color: var(--brand-800);
            animation: loveBadgePulse 1.8s ease-in-out infinite;
            box-shadow: 0 10px 28px rgba(236, 72, 153, 0.18);
        }

        @keyframes loveBadgePulse {

            0%,
            100% {
                transform: translateY(0) scale(1);
            }

            50% {
                transform: translateY(-1px) scale(1.04);
            }
        }

        /* ── Buttons ──────────────────────────────── */
        .btn-upload {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 16px;
            background: var(--surface-card);
            border: 1px solid var(--border-medium);
            color: var(--text-secondary);
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .btn-upload:hover {
            background: var(--brand-50);
            border-color: var(--brand-200);
            color: var(--brand-600);
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
        }

        .btn-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 34px;
            height: 34px;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-medium);
            background: var(--surface-card);
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-icon:hover {
            color: var(--brand-500);
            border-color: var(--brand-300);
        }

        .theme-toggle {
            gap: 8px;
            width: auto;
            padding: 0 12px;
        }

        .theme-toggle-label {
            display: none;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
        }

        .love-hearts {
            position: fixed;
            inset: 0;
            overflow: hidden;
            pointer-events: none;
            z-index: 2;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        html[data-theme="love"] .love-hearts {
            opacity: 1;
        }

        .love-heart {
            position: absolute;
            bottom: -48px;
            font-size: 18px;
            line-height: 1;
            color: rgba(236, 72, 153, 0.72);
            text-shadow: 0 8px 18px rgba(236, 72, 153, 0.2);
            animation: loveFloat linear forwards;
            will-change: transform, opacity;
        }

        @keyframes loveFloat {
            0% {
                transform: translate3d(0, 0, 0) rotate(0deg) scale(0.9);
                opacity: 0;
            }

            12% {
                opacity: 0.85;
            }

            100% {
                transform: translate3d(var(--love-drift, 0px), -115vh, 0) rotate(var(--love-rotate, 0deg)) scale(1.18);
                opacity: 0;
            }
        }

        /* ── KPI Cards ────────────────────────────── */
        .kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 18px;
            margin-bottom: 32px;
        }

        @media (max-width: 768px) {
            .kpi-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        .kpi-card {
            background: white;
            border-radius: var(--radius-lg);
            padding: 24px 24px 22px;
            border: 1px solid var(--border-light);
            position: relative;
            overflow: hidden;
            transition: all 0.25s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        }

        .kpi-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
            border-color: var(--border-medium);
        }

        .kpi-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
        }

        .stats-grid {
            display: grid;
            gap: 14px;
        }

        .stats-grid-6 {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }

        .stats-grid-3 {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .stats-grid-2 {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: start;
        }

        .stats-grid-feature-pair {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: stretch;
        }

        .stats-grid-feature-pair > .branch-card {
            height: 100%;
        }

        .stats-note-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 20px;
        }

        .stats-conversion-layout {
            display: grid;
            grid-template-rows: minmax(0, 1fr) auto;
            gap: 10px;
            min-height: 280px;
        }

        .stats-conversion-columns {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
            align-items: start;
        }

        .stats-section {
            margin-bottom: 28px;
        }

        .stats-section-intro {
            display: flex;
            flex-direction: column;
            gap: 6px;
            margin: 0 0 14px;
            padding: 0 2px;
        }

        .stats-section-kicker {
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--brand-600);
        }

        .stats-section-title {
            font-size: 20px;
            font-weight: 800;
            letter-spacing: -0.03em;
            line-height: 1.2;
            color: var(--text-primary);
        }

        .stats-section-description {
            max-width: 760px;
            font-size: 13px;
            line-height: 1.55;
            color: var(--text-secondary);
        }

        .stats-grid-vac-overview {
            grid-template-columns: repeat(3, minmax(0, 1fr));
            align-items: start;
        }

        .stats-grid-processing {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            align-items: start;
        }

        .stats-stack {
            display: grid;
            gap: 14px;
            align-content: start;
        }

        .stats-card-title {
            font-size: 13px;
            font-weight: 700;
            line-height: 1.35;
            letter-spacing: -0.01em;
            color: var(--text-primary);
            margin-bottom: 14px;
            overflow-wrap: anywhere;
        }

        .stats-card-copy {
            margin-top: 12px;
            font-size: 10px;
            line-height: 1.5;
            color: var(--text-muted);
            text-align: center;
        }

        .kpi-card.accent-slate::before {
            background: linear-gradient(90deg, #94a3b8, #cbd5e1);
        }

        .kpi-card.accent-blue::before {
            background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
        }

        .kpi-card.accent-amber::before {
            background: linear-gradient(90deg, #f59e0b, #fbbf24);
        }

        .kpi-card.accent-green::before {
            background: linear-gradient(90deg, #10b981, #34d399);
        }

        .kpi-icon {
            position: absolute;
            right: 22px;
            top: 22px;
            width: 42px;
            height: 42px;
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s ease;
        }

        .kpi-card:hover .kpi-icon {
            transform: scale(1.08);
        }

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

        .kpi-value {
            font-size: 36px;
            font-weight: 800;
            line-height: 1;
            letter-spacing: -0.03em;
        }

        /* ── Drop Zone ────────────────────────────── */
        .drop-zone {
            border: 2px dashed var(--brand-200);
            border-radius: var(--radius-xl);
            background: white;
            transition: all 0.3s ease;
        }

        .drop-zone.drag-active {
            border-color: var(--brand-400);
            background: var(--brand-50);
        }

        .upload-icon-wrap {
            width: 80px;
            height: 80px;
            background: var(--brand-50);
            border-radius: var(--radius-xl);
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 24px;
            position: relative;
        }

        .upload-title {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
            letter-spacing: -0.02em;
        }

        .upload-desc {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 28px;
        }

        .upload-desc code {
            background: var(--brand-50);
            color: var(--brand-600);
            padding: 2px 8px;
            border-radius: 5px;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 12px;
            border: 1px solid var(--brand-100);
        }

        .btn-primary-upload {
            padding: 12px 32px;
            background: var(--brand-600);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .btn-primary-upload:hover {
            background: var(--brand-700);
            box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
        }

        /* ── Branch Cards ─────────────────────────── */
        .branch-card {
            background: var(--surface-card);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            overflow: hidden;
            margin-bottom: 20px;
            transition: all 0.2s ease;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
        }

        .branch-card:hover {
            border-color: var(--border-medium);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        }

        html[data-theme="love"] .app-header {
            border-bottom-color: rgba(236, 72, 153, 0.12);
            box-shadow: 0 10px 30px rgba(236, 72, 153, 0.08);
        }

        html[data-theme="love"] .logo-mark-bg {
            background: linear-gradient(135deg, #ec4899 0%, #f472b6 48%, #fb7185 100%);
            box-shadow: 0 10px 24px rgba(236, 72, 153, 0.28);
        }

        html[data-theme="love"] .logo-mark-inner {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
        }

        html[data-theme="love"] .btn-upload,
        html[data-theme="love"] .btn-icon {
            background: rgba(255, 252, 254, 0.82);
            border-color: rgba(236, 72, 153, 0.14);
        }

        html[data-theme="love"] .btn-upload:hover,
        html[data-theme="love"] .btn-icon:hover {
            background: rgba(253, 242, 248, 0.98);
            color: var(--brand-600);
            border-color: rgba(236, 72, 153, 0.3);
            box-shadow: 0 10px 24px rgba(236, 72, 153, 0.12);
        }

        html[data-theme="love"] .btn-primary-upload {
            background: linear-gradient(135deg, #ec4899 0%, #f472b6 58%, #fb7185 100%);
            box-shadow: 0 10px 22px rgba(236, 72, 153, 0.22);
        }

        html[data-theme="love"] .btn-primary-upload:hover {
            background: linear-gradient(135deg, #db2777 0%, #ec4899 58%, #f43f5e 100%);
            box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
        }

        html[data-theme="love"] .kpi-card,
        html[data-theme="love"] .branch-card,
        html[data-theme="love"] .drop-zone,
        html[data-theme="love"] .login-card,
        html[data-theme="love"] .phase-dropdown {
            background: rgba(255, 252, 254, 0.88);
            border-color: rgba(236, 72, 153, 0.12);
            box-shadow: 0 12px 28px rgba(236, 72, 153, 0.08);
        }

        html[data-theme="love"] .kpi-card::after,
        html[data-theme="love"] .branch-card::after {
            content: '♥';
            position: absolute;
            top: 12px;
            right: 14px;
            font-size: 15px;
            color: rgba(236, 72, 153, 0.16);
            pointer-events: none;
        }

        html[data-theme="love"] .branch-header {
            background: linear-gradient(90deg, #9d174d 0%, #db2777 56%, #fb7185 100%);
        }

        html[data-theme="love"] .region-label {
            background: rgba(252, 231, 243, 0.95);
            border-color: rgba(236, 72, 153, 0.18);
            color: var(--brand-700);
        }

        html[data-theme="love"] .region-line {
            background: linear-gradient(90deg, rgba(244, 114, 182, 0.42), transparent);
        }

        html[data-theme="love"] .vacancy-table thead th {
            background: rgba(255, 239, 247, 0.96);
        }

        html[data-theme="love"] .vacancy-table tbody tr:nth-child(even) {
            background: rgba(255, 241, 247, 0.66);
        }

        html[data-theme="love"] .vacancy-table tbody tr:hover {
            background: rgba(244, 114, 182, 0.08) !important;
        }

        html[data-theme="love"] .manual-note,
        html[data-theme="love"] .manual-select,
        html[data-theme="love"] .login-input {
            color: var(--text-primary);
        }

        html[data-theme="love"] .login-input:focus {
            border-color: rgba(236, 72, 153, 0.4);
            box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.12);
        }

        html[data-theme="love"] .upload-icon-wrap,
        html[data-theme="love"] .upload-desc code {
            background: rgba(252, 231, 243, 0.92);
            border-color: rgba(236, 72, 153, 0.16);
        }

        html[data-theme="love"] #countryNav,
        html[data-theme="love"] #globalSearch {
            background: rgba(255, 252, 254, 0.9) !important;
            border-color: rgba(236, 72, 153, 0.16) !important;
            color: var(--text-primary) !important;
        }

        html[data-theme="love"] #countryNav {
            box-shadow: 0 10px 20px rgba(236, 72, 153, 0.08);
        }

        html[data-theme="love"] #countryNav button {
            color: var(--text-secondary) !important;
        }

        html[data-theme="love"] #countryNav button.bg-blue-600 {
            background: linear-gradient(135deg, #ec4899 0%, #fb7185 100%) !important;
            color: #ffffff !important;
            box-shadow: 0 8px 16px rgba(236, 72, 153, 0.18) !important;
        }

        html[data-theme="love"] #countryNav button:not(.bg-blue-600):hover {
            background: rgba(252, 231, 243, 0.96) !important;
            color: var(--brand-700) !important;
        }

        html[data-theme="love"] #loadingOverlay {
            background: rgba(255, 244, 250, 0.88) !important;
        }

        .branch-header {
            background: linear-gradient(90deg, var(--brand-900) 0%, var(--brand-700) 100%);
            border-bottom: none;
            padding: 16px 24px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .branch-name {
            font-size: 14px;
            font-weight: 700;
            color: #ffffff;
            display: flex;
            align-items: center;
            gap: 8px;
            letter-spacing: -0.01em;
        }

        .branch-count {
            font-size: 11px;
            font-weight: 600;
            background: rgba(255, 255, 255, 0.15);
            color: #ffffff;
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 0px;
            padding: 4px 14px;
            letter-spacing: 0.02em;
        }

        /* ── Region Dividers ──────────────────────── */
        .region-divider {
            display: flex;
            align-items: center;
            gap: 14px;
            margin-top: 40px;
            margin-bottom: 16px;
        }

        .region-label {
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--brand-600);
            background: var(--brand-50);
            border: 1px solid var(--brand-100);
            padding: 5px 16px;
            border-radius: 20px;
            white-space: nowrap;
        }

        .region-line {
            flex: 1;
            height: 1px;
            background: linear-gradient(90deg, var(--brand-100), transparent);
        }

        /* ── Data Table ───────────────────────────── */
        .vacancy-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 13px;
        }

        .vacancy-table thead th {
            padding: 14px 20px;
            font-size: 10px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--text-muted);
            background: #fafbfd;
            text-align: left;
            border-bottom: 1px solid var(--border-medium);
            border-right: 1px solid var(--border-light);
            white-space: nowrap;
        }

        .vacancy-table thead th:last-child {
            border-right: none;
        }

        .vacancy-table thead th.center {
            text-align: center;
        }

        .vacancy-table tbody tr {
            border-bottom: 1px solid rgba(15, 23, 42, 0.04);
            transition: all 0.15s ease;
        }

        .vacancy-table tbody tr:nth-child(even) {
            background: rgba(248, 250, 252, 0.6);
        }

        .vacancy-table tbody tr:last-child {
            border-bottom: none;
        }

        .vacancy-table tbody tr:hover {
            background: rgba(59, 130, 246, 0.025) !important;
            border-left-color: var(--brand-500) !important;
        }

        .vacancy-table td {
            padding: 18px 20px;
            vertical-align: middle;
            color: var(--text-primary);
            border-right: 1px solid var(--border-light);
            line-height: 1.5;
        }

        .vacancy-table td:last-child {
            border-right: none;
        }

        .vacancy-table td.center {
            text-align: center;
        }

        .capacity-estimate-cell {
            position: relative;
        }

        .capacity-estimate-cell .numeric-editable {
            opacity: 0.5;
            font-style: italic;
        }

        .capacity-estimate-cell .numeric-editable::after {
            content: ' *';
            color: #f59e0b;
            font-style: normal;
            font-weight: 700;
        }

        .capacity-estimate-legend {
            margin-top: 10px;
            color: var(--text-muted);
            font-size: 11px;
            font-style: italic;
        }

        .vacancy-table td.manual-cell {
            padding: 14px 8px;
        }

        .manual-field-stack {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 6px;
            width: 100%;
            min-width: 64px;
            max-width: 76px;
            margin: 0 auto;
        }

        .manual-select-wrap {
            position: relative;
            width: 100%;
            display: flex;
            justify-content: center;
        }

        .manual-select {
            width: 100%;
            padding: 4px 14px 4px 4px;
            border: none;
            border-radius: 8px;
            background: transparent;
            color: var(--text-primary);
            font-size: 12px;
            font-weight: 600;
            text-align: center;
            text-align-last: center;
            appearance: none;
            -webkit-appearance: none;
            -moz-appearance: none;
            outline: none;
            cursor: pointer;
        }

        .manual-select-wrap::after {
            content: '▾';
            position: absolute;
            right: 4px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 10px;
            color: var(--text-muted);
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.15s ease;
        }

        .manual-field-stack:hover .manual-select-wrap::after,
        .manual-field-stack:focus-within .manual-select-wrap::after {
            opacity: 0.75;
        }

        .manual-note {
            width: 100%;
            display: block;
            min-height: 30px;
            padding: 0;
            border: none;
            background: transparent;
            color: var(--text-secondary);
            font-size: 12px;
            line-height: 1.3;
            text-align: center;
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            outline: none;
        }

        .manual-note:empty::before {
            content: '';
        }

        /* ── Candidate Chips (Badges) ─────────────── */
        .candidate-chip {
            border-radius: 0px !important;
            padding: 3px 10px !important;
            font-size: 12px !important;
            font-weight: 500 !important;
            transition: all 0.15s ease;
            cursor: default;
        }

        .candidate-chip:hover {
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }

        .chip-remove {
            display: none;
            cursor: pointer;
            margin-left: 3px;
            font-size: 11px;
            line-height: 1;
            opacity: 0.5;
        }

        .chip-remove:hover {
            opacity: 1;
        }

        .candidate-chip:hover .chip-remove {
            display: inline;
        }

        /* ── Division Tag ─────────────────────────── */
        .division-tag {
            font-size: 11px;
            font-weight: 500;
            background: var(--brand-50);
            color: var(--brand-600);
            padding: 2px 10px;
            border-radius: 0px;
            border: 1px solid var(--brand-100);
        }

        /* ── Interactive Controls ─────────────────── */
        .add-name-btn {
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.15s;
        }

        .phase-row:hover .add-name-btn,
        tr:hover .add-phase-btn {
            opacity: 1;
        }

        .add-phase-btn {
            opacity: 0;
            transition: opacity 0.15s;
            cursor: pointer;
        }

        .row-controls {
            opacity: 0;
            transition: opacity 0.15s;
        }

        tr:hover .row-controls {
            opacity: 1;
        }

        .phase-dropdown {
            position: fixed;
            background: white;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
            padding: 4px;
            z-index: 50;
        }

        .phase-dropdown button {
            display: block;
            width: 100%;
            text-align: left;
            padding: 7px 14px;
            font-size: 12px;
            border-radius: var(--radius-sm);
            font-family: inherit;
            cursor: pointer;
            border: none;
            background: none;
            transition: background 0.12s;
        }

        .phase-dropdown button:hover {
            background: var(--brand-50);
        }

        /* ── Editable Fields ──────────────────────── */
        [contenteditable] {
            outline: none;
            border-radius: 4px;
            transition: box-shadow 0.15s ease;
        }

        [contenteditable]:hover {
            box-shadow: 0 0 0 1.5px var(--brand-200);
        }

        [contenteditable]:focus {
            box-shadow: 0 0 0 2px var(--brand-400);
            background: var(--brand-50);
        }

        .editable-centered {
            display: block;
            width: 100%;
            text-align: center;
        }

        .single-line-editable {
            white-space: nowrap;
            overflow: hidden;
        }

        .numeric-editable {
            min-width: 100%;
            font-variant-numeric: tabular-nums;
        }

        /* ── Loader ───────────────────────────────── */
        .loader {
            width: 36px;
            height: 36px;
            border: 3px solid var(--brand-100);
            border-top-color: var(--brand-500);
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }

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

        /* ── Animations ───────────────────────────── */
        .fade-in {
            animation: fadeIn 0.35s ease-out;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(6px);
            }

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

        /* ── Scrollbar ────────────────────────────── */
        ::-webkit-scrollbar {
            width: 5px;
        }

        ::-webkit-scrollbar-track {
            background: transparent;
        }

        ::-webkit-scrollbar-thumb {
            background: var(--brand-200);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--brand-300);
        }

        /* ── Login Overlay ─────────────────────────── */
        #loginOverlay {
            position: fixed;
            inset: 0;
            background: var(--surface);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            transition: opacity 0.3s;
        }

        .login-card {
            background: white;
            padding: 48px 40px;
            border-radius: var(--radius-lg);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 0 1px var(--border-light);
            text-align: center;
            width: 100%;
            max-width: 420px;
        }

        .login-input {
            width: 100%;
            padding: 12px 16px;
            border: 1.5px solid rgba(15, 23, 42, 0.1);
            border-radius: var(--radius-sm);
            font-size: 15px;
            font-family: inherit;
            outline: none;
            transition: border-color 0.2s, box-shadow 0.2s;
            margin-bottom: 20px;
            margin-top: 10px;
            color: var(--text-primary);
        }

        .login-input:focus {
            border-color: var(--brand-400);
            box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
        }

        .login-input::placeholder {
            color: var(--text-muted);
        }

        html[data-theme="dark"] .kpi-card,
        html[data-theme="dark"] .drop-zone,
        html[data-theme="dark"] .login-card,
        html[data-theme="dark"] .phase-dropdown {
            background: var(--surface-card);
        }

        html[data-theme="dark"] .vacancy-table thead th {
            background: #111b2e;
        }

        html[data-theme="dark"] .vacancy-table tbody tr:nth-child(even) {
            background: rgba(30, 41, 59, 0.6);
        }

        html[data-theme="dark"] #countryNav,
        html[data-theme="dark"] #globalSearch {
            background: var(--surface-card) !important;
            border-color: var(--border-medium) !important;
            color: var(--text-primary) !important;
        }

        html[data-theme="dark"] #loadingOverlay {
            background: rgba(2, 6, 23, 0.92) !important;
        }

        @media (max-width: 1024px) {
            body {
                height: auto;
                min-height: 100vh;
                overflow: auto;
            }

            .app-header {
                height: auto;
                padding: 12px 14px;
                align-items: flex-start;
                flex-direction: column;
                gap: 12px;
            }

            .logo-wrap {
                width: 100%;
            }

            .app-header>div:last-child {
                width: 100%;
                margin-left: 0;
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                flex-wrap: wrap;
                gap: 8px;
            }

            #countryNav {
                margin-right: 0 !important;
                width: 100%;
                overflow-x: auto;
                -webkit-overflow-scrolling: touch;
            }

            .relative.flex.items-center.mr-4 {
                margin-right: 0 !important;
                grid-column: 1 / -1;
                width: 100%;
                min-width: 100%;
            }

            #globalSearch {
                width: 100% !important;
            }

            #themeToggle,
            #statsBtn,
            #funnelBtn {
                width: 100%;
                justify-content: center;
            }

            .theme-toggle-label {
                display: inline;
            }

            main {
                padding: 16px 14px !important;
                overflow: visible !important;
            }

            .kpi-card {
                padding: 18px 16px;
            }

            .kpi-value {
                font-size: 30px;
            }

            .branch-header {
                padding: 14px;
            }

            .vacancy-table {
                font-size: 12px;
            }

            .vacancy-table thead th,
            .vacancy-table td {
                padding: 12px 10px;
            }

            .stats-grid-6 {
                grid-template-columns: repeat(3, minmax(0, 1fr));
            }

            .stats-grid-3 {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .stats-grid-vac-overview {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .stats-section-title {
                font-size: 18px;
            }
        }

        @media (max-width: 768px) {
            .kpi-grid {
                gap: 12px;
            }

            .kpi-card {
                min-height: 132px;
            }

            .kpi-value {
                font-size: 26px;
            }

            .branch-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 8px;
            }

            .branch-name,
            .branch-count {
                width: 100%;
            }

            .vacancy-table {
                min-width: 980px;
            }

            .vacancy-table td {
                line-height: 1.4;
            }

            .stats-grid-6,
            .stats-grid-3,
            .stats-grid-2,
            .stats-grid-processing,
            .stats-note-grid,
            .stats-conversion-columns,
            .stats-grid-vac-overview {
                grid-template-columns: 1fr;
            }

            .stats-section {
                margin-bottom: 24px;
            }

            .stats-section-description {
                font-size: 12px;
            }
        }

        @media (max-width: 560px) {
            .stats-grid-feature-pair {
                grid-template-columns: 1fr;
            }

            .app-header>div:last-child {
                grid-template-columns: 1fr;
            }

            .logo-title {
                font-size: 17px;
                line-height: 1.3;
            }

            .version-badge {
                display: inline-flex;
                margin-left: 0 !important;
                margin-top: 6px;
            }

            .theme-toggle {
                padding: 0 10px;
            }

            .stats-grid-6 {
                gap: 10px;
            }
        }
