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

        .lead-content-viewer {
            display: grid;
            gap: 14px;
        }

        .lead-content-card {
            border: 1px solid var(--border2);
            border-radius: 14px;
            background: var(--bg3);
            overflow: hidden;
        }

        .lead-content-card-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border);
        }

        .lead-content-card-head strong {
            color: var(--text);
            font-size: 14px;
        }

        .lead-content-block {
            padding: 14px 16px;
            display: grid;
            gap: 8px;
        }

        .lead-content-label {
            color: var(--muted2);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: .12em;
            text-transform: uppercase;
        }

        .lead-content-subject,
        .lead-content-body {
            color: var(--text);
            overflow-wrap: anywhere;
        }

        .lead-content-body {
            white-space: pre-wrap;
            line-height: 1.65;
            color: var(--muted);
        }

        body[data-theme="light"] .lead-content-card {
            background: #ffffff;
            border-color: #d8deea;
        }

        :root {
            --bg: #0a0b0e;
            --bg2: #111318;
            --bg3: #181b22;
            --border: #232730;
            --border2: #2e3340;
            --text: #e8eaf0;
            --muted: #6b7280;
            --muted2: #4b5260;
            --accent: #4f8ef7;
            --accent2: #3a7de8;
            --green: #34d399;
            --amber: #fbbf24;
            --red: #f87171;
            --purple: #a78bfa;
            --mono: 'DM Mono', monospace;
            --sans: 'Manrope', sans-serif;
            --radius: 10px;
            --sidebar: 220px;
            --topbar-height: 72px;
        }

        body[data-theme="light"] {
            --bg: #f7f8fb;
            --bg2: #ffffff;
            --bg3: #f1f3f8;
            --border: #e4e7ef;
            --border2: #d5dae6;
            --text: #0f172a;
            --muted: #64748b;
            --muted2: #94a3b8;
            --accent: #2563eb;
            --accent2: #1d4ed8;
            --green: #16a34a;
            --amber: #f59e0b;
            --red: #ef4444;
            --purple: #7c3aed;
        }

        body.sidebar-collapsed {
            --sidebar: 72px;
        }

        body {
            font-family: var(--sans);
            background: var(--bg);
            color: var(--text);
            min-height: 100vh;
            display: flex;
            font-size: 14px;
            line-height: 1.5;
        }

        /* ── Sidebar ── */
        .sidebar {
            width: var(--sidebar);
            background: var(--bg2);
            border-right: 1px solid var(--border);
            display: flex;
            flex-direction: column;
            position: fixed;
            top: 0;
            left: 0;
            bottom: 0;
            z-index: 100;
            transition: width 0.2s ease;
        }

        .logo {
            height: var(--topbar-height);
            padding: 0 20px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
        }

        .logo-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }

        .logo-name {
            font-family: var(--mono);
            font-size: 15px;
            font-weight: 500;
            color: var(--text);
            letter-spacing: -0.3px;
        }

        .logo-tag {
            font-size: 11px;
            color: var(--muted);
            margin-top: 2px;
        }

        .status-dot {
            display: inline-block;
            width: 6px;
            height: 6px;
            background: var(--green);
            border-radius: 50%;
            margin-right: 6px;
            animation: pulse 2s infinite;
        }

        @keyframes pulse {

            0%,
            100% {
                opacity: 1;
            }

            50% {
                opacity: 0.4;
            }
        }

        nav {
            padding: 14px 0;
            flex: 1;
        }

        .nav-section {
            padding: 10px 20px 6px;
            font-size: 10px;
            font-weight: 500;
            color: var(--muted2);
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .nav-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 9px 20px;
            cursor: pointer;
            color: var(--muted);
            border-radius: 0;
            transition: all 0.15s;
            font-size: 13.5px;
            border-left: 2px solid transparent;
            position: relative;
        }

        .nav-item:hover {
            color: var(--text);
            background: var(--bg3);
        }

        .nav-item.active {
            color: var(--accent);
            border-left-color: var(--accent);
            background: rgba(79, 142, 247, 0.06);
        }

        .nav-icon {
            width: 18px;
            text-align: center;
            font-size: 14px;
        }

        .nav-text {
            white-space: nowrap;
        }

        body.sidebar-collapsed .logo-name,
        body.sidebar-collapsed .logo-tag,
        body.sidebar-collapsed .nav-section,
        body.sidebar-collapsed .sidebar-footer .footer-label,
        body.sidebar-collapsed .sidebar-footer .footer-meta {
            display: none;
        }

        body.sidebar-collapsed .nav-item {
            justify-content: center;
            padding: 8px 0;
            border-left: none;
        }

        body.sidebar-collapsed .nav-item::after {
            content: attr(data-label);
            position: absolute;
            left: 72px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--bg2);
            color: var(--text);
            border: 1px solid var(--border2);
            padding: 6px 10px;
            border-radius: 8px;
            font-size: 12px;
            white-space: nowrap;
            opacity: 0;
            pointer-events: none;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
            transition: opacity 0.15s ease;
            z-index: 1000;
        }

        body.sidebar-collapsed .nav-item:hover::after {
            opacity: 1;
        }

        .icon-btn {
            border: 1px solid var(--border2);
            background: var(--bg3);
            color: var(--text);
            width: 38px;
            height: 38px;
            border-radius: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: all 0.15s;
        }

        .icon-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .sidebar-footer {
            padding: 14px 20px;
            border-top: 1px solid var(--border);
            font-size: 11px;
            color: var(--muted2);
            font-family: var(--mono);
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .sidebar-footer-row {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .sidebar-alert-btn {
            width: 100%;
            border: 1px solid var(--border2);
            background: rgba(37, 99, 235, 0.08);
            color: var(--text);
            min-height: 38px;
            border-radius: 12px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            font-family: var(--sans);
            font-size: 12px;
            font-weight: 600;
            transition: all 0.15s ease;
        }

        .sidebar-alert-btn:hover {
            border-color: rgba(96, 165, 250, 0.55);
            background: rgba(37, 99, 235, 0.14);
            color: #fff;
        }

        .sidebar-alert-btn.is-enabled {
            border-color: rgba(16, 185, 129, 0.45);
            background: rgba(16, 185, 129, 0.12);
            color: var(--success);
        }

        .nav-icon-pill {
            width: 38px;
            height: 38px;
            border-radius: 13px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border: 1px solid transparent;
            transition: all 0.15s ease;
        }

        body.sidebar-collapsed .nav-icon-pill {
            border-color: var(--border2);
            background: var(--bg3);
        }

        body.sidebar-collapsed .nav-item.active .nav-icon-pill {
            border-color: rgba(37, 99, 235, 0.4);
            background: rgba(37, 99, 235, 0.12);
        }

        body.sidebar-collapsed .nav-item:hover .nav-icon-pill {
            border-color: var(--accent);
        }

        body.sidebar-collapsed .logo-row {
            justify-content: center;
        }

        body.sidebar-collapsed .logo {
            padding: 0 14px;
        }

        body.sidebar-collapsed .sidebar-footer {
            align-items: center;
        }

        body.sidebar-collapsed .sidebar-footer-row {
            justify-content: center;
        }

        body.sidebar-collapsed .sidebar-alert-btn {
            width: 42px;
            height: 42px;
            padding: 0;
        }

        body.sidebar-collapsed .sidebar-alert-btn span {
            display: none;
        }

        body.sidebar-collapsed .logout-btn {
            width: 42px;
            height: 42px;
            padding: 0;
            border-radius: 14px;
        }

        /* ── Main ── */
        .main {
            margin-left: var(--sidebar);
            flex: 1;
            min-width: 0;
            width: calc(100vw - var(--sidebar));
            display: flex;
            flex-direction: column;
            overflow-x: hidden;
            transition: margin-left 0.2s ease;
        }

        .topbar {
            min-height: var(--topbar-height);
            padding: 0 32px;
            border-bottom: 1px solid var(--border);
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg2);
            position: sticky;
            top: 0;
            z-index: 50;
        }

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

        .topbar-actions {
            display: flex;
            gap: 10px;
        }

        .btn {
            padding: 7px 14px;
            border-radius: var(--radius);
            font-size: 13px;
            font-family: var(--sans);
            font-weight: 500;
            cursor: pointer;
            transition: all 0.15s;
            border: none;
        }

        .btn-primary {
            background: var(--accent);
            color: #fff;
        }

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

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

        .btn-ghost:hover {
            color: var(--text);
            border-color: var(--border2);
            background: var(--bg3);
        }

        .btn-danger {
            background: rgba(248, 113, 113, 0.12);
            color: var(--red);
            border: 1px solid rgba(248, 113, 113, 0.2);
        }

        .btn-danger:hover {
            background: rgba(248, 113, 113, 0.2);
        }

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

        .btn-success {
            background: rgba(52, 211, 153, 0.12);
            color: var(--green);
            border: 1px solid rgba(52, 211, 153, 0.2);
        }

        .btn-success:hover {
            background: rgba(52, 211, 153, 0.2);
        }

        /* ── Content ── */
        .content {
            padding: 28px;
            flex: 1;
            min-width: 0;
        }

        /* ── Stats row ── */
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 14px;
            margin-bottom: 28px;
        }

        .stat-card {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            padding: 18px 20px;
        }

        .stat-label {
            font-size: 11px;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            margin-bottom: 8px;
        }

        .stat-value {
            font-size: 28px;
            font-weight: 600;
            font-family: var(--mono);
            color: var(--text);
            line-height: 1;
        }

        .stat-sub {
            font-size: 11px;
            color: var(--muted);
            margin-top: 6px;
        }

        .stat-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            margin-right: 5px;
        }

        /* ── Cards ── */
        .card {
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            overflow: hidden;
            margin-bottom: 20px;
        }

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

        .card-title {
            font-size: 13px;
            font-weight: 500;
            color: var(--text);
        }

        /* ── Table ── */
        table {
            width: 100%;
            border-collapse: collapse;
        }

        .table-scroll {
            width: 100%;
            overflow-x: auto;
            overflow-y: hidden;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: thin;
            scrollbar-color: var(--border2) transparent;
        }

        .table-scroll>table {
            width: max-content;
            min-width: 100%;
        }

        th {
            padding: 10px 20px;
            text-align: left;
            font-size: 11px;
            font-weight: 500;
            color: var(--muted);
            text-transform: uppercase;
            letter-spacing: 0.8px;
            border-bottom: 1px solid var(--border);
            background: var(--bg);
        }

        td {
            padding: 12px 20px;
            font-size: 13px;
            border-bottom: 1px solid var(--border);
            color: var(--text);
            vertical-align: middle;
        }

        tr:last-child td {
            border-bottom: none;
        }

        tr:hover td {
            background: rgba(255, 255, 255, 0.02);
        }

        .table-primary-link {
            color: var(--text);
            text-decoration: none;
        }

        .table-primary-link:hover {
            color: var(--text);
            text-decoration: underline;
            text-underline-offset: 3px;
        }

        .mono {
            font-family: var(--mono);
            font-size: 12px;
        }

        .table-copy {
            padding: 0 20px 12px;
            color: var(--muted);
            font-size: 12px;
        }

        .metric-breakdown {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 86px;
        }

        .metric-line {
            display: flex;
            align-items: baseline;
            gap: 6px;
            white-space: nowrap;
        }

        .metric-value {
            font-family: var(--mono);
            font-size: 13px;
            color: var(--text);
        }

        .metric-label {
            font-size: 11px;
            color: var(--muted2);
            text-transform: uppercase;
            letter-spacing: 0.6px;
        }

        .th-sub {
            display: block;
            margin-top: 3px;
            font-size: 9px;
            color: var(--muted2);
            letter-spacing: 0.6px;
        }

        /* ── Badges ── */
        .badge {
            display: inline-flex;
            align-items: center;
            gap: 5px;
            padding: 3px 9px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 500;
        }

        .badge-green {
            background: rgba(52, 211, 153, 0.12);
            color: var(--green);
        }

        .badge-amber {
            background: rgba(251, 191, 36, 0.12);
            color: var(--amber);
        }

        .badge-red {
            background: rgba(248, 113, 113, 0.12);
            color: var(--red);
        }

        .badge-blue {
            background: rgba(79, 142, 247, 0.12);
            color: var(--accent);
        }

        .badge-purple {
            background: rgba(167, 139, 250, 0.12);
            color: var(--purple);
        }

        .badge-gray {
            background: rgba(107, 114, 128, 0.12);
            color: var(--muted);
        }

        /* ── Progress bar ── */
        .progress-wrap {
            background: var(--bg3);
            border-radius: 4px;
            height: 5px;
            overflow: hidden;
            width: 80px;
        }

        .progress-fill {
            height: 100%;
            border-radius: 4px;
            background: var(--accent);
            transition: width 0.3s;
        }

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

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

        .modal {
            background: var(--bg2);
            border: 1px solid var(--border2);
            border-radius: 14px;
            width: 500px;
            max-width: 95vw;
            max-height: 85vh;
            overflow-y: auto;
            animation: slideUp 0.2s ease;
        }

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

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

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

        .modal-title {
            font-size: 15px;
            font-weight: 500;
        }

        .modal-close {
            background: none;
            border: none;
            color: var(--muted);
            font-size: 20px;
            cursor: pointer;
            line-height: 1;
        }

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

        .modal-body {
            padding: 20px 24px;
        }

        .modal-footer {
            padding: 16px 24px;
            border-top: 1px solid var(--border);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }

        /* ── Form ── */
        .form-group {
            margin-bottom: 16px;
        }

        .form-label {
            display: block;
            font-size: 12px;
            font-weight: 500;
            color: var(--muted);
            margin-bottom: 6px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .form-input,
        .form-select {
            width: 100%;
            padding: 9px 12px;
            background: var(--bg3);
            border: 1px solid var(--border2);
            border-radius: 8px;
            color: var(--text);
            font-size: 13px;
            font-family: var(--sans);
            transition: border-color 0.15s;
            outline: none;
        }

        .form-input:focus,
        .form-select:focus {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px rgba(79, 142, 247, 0.1);
        }

        .form-select option {
            background: var(--bg3);
        }

        .form-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .input-suffix-row {
            display: grid;
            grid-template-columns: 1fr auto;
            align-items: center;
            gap: 10px;
        }

        .input-suffix-row span {
            color: var(--muted);
            font-family: var(--mono);
            font-size: 13px;
        }

        .range-input {
            width: 100%;
            margin-top: 10px;
            accent-color: var(--accent);
        }

        .form-hint {
            font-size: 11px;
            color: var(--muted2);
            margin-top: 4px;
        }

        .inline-error {
            color: var(--red);
            font-size: 12px;
            margin-top: 8px;
        }

        .inline-ok,
        .settings-total-line {
            color: var(--green);
            font-size: 12px;
            margin-top: 8px;
        }

        .settings-total-line.is-error {
            color: var(--red);
        }

        .scheduler-capacity-summary {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
            gap: 12px;
            padding: 12px 14px;
            border: 1px solid var(--border2);
            border-radius: 12px;
            background: var(--bg3);
            margin-bottom: 16px;
        }

        .scheduler-capacity-summary strong {
            display: block;
            margin-top: 4px;
            color: var(--text);
            font-family: var(--mono);
            font-size: 16px;
        }

        .radio-card-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .radio-card,
        .toggle-row {
            display: flex;
            gap: 12px;
            align-items: flex-start;
            padding: 12px 14px;
            border: 1px solid var(--border2);
            border-radius: 12px;
            background: var(--bg3);
            cursor: pointer;
        }

        .radio-card:has(input:checked) {
            border-color: rgba(88, 136, 255, .75);
            background: rgba(88, 136, 255, .12);
            box-shadow: inset 0 0 0 1px rgba(88, 136, 255, .18);
        }

        .radio-card strong,
        .toggle-row strong {
            display: block;
            color: var(--text);
            font-size: 13px;
            margin-bottom: 4px;
        }

        .radio-card small,
        .toggle-row small {
            display: block;
            color: var(--muted2);
            font-size: 11px;
            line-height: 1.45;
        }

        .plan-metrics-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }

        .plan-metric {
            padding: 14px;
            border: 1px solid var(--border2);
            border-radius: 12px;
            background: var(--bg3);
        }

        .plan-metric strong {
            display: block;
            color: var(--text);
            font-family: var(--mono);
            font-size: 24px;
            line-height: 1;
            margin-bottom: 6px;
        }

        .plan-metric span {
            display: block;
            color: var(--muted);
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: .08em;
        }

        .plan-info-grid,
        .queue-status-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 10px;
            margin-top: 12px;
        }

        .plan-info-item,
        .queue-status-item {
            color: var(--muted);
            font-size: 12px;
        }

        .plan-info-item strong,
        .queue-status-item strong {
            display: block;
            color: var(--text);
            font-family: var(--mono);
            margin-top: 3px;
        }

        .status-dot-mini {
            display: inline-block;
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-right: 6px;
        }

        .dot-teal { background: var(--green); }
        .dot-amber { background: var(--amber); }
        .dot-coral { background: var(--red); }

        .info-banner {
            margin-top: 14px;
            padding: 12px 14px;
            border-radius: 12px;
            color: var(--green);
            border: 1px solid rgba(52, 211, 153, .22);
            background: rgba(52, 211, 153, .08);
            font-size: 12px;
        }

        .campaign-send-summary {
            display: grid;
            gap: 6px;
            min-width: 160px;
        }

        .mini-progress,
        .capacity-progress {
            height: 7px;
            border-radius: 999px;
            overflow: hidden;
            background: rgba(148, 163, 184, .12);
        }

        .mini-progress span,
        .capacity-progress span {
            display: block;
            height: 100%;
            width: 0;
            border-radius: inherit;
            background: var(--green);
        }

        .capacity-overview {
            display: grid;
            gap: 14px;
        }

        .capacity-summary-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 12px;
        }

        .capacity-account {
            display: grid;
            gap: 7px;
            padding: 12px 0;
            border-top: 1px solid var(--border);
        }

        .capacity-account:first-child {
            border-top: 0;
        }

        .capacity-row {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            color: var(--muted);
            font-size: 12px;
        }

        .capacity-row strong {
            color: var(--text);
            font-family: var(--mono);
        }

        .skeleton-line {
            height: 14px;
            border-radius: 999px;
            background: linear-gradient(90deg, var(--bg3), rgba(255,255,255,.08), var(--bg3));
            background-size: 200% 100%;
            animation: shimmer 1.2s ease-in-out infinite;
        }

        .skeleton-line.short {
            width: 44%;
        }

        @keyframes shimmer {
            from { background-position: 200% 0; }
            to { background-position: -200% 0; }
        }

        /* ── Toast ── */
        .toast-wrap {
            position: fixed;
            bottom: 24px;
            right: 24px;
            display: flex;
            flex-direction: column;
            gap: 8px;
            z-index: 999;
        }

        .toast {
            padding: 12px 18px;
            border-radius: var(--radius);
            font-size: 13px;
            font-weight: 500;
            animation: toastIn 0.2s ease;
            max-width: 320px;
        }

        @keyframes toastIn {
            from {
                transform: translateX(20px);
                opacity: 0;
            }

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

        .toast-success {
            background: rgba(52, 211, 153, 0.15);
            border: 1px solid rgba(52, 211, 153, 0.3);
            color: var(--green);
        }

        .toast-error {
            background: rgba(248, 113, 113, 0.15);
            border: 1px solid rgba(248, 113, 113, 0.3);
            color: var(--red);
        }

        .toast-info {
            background: rgba(79, 142, 247, 0.15);
            border: 1px solid rgba(79, 142, 247, 0.3);
            color: var(--accent);
        }

        /* ── Pages ── */
        .page {
            display: none;
        }

        .page.active {
            display: block;
        }

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

        .empty-icon {
            font-size: 36px;
            margin-bottom: 12px;
            opacity: 0.4;
        }

        .empty-title {
            font-size: 14px;
            font-weight: 500;
            color: var(--muted);
            margin-bottom: 6px;
        }

        .empty-sub {
            font-size: 12px;
            color: var(--muted2);
        }

        /* ── Health indicators ── */
        .health-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            display: inline-block;
        }

        .health-ok {
            background: var(--green);
        }

        .health-warn {
            background: var(--amber);
        }

        .health-fail {
            background: var(--red);
        }

        .health-unknown {
            background: var(--muted2);
        }

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

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

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

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

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

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

        /* ── Auth ── */
        .login-overlay {
            position: fixed;
            inset: 0;
            background: rgba(6, 8, 12, 0.78);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 300;
            backdrop-filter: blur(6px);
        }

        .login-card {
            width: min(92vw, 380px);
            background: var(--bg2);
            border: 1px solid var(--border);
            border-radius: 14px;
            padding: 24px;
            box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
        }

        .login-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 4px;
        }

        .login-sub {
            color: var(--muted);
            font-size: 12px;
            margin-bottom: 16px;
        }

        .login-error {
            display: none;
            padding: 8px 10px;
            border-radius: 8px;
            background: rgba(248, 113, 113, 0.08);
            border: 1px solid rgba(248, 113, 113, 0.35);
            color: var(--red);
            font-size: 12px;
            margin-bottom: 12px;
        }

        .logout-btn {
            padding: 6px 10px;
            font-size: 12px;
            border-radius: 8px;
        }

        .day-toggle {
            display: grid;
            grid-template-columns: repeat(7, minmax(0, 1fr));
            gap: 8px;
        }

        .day-btn {
            background: var(--bg3);
            border: 1px solid var(--border2);
            color: var(--muted);
            padding: 8px 0;
            border-radius: 10px;
            cursor: pointer;
            font-size: 12px;
            transition: all 0.15s;
            text-align: center;
        }

        .day-btn:hover {
            color: var(--text);
            border-color: var(--accent2);
        }

        .day-btn.active {
            color: var(--accent);
            border-color: var(--accent);
            background: rgba(79, 142, 247, 0.12);
        }

        .quick-row {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-top: 8px;
        }

        .quick-row .btn {
            padding: 6px 10px;
            font-size: 12px;
        }

        .tab-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            border-bottom: 1px solid var(--border);
            padding-bottom: 10px;
            margin-bottom: 16px;
        }

        .tab-btn {
            background: transparent;
            border: none;
            color: var(--muted);
            font-size: 13px;
            font-weight: 500;
            padding: 6px 2px;
            cursor: pointer;
            border-bottom: 2px solid transparent;
        }

        .tab-btn.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        .campaign-tab {
            display: none;
            animation: fadeTab 0.2s ease-out;
        }

        .campaign-tab.active {
            display: block;
        }

        @keyframes fadeTab {
            from { opacity: 0; transform: translateY(6px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .variant-row {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 12px;
            border: 1px solid var(--border2);
            border-radius: 12px;
            background: var(--bg2);
        }

        .variant-badge {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 600;
            background: rgba(79, 142, 247, 0.12);
            color: var(--accent);
        }

        .variant-row input {
            flex: 1;
        }

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

        /* ── Unibox ── */
        .inbox-toolbar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 16px;
        }

        .inbox-search {
            min-width: 240px;
            max-width: 420px;
            flex: 1 1 280px;
        }

        .inbox-chip {
            padding: 6px 10px;
            border-radius: 999px;
            background: var(--bg3);
            border: 1px solid var(--border);
            font-size: 12px;
            color: var(--muted);
        }

        .inbox-filter-list {
            display: flex;
            align-items: center;
            gap: 8px;
            overflow-x: auto;
            padding-bottom: 2px;
        }

        .inbox-filter {
            display: inline-flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            padding: 8px 12px;
            border-radius: 999px;
            border: 1px solid transparent;
            background: rgba(255, 255, 255, 0.02);
            cursor: pointer;
            white-space: nowrap;
            transition: all 0.2s ease;
            font-size: 12px;
        }

        .inbox-filter:hover {
            border-color: var(--border);
            background: rgba(255, 255, 255, 0.04);
        }

        .inbox-filter.active {
            border-color: rgba(79, 142, 247, 0.48);
            background: rgba(79, 142, 247, 0.14);
            color: var(--accent);
        }

        .inbox-workspace {
            border: 1px solid var(--border2);
            border-radius: 16px;
            overflow: hidden;
            background: var(--bg2);
            display: grid;
            grid-template-columns: minmax(300px, 400px) minmax(0, 1fr);
            min-height: 640px;
        }

        .inbox-thread-pane {
            border-right: 1px solid var(--border2);
            background: var(--bg);
            display: flex;
            flex-direction: column;
            min-height: 640px;
        }

        .inbox-thread-head {
            padding: 12px 14px;
            border-bottom: 1px solid var(--border2);
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            position: sticky;
            top: 0;
            background: color-mix(in srgb, var(--bg) 94%, transparent);
            backdrop-filter: blur(2px);
            z-index: 1;
        }

        .inbox-thread-list {
            overflow: auto;
            overflow-x: hidden;
            padding: 6px 0;
            display: grid;
            gap: 0;
        }

        .inbox-thread-item {
            text-align: left;
            border: none;
            border-bottom: 1px solid var(--border2);
            border-radius: 0;
            background: transparent;
            padding: 12px 14px;
            cursor: pointer;
            transition: all 0.2s ease;
            display: flex;
            align-items: flex-start;
            gap: 10px;
            width: 100%;
            max-width: 100%;
            min-width: 0;
        }

        .inbox-thread-item:hover {
            background: color-mix(in srgb, var(--bg3) 74%, transparent);
        }

        .inbox-thread-item.active {
            background: rgba(79, 142, 247, 0.14);
            border-left: 3px solid var(--accent);
            padding-left: 11px;
        }

        .inbox-avatar {
            width: 34px;
            height: 34px;
            border-radius: 999px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            color: #fff;
            flex-shrink: 0;
            background: linear-gradient(135deg, #7c5cff 0%, #22d3ee 100%);
        }

        .inbox-thread-main {
            display: grid;
            gap: 4px;
            min-width: 0;
            flex: 1;
        }

        .inbox-thread-top {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 8px;
            font-size: 12px;
            color: var(--muted);
            min-width: 0;
        }

        .inbox-thread-from {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            font-size: 13px;
            font-weight: 600;
            color: var(--text);
            min-width: 0;
            flex: 1;
        }

        .inbox-ellipsis {
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            display: block;
            min-width: 0;
        }

        .inbox-unread-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--accent);
            display: inline-block;
            flex-shrink: 0;
        }

        .inbox-thread-subject {
            font-size: 13px;
            color: var(--text);
            line-height: 1.3;
            font-weight: 600;
        }

        .inbox-thread-snippet {
            font-size: 12px;
            color: var(--muted);
            line-height: 1.35;
        }

        .inbox-detail-pane {
            display: flex;
            flex-direction: column;
            min-height: 640px;
            background: var(--bg2);
        }

        .inbox-detail-empty {
            margin: auto;
            text-align: center;
            color: var(--muted);
            max-width: 360px;
            padding: 20px;
        }

        .inbox-detail-card {
            display: flex;
            flex-direction: column;
            min-height: 640px;
        }

        .inbox-detail-head {
            padding: 18px 20px;
            border-bottom: 1px solid var(--border2);
            display: grid;
            gap: 12px;
        }

        .inbox-detail-sender {
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .inbox-detail-sender-meta {
            min-width: 0;
            display: grid;
            gap: 3px;
        }

        .inbox-detail-sender-name {
            font-weight: 650;
            font-size: 16px;
            line-height: 1.25;
        }

        .inbox-detail-sender-email {
            color: var(--muted);
            font-size: 12px;
        }

        .inbox-detail-subject {
            font-size: 24px;
            line-height: 1.28;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin-top: 2px;
        }

        .inbox-detail-meta-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .inbox-recipient-row {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            color: var(--muted);
            font-size: 13px;
        }

        .inbox-pill-list {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            min-width: 0;
        }

        .inbox-pill {
            display: inline-flex;
            align-items: center;
            padding: 5px 10px;
            border-radius: 999px;
            border: 1px solid var(--border2);
            background: var(--bg3);
            font-size: 12px;
            color: var(--text);
        }

        .inbox-message-meta {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 12px;
            color: var(--muted);
            flex-wrap: wrap;
        }

        .inbox-detail-actions {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .inbox-detail-body-wrap {
            padding: 20px;
            overflow: auto;
            flex: 1;
            display: grid;
            gap: 14px;
        }

        .inbox-detail-summary-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 10px;
        }

        .inbox-detail-summary-card {
            border: 1px solid var(--border2);
            border-radius: 12px;
            padding: 10px 12px;
            background: var(--bg3);
            display: grid;
            gap: 4px;
        }

        .inbox-detail-summary-label {
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.6px;
            color: var(--muted2);
        }

        .inbox-detail-body {
            white-space: pre-wrap;
            overflow-wrap: anywhere;
            line-height: 1.6;
            background: var(--bg);
            border: 1px solid var(--border2);
            border-radius: 14px;
            padding: 16px;
            color: var(--text);
            min-height: 240px;
        }

        .inbox-detail-html-wrap {
            background: #fff;
            border: 1px solid var(--border2);
            border-radius: 14px;
            overflow: hidden;
            min-height: 260px;
        }

        .inbox-detail-html-frame {
            width: 100%;
            min-height: 520px;
            border: 0;
            background: #fff;
        }

        .inbox-detail-footer-actions {
            border-top: 1px solid var(--border2);
            margin-top: 2px;
            padding-top: 14px;
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .inbox-inline-compose {
            border: 1px solid var(--border2);
            border-radius: 14px;
            background: var(--bg);
            padding: 14px;
            display: grid;
            gap: 12px;
        }

        .inbox-inline-compose-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            flex-wrap: wrap;
        }

        .inbox-compose-identity {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }

        .inbox-compose-avatar {
            width: 34px;
            height: 34px;
            font-size: 12px;
        }

        .inbox-compose-identity-name {
            font-size: 13px;
            font-weight: 650;
            line-height: 1.25;
        }

        .inbox-compose-identity-email {
            font-size: 12px;
            color: var(--muted);
        }

        .inbox-compose-recipient-hint {
            font-size: 12px;
            color: var(--muted);
            padding: 0 2px;
        }

        .inbox-inline-compose-actions {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .inbox-inline-compose-actions-right {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .inbox-compose-toolbar {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-wrap: wrap;
            padding-top: 10px;
            border-top: 1px solid var(--border2);
        }

        .inbox-compose-tool-btn {
            min-width: 34px;
            height: 30px;
            border-radius: 8px;
            border: 1px solid var(--border2);
            background: var(--bg);
            color: var(--text);
            font-size: 13px;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            padding: 0 8px;
        }

        .inbox-compose-tool-btn:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        .inbox-compose-tool-btn:focus,
        .inbox-compose-tool-btn:focus-visible {
            outline: none;
            box-shadow: none;
            border-color: var(--border2);
        }

        .inbox-compose-toolbar-spacer {
            flex: 1;
        }

        .inbox-compose-editor {
            min-height: 180px;
            border: 1px solid var(--border2);
            border-radius: 12px;
            background: var(--bg);
            color: var(--text);
            padding: 12px;
            outline: none;
            line-height: 1.55;
            overflow-wrap: anywhere;
        }

        .inbox-compose-editor:focus {
            border-color: var(--border2);
            box-shadow: none;
            outline: none;
        }

        .inbox-compose-editor:focus-visible {
            border-color: var(--border2);
            box-shadow: none;
            outline: none;
        }

        .inbox-inline-compose .form-group:focus-within {
            box-shadow: none;
            outline: none;
        }

        .inbox-compose-editor[data-placeholder]:empty::before {
            content: attr(data-placeholder);
            color: var(--muted2);
            pointer-events: none;
        }

        .inbox-reply-send-btn {
            border-radius: 8px;
            background: #111827;
            color: #fff;
            border-color: #111827;
        }

        .inbox-reply-send-btn:hover {
            background: #0b1220;
            border-color: #0b1220;
            color: #fff;
        }

        .inbox-reply-send-btn:focus,
        .inbox-reply-send-btn:focus-visible {
            outline: none;
            box-shadow: none;
        }

        @media (max-width: 1120px) {
            .inbox-workspace {
                grid-template-columns: 1fr;
            }

            .inbox-thread-pane {
                border-right: none;
                border-bottom: 1px solid var(--border2);
                min-height: 360px;
                max-height: 420px;
            }

            .inbox-detail-card,
            .inbox-detail-pane {
                min-height: 520px;
            }
        }

        .preview-modal {
            max-width: 1200px;
            width: min(1200px, 96vw);
        }

        .preview-row {
            display: grid;
            grid-template-columns: minmax(300px, 1fr) minmax(420px, 1.6fr);
            gap: 16px;
        }

        @media (max-width: 900px) {
            .preview-row {
                grid-template-columns: 1fr;
            }
        }

        /* ── Analytics ── */
        .analytics-controls {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .analytics-chart-wrap {
            padding: 18px;
            border-radius: 16px;
            background: var(--bg3);
            border: 1px solid var(--border2);
        }

        .analytics-legend {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 12px;
            font-size: 12px;
            color: var(--muted);
        }

        .legend-item {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .legend-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
        }

        .analytics-axis {
            display: flex;
            justify-content: space-between;
            font-size: 11px;
            color: var(--muted2);
            margin-top: 10px;
        }

        .analytics-toolbar {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }

        .analytics-search {
            min-width: 240px;
            flex: 1 1 260px;
        }

        .analytics-workspace-grid {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
            gap: 18px;
            margin-top: 6px;
        }

        .analytics-panel {
            padding: 18px;
            border-radius: 16px;
            background: var(--bg3);
            border: 1px solid var(--border2);
        }

        .analytics-panel-head {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 14px;
        }

        .analytics-panel-copy {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        .analytics-panel-copy .form-hint {
            margin: 0;
        }

        .analytics-kpi-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 12px;
        }

        .analytics-kpi {
            padding: 14px 16px;
            border-radius: 14px;
            border: 1px solid var(--border2);
            background: var(--bg2);
        }

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

        .analytics-kpi-value {
            font-size: 24px;
            line-height: 1;
            font-weight: 600;
            font-family: var(--mono);
            margin-bottom: 6px;
        }

        .analytics-kpi-sub {
            font-size: 12px;
            color: var(--muted);
        }

        .analytics-kpi.tone-green .analytics-kpi-value {
            color: var(--green);
        }

        .analytics-kpi.tone-purple .analytics-kpi-value {
            color: var(--purple);
        }

        .analytics-kpi.tone-red .analytics-kpi-value {
            color: var(--red);
        }

        .analytics-kpi.tone-amber .analytics-kpi-value {
            color: var(--amber);
        }

        .analytics-health-note {
            font-size: 12px;
            color: var(--muted);
            line-height: 1.5;
        }

        .analytics-activity-list {
            display: grid;
            gap: 12px;
            max-height: 420px;
            overflow: auto;
            padding-right: 4px;
        }

        .analytics-activity-item {
            display: grid;
            gap: 8px;
            padding: 14px 16px;
            border-radius: 14px;
            border: 1px solid var(--border2);
            background: var(--bg2);
        }

        .analytics-activity-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            flex-wrap: wrap;
        }

        .analytics-activity-title {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            font-size: 13px;
            font-weight: 500;
        }

        .analytics-activity-meta {
            font-size: 11px;
            color: var(--muted2);
            white-space: nowrap;
        }

        .analytics-activity-body {
            display: grid;
            gap: 4px;
        }

        .analytics-activity-summary {
            color: var(--text);
            font-size: 13px;
        }

        .analytics-activity-detail {
            color: var(--muted);
            font-size: 12px;
        }

        .analytics-inline-tools {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .analytics-inline-tools .badge {
            padding: 6px 10px;
        }

        .analytics-table-note {
            font-size: 12px;
            color: var(--muted);
        }

        @media (min-width: 1400px) and (min-height: 820px) {
            body:has(#page-analytics.active) {
                overflow: hidden;
            }

            #page-analytics.active {
                height: 100vh;
                overflow: hidden;
            }

            #page-analytics.active .topbar {
                position: relative;
                top: auto;
                flex: 0 0 var(--topbar-height);
            }

            #page-analytics.active .content {
                height: calc(100vh - var(--topbar-height));
                overflow: hidden;
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                grid-template-rows: 92px minmax(230px, 0.86fr) minmax(250px, 1fr) minmax(120px, 0.42fr);
                gap: 14px;
                padding: 22px;
            }

            #page-analytics.active .analytics-stats-grid {
                grid-column: 1 / -1;
                grid-row: 1;
                grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
                gap: 12px;
                margin: 0;
                min-width: 0;
            }

            #page-analytics.active .stat-card {
                min-width: 0;
                padding: 14px 16px;
            }

            #page-analytics.active .stat-label,
            #page-analytics.active .stat-sub {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            #page-analytics.active .stat-value {
                font-size: clamp(20px, 1.35vw, 26px);
            }

            #page-analytics.active .content > .card {
                margin: 0;
                min-width: 0;
                min-height: 0;
            }

            #page-analytics.active .analytics-chart-card {
                grid-column: 1 / -1;
                grid-row: 2;
                display: grid;
                grid-template-rows: auto minmax(0, 1fr);
            }

            #page-analytics.active .analytics-chart-wrap {
                min-height: 0;
                height: 100%;
                display: grid;
                grid-template-rows: minmax(0, 1fr) auto auto;
                padding: 14px 18px;
            }

            #page-analytics.active #analytics-chart {
                display: block;
                max-width: 100%;
            }

            #page-analytics.active .analytics-reporting-card {
                grid-column: 1 / -1;
                grid-row: 3;
                display: grid;
                grid-template-rows: auto minmax(0, 1fr);
            }

            #page-analytics.active .analytics-reporting-card > .modal-body {
                min-height: 0;
                overflow: hidden;
                padding: 14px 18px !important;
                display: grid;
                grid-template-rows: auto minmax(0, 1fr);
                gap: 12px;
            }

            #page-analytics.active .analytics-toolbar {
                margin: 0;
            }

            #page-analytics.active .analytics-workspace-grid {
                min-height: 0;
                margin: 0;
                grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
                gap: 14px;
            }

            #page-analytics.active .analytics-panel {
                min-width: 0;
                min-height: 0;
                padding: 14px;
                overflow: hidden;
            }

            #page-analytics.active .analytics-kpi-grid {
                gap: 10px;
            }

            #page-analytics.active .analytics-kpi {
                padding: 12px 14px;
            }

            #page-analytics.active .analytics-activity-list {
                max-height: none;
                height: calc(100% - 56px);
                overflow-y: auto;
            }

            #page-analytics.active .analytics-detail-card {
                grid-row: 4;
                display: grid;
                grid-template-rows: auto minmax(0, 1fr);
                overflow: hidden;
            }

            #page-analytics.active .analytics-detail-card .card-header {
                padding: 10px 14px;
            }

            #page-analytics.active .analytics-detail-card .table-scroll {
                min-height: 0;
                overflow: auto;
            }

            #page-analytics.active .analytics-detail-card table {
                table-layout: fixed;
            }

            #page-analytics.active .analytics-detail-card th,
            #page-analytics.active .analytics-detail-card td {
                padding: 8px 14px;
                font-size: 12px;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            #page-analytics.active .analytics-detail-card .empty {
                min-height: 76px;
                padding: 14px;
            }
        }

        @media (max-width: 1200px) {
            .topbar {
                padding: 0 20px;
            }

            .content {
                padding: 20px;
            }

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

        @media (max-width: 980px) {
            .analytics-workspace-grid {
                grid-template-columns: 1fr;
            }

            .sidebar {
                width: 72px;
            }

            .main {
                margin-left: 72px;
            }

            .logo {
                padding: 0 14px;
            }

            .logo-row {
                justify-content: center;
            }

            .logo-name,
            .logo-tag,
            .nav-section,
            .sidebar-footer .footer-label,
            .sidebar-footer .footer-meta,
            .nav-text {
                display: none;
            }

            .nav-item {
                justify-content: center;
                padding: 8px 0;
                border-left: none;
            }

            .nav-icon-pill {
                border-color: var(--border2);
                background: var(--bg3);
            }

            .nav-item.active .nav-icon-pill {
                border-color: rgba(37, 99, 235, 0.4);
                background: rgba(37, 99, 235, 0.12);
            }

            .sidebar-footer {
                align-items: center;
                padding: 12px 10px;
            }

            .sidebar-footer-row {
                justify-content: center;
            }

            .logout-btn {
                width: 42px;
                height: 42px;
                padding: 0;
                border-radius: 14px;
            }

            .topbar {
                min-height: auto;
                padding: 12px 16px;
                flex-wrap: wrap;
                align-items: flex-start;
                gap: 10px;
            }

            .topbar-actions {
                width: 100%;
                flex-wrap: wrap;
                gap: 8px;
            }

            .topbar-actions .btn,
            .topbar-actions .form-select,
            .topbar-actions .form-input {
                min-height: 36px;
            }

            .content {
                padding: 16px;
            }

            .form-row {
                grid-template-columns: 1fr !important;
            }

            .day-toggle {
                grid-template-columns: repeat(4, minmax(0, 1fr));
            }

            .table-scroll>table {
                min-width: 860px;
            }

            .card-header {
                flex-wrap: wrap;
                align-items: flex-start;
                gap: 8px;
            }

            .inbox-search {
                min-width: 100%;
                max-width: 100%;
            }

            .modal {
                width: min(95vw, 700px);
            }
        }

        @media (max-width: 760px) {
            .sidebar {
                width: 64px;
            }

            .main {
                margin-left: 64px;
            }

            .icon-btn,
            .nav-icon-pill {
                width: 34px;
                height: 34px;
                border-radius: 10px;
            }

            .page-title {
                font-size: 16px;
            }

            .btn {
                padding: 6px 10px;
                font-size: 12px;
            }

            .content {
                padding: 12px;
            }

            .stats-grid {
                grid-template-columns: 1fr !important;
                gap: 10px;
            }

            .stat-card {
                padding: 14px;
            }

            .stat-value {
                font-size: 24px;
            }

            th,
            td {
                padding: 10px 12px;
                white-space: nowrap;
            }

            .table-scroll>table {
                min-width: 920px;
            }

            .analytics-kpi-grid {
                grid-template-columns: 1fr;
            }

            .analytics-search {
                min-width: 100%;
            }

            .variant-row {
                flex-wrap: wrap;
                align-items: stretch;
            }

            .variant-row input {
                min-width: 100%;
            }

            .modal {
                width: calc(100vw - 16px);
                max-width: calc(100vw - 16px);
                max-height: 90vh;
                border-radius: 12px;
            }

            .modal-header,
            .modal-body,
            .modal-footer {
                padding-left: 14px;
                padding-right: 14px;
            }

            .modal-footer {
                flex-wrap: wrap;
            }

            .modal-footer .btn {
                flex: 1 1 120px;
            }

            .toast-wrap {
                left: 12px;
                right: 12px;
                bottom: 12px;
            }

            .toast {
                max-width: none;
            }
        }

        /* Final premium overrides */
        :root {
            --bg: #050608;
            --bg2: #090b10;
            --bg3: #0f1219;
            --border: #171b24;
            --border2: #252b38;
            --text: #f5f7fb;
            --muted: #8b93a7;
            --muted2: #596174;
            --accent: #5b8cff;
            --accent2: #7aa2ff;
            --sans: 'Inter', system-ui, sans-serif;
            --radius: 8px;
        }

        body { -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; }
        .nav-item { margin: 2px 10px; padding: 9px 10px; border-left: 0; border-radius: 8px; background: transparent; }
        a.nav-item { text-decoration: none; }
        .nav-main-link { color: inherit; display: contents; text-decoration: none; }
        .nav-item.active { color: #fff; background: rgba(91, 140, 255, .14); border-left-color: transparent; }
        .nav-item:hover { background: rgba(255, 255, 255, .035); }
        .nav-chevron { width: 14px; height: 14px; margin-left: auto; opacity: 0; color: var(--accent2); }
        .nav-item.active .nav-chevron { opacity: 1; }
        .nav-flyout { position: absolute; left: calc(100% + 10px); top: -6px; min-width: 208px; padding: 8px; border: 1px solid var(--border2); border-radius: 10px; background: rgba(9, 11, 16, .98); box-shadow: 0 24px 80px rgba(0,0,0,.46); opacity: 0; transform: translateX(-4px); pointer-events: none; transition: opacity .14s ease, transform .14s ease; z-index: 1200; }
        .nav-item-campaigns:hover .nav-flyout, .nav-item-leads:hover .nav-flyout { opacity: 1; transform: translateX(0); pointer-events: auto; }
        .nav-flyout button, .nav-flyout a { width: 100%; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; cursor: pointer; font: inherit; text-align: left; text-decoration: none; }
        .nav-flyout button:hover, .nav-flyout a:hover { color: var(--text); background: rgba(255,255,255,.04); }
        .card, .stat-card, .analytics-panel { border-color: var(--border2); background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); box-shadow: 0 18px 60px rgba(0,0,0,.22); }
        .hero-kpi-card { min-height: 150px; padding: 22px; }
        .stat-value { font-family: var(--mono); font-weight: 500; letter-spacing: 0; }
        .trend-pill { display: inline-flex; border: 1px solid var(--border2); border-radius: 999px; padding: 3px 8px; font-size: 11px; color: var(--muted); }
        .trend-positive { color: var(--green); border-color: rgba(52,211,153,.24); background: rgba(52,211,153,.07); }
        .system-health-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; padding: 1px; background: var(--border); }
        .health-line { background: var(--bg2); padding: 16px; display: grid; gap: 8px; }
        .health-line span { color: var(--muted); font-size: 12px; }
        .health-line strong { font-family: var(--mono); font-size: 13px; font-weight: 500; }
        .status-dot-amber { background: var(--amber); }
        table th { color: var(--muted2); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }
        table tbody tr:hover { background: rgba(255,255,255,.02); }
        .analytics-controls .form-select, .analytics-toolbar .form-select, .analytics-toolbar .form-input { border-radius: 999px; background: rgba(255,255,255,.03); border-color: var(--border2); }
        .analytics-chart-wrap { background: #07090d; border: 1px solid var(--border2); border-radius: 8px; padding: 18px; }
        .account-cell { display: grid; gap: 3px; }
        .account-cell strong, table .mono { font-family: var(--mono); }
        .account-cell span { color: var(--muted2); font-size: 12px; }
        .warmup-progress-cell { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: center; gap: 10px; }
        .nav-icon-pill { width: 20px; height: 20px; }
        .table-action-btn { width: 32px; height: 32px; border-radius: 8px; background: transparent; }
        .action-menu-wrap { position: relative; display: inline-flex; justify-content: flex-end; }
        .row-action-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 178px; padding: 6px; border: 1px solid var(--border2); border-radius: 10px; background: rgba(9, 11, 16, .98); box-shadow: 0 18px 60px rgba(0,0,0,.42); opacity: 0; transform: translateY(-4px); pointer-events: none; z-index: 60; }
        .action-menu-wrap.open .row-action-menu { opacity: 1; transform: translateY(0); pointer-events: auto; }
        .row-action-menu button { width: 100%; border: 0; background: transparent; color: var(--muted); display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
        .row-action-menu button:hover { color: var(--text); background: rgba(255,255,255,.045); }
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
        .btn i, .icon-btn i, .nav-flyout i, .row-action-menu i { width: 16px; height: 16px; stroke-width: 1.8; }
        .nav-icon-pill i { width: 13px; height: 13px; stroke-width: 1.8; }
        .mobile-filter-menu { display: none; position: relative; }
        .mobile-select-backdrop,
        .mobile-select-sheet,
        .mobile-select-proxy,
        .mobile-action-backdrop,
        .mobile-action-sheet,
        .mobile-pull-refresh {
            display: none;
        }

        @media (max-width: 760px) {
            :root {
                --sidebar: 54px;
                --topbar-height: 58px;
            }

            body {
                overflow-x: hidden;
                font-size: 13px;
            }

            .sidebar {
                width: var(--sidebar);
                padding-top: env(safe-area-inset-top);
            }

            .main {
                width: calc(100vw - var(--sidebar));
                max-width: calc(100vw - var(--sidebar));
                min-width: 0;
                margin-left: var(--sidebar);
            }

            .logo {
                height: 56px;
                padding: 0 9px;
            }

            nav {
                padding: 8px 0;
                overflow-y: auto;
                scrollbar-width: none;
            }

            nav::-webkit-scrollbar {
                display: none;
            }

            .nav-item {
                min-height: 40px;
                padding: 5px 0;
            }

            .nav-icon-pill {
                width: 32px;
                height: 32px;
                border-radius: 10px;
            }

            .sidebar-footer {
                padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
                gap: 8px;
            }

            .sidebar-alert-btn,
            .logout-btn {
                width: 36px;
                height: 36px;
                padding: 0;
                border-radius: 11px;
            }

            .sidebar-alert-btn span,
            .logout-btn {
                font-size: 0;
            }

            .topbar {
                min-height: 58px;
                padding: 10px 12px;
                gap: 8px;
                background: rgba(10, 11, 14, 0.94);
                backdrop-filter: blur(18px);
            }

            .page-title {
                font-size: 15px;
            }

            .topbar-actions {
                width: auto;
                gap: 6px;
                margin-left: auto;
            }

            .topbar-actions .btn {
                min-height: 34px;
                padding: 0 10px;
                font-size: 0;
            }

            .topbar-actions .btn i {
                width: 16px;
                height: 16px;
            }

            .content {
                width: 100%;
                max-width: 100%;
                padding: 10px;
            }

            #page-warmup .stats-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 8px;
                margin-bottom: 12px;
            }

            #page-warmup .stat-card {
                min-width: 0;
                padding: 12px;
                border-radius: 9px;
            }

            #page-warmup .stat-label {
                font-size: 10px;
                letter-spacing: 0.08em;
                margin-bottom: 7px;
            }

            #page-warmup .stat-value {
                font-size: 22px;
            }

            #page-warmup #wstat-ollama {
                font-size: 12px !important;
                line-height: 1.25;
                overflow-wrap: anywhere;
            }

            #page-warmup .stat-sub {
                font-size: 10px;
                line-height: 1.35;
            }

            #page-warmup .card {
                border-radius: 10px;
                overflow: visible;
            }

            #page-warmup .card-header {
                padding: 12px;
            }

            #page-warmup .table-scroll {
                overflow: visible;
            }

            #page-warmup table,
            #page-warmup thead,
            #page-warmup tbody,
            #page-warmup tr,
            #page-warmup th,
            #page-warmup td {
                display: block;
            }

            #page-warmup table {
                min-width: 0 !important;
                width: 100% !important;
            }

            #page-warmup thead {
                display: none;
            }

            #page-warmup tbody {
                display: grid;
                gap: 10px;
                padding: 10px;
            }

            #page-warmup tbody tr {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 8px 10px;
                padding: 12px;
                border: 1px solid var(--border);
                border-radius: 10px;
                background: rgba(255, 255, 255, 0.015);
            }

            #page-warmup tbody tr:hover td {
                background: transparent;
            }

            #page-warmup tbody td {
                min-width: 0;
                border: 0;
                padding: 0;
                white-space: normal;
                font-size: 12px;
            }

            #page-warmup tbody td::before {
                content: attr(data-label);
                display: block;
                margin-bottom: 3px;
                color: var(--muted2);
                font-size: 9px;
                font-weight: 700;
                letter-spacing: 0.11em;
                text-transform: uppercase;
            }

            #page-warmup tbody td:first-child,
            #page-warmup tbody td[data-label="Progress"] {
                grid-column: 1 / -1;
            }

            #page-warmup tbody td[data-label="Actions"] {
                align-self: end;
                justify-self: end;
            }

            #page-warmup .account-cell strong {
                display: block;
                max-width: 100%;
                overflow-wrap: anywhere;
                font-size: 12px;
                line-height: 1.35;
            }

            #page-warmup .account-cell span {
                font-size: 10px;
            }

            #page-warmup .mono {
                font-size: 11px;
            }

            #page-warmup .warmup-progress-cell {
                grid-template-columns: minmax(0, 1fr) auto;
            }

            #page-warmup .progress-wrap {
                min-width: 0;
                width: 100%;
            }

            #page-warmup .row-action-menu {
                position: fixed;
                right: 12px;
                bottom: calc(12px + env(safe-area-inset-bottom));
                top: auto;
                min-width: 220px;
                z-index: 300;
            }
        }

        .mobile-appbar,
        .mobile-bottom-nav,
        .mobile-drawer,
        .mobile-drawer-backdrop {
            display: none;
        }

        @media (max-width: 767px) {
            :root {
                --mobile-appbar: 64px;
                --mobile-bottom-nav: 74px;
            }

            .scheduler-capacity-summary,
            .radio-card-grid,
            .plan-metrics-grid,
            .plan-info-grid,
            .queue-status-grid,
            .capacity-summary-grid {
                grid-template-columns: 1fr;
            }

            .radio-card,
            .toggle-row {
                border-radius: 18px;
                padding: 14px;
            }

            .campaign-send-summary {
                min-width: 0;
            }

            html,
            body {
                width: 100%;
                max-width: 100%;
                overflow-x: hidden;
            }

            body {
                display: block;
                min-height: 100dvh;
                padding-top: calc(var(--mobile-appbar) + env(safe-area-inset-top));
                padding-bottom: calc(var(--mobile-bottom-nav) + env(safe-area-inset-bottom));
                background: #050609;
            }

            .sidebar {
                display: none;
            }

            .main {
                width: 100%;
                max-width: 100%;
                margin-left: 0;
                min-width: 0;
            }

            .mobile-appbar {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                z-index: 450;
                height: calc(var(--mobile-appbar) + env(safe-area-inset-top));
                padding: env(safe-area-inset-top) 14px 0;
                display: grid;
                grid-template-columns: 44px 1fr 44px;
                align-items: center;
                background: rgba(5, 6, 9, 0.92);
                border-bottom: 1px solid rgba(255, 255, 255, 0.08);
                backdrop-filter: blur(22px);
                -webkit-backdrop-filter: blur(22px);
            }

            .mobile-pull-refresh {
                position: fixed;
                top: calc(env(safe-area-inset-top) + 6px);
                left: 50%;
                z-index: 430;
                min-height: 38px;
                padding: 0 14px;
                border: 1px solid var(--border2);
                border-radius: 999px;
                background: rgba(13, 15, 21, 0.96);
                color: var(--muted);
                box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 9px;
                font-size: 12px;
                font-weight: 650;
                opacity: 0;
                pointer-events: none;
                transform: translate(-50%, 0);
                transition: opacity 0.14s ease, transform 0.18s ease;
            }

            .mobile-pull-refresh.ready,
            .mobile-pull-refresh.refreshing {
                color: #fff;
                border-color: rgba(79, 142, 247, 0.45);
                background: rgba(18, 26, 42, 0.98);
            }

            .mobile-pull-refresh[style*="translate"] {
                opacity: 1;
            }

            .mobile-pull-refresh .spinner {
                width: 14px;
                height: 14px;
            }

            .mobile-brand {
                justify-self: center;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                gap: 8px;
                color: var(--text);
                font-size: 13px;
                font-weight: 700;
                letter-spacing: 0;
            }

            .mobile-brand-wordmark {
                display: grid;
                gap: 2px;
                justify-items: start;
                text-align: left;
            }

            .mobile-brand-wordmark .logo-name,
            .mobile-brand-wordmark .logo-tag {
                display: block;
            }

            .mobile-brand-wordmark .logo-name {
                color: var(--text);
                font-size: 16px;
            }

            .mobile-brand-wordmark .logo-tag {
                font-size: 11px;
            }

            .mobile-brand-mark {
                width: 28px;
                height: 28px;
                border-radius: 9px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
                border: 1px solid var(--border2);
                font-family: var(--mono);
                font-size: 11px;
            }

            .mobile-icon-btn,
            .icon-btn,
            .nav-icon-pill,
            .table-action-btn {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                min-width: 36px;
                min-height: 36px;
                padding: 8px;
                flex: 0 0 auto;
            }

            .mobile-icon-btn {
                width: 40px;
                height: 40px;
                border: 0;
                border-radius: 12px;
                background: transparent;
                color: var(--text);
            }

            .mobile-appbar-spacer {
                width: 40px;
                height: 40px;
            }

            .mobile-header-status {
                justify-self: end;
                width: 40px;
                height: 40px;
                border: 0;
                border-radius: 999px;
                background: rgba(79, 142, 247, 0.1);
                color: var(--accent);
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .mobile-header-status i {
                width: 18px;
                height: 18px;
                stroke-width: 1.9;
            }

            .mobile-icon-btn i,
            .mobile-bottom-nav i,
            .mobile-drawer-link i {
                width: 18px;
                height: 18px;
                stroke-width: 1.9;
            }

            .mobile-drawer-backdrop {
                position: fixed;
                inset: 0;
                z-index: 500;
                background: rgba(0, 0, 0, 0.5);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.2s ease;
                display: block;
            }

            .mobile-drawer {
                position: fixed;
                top: 0;
                bottom: 0;
                left: 0;
                z-index: 510;
                width: min(82vw, 320px);
                padding: calc(16px + env(safe-area-inset-top)) 14px calc(16px + env(safe-area-inset-bottom));
                display: flex;
                flex-direction: column;
                gap: 8px;
                background: rgba(10, 11, 14, 0.98);
                border-right: 1px solid var(--border2);
                box-shadow: 30px 0 90px rgba(0, 0, 0, 0.48);
                transform: translateX(-104%);
                transition: transform 0.22s ease;
            }

            body.mobile-drawer-open .mobile-drawer {
                transform: translateX(0);
            }

            body.mobile-drawer-open .mobile-drawer-backdrop {
                opacity: 1;
                pointer-events: auto;
            }

            .mobile-select-backdrop {
                position: fixed;
                inset: 0;
                z-index: 580;
                display: block;
                background: rgba(0, 0, 0, 0.48);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.18s ease;
            }

            .mobile-select-sheet {
                position: fixed;
                left: 10px;
                right: 10px;
                bottom: calc(10px + env(safe-area-inset-bottom));
                z-index: 590;
                display: block;
                max-height: min(68vh, 520px);
                border: 1px solid var(--border2);
                border-radius: 22px;
                background: rgba(13, 15, 21, 0.98);
                box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
                overflow: hidden;
                opacity: 0;
                transform: translateY(22px) scale(0.98);
                pointer-events: none;
                transition: opacity 0.18s ease, transform 0.18s ease;
            }

            body.mobile-select-open .mobile-select-backdrop {
                opacity: 1;
                pointer-events: auto;
            }

            body.mobile-select-open .mobile-select-sheet {
                opacity: 1;
                transform: translateY(0) scale(1);
                pointer-events: auto;
            }

            .mobile-select-head {
                min-height: 58px;
                padding: 12px 14px;
                border-bottom: 1px solid var(--border);
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
            }

            .mobile-select-head span {
                color: #fff;
                font-size: 14px;
                font-weight: 700;
                text-transform: capitalize;
            }

            .mobile-select-head button {
                width: 36px;
                height: 36px;
                border: 1px solid var(--border2);
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.04);
                color: var(--text);
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .mobile-select-head button i {
                width: 17px;
                height: 17px;
            }

            .mobile-select-options {
                display: grid;
                gap: 4px;
                max-height: calc(min(68vh, 520px) - 58px);
                overflow-y: auto;
                padding: 8px;
                -webkit-overflow-scrolling: touch;
            }

            .mobile-select-options button {
                width: 100%;
                min-height: 46px;
                padding: 0 12px;
                border: 0;
                border-radius: 14px;
                background: transparent;
                color: var(--muted);
                display: flex;
                align-items: center;
                gap: 10px;
                font: inherit;
                font-size: 14px;
                font-weight: 650;
                text-align: left;
            }

            .mobile-select-options button i {
                width: 17px;
                height: 17px;
                opacity: 0;
                flex: 0 0 auto;
            }

            .mobile-select-options button.active {
                background: rgba(79, 142, 247, 0.18);
                color: #fff;
            }

            .mobile-select-options button.active i {
                opacity: 1;
                color: var(--accent);
            }

            .mobile-drawer-head {
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                padding: 0 2px 14px;
                border-bottom: 1px solid var(--border);
                margin-bottom: 8px;
            }

            .mobile-drawer-brand {
                min-width: 0;
                display: flex;
                align-items: center;
                gap: 10px;
            }

            .mobile-drawer-brand .logo-name {
                display: block;
                color: #fff;
                font-size: 15px;
                opacity: 1;
            }

            .mobile-drawer-brand .logo-tag {
                display: block;
                color: var(--muted);
                opacity: 1;
            }

            .mobile-drawer-section {
                padding: 14px 8px 4px;
                color: var(--muted2);
                font-size: 10px;
                font-weight: 700;
                letter-spacing: 0.12em;
                text-transform: uppercase;
            }

            .mobile-drawer-link {
                width: 100%;
                min-height: 46px;
                padding: 10px 12px;
                border: 0;
                border-radius: 13px;
                background: transparent;
                color: var(--muted);
                display: flex;
                align-items: center;
                gap: 12px;
                font: inherit;
                font-size: 14px;
                text-decoration: none;
                text-align: left;
            }

            .mobile-drawer-link i {
                padding: 0;
                flex: 0 0 auto;
            }

            .mobile-drawer-link.active,
            .mobile-drawer-link:hover {
                color: #fff;
                background: rgba(79, 142, 247, 0.12);
            }

            .mobile-drawer-danger {
                color: var(--red);
            }

            .mobile-bottom-nav {
                position: fixed;
                left: 10px;
                right: 10px;
                bottom: calc(8px + env(safe-area-inset-bottom));
                z-index: 440;
                min-height: 64px;
                padding: 8px;
                border: 1px solid rgba(255, 255, 255, 0.1);
                border-radius: 22px;
                background: rgba(12, 14, 20, 0.94);
                box-shadow: 0 20px 70px rgba(0, 0, 0, 0.46);
                backdrop-filter: blur(22px);
                -webkit-backdrop-filter: blur(22px);
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 4px;
            }

            .mobile-bottom-nav a {
                min-width: 0;
                min-height: 48px;
                border-radius: 16px;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 4px;
                color: var(--muted);
                text-decoration: none;
                font-size: 10px;
                font-weight: 600;
                line-height: 1;
            }

            .mobile-bottom-nav a.active {
                color: #fff;
                background: rgba(79, 142, 247, 0.14);
            }

            .page > .topbar {
                position: static;
                min-height: auto;
                padding: 10px 12px;
                border-bottom: 0;
                background: transparent;
                align-items: center;
            }

            .page > .topbar .page-title {
                display: none;
            }

            .page > .topbar .topbar-actions {
                width: 100%;
                justify-content: flex-start;
                align-items: center;
                gap: 8px;
                overflow-x: auto;
                padding-bottom: 2px;
                scrollbar-width: none;
            }

            .page > .topbar .topbar-actions::-webkit-scrollbar {
                display: none;
            }

            .page > .topbar .topbar-actions .btn,
            .page > .topbar .topbar-actions .form-select,
            .page > .topbar .topbar-actions .mobile-select-proxy,
            .page > .topbar .topbar-actions .form-input {
                flex: 0 0 auto;
                min-height: 38px;
                border-radius: 999px;
                font-size: 12px;
                white-space: nowrap;
            }

            select.form-select.mobile-select-native {
                position: absolute !important;
                width: 1px !important;
                height: 1px !important;
                opacity: 0 !important;
                pointer-events: none !important;
                overflow: hidden !important;
                clip-path: inset(50%) !important;
            }

            .mobile-select-proxy {
                width: 100%;
                min-height: 42px;
                padding: 0 12px 0 14px;
                border: 1px solid var(--border2);
                border-radius: 16px;
                background: rgba(255, 255, 255, 0.035);
                color: var(--text);
                display: inline-flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
                font: inherit;
                font-size: 13px;
                font-weight: 650;
                text-align: left;
                -webkit-tap-highlight-color: transparent;
                touch-action: manipulation;
            }

            .mobile-select-proxy span {
                min-width: 0;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .mobile-select-proxy i {
                width: 16px;
                height: 16px;
                color: var(--muted);
                flex: 0 0 auto;
            }

            .analytics-controls .mobile-select-proxy,
            .analytics-toolbar .mobile-select-proxy {
                border-radius: 999px;
                background: rgba(255,255,255,.03);
            }

            #campaign-list-card .campaign-list-tools > .mobile-select-proxy {
                display: none;
            }

            .content {
                padding: 8px 10px 16px;
            }

            .stats-grid,
            #page-leads .stats-grid,
            #page-verify .stats-grid,
            #page-analytics .stats-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
                gap: 9px;
                margin-bottom: 12px;
            }

            .stat-card {
                min-width: 0;
                padding: 13px;
                border-radius: 12px;
            }

            .stat-label {
                font-size: 9px;
                letter-spacing: 0.1em;
            }

            .stat-value {
                font-size: 22px;
                overflow-wrap: anywhere;
            }

            .card {
                border-radius: 14px;
                margin-bottom: 12px;
            }

            .card-header {
                padding: 13px 14px;
                align-items: center;
                gap: 10px;
            }

            .card-header > div {
                align-items: center !important;
            }

            .analytics-controls,
            .analytics-toolbar,
            .analytics-inline-tools {
                align-items: center;
                gap: 8px;
            }

            .analytics-controls {
                flex-wrap: nowrap;
            }

            .analytics-controls .form-select,
            .analytics-toolbar .form-select,
            .analytics-toolbar .form-input {
                min-height: 38px;
                display: flex;
                align-items: center;
            }

            .analytics-controls .form-select,
            .analytics-toolbar .form-select,
            #campaign-status-filter {
                appearance: none;
                -webkit-appearance: none;
                padding-right: 42px;
                background-image:
                    linear-gradient(45deg, transparent 50%, rgba(232, 234, 240, 0.9) 50%),
                    linear-gradient(135deg, rgba(232, 234, 240, 0.9) 50%, transparent 50%);
                background-position:
                    calc(100% - 21px) 50%,
                    calc(100% - 13px) 50%;
                background-size: 8px 8px, 8px 8px;
                background-repeat: no-repeat;
            }

            .analytics-chart-wrap {
                border-radius: 12px;
                padding: 12px;
            }

            #page-accounts .table-scroll,
            #page-leads .table-scroll,
            #page-verify .table-scroll,
            #page-warmup .table-scroll,
            #page-campaigns .table-scroll {
                overflow: visible;
            }

            #campaign-list-card .card-header {
                display: grid;
                grid-template-columns: minmax(0, 1fr) auto;
                align-items: center;
            }

            #campaign-list-card .campaign-list-tools {
                display: inline-grid;
                grid-template-columns: auto minmax(138px, 1fr);
                align-items: center;
                gap: 8px;
                justify-self: end;
            }

            #campaign-list-card #campaigns-count {
                min-width: 34px;
                height: 34px;
                border-radius: 999px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                padding: 0 10px;
            }

            #campaign-list-card #campaign-status-filter {
                width: min(42vw, 180px);
                min-height: 40px;
            }

            #campaign-list-card #campaign-status-filter {
                display: none;
            }

            #campaign-list-card .mobile-filter-menu {
                display: block;
                position: relative;
            }

            .mobile-filter-trigger {
                min-width: 150px;
                min-height: 40px;
                padding: 0 12px 0 14px;
                border: 1px solid var(--border2);
                border-radius: 14px;
                background: rgba(255, 255, 255, 0.035);
                color: var(--text);
                display: inline-flex;
                align-items: center;
                justify-content: space-between;
                gap: 10px;
                font: inherit;
                font-size: 13px;
                font-weight: 600;
            }

            .mobile-filter-trigger i {
                width: 16px;
                height: 16px;
                color: var(--muted);
            }

            .mobile-filter-popover {
                position: absolute;
                top: calc(100% + 8px);
                right: 0;
                z-index: 560;
                width: 190px;
                padding: 6px;
                border: 1px solid var(--border2);
                border-radius: 16px;
                background: rgba(14, 16, 22, 0.98);
                box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
                opacity: 0;
                transform: translateY(-6px) scale(0.98);
                pointer-events: none;
                transition: opacity 0.14s ease, transform 0.14s ease;
            }

            .mobile-filter-menu.open .mobile-filter-popover {
                opacity: 1;
                transform: translateY(0) scale(1);
                pointer-events: auto;
            }

            .mobile-filter-popover button {
                width: 100%;
                min-height: 40px;
                padding: 0 10px;
                border: 0;
                border-radius: 11px;
                background: transparent;
                color: var(--muted);
                display: flex;
                align-items: center;
                gap: 9px;
                font: inherit;
                font-size: 13px;
                font-weight: 600;
                text-align: left;
            }

            .mobile-filter-popover button i {
                width: 15px;
                height: 15px;
                opacity: 0;
            }

            .mobile-filter-popover button.active {
                color: #fff;
                background: rgba(79, 142, 247, 0.16);
            }

            .mobile-filter-popover button.active i {
                opacity: 1;
                color: var(--accent);
            }

            #page-accounts table,
            #page-accounts thead,
            #page-accounts tbody,
            #page-accounts tr,
            #page-accounts th,
            #page-accounts td,
            #page-leads table,
            #page-leads thead,
            #page-leads tbody,
            #page-leads tr,
            #page-leads th,
            #page-leads td,
            #page-verify table,
            #page-verify thead,
            #page-verify tbody,
            #page-verify tr,
            #page-verify th,
            #page-verify td,
            #page-warmup table,
            #page-warmup thead,
            #page-warmup tbody,
            #page-warmup tr,
            #page-warmup th,
            #page-warmup td,
            #page-campaigns #campaign-list-card table,
            #page-campaigns #campaign-list-card thead,
            #page-campaigns #campaign-list-card tbody,
            #page-campaigns #campaign-list-card tr,
            #page-campaigns #campaign-list-card th,
            #page-campaigns #campaign-list-card td,
            #analytics-lead-table,
            #analytics-lead-table tr,
            #analytics-lead-table td,
            #analytics-open-events-table,
            #analytics-open-events-table tr,
            #analytics-open-events-table td,
            #analytics-campaign-table,
            #analytics-campaign-table tr,
            #analytics-campaign-table td {
                display: block;
            }

            #page-accounts table,
            #page-leads table,
            #page-verify table,
            #page-warmup table,
            #page-campaigns #campaign-list-card table,
            #analytics-lead-table,
            #analytics-open-events-table,
            #analytics-campaign-table {
                width: 100% !important;
                min-width: 0 !important;
            }

            #analytics-lead-table,
            #analytics-open-events-table,
            #analytics-campaign-table {
                display: grid;
                gap: 10px;
                padding: 10px;
            }

            #analytics-lead-table tr,
            #analytics-open-events-table tr,
            #analytics-campaign-table tr {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px 12px;
                padding: 13px;
                border: 1px solid var(--border);
                border-radius: 14px;
                background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
            }

            #analytics-lead-table td,
            #analytics-open-events-table td,
            #analytics-campaign-table td {
                min-width: 0;
                border: 0;
                padding: 0;
                white-space: normal;
                font-size: 12px;
                overflow-wrap: anywhere;
            }

            #page-analytics .card .table-scroll {
                overflow: visible;
            }

            #page-analytics .card .table-scroll table {
                width: 100% !important;
                min-width: 0 !important;
            }

            #page-analytics .card .table-scroll thead {
                display: none;
            }

            #page-campaigns table:has(#campaign-sequences-table),
            #page-campaigns table:has(#campaign-detail-sequences-table),
            #campaign-sequences-table,
            #campaign-sequences-table tr,
            #campaign-sequences-table td,
            #campaign-detail-sequences-table,
            #campaign-detail-sequences-table tr,
            #campaign-detail-sequences-table td {
                display: block;
            }

            #page-campaigns table:has(#campaign-sequences-table),
            #page-campaigns table:has(#campaign-detail-sequences-table) {
                width: 100% !important;
                min-width: 0 !important;
            }

            #page-campaigns table:has(#campaign-sequences-table) thead,
            #page-campaigns table:has(#campaign-detail-sequences-table) thead {
                display: none;
            }

            #campaign-sequences-table,
            #campaign-detail-sequences-table {
                display: grid;
                gap: 10px;
                padding: 10px;
                width: 100%;
                min-width: 0;
            }

            #campaign-sequences-table tr,
            #campaign-detail-sequences-table tr {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px 12px;
                padding: 13px;
                border: 1px solid var(--border);
                border-radius: 14px;
                background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
            }

            #campaign-sequences-table tr:hover td,
            #campaign-detail-sequences-table tr:hover td {
                background: transparent;
            }

            #campaign-sequences-table td,
            #campaign-detail-sequences-table td {
                min-width: 0;
                border: 0;
                padding: 0;
                white-space: normal;
                font-size: 12px;
                overflow-wrap: anywhere;
            }

            #campaign-sequences-table td::before,
            #campaign-detail-sequences-table td::before {
                content: attr(data-label);
                display: block;
                min-height: 13px;
                margin-bottom: 4px;
                color: var(--muted2);
                font-size: 9px;
                font-weight: 800;
                letter-spacing: 0.1em;
                text-transform: uppercase;
            }

            #campaign-sequences-table td[data-label="Subject"],
            #campaign-detail-sequences-table td[data-label="Subject"] {
                grid-column: 1 / -1;
                font-size: 13px;
                line-height: 1.45;
            }

            #campaign-sequences-table .mobile-empty-row,
            #campaign-detail-sequences-table .mobile-empty-row {
                grid-template-columns: 1fr;
            }

            #campaign-sequences-table .mobile-empty-row td,
            #campaign-detail-sequences-table .mobile-empty-row td {
                grid-column: 1 / -1;
                width: 100%;
            }

            #campaign-sequences-table .mobile-empty-row td::before,
            #campaign-detail-sequences-table .mobile-empty-row td::before {
                display: none;
            }

            #campaign-sequences-table .empty,
            #campaign-detail-sequences-table .empty {
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
                padding: 32px 14px;
                text-align: center;
            }

            #page-accounts thead,
            #page-leads thead,
            #page-verify thead,
            #page-warmup thead,
            #page-campaigns #campaign-list-card thead {
                display: none;
            }

            #page-accounts tbody,
            #page-leads tbody,
            #page-verify tbody,
            #page-warmup tbody,
            #page-campaigns #campaign-list-card tbody {
                display: grid;
                gap: 10px;
                padding: 10px;
            }

            #page-accounts tbody tr,
            #page-leads tbody tr,
            #page-verify tbody tr,
            #page-warmup tbody tr,
            #page-campaigns #campaign-list-card tbody tr {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 10px 12px;
                padding: 13px;
                border: 1px solid var(--border);
                border-radius: 14px;
                background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
            }

            #page-accounts tbody tr:hover td,
            #page-leads tbody tr:hover td,
            #page-verify tbody tr:hover td,
            #page-warmup tbody tr:hover td,
            #page-campaigns #campaign-list-card tbody tr:hover td {
                background: transparent;
            }

            #page-accounts tbody td,
            #page-leads tbody td,
            #page-verify tbody td,
            #page-warmup tbody td,
            #page-campaigns #campaign-list-card tbody td {
                min-width: 0;
                border: 0;
                padding: 0;
                white-space: normal;
                font-size: 12px;
                overflow-wrap: anywhere;
            }

            #page-accounts tbody td::before,
            #page-leads tbody td::before,
            #page-verify tbody td::before,
            #page-warmup tbody td::before,
            #page-campaigns #campaign-list-card tbody td::before,
            #analytics-lead-table td::before,
            #analytics-open-events-table td::before,
            #analytics-campaign-table td::before {
                content: attr(data-label);
                display: block;
                min-height: 13px;
                margin-bottom: 4px;
                color: var(--muted2);
                font-size: 9px;
                font-weight: 800;
                letter-spacing: 0.1em;
                text-transform: uppercase;
            }

            #page-accounts tbody td:first-child,
            #page-leads tbody td[data-label="Email"],
            #page-leads tbody td[data-label="Name"],
            #page-verify tbody td[data-label="Email"],
            #page-verify tbody td[data-label="Name"],
            #page-warmup tbody td:first-child,
            #page-warmup tbody td[data-label="Progress"],
            #page-campaigns #campaign-list-card tbody td[data-label="Name"],
            #analytics-lead-table td[data-label="Lead"],
            #analytics-open-events-table td[data-label="Lead"],
            #analytics-open-events-table td[data-label="Subject"],
            #analytics-open-events-table td[data-label="Source"],
            #analytics-campaign-table td[data-label="Campaign"] {
                grid-column: 1 / -1;
            }

            #page-accounts tbody td:first-child,
            #page-leads tbody td[data-label="Email"],
            #page-verify tbody td[data-label="Email"],
            #page-warmup .account-cell strong,
            #page-campaigns #campaign-list-card tbody td[data-label="Name"] strong,
            #analytics-lead-table td[data-label="Lead"] strong,
            #analytics-open-events-table td[data-label="Lead"] strong,
            #analytics-campaign-table td[data-label="Campaign"] strong {
                font-size: 13px;
                font-weight: 700;
                color: var(--text);
            }

            #analytics-lead-table .mobile-empty-row,
            #analytics-open-events-table .mobile-empty-row {
                grid-template-columns: 1fr;
                min-height: auto;
            }

            #analytics-lead-table .mobile-empty-row td,
            #analytics-open-events-table .mobile-empty-row td {
                grid-column: 1 / -1;
            }

            #analytics-lead-table .mobile-empty-row td::before,
            #analytics-open-events-table .mobile-empty-row td::before {
                display: none;
            }

            #page-analytics .empty {
                padding: 28px 14px;
                text-align: center;
            }

            #page-accounts tbody td[data-label="Actions"],
            #page-leads tbody td[data-label="Actions"],
            #page-verify tbody td[data-label="Actions"],
            #page-warmup tbody td[data-label="Actions"],
            #page-campaigns #campaign-list-card tbody td[data-label="Actions"] {
                justify-self: end;
                align-self: end;
            }

            #page-campaigns #campaign-list-card tbody td[data-label="Actions"] {
                grid-column: 1 / -1;
                justify-self: stretch;
            }

            #page-campaigns #campaign-list-card tbody td[data-label="Actions"] > div {
                justify-content: flex-end;
            }

            #page-campaigns #campaign-list-card tbody tr:has(.empty),
            #page-accounts tbody tr:has(.empty),
            #page-leads tbody tr:has(.empty),
            #page-verify tbody tr:has(.empty),
            #page-warmup tbody tr:has(.empty) {
                grid-template-columns: 1fr;
            }

            #page-campaigns #campaign-list-card tbody tr:has(.empty) td,
            #page-accounts tbody tr:has(.empty) td,
            #page-leads tbody tr:has(.empty) td,
            #page-verify tbody tr:has(.empty) td,
            #page-warmup tbody tr:has(.empty) td {
                grid-column: 1 / -1;
                width: 100%;
            }

            #page-campaigns #campaign-list-card tbody tr:has(.empty) td::before,
            #page-accounts tbody tr:has(.empty) td::before,
            #page-leads tbody tr:has(.empty) td::before,
            #page-verify tbody tr:has(.empty) td::before,
            #page-warmup tbody tr:has(.empty) td::before {
                display: none;
            }

            #page-campaigns #campaign-list-card .empty,
            #page-accounts .empty,
            #page-leads .empty,
            #page-verify .empty,
            #page-warmup .empty {
                width: 100%;
                max-width: 280px;
                margin: 0 auto;
                padding: 44px 18px;
                text-align: center;
            }

            #page-leads tbody td[data-label="Select"] {
                grid-column: auto;
            }

            #lead-lists-table tr {
                position: relative;
            }

            #lead-lists-table td:first-child {
                padding-right: 128px;
            }

            #lead-lists-table td[data-label="Actions"] {
                position: absolute;
                top: 12px;
                right: 12px;
                justify-self: auto;
                align-self: auto;
            }

            #lead-lists-table td[data-label="Actions"]::before {
                display: none;
            }

            #lead-lists-table td[data-label="Actions"] > div {
                display: flex !important;
                gap: 6px !important;
                flex-wrap: nowrap !important;
            }

            #lead-lists-table td[data-label="Actions"] .btn {
                min-height: 34px;
                padding: 0 10px;
                border-radius: 11px;
                font-size: 12px;
            }

            #page-warmup tbody tr {
                grid-template-columns: repeat(3, minmax(0, 1fr));
                position: relative;
            }

            #page-accounts tbody tr {
                position: relative;
            }

            #page-accounts tbody td:first-child {
                padding-right: 48px;
            }

            #page-accounts tbody td[data-label="Actions"] {
                position: absolute;
                top: 12px;
                right: 12px;
                justify-self: auto;
                align-self: auto;
            }

            #page-accounts tbody td[data-label="Actions"]::before {
                display: none;
            }

            #page-accounts tbody td[data-label="Actions"] .table-action-btn {
                width: 38px;
                height: 38px;
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.025);
            }

            #page-warmup tbody td:first-child,
            #page-warmup tbody td[data-label="Progress"] {
                grid-column: 1 / -1;
            }

            #page-warmup tbody td:first-child {
                padding-right: 48px;
            }

            #page-warmup tbody td[data-label="Replies Today"] {
                grid-column: span 2;
            }

            #page-warmup tbody td[data-label="Actions"] {
                position: absolute;
                top: 12px;
                right: 12px;
                justify-self: auto;
                align-self: auto;
            }

            #page-warmup tbody td[data-label="Actions"]::before {
                display: none;
            }

            #page-warmup tbody td[data-label="Actions"] .table-action-btn {
                width: 38px;
                height: 38px;
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.025);
            }

            #page-warmup .warmup-progress-cell {
                grid-template-columns: minmax(0, 1fr) auto;
                gap: 9px;
            }

            .action-menu-wrap {
                justify-content: flex-end;
            }

            .row-action-menu {
                position: fixed;
                left: 12px;
                right: 12px;
                bottom: calc(92px + env(safe-area-inset-bottom));
                top: auto;
                min-width: 0;
                width: auto;
                padding: 10px;
                border-radius: 18px;
                z-index: 610;
                background: rgba(13, 15, 21, 0.99);
                transform: translateY(18px) scale(0.98);
                box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
            }

            .action-menu-wrap.open .row-action-menu {
                transform: translateY(0) scale(1);
            }

            .row-action-menu button {
                min-height: 48px;
                padding: 0 12px;
                border-radius: 13px;
                font-size: 14px;
            }

            .row-action-menu i {
                width: 20px;
                height: 20px;
            }

            body.mobile-action-sheet-open::after {
                display: none;
            }

            .mobile-action-backdrop {
                position: fixed;
                inset: 0;
                z-index: 700;
                display: block;
                background: rgba(0, 0, 0, 0.42);
                opacity: 0;
                pointer-events: none;
                transition: opacity 0.16s ease;
            }

            .mobile-action-sheet {
                position: fixed;
                left: 12px;
                right: 12px;
                bottom: calc(92px + env(safe-area-inset-bottom));
                z-index: 710;
                display: block;
                border: 1px solid var(--border2);
                border-radius: 22px;
                background: rgba(13, 15, 21, 0.99);
                box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
                overflow: hidden;
                opacity: 0;
                transform: translateY(18px) scale(0.98);
                pointer-events: none;
                transition: opacity 0.16s ease, transform 0.16s ease;
            }

            body.mobile-action-sheet-open .mobile-action-backdrop {
                opacity: 1;
                pointer-events: auto;
            }

            body.mobile-action-sheet-open .mobile-action-sheet {
                opacity: 1;
                transform: translateY(0) scale(1);
                pointer-events: auto;
            }

            .mobile-action-head {
                padding: 14px;
                border-bottom: 1px solid var(--border);
                display: flex;
                align-items: center;
                justify-content: space-between;
                gap: 12px;
            }

            .mobile-action-head div {
                min-width: 0;
                display: grid;
                gap: 2px;
            }

            .mobile-action-head span {
                color: var(--muted2);
                font-size: 10px;
                font-weight: 800;
                letter-spacing: 0.12em;
                text-transform: uppercase;
            }

            .mobile-action-head strong {
                color: var(--text);
                font-family: var(--mono);
                font-size: 13px;
                font-weight: 600;
                overflow: hidden;
                text-overflow: ellipsis;
                white-space: nowrap;
            }

            .mobile-action-head button {
                width: 36px;
                height: 36px;
                border: 1px solid var(--border2);
                border-radius: 12px;
                background: rgba(255, 255, 255, 0.04);
                color: var(--text);
                display: inline-flex;
                align-items: center;
                justify-content: center;
            }

            .mobile-action-head button i {
                width: 17px;
                height: 17px;
            }

            .mobile-action-list {
                display: grid;
                gap: 4px;
                padding: 8px;
            }

            .mobile-action-list button {
                width: 100%;
                min-height: 48px;
                padding: 0 12px;
                border: 0;
                border-radius: 14px;
                background: transparent;
                color: var(--muted);
                display: flex;
                align-items: center;
                gap: 12px;
                font: inherit;
                font-size: 14px;
                font-weight: 650;
                text-align: left;
            }

            .mobile-action-list button:active,
            .mobile-action-list button:hover {
                color: var(--text);
                background: rgba(79, 142, 247, 0.12);
            }

            .mobile-action-list button i {
                width: 20px;
                height: 20px;
            }

            .toast-wrap {
                left: 12px;
                right: 12px;
                bottom: calc(88px + env(safe-area-inset-bottom));
            }

            .toast {
                max-width: none;
            }

            body[data-theme="light"] {
                background: #f5f7fb;
                color: var(--text);
            }

            body[data-theme="light"] .mobile-appbar {
                background: rgba(255, 255, 255, 0.92);
                border-bottom-color: rgba(15, 23, 42, 0.08);
                box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
            }

            body[data-theme="light"] .mobile-brand,
            body[data-theme="light"] .mobile-drawer-brand .logo-name,
            body[data-theme="light"] .mobile-select-head span {
                color: #0f172a;
            }

            body[data-theme="light"] .mobile-brand-mark,
            body[data-theme="light"] .mobile-select-head button {
                background: #ffffff;
                border-color: #d8deea;
                color: #0f172a;
            }

            body[data-theme="light"] .mobile-icon-btn {
                background: transparent;
                border-color: transparent;
                color: #0f172a;
            }

            body[data-theme="light"] .mobile-drawer {
                background: rgba(255, 255, 255, 0.98);
                border-right-color: #d8deea;
                box-shadow: 30px 0 80px rgba(15, 23, 42, 0.22);
            }

            body[data-theme="light"] .mobile-drawer-backdrop,
            body[data-theme="light"].mobile-action-sheet-open::after,
            body[data-theme="light"] .mobile-select-backdrop {
                background: rgba(15, 23, 42, 0.22);
            }

            body[data-theme="light"] .mobile-drawer-head,
            body[data-theme="light"] .mobile-select-head {
                border-bottom-color: #e5e9f2;
            }

            body[data-theme="light"] .mobile-drawer-link {
                color: #64748b;
            }

            body[data-theme="light"] .mobile-drawer-link.active,
            body[data-theme="light"] .mobile-drawer-link:hover {
                color: #1d4ed8;
                background: #eaf1ff;
            }

            body[data-theme="light"] .mobile-bottom-nav {
                background: rgba(255, 255, 255, 0.94);
                border-color: rgba(15, 23, 42, 0.08);
                box-shadow: 0 18px 55px rgba(15, 23, 42, 0.16);
            }

            body[data-theme="light"] .mobile-bottom-nav a {
                color: #64748b;
            }

            body[data-theme="light"] .mobile-bottom-nav a.active {
                color: #1d4ed8;
                background: #eaf1ff;
            }

            body[data-theme="light"] .card,
            body[data-theme="light"] .stat-card,
            body[data-theme="light"] .analytics-panel,
            body[data-theme="light"] #page-accounts tbody tr,
            body[data-theme="light"] #page-leads tbody tr,
            body[data-theme="light"] #page-verify tbody tr,
            body[data-theme="light"] #page-warmup tbody tr,
            body[data-theme="light"] #page-campaigns #campaign-list-card tbody tr,
            body[data-theme="light"] #analytics-lead-table tr,
            body[data-theme="light"] #analytics-open-events-table tr,
            body[data-theme="light"] #analytics-campaign-table tr {
                background: #ffffff;
                border-color: #e2e8f0;
                box-shadow: 0 14px 38px rgba(15, 23, 42, 0.06);
            }

            body[data-theme="light"] .mobile-select-sheet,
            body[data-theme="light"] .mobile-filter-popover,
            body[data-theme="light"] .row-action-menu,
            body[data-theme="light"] .mobile-action-sheet,
            body[data-theme="light"] .mobile-pull-refresh {
                background: rgba(255, 255, 255, 0.98);
                border-color: #d8deea;
                box-shadow: 0 24px 70px rgba(15, 23, 42, 0.2);
            }

            body[data-theme="light"] .mobile-select-options button,
            body[data-theme="light"] .mobile-filter-popover button,
            body[data-theme="light"] .row-action-menu button,
            body[data-theme="light"] .mobile-action-list button {
                color: #64748b;
            }

            body[data-theme="light"] .mobile-select-options button.active,
            body[data-theme="light"] .mobile-filter-popover button.active,
            body[data-theme="light"] .row-action-menu button:hover,
            body[data-theme="light"] .mobile-action-list button:hover,
            body[data-theme="light"] .mobile-action-list button:active {
                color: #1d4ed8;
                background: #eaf1ff;
            }

            body[data-theme="light"] .mobile-action-head {
                border-bottom-color: #e5e9f2;
            }

            body[data-theme="light"] .mobile-action-head strong {
                color: #182238;
            }

            body[data-theme="light"] .mobile-action-head button {
                background: #ffffff;
                border-color: #d8deea;
                color: #0f172a;
            }

            body[data-theme="light"] .mobile-select-proxy,
            body[data-theme="light"] .mobile-filter-trigger,
            body[data-theme="light"] .form-input,
            body[data-theme="light"] .form-select {
                background: #ffffff;
                border-color: #d8deea;
                color: #0f172a;
            }

            body[data-theme="light"] .progress-wrap {
                background: #e8edf5;
            }

            body[data-theme="light"] .account-cell strong,
            body[data-theme="light"] table .mono,
            body[data-theme="light"] .mono {
                color: #1f2a44;
                font-weight: 500;
            }

            body[data-theme="light"] #page-warmup .account-cell strong,
            body[data-theme="light"] #page-accounts tbody td:first-child,
            body[data-theme="light"] #page-leads tbody td[data-label="Email"],
            body[data-theme="light"] #page-verify tbody td[data-label="Email"] {
                color: #182238;
                font-weight: 600;
                -webkit-font-smoothing: antialiased;
            }

            body[data-theme="light"] #page-warmup tbody td::before,
            body[data-theme="light"] #page-accounts tbody td::before,
            body[data-theme="light"] #page-leads tbody td::before,
            body[data-theme="light"] #page-verify tbody td::before {
                color: #8b9ab1;
            }

            body[data-theme="light"] .account-cell span,
            body[data-theme="light"] td span[style*="muted2"] {
                color: #8a98ad !important;
            }
        }
    
