/* RouterProxy Data UI — synchronized with the main MikrotikProxy dashboard */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
}

:root {
    color-scheme: light;
    --rp-bg: #f8fafc;
    --rp-login-bg: #edf2f8;
    --rp-sidebar: #0f172a;
    --rp-sidebar-deep: #020617;
    --rp-card: rgba(255, 255, 255, 0.78);
    --rp-card-solid: #ffffff;
    --rp-border: rgba(148, 163, 184, 0.22);
    --rp-glass-border: rgba(255, 255, 255, 0.72);
    --rp-text: #1e293b;
    --rp-text-strong: #172033;
    --rp-muted: #64748b;
    --rp-subtle: #94a3b8;
    --rp-primary: #6366f1;
    --rp-primary-hover: #4f46e5;
    --rp-primary-rgb: 99, 102, 241;
    --rp-success: #10b981;
    --rp-danger: #ef4444;
    --rp-warning: #f59e0b;
    --rp-info: #0ea5e9;
    --rp-shadow-sm: 0 1px 2px rgb(0 0 0 / 0.05);
    --rp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -2px rgb(0 0 0 / 0.06);
    --rp-shadow-lg: 0 12px 30px -8px rgb(15 23 42 / 0.2);
    --rp-sidebar-width: 260px;
    --rp-transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    background: var(--rp-bg) !important;
    scroll-behavior: smooth;
}

body.dashboard-sync-shell {
    color: var(--rp-text) !important;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.admin-shell.dashboard-sync-shell {
    display: flex;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overflow-y: auto;
    background:
        radial-gradient(circle at 94% 4%, rgba(var(--rp-primary-rgb), 0.07), transparent 28rem),
        var(--rp-bg) !important;
}

.dashboard-sync-shell * { scrollbar-width: thin; scrollbar-color: rgba(var(--rp-primary-rgb), 0.45) #eef2f7; }
.dashboard-sync-shell *::-webkit-scrollbar { width: 9px; height: 9px; }
.dashboard-sync-shell *::-webkit-scrollbar-track { background: #eef2f7; }
.dashboard-sync-shell *::-webkit-scrollbar-thumb { background: rgba(var(--rp-primary-rgb), 0.42); border: 2px solid #eef2f7; border-radius: 999px; }
.dashboard-sync-shell *::-webkit-scrollbar-thumb:hover { background: rgba(var(--rp-primary-rgb), 0.72); }

/* Data Server navigation rail */
.admin-shell.dashboard-sync-shell .sidebar {
    width: var(--rp-sidebar-width) !important;
    height: 100vh;
    padding: 20px !important;
    overflow: hidden;
    border-right: 1px solid #e2e8f0 !important;
    background:
        radial-gradient(circle at 12% 0%, rgba(99, 102, 241, .085), transparent 230px),
        linear-gradient(180deg, #ffffff 0%, #fbfcff 62%, #f8fafc 100%) !important;
    color: var(--rp-text);
    box-shadow: 14px 0 36px rgba(15, 23, 42, .045) !important;
}

.admin-shell.dashboard-sync-shell .sidebar-logo {
    position: relative;
    min-height: 58px;
    margin: 0 0 18px;
    padding: 4px 6px 18px !important;
    gap: 12px !important;
    border-bottom: 1px solid #e8edf4 !important;
}

.admin-shell.dashboard-sync-shell .sidebar-logo .icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(99, 102, 241, .18) !important;
    border-radius: 13px !important;
    background: linear-gradient(145deg, #eef2ff, #ecfeff) !important;
    color: #6366f1 !important;
    box-shadow: inset 0 1px 0 #fff, 0 9px 24px rgba(99, 102, 241, .11) !important;
    animation: none !important;
}

.admin-shell.dashboard-sync-shell .sidebar-logo .icon i { animation: none !important; }
.admin-shell.dashboard-sync-shell .sidebar-logo h2 {
    color: transparent !important;
    font: 750 1.16rem/1.1 Inter, sans-serif !important;
    letter-spacing: -0.025em;
    background: linear-gradient(135deg, #4f46e5 5%, #0284c7 95%);
    background-clip: text;
    -webkit-background-clip: text;
}
.admin-shell.dashboard-sync-shell .sidebar-logo h2 small {
    display: block;
    margin-top: 6px;
    color: #7c8ba1;
    font: 750 0.68rem/1 Inter, sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.admin-shell.dashboard-sync-shell .sidebar-nav {
    min-height: 0;
    padding: 0 2px 10px !important;
    overflow-x: hidden;
    overflow-y: auto;
    scrollbar-color: rgba(129, 140, 248, .35) transparent;
}
.admin-shell.dashboard-sync-shell .sidebar-nav::-webkit-scrollbar { width: 5px; }
.admin-shell.dashboard-sync-shell .sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.admin-shell.dashboard-sync-shell .sidebar-nav::-webkit-scrollbar-thumb { border: 0; background: rgba(129, 140, 248, .3); }
.admin-shell.dashboard-sync-shell .nav-section-label {
    margin: 0 10px 9px;
    color: #94a3b8;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.admin-shell.dashboard-sync-shell .nav-item {
    position: relative;
    min-height: 46px;
    margin: 0 0 5px !important;
    padding: 6px 11px 6px 7px !important;
    gap: 10px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    color: #64748b !important;
    font-size: 0.81rem !important;
    font-weight: 600 !important;
    transition: background var(--rp-transition), border-color var(--rp-transition), color var(--rp-transition), transform var(--rp-transition);
}
.admin-shell.dashboard-sync-shell .nav-item i {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border: 1px solid #e8edf4;
    border-radius: 9px;
    color: #7c8ba1 !important;
    background: #f8fafc;
    transition: inherit;
}
.admin-shell.dashboard-sync-shell .nav-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .nav-item:hover {
    color: #334155 !important;
    border-color: #e0e7ff !important;
    background: #f8faff !important;
    transform: translateX(2px);
}
.admin-shell.dashboard-sync-shell .nav-item:hover i { color: #6366f1 !important; border-color: #c7d2fe; background: #eef2ff; }
.admin-shell.dashboard-sync-shell .nav-item.active {
    color: #4338ca !important;
    border-color: #cfd5ff !important;
    background: linear-gradient(100deg, #eef2ff, #f0f9ff) !important;
    box-shadow: inset 0 1px 0 #fff, 0 9px 22px rgba(99, 102, 241, .1) !important;
}
.admin-shell.dashboard-sync-shell .nav-item.active::after { position: absolute; right: 10px; width: 5px; height: 5px; border-radius: 50%; background: #818cf8; box-shadow: 0 0 10px #818cf8; content: ''; }
.admin-shell.dashboard-sync-shell .nav-item.active i { color: #fff !important; border-color: transparent; background: linear-gradient(145deg, #6366f1, #7c3aed); box-shadow: 0 6px 15px rgba(99, 102, 241, .22); }

.admin-shell.dashboard-sync-shell .server-health {
    margin: 10px 0 0;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f8fafc);
    box-shadow: inset 0 1px 0 #fff, 0 12px 30px rgba(15, 23, 42, .065);
}
.admin-shell.dashboard-sync-shell .server-health-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.admin-shell.dashboard-sync-shell .server-health-header > div:first-child { display: grid; gap: 3px; }
.admin-shell.dashboard-sync-shell .server-health-header span { color: #64748b; font-size: .66rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.admin-shell.dashboard-sync-shell .server-health-header strong { color: #334155; font-size: .72rem; font-weight: 750; }
.admin-shell.dashboard-sync-shell .server-online { display: flex; align-items: center; gap: 5px; padding: 4px 7px; border: 1px solid #bbf7d0; border-radius: 999px; color: #047857; background: #ecfdf5; font-size: .66rem; font-weight: 750; }
.admin-shell.dashboard-sync-shell .server-online i { width: 5px; height: 5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px rgba(52, 211, 153, .9); }
.admin-shell.dashboard-sync-shell .health-metric { margin-bottom: 11px; }
.admin-shell.dashboard-sync-shell .health-metric-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: #64748b; font-size: .7rem; }
.admin-shell.dashboard-sync-shell .health-metric-line span { display: flex; align-items: center; gap: 7px; }
.admin-shell.dashboard-sync-shell .health-metric-line i { width: 13px; text-align: center; }
.admin-shell.dashboard-sync-shell .health-metric-line b { color: #475569; font-size: .63rem; font-weight: 800; }
.admin-shell.dashboard-sync-shell .health-metric-line strong { max-width: 128px; overflow: hidden; font-weight: 700; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .health-drive .health-metric-line strong { font-size: .64rem; }
.admin-shell.dashboard-sync-shell .health-track { height: 5px; overflow: hidden; border-radius: 999px; background: #e9eef5; }
.admin-shell.dashboard-sync-shell .health-fill { height: 100%; border-radius: inherit; transition: width .45s ease; }
.admin-shell.dashboard-sync-shell .health-cpu i,
.admin-shell.dashboard-sync-shell .health-cpu strong { color: #9333ea; }
.admin-shell.dashboard-sync-shell .health-cpu .health-fill { background: linear-gradient(90deg, #a855f7, #d8b4fe); }
.admin-shell.dashboard-sync-shell .health-ram i,
.admin-shell.dashboard-sync-shell .health-ram strong { color: #059669; }
.admin-shell.dashboard-sync-shell .health-ram .health-fill { background: linear-gradient(90deg, #059669, #34d399); }
.admin-shell.dashboard-sync-shell .health-disk i,
.admin-shell.dashboard-sync-shell .health-disk strong { color: #d97706; }
.admin-shell.dashboard-sync-shell .health-disk .health-fill { background: linear-gradient(90deg, #d97706, #fbbf24); }
.admin-shell.dashboard-sync-shell .health-drive { margin-bottom: 9px; }
.admin-shell.dashboard-sync-shell .health-drive .health-metric-line { margin-bottom: 4px; }
.admin-shell.dashboard-sync-shell .server-meta-list { display: grid; gap: 8px; margin-top: 13px; padding-top: 12px; border-top: 1px solid #e8edf4; }
.admin-shell.dashboard-sync-shell .server-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #64748b; font-size: .68rem; }
.admin-shell.dashboard-sync-shell .server-meta-row span { display: flex; align-items: center; gap: 7px; }
.admin-shell.dashboard-sync-shell .server-meta-row i { width: 13px; color: #94a3b8; text-align: center; }
.admin-shell.dashboard-sync-shell .server-meta-row strong { max-width: 132px; overflow: hidden; color: #475569; font-size: .68rem; font-weight: 650; letter-spacing: -.02em; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .server-meta-row #srv-network { max-width: 148px; color: #0284c7; font-size: .65rem; }
.admin-shell.dashboard-sync-shell .server-meta-row #srv-conn { display: inline-flex; align-items: center; gap: 5px; color: #ea580c; }
.admin-shell.dashboard-sync-shell #srv-conn-trend { font-size: .58rem; font-weight: 800; }
.admin-shell.dashboard-sync-shell #srv-conn-trend.trend-up { color: #f97316; }
.admin-shell.dashboard-sync-shell #srv-conn-trend.trend-down { color: #059669; }
.admin-shell.dashboard-sync-shell #srv-conn-trend.trend-stable { color: #94a3b8; }
.admin-shell.dashboard-sync-shell .server-meta-row #srv-uptime { color: #7c3aed; }
.admin-shell.dashboard-sync-shell .sidebar-footer {
    margin-top: 10px;
    padding: 10px 2px 0 !important;
    border-top: 1px solid #e8edf4 !important;
    background: transparent !important;
}
.admin-shell.dashboard-sync-shell .sidebar-footer a {
    min-height: 42px;
    padding: 6px 9px;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 11px;
    color: #64748b !important;
    font-weight: 600;
}
.admin-shell.dashboard-sync-shell .sidebar-footer a i { display: grid; width: 28px; height: 28px; place-items: center; border-radius: 8px; color: #64748b; background: #f1f5f9; }
.admin-shell.dashboard-sync-shell .sidebar-footer a:hover { color: #dc2626 !important; border-color: #fecaca; background: #fef2f2; }
.admin-shell.dashboard-sync-shell .sidebar-footer a:hover i { color: #dc2626; background: #fee2e2; }

@media (min-width: 992px) and (max-height: 780px) {
    .admin-shell.dashboard-sync-shell .sidebar { padding-block: 14px !important; }
    .admin-shell.dashboard-sync-shell .sidebar-logo { min-height: 50px; margin-bottom: 10px; padding-bottom: 12px !important; }
    .admin-shell.dashboard-sync-shell .nav-section-label { margin-bottom: 5px; }
    .admin-shell.dashboard-sync-shell .nav-item { min-height: 40px; margin-bottom: 3px !important; }
    .admin-shell.dashboard-sync-shell .nav-item i { width: 29px; height: 29px; flex-basis: 29px; }
    .admin-shell.dashboard-sync-shell .server-health { padding: 11px 13px; }
    .admin-shell.dashboard-sync-shell .server-health-header { margin-bottom: 10px; }
    .admin-shell.dashboard-sync-shell .health-metric { margin-bottom: 8px; }
    .admin-shell.dashboard-sync-shell .server-meta-list { gap: 5px; margin-top: 9px; padding-top: 9px; }
    .admin-shell.dashboard-sync-shell .sidebar-footer { margin-top: 7px; padding-top: 7px !important; }
}

/* Workspace */
.admin-shell.dashboard-sync-shell .main {
    width: calc(100% - var(--rp-sidebar-width)) !important;
    max-width: calc(100vw - var(--rp-sidebar-width));
    min-width: 0;
    margin-left: var(--rp-sidebar-width) !important;
    padding: 0 40px 48px !important;
}
.admin-shell.dashboard-sync-shell .main > * { width: 100%; max-width: 1680px; margin-left: auto; margin-right: auto; }
.admin-shell.dashboard-sync-shell .header-bar {
    position: sticky;
    top: 0;
    z-index: 90;
    min-height: 72px;
    margin: 0 -40px 30px !important;
    padding: 0 40px;
    border: 0 !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px) saturate(120%);
    -webkit-backdrop-filter: blur(12px) saturate(120%);
}
.admin-shell.dashboard-sync-shell .breadcrumb { margin-bottom: 3px !important; color: var(--rp-muted) !important; font-size: 0.73rem !important; }
.admin-shell.dashboard-sync-shell .breadcrumb a { color: var(--rp-primary) !important; font-weight: 600; }
.admin-shell.dashboard-sync-shell .page-title {
    color: var(--rp-text-strong) !important;
    font-size: clamp(1.2rem, 2vw, 1.5rem) !important;
    letter-spacing: -0.025em;
}

/* Cards, metrics and tables */
.admin-shell.dashboard-sync-shell .card,
.admin-shell.dashboard-sync-shell .table-card,
.admin-shell.dashboard-sync-shell .stat-card,
.admin-shell.dashboard-sync-shell .api-card,
.admin-shell.dashboard-sync-shell .api-doc-card {
    border: 1px solid var(--rp-border) !important;
    border-radius: 16px !important;
    background: var(--rp-card) !important;
    box-shadow: var(--rp-shadow-md) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.admin-shell.dashboard-sync-shell .card { padding: clamp(18px, 2.2vw, 24px) !important; }
.admin-shell.dashboard-sync-shell .card h4,
.admin-shell.dashboard-sync-shell .api-card h4 { color: var(--rp-text-strong) !important; }
.admin-shell.dashboard-sync-shell .stats-grid { gap: 24px !important; }
.admin-shell.dashboard-sync-shell .stat-card {
    min-width: 0;
    padding: 24px !important;
    overflow: hidden;
    transition: transform var(--rp-transition), box-shadow var(--rp-transition), border-color var(--rp-transition);
}
.admin-shell.dashboard-sync-shell .stat-card::after { background: rgba(var(--rp-primary-rgb), 0.08) !important; }
.admin-shell.dashboard-sync-shell .stat-card:hover { transform: translateY(-4px); border-color: rgba(var(--rp-primary-rgb), 0.3) !important; box-shadow: var(--rp-shadow-lg) !important; }
.admin-shell.dashboard-sync-shell .stat-label {
    color: #475569 !important;
    font-weight: 700 !important;
}
.admin-shell.dashboard-sync-shell .stat-value {
    color: #0f172a !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}
.admin-shell.dashboard-sync-shell .stat-icon { color: var(--rp-primary) !important; }

.admin-shell.dashboard-sync-shell .table-card {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden;
    background: rgba(255, 255, 255, 0.82) !important;
    -webkit-overflow-scrolling: touch;
}
.admin-shell.dashboard-sync-shell table { width: 100%; border-collapse: collapse !important; background: transparent !important; }
.admin-shell.dashboard-sync-shell thead th,
.admin-shell.dashboard-sync-shell .param-table th {
    padding: 13px 16px !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
    background: rgba(248, 250, 252, 0.88) !important;
    color: var(--rp-muted) !important;
    font-size: 0.71rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.07em !important;
}
.admin-shell.dashboard-sync-shell tbody td,
.admin-shell.dashboard-sync-shell .param-table td {
    padding: 12px 16px !important;
    border-bottom-color: rgba(226, 232, 240, 0.9) !important;
    color: #334155 !important;
}
.admin-shell.dashboard-sync-shell tbody tr:hover { background: rgba(var(--rp-primary-rgb), 0.055) !important; }

/* High-contrast counters for the light dashboard. */
.admin-shell.dashboard-sync-shell .badge {
    border: 1px solid transparent !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em;
}
.admin-shell.dashboard-sync-shell .badge-green {
    border-color: #a7f3d0 !important;
    background: #d1fae5 !important;
    color: #047857 !important;
}
.admin-shell.dashboard-sync-shell .badge-red {
    border-color: #fecaca !important;
    background: #fee2e2 !important;
    color: #b91c1c !important;
}
.admin-shell.dashboard-sync-shell .badge-blue {
    border-color: #bae6fd !important;
    background: #e0f2fe !important;
    color: #0369a1 !important;
}
.admin-shell.dashboard-sync-shell .badge-purple {
    border-color: #ddd6fe !important;
    background: #ede9fe !important;
    color: #6d28d9 !important;
}
.admin-shell.dashboard-sync-shell #userTable tbody td:nth-child(4) .badge {
    min-width: 68px;
    padding: 5px 12px !important;
    font-size: 0.8rem !important;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

/* Controls */
.admin-shell.dashboard-sync-shell .btn {
    min-height: 38px;
    padding: 9px 18px !important;
    border: 1px solid transparent !important;
    border-radius: 8px !important;
    color: #fff !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: transform var(--rp-transition), box-shadow var(--rp-transition), filter var(--rp-transition) !important;
}
.admin-shell.dashboard-sync-shell .btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--rp-primary-rgb), 0.22) !important; filter: brightness(1.02); }
.admin-shell.dashboard-sync-shell .btn-primary { background: var(--rp-primary) !important; }
.admin-shell.dashboard-sync-shell .btn-primary:hover { background: var(--rp-primary-hover) !important; }
.admin-shell.dashboard-sync-shell .btn-success { background: var(--rp-success) !important; }
.admin-shell.dashboard-sync-shell .btn-danger { background: var(--rp-danger) !important; }
.admin-shell.dashboard-sync-shell .btn-warning { background: var(--rp-warning) !important; }
.admin-shell.dashboard-sync-shell .btn-info { background: var(--rp-info) !important; }
.admin-shell.dashboard-sync-shell .btn-sm { min-height: 30px; padding: 5px 12px !important; font-size: 0.72rem !important; }
.admin-shell.dashboard-sync-shell .btn-cancel {
    border-color: rgba(148, 163, 184, 0.35) !important;
    background: #fff !important;
    color: var(--rp-muted) !important;
}
.admin-shell.dashboard-sync-shell :is(input, textarea, select),
.admin-shell.dashboard-sync-shell .form-group :is(input, textarea, select),
.admin-shell.dashboard-sync-shell .search-box input {
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, 0.92) !important;
    color: var(--rp-text) !important;
    box-shadow: var(--rp-shadow-sm) !important;
}
.admin-shell.dashboard-sync-shell :is(input, textarea, select)::placeholder { color: var(--rp-subtle) !important; }
.admin-shell.dashboard-sync-shell :is(input, textarea, select):focus {
    border-color: var(--rp-primary) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(var(--rp-primary-rgb), 0.1) !important;
}
.admin-shell.dashboard-sync-shell .form-group label { color: #475569 !important; }
.admin-shell.dashboard-sync-shell .modal-overlay { background: rgba(15, 23, 42, 0.56) !important; }
.admin-shell.dashboard-sync-shell .modal {
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    background: #fff !important;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.25) !important;
}
.admin-shell.dashboard-sync-shell .modal h3 { color: var(--rp-text-strong) !important; }
.admin-shell.dashboard-sync-shell .pagination { border-top-color: var(--rp-border) !important; }
.admin-shell.dashboard-sync-shell .pagination li a,
.admin-shell.dashboard-sync-shell .pagination li span { border-color: var(--rp-border) !important; background: #fff !important; color: var(--rp-muted) !important; }
.admin-shell.dashboard-sync-shell .pagination li.active span { border-color: var(--rp-primary) !important; background: var(--rp-primary) !important; color: #fff !important; }
.admin-shell.dashboard-sync-shell .token-cell { color: var(--rp-primary-hover) !important; background: rgba(var(--rp-primary-rgb), 0.09) !important; }
.admin-shell.dashboard-sync-shell .api-doc-card code,
.admin-shell.dashboard-sync-shell .api-code { background: var(--rp-sidebar) !important; color: #c7d2fe !important; }
.admin-shell.dashboard-sync-shell .alert-success { color: #047857 !important; background: #ecfdf5 !important; }
.admin-shell.dashboard-sync-shell .alert-danger { color: #b91c1c !important; background: #fef2f2 !important; }

/* Mobile header follows the same light navigation language */
.admin-shell.dashboard-sync-shell .mobile-header {
    height: 56px;
    border-bottom: 1px solid #e2e8f0 !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08) !important;
    backdrop-filter: blur(14px);
}
.admin-shell.dashboard-sync-shell .mobile-title { color: #334155 !important; }
.admin-shell.dashboard-sync-shell .menu-toggle,
.admin-shell.dashboard-sync-shell .mobile-logout { color: #64748b !important; }
.admin-shell.dashboard-sync-shell .sidebar-overlay { background: rgba(15, 23, 42, 0.58) !important; }

/* Login — same two-panel shell used by panel.routerproxy.uk */
body.auth-shell.dashboard-sync-shell {
    position: relative;
    display: grid !important;
    min-height: 100vh;
    min-height: 100svh;
    place-items: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 36px !important;
    background: var(--rp-login-bg) !important;
}
.auth-shell.dashboard-sync-shell::before,
.auth-shell.dashboard-sync-shell::after {
    content: "";
    position: fixed;
    z-index: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
}
.auth-shell.dashboard-sync-shell::before { top: -210px; right: -110px; background: radial-gradient(circle, rgba(var(--rp-primary-rgb), 0.18), transparent 70%); }
.auth-shell.dashboard-sync-shell::after { bottom: -240px; left: -90px; background: radial-gradient(circle, rgba(14, 165, 233, 0.14), transparent 70%); }
.dashboard-login-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    width: min(1000px, 100%);
    min-height: 620px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.78);
    border-radius: 30px;
    background: #f7f9fc;
    box-shadow: 24px 24px 60px rgba(47, 62, 88, 0.18), -18px -18px 44px rgba(255, 255, 255, 0.95);
}
.dashboard-login-welcome {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 48px;
    color: #fff;
    background:
        radial-gradient(circle at 84% 12%, rgba(99, 102, 241, 0.35), transparent 17rem),
        linear-gradient(155deg, #172440, #111a32 58%, #0f172a);
}
.dashboard-brand { display: flex; align-items: center; gap: 13px; }
.dashboard-brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--rp-primary), #0ea5e9);
    box-shadow: 0 9px 24px rgba(var(--rp-primary-rgb), 0.32);
}
.dashboard-brand-mark i { font-size: 18px; }
.dashboard-brand strong { display: block; font-size: 1rem; }
.dashboard-brand small { color: #94a3b8; font-size: 0.7rem; }
.dashboard-welcome-copy .kicker {
    display: inline-flex;
    margin-bottom: 18px;
    padding: 6px 10px;
    border: 1px solid rgba(165, 180, 252, 0.2);
    border-radius: 999px;
    color: #c7d2fe;
    background: rgba(var(--rp-primary-rgb), 0.1);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.dashboard-welcome-copy h2 { margin: 0 0 15px; color: #fff; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.08; letter-spacing: -0.045em; }
.dashboard-welcome-copy p { max-width: 350px; color: #aab6ca; font-size: 0.88rem; line-height: 1.7; }
.dashboard-feature-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.dashboard-feature-row span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.08); border-radius: 999px; color: #cbd5e1; background: rgba(255,255,255,.04); font-size: .7rem; }
.dashboard-ready { display: flex; align-items: center; gap: 8px; color: #94a3b8; font-size: 0.72rem; }
.dashboard-ready::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--rp-success); box-shadow: 0 0 0 5px rgba(16,185,129,.1); }
.dashboard-login-panel { display: flex; flex-direction: column; justify-content: center; padding: 58px 68px; }
.dashboard-login-panel .mobile-dashboard-brand { display: none; margin-bottom: 40px; }
.dashboard-login-panel .eyebrow { margin: 0 0 8px; color: var(--rp-primary); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.dashboard-login-panel h1 { margin: 0 0 9px; color: var(--rp-text-strong); font-size: 1.85rem; letter-spacing: -0.035em; }
.dashboard-login-panel .intro { margin: 0 0 30px; color: var(--rp-muted); font-size: 0.84rem; }
.dashboard-login-panel .form-group { margin-bottom: 19px; }
.dashboard-login-panel .form-group label { display: block; margin-bottom: 7px; color: #475569; font-size: 0.74rem; font-weight: 700; text-transform: none; letter-spacing: 0; }
.dashboard-input-wrap { position: relative; }
.dashboard-input-wrap > i { position: absolute; top: 50%; left: 15px; color: #94a3b8; transform: translateY(-50%); pointer-events: none; }
.dashboard-login-panel input[type="email"],
.dashboard-login-panel input[type="password"] {
    width: 100%;
    height: 52px;
    padding: 0 16px 0 44px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 13px;
    outline: 0;
    color: var(--rp-text);
    background: #f8fafc;
    box-shadow: inset 0 1px 2px rgba(15,23,42,.025), 0 1px 2px rgba(15,23,42,.03);
    font: inherit;
    font-size: 0.84rem;
    transition: border-color var(--rp-transition), box-shadow var(--rp-transition), background var(--rp-transition);
}
.dashboard-login-panel input:focus { border-color: var(--rp-primary); background: #fff; box-shadow: 0 0 0 4px rgba(var(--rp-primary-rgb), .1); }
.dashboard-login-panel .remember { display: flex; align-items: center; gap: 8px; margin: 2px 0 17px; color: var(--rp-muted); font-size: .77rem; cursor: pointer; }
.dashboard-login-panel .remember input { width: 16px; height: 16px; accent-color: var(--rp-primary); }
.dashboard-login-panel .btn-login {
    display: inline-flex;
    width: 100%;
    height: 54px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    border: 0 !important;
    border-radius: 15px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #7477f6, var(--rp-primary-hover)) !important;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.26) !important;
    font: inherit;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform var(--rp-transition), box-shadow var(--rp-transition);
}
.dashboard-login-panel .btn-login:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(79, 70, 229, .32) !important; }
.dashboard-login-panel .error-msg { margin-top: 14px; color: #dc2626; font-size: .78rem; text-align: center; }
.dashboard-secure-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 18px 0 0; color: #8290a4; font-size: .7rem; }
.dashboard-secure-note i { color: var(--rp-success); }

@media (max-width: 991px) {
    .admin-shell.dashboard-sync-shell .sidebar { width: 240px !important; padding: 15px !important; transform: translateX(-100%) !important; visibility: hidden; z-index: 2000; }
    .admin-shell.dashboard-sync-shell .sidebar.show { transform: translateX(0) !important; visibility: visible; }
    .admin-shell.dashboard-sync-shell .main { width: 100% !important; max-width: 100% !important; margin-left: 0 !important; padding: 72px 18px 32px !important; }
    .admin-shell.dashboard-sync-shell .header-bar { position: relative; top: auto; min-height: auto; margin: 0 0 20px !important; padding: 0; border-bottom: 0 !important; background: transparent; box-shadow: none; backdrop-filter: none; }
    .admin-shell.dashboard-sync-shell .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
    .dashboard-login-shell { width: min(100%, 520px); min-height: auto; grid-template-columns: 1fr; }
    .dashboard-login-welcome { display: none; }
    .dashboard-login-panel { min-height: 600px; padding: 52px; }
    .dashboard-login-panel .mobile-dashboard-brand { display: flex; }
}

@media (max-width: 600px) {
    body.auth-shell.dashboard-sync-shell { display: block !important; padding: 0 !important; background: #f7f9fc !important; }
    .dashboard-login-shell { width: 100%; min-height: 100vh; min-height: 100svh; border: 0; border-radius: 0; box-shadow: none; }
    .dashboard-login-panel { min-height: 100vh; min-height: 100svh; padding: 36px 24px; }
    .admin-shell.dashboard-sync-shell .main { padding-right: 14px !important; padding-left: 14px !important; }
    .admin-shell.dashboard-sync-shell .stats-grid { grid-template-columns: 1fr !important; }
    .admin-shell.dashboard-sync-shell .stat-card { padding: 17px !important; }
    .admin-shell.dashboard-sync-shell .card { padding: 16px !important; }
    .admin-shell.dashboard-sync-shell .data-toolbar { grid-template-columns: 1fr !important; }
    .admin-shell.dashboard-sync-shell .table-card table { min-width: 720px; }
}

@media (prefers-reduced-motion: reduce) {
    .dashboard-sync-shell *, .dashboard-sync-shell *::before, .dashboard-sync-shell *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* 2026-08-24 unified usability and responsive corrections */
body.admin-shell.modal-open { overflow: hidden !important; }
.admin-shell.dashboard-sync-shell .modal { width: min(480px, calc(100vw - 32px)) !important; max-width: none !important; max-height: calc(100svh - 32px); overflow-y: auto; }
.admin-shell.dashboard-sync-shell .modal.modal-wide { width: min(850px, calc(100vw - 32px)) !important; }
.admin-shell.dashboard-sync-shell .modal-overlay[aria-hidden="true"] { pointer-events: none; }
.admin-shell.dashboard-sync-shell :is(button, a, input, textarea, select):focus-visible { outline: 3px solid rgba(var(--rp-primary-rgb), .32) !important; outline-offset: 2px; }
.admin-shell.dashboard-sync-shell button:disabled { cursor: not-allowed !important; opacity: .62; transform: none !important; }
.admin-shell.dashboard-sync-shell .action-group { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.admin-shell.dashboard-sync-shell .icon-button { min-width: 34px; min-height: 32px; justify-content: center; padding: 6px 9px !important; }
.admin-shell.dashboard-sync-shell .token-cell { display: inline-block; max-width: none; overflow: visible; color: var(--rp-primary-hover) !important; font-family: monospace; font-size: .75rem; text-overflow: clip; vertical-align: middle; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .table-card { overflow-x: auto !important; scrollbar-gutter: stable; }
.admin-shell.dashboard-sync-shell .user-table-card table { table-layout: fixed; min-width: 1240px; }
.admin-shell.dashboard-sync-shell .user-table-card .col-index { width: 48px; }
.admin-shell.dashboard-sync-shell .user-table-card .col-name { width: 15%; }
.admin-shell.dashboard-sync-shell .user-table-card .col-email { width: 23%; overflow-wrap: anywhere; }
.admin-shell.dashboard-sync-shell .user-table-card .col-count { width: 92px; }
.admin-shell.dashboard-sync-shell .user-table-card .col-token { width: 300px; }
.admin-shell.dashboard-sync-shell .user-table-card .col-recovery { width: 108px; }
.admin-shell.dashboard-sync-shell .user-table-card .col-actions { width: 290px; }
.admin-shell.dashboard-sync-shell .user-table-card th.col-actions,
.admin-shell.dashboard-sync-shell .user-table-card td.col-actions { position: sticky; right: 0; z-index: 3; box-shadow: -12px 0 18px -16px rgba(15, 23, 42, .34); }
.admin-shell.dashboard-sync-shell .user-table-card th.col-actions { z-index: 4; background: #f8fafc !important; }
.admin-shell.dashboard-sync-shell .user-table-card td.col-actions { background: #fff !important; }
.admin-shell.dashboard-sync-shell .user-table-card tbody tr:hover td.col-actions { background: #f8faff !important; }
.admin-shell.dashboard-sync-shell .checker-container { align-items: start; }
.admin-shell.dashboard-sync-shell .checker-run-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; }
.admin-shell.dashboard-sync-shell .checker-run-actions .btn { justify-content: center; }
.admin-shell.dashboard-sync-shell .checker-results-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.admin-shell.dashboard-sync-shell .checker-results-header h4 { margin-bottom: 0 !important; }
.admin-shell.dashboard-sync-shell .result-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-shell.dashboard-sync-shell .result-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.admin-shell.dashboard-sync-shell .result-grid.result-grid-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-shell.dashboard-sync-shell .result-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 0 0 12px; padding: 5px; border: 1px solid var(--rp-border); border-radius: 12px; background: var(--rp-bg); }
.admin-shell.dashboard-sync-shell .result-tab { display: inline-flex; min-width: 0; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--rp-muted); font: inherit; font-size: .74rem; font-weight: 750; cursor: pointer; }
.admin-shell.dashboard-sync-shell .result-tab span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; padding: 0 5px; border-radius: 999px; background: rgba(100, 116, 139, .12); font-size: .68rem; }
.admin-shell.dashboard-sync-shell .result-tab.active { color: #fff; background: var(--rp-primary); box-shadow: 0 6px 14px rgba(var(--rp-primary-rgb), .2); }
.admin-shell.dashboard-sync-shell .tabbed-results { display: block !important; }
.admin-shell.dashboard-sync-shell .tabbed-results .result-panel { display: none; }
.admin-shell.dashboard-sync-shell .tabbed-results .result-panel.active { display: block; }
.admin-shell.dashboard-sync-shell .progress-container { height: 22px !important; border: 1px solid #dbe4ff !important; background: #eef2ff !important; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .045); }
.admin-shell.dashboard-sync-shell .progress-text { top: 50% !important; left: 50% !important; width: max-content !important; height: 17px !important; padding: 0 8px; border: 1px solid rgba(203, 213, 225, .8); border-radius: 999px; color: #334155 !important; background: rgba(255, 255, 255, .91); text-shadow: none !important; transform: translate(-50%, -50%); }
.admin-shell.dashboard-sync-shell .tabbed-results .log-box { height: 440px; }
.admin-shell.dashboard-sync-shell .log-box { min-width: 0; overflow: auto; overflow-wrap: anywhere; border: 1px solid #e2e8f0 !important; background: #f7f9fc !important; color: #334155 !important; box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035); }
.admin-shell.dashboard-sync-shell .log-item { border-bottom-color: #e2e8f0 !important; }
.admin-shell.dashboard-sync-shell .log-success { color: #047857 !important; }
.admin-shell.dashboard-sync-shell .log-danger { color: #b91c1c !important; }
.admin-shell.dashboard-sync-shell .log-warning { color: #b45309 !important; }
.admin-shell.dashboard-sync-shell .log-info { color: #1d4ed8 !important; }
.admin-shell.dashboard-sync-shell .status-live { border-color: #a7f3d0 !important; background: #ecfdf5 !important; color: #047857 !important; }
.admin-shell.dashboard-sync-shell .status-die { border-color: #fecaca !important; background: #fef2f2 !important; color: #b91c1c !important; }
.admin-shell.dashboard-sync-shell .status-error { border-color: #fde68a !important; background: #fffbeb !important; color: #b45309 !important; }
.admin-shell.dashboard-sync-shell .log-item { display: grid !important; grid-template-columns: minmax(0, 1fr); align-items: start !important; gap: 5px; min-width: 0; }
.admin-shell.dashboard-sync-shell .log-item > * { min-width: 0; overflow-wrap: anywhere; }
.admin-shell.dashboard-sync-shell .status-badge { width: fit-content; max-width: 100%; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
.admin-shell.dashboard-sync-shell .api-code-wrap { position: relative; }
.admin-shell.dashboard-sync-shell .api-copy { position: absolute; top: 8px; right: 8px; z-index: 1; }
.admin-shell.dashboard-sync-shell .toggle input { display: block !important; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.admin-shell.dashboard-sync-shell .toggle:focus-within .toggle-slider { outline: 3px solid rgba(var(--rp-primary-rgb), .28); outline-offset: 2px; }
.admin-shell.dashboard-sync-shell .profile-card { width: min(100%, 680px); margin-inline: auto; }
.admin-shell.dashboard-sync-shell .profile-identity { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.admin-shell.dashboard-sync-shell .profile-avatar { display: grid; width: 60px; height: 60px; flex: 0 0 60px; place-items: center; border-radius: 16px; color: #fff; background: linear-gradient(135deg,#6366f1,#8b5cf6); font-size: 24px; }
.admin-shell.dashboard-sync-shell .profile-identity h3 { margin: 0 0 4px; color: var(--rp-text-strong) !important; font-size: 1.1rem; }
.admin-shell.dashboard-sync-shell .profile-identity p { color: var(--rp-primary-hover) !important; font-size: .82rem; }
.admin-shell.dashboard-sync-shell .profile-summary { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
.admin-shell.dashboard-sync-shell .profile-summary.has-token { grid-template-columns: minmax(0, 1.5fr) minmax(120px, .5fr); }
.admin-shell.dashboard-sync-shell .profile-token-row { display: grid; grid-template-columns: minmax(0, 1fr) 30px 30px; align-items: center; gap: 5px; margin-top: 8px; }
.admin-shell.dashboard-sync-shell .profile-token-row code { min-width: 0; overflow: hidden; color: var(--rp-primary-hover); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .profile-token-action { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--rp-border); border-radius: 7px; color: var(--rp-primary-hover); background: #fff; cursor: pointer; }
.admin-shell.dashboard-sync-shell .profile-limit { color: #b45309 !important; }
.admin-shell.dashboard-sync-shell .profile-section-title { margin-bottom: 16px; color: var(--rp-text-strong) !important; }
.admin-shell.dashboard-sync-shell .profile-divider { margin: 24px 0; border: 0; border-top: 1px solid var(--rp-border); }
.admin-shell.dashboard-sync-shell .stats-grid .stat-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: rgba(var(--rp-primary-rgb), .07); animation: none !important; }
.admin-shell.dashboard-sync-shell .stats-grid .stat-icon i { filter: none !important; }
.admin-shell.dashboard-sync-shell .data-toolbar-organized { display: flex !important; align-items: flex-start; gap: 10px !important; }
.admin-shell.dashboard-sync-shell .toolbar-group { display: flex; min-width: 0; align-items: center; gap: 8px; flex-wrap: wrap; }
.admin-shell.dashboard-sync-shell .toolbar-group-secondary { margin-left: auto; justify-content: flex-end; }
.admin-shell.dashboard-sync-shell .table-tools { display: flex; justify-content: flex-end; margin: 0 0 12px; }
.admin-shell.dashboard-sync-shell .table-search-form { display: flex; width: min(100%, 440px); align-items: center; gap: 7px; padding: 5px 6px 5px 12px; border: 1px solid var(--rp-border); border-radius: 11px; background: #fff; box-shadow: var(--rp-shadow-sm); }
.admin-shell.dashboard-sync-shell .table-search-form > i { color: var(--rp-subtle); }
.admin-shell.dashboard-sync-shell .table-search-form input { min-width: 0; flex: 1; padding: 7px 4px !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.admin-shell.dashboard-sync-shell .table-search-form > a { color: var(--rp-muted); }
.admin-shell.dashboard-sync-shell .data-list-table { table-layout: fixed; min-width: 830px; }
.admin-shell.dashboard-sync-shell .data-list-table .col-index,
.admin-shell.dashboard-sync-shell .recovery-table-card .col-index {
    width: 72px !important;
    min-width: 72px;
    max-width: 72px;
    padding-inline: 10px !important;
    text-align: center;
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
    font-variant-numeric: tabular-nums;
}
.admin-shell.dashboard-sync-shell .data-list-table .col-status { width: 72px; }
.admin-shell.dashboard-sync-shell .data-list-table .col-file { width: 90px; }
.admin-shell.dashboard-sync-shell .data-list-table .col-date { width: 150px; }
.admin-shell.dashboard-sync-shell .data-list-table .col-row-actions { width: 92px; }
.admin-shell.dashboard-sync-shell .data-value-cell { min-width: 0; overflow: hidden; color: #334155 !important; font-family: monospace; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .data-list-table .data-value-cell { max-width: 0; }
.admin-shell.dashboard-sync-shell .recovery-table-card .data-value-cell { max-width: 600px; }
.admin-shell.dashboard-sync-shell .col-date { color: var(--rp-muted) !important; font-size: .76rem !important; white-space: nowrap; }
.admin-shell.dashboard-sync-shell .recovery-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-shell.dashboard-sync-shell .recovery-toolbar .table-search-form { margin-left: auto; }
.admin-shell.dashboard-sync-shell .visually-hidden-file { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; }
.admin-shell.dashboard-sync-shell .file-input { width: 100%; padding: 7px; border: 1px solid var(--rp-border); border-radius: 9px; color: var(--rp-text); background: #fff; }
.admin-shell.dashboard-sync-shell .file-input::file-selector-button { margin-right: 10px; padding: 8px 12px; border: 0; border-radius: 7px; color: #fff; background: var(--rp-primary); font: inherit; font-weight: 700; cursor: pointer; }
.admin-shell.dashboard-sync-shell .row-input { min-height: 80px; flex: 1; padding: 8px 12px; border: 1px solid var(--rp-border); border-radius: 8px; color: var(--rp-text) !important; background: #fff !important; font-family: monospace; font-size: .82rem; outline: none; resize: vertical; }
.admin-shell.dashboard-sync-shell .remove-data-row { padding: 8px 10px; border: 1px solid #fecaca; border-radius: 7px; color: #dc2626; background: #fef2f2; cursor: pointer; }
.admin-shell.dashboard-sync-shell .popup-flash-source { display: none !important; }
.swal2-container { z-index: 20000 !important; padding: 18px !important; }
.data-server-popup { width: min(440px, calc(100vw - 28px)) !important; padding: 24px !important; border: 1px solid #e2e8f0 !important; border-radius: 20px !important; box-shadow: 0 24px 65px rgba(15, 23, 42, .2) !important; font-family: Inter, sans-serif !important; }
.data-server-popup:not(.data-server-toast) .swal2-icon { width: 5em !important; height: 5em !important; margin: 2px auto 15px !important; border-width: .25em !important; transform: none !important; }
.data-server-popup-title { padding: 0 !important; color: #172033 !important; font-size: 1.12rem !important; font-weight: 800 !important; line-height: 1.35 !important; }
.data-server-popup-content { margin: 10px 0 0 !important; color: #64748b !important; font-size: .86rem !important; line-height: 1.6 !important; overflow-wrap: anywhere !important; word-break: break-word !important; }
.data-server-popup-content b { color: #334155 !important; }
.data-server-popup-actions { width: 100% !important; gap: 9px !important; margin: 22px 0 0 !important; }
.data-server-popup-confirm,
.data-server-popup-confirm-danger,
.data-server-popup-cancel { min-width: 108px; padding: 10px 17px; border: 1px solid transparent; border-radius: 10px; font: inherit; font-size: .82rem; font-weight: 750; cursor: pointer; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.data-server-popup-confirm { color: #fff; background: linear-gradient(135deg, #6366f1, #7c3aed); box-shadow: 0 8px 18px rgba(99, 102, 241, .22); }
.data-server-popup-confirm-danger { color: #fff; background: linear-gradient(135deg, #dc2626, #ef4444); box-shadow: 0 8px 18px rgba(239, 68, 68, .22); }
.data-server-popup-cancel { color: #475569; border-color: #dbe3ee; background: #f8fafc; }
.data-server-popup-confirm:hover,
.data-server-popup-confirm-danger:hover,
.data-server-popup-cancel:hover { transform: translateY(-1px); }
.data-server-popup :is(.data-server-popup-confirm,.data-server-popup-confirm-danger,.data-server-popup-cancel):focus-visible { outline: 3px solid rgba(99, 102, 241, .24); outline-offset: 2px; }
.data-server-popup .swal2-loader { border-color: #6366f1 transparent #6366f1 transparent !important; }
.data-server-popup .swal2-validation-message { margin: 12px 0 0 !important; border-radius: 9px !important; color: #b91c1c !important; background: #fef2f2 !important; font-size: .78rem !important; line-height: 1.45 !important; }
.data-server-popup .swal2-close { color: #94a3b8 !important; transition: color .16s ease, background .16s ease !important; }
.data-server-popup .swal2-close:hover { color: #475569 !important; background: #f1f5f9 !important; }
.data-server-popup-danger { width: min(360px, calc(100vw - 28px)) !important; padding: 18px !important; border-radius: 16px !important; }
.data-server-popup-danger:not(.data-server-toast) .swal2-icon { width: 3.7em !important; height: 3.7em !important; margin: 0 auto 10px !important; font-size: .9rem !important; }
.data-server-popup-danger .data-server-popup-title { font-size: 1rem !important; }
.data-server-popup-danger .data-server-popup-content { margin-top: 6px !important; font-size: .78rem !important; line-height: 1.4 !important; }
.data-server-popup-danger .data-server-popup-actions { gap: 7px !important; margin-top: 14px !important; }
.data-server-popup-danger .data-server-popup-actions > button { min-width: 92px !important; padding: 8px 13px !important; font-size: .78rem !important; }
.data-server-toast { width: min(390px, calc(100vw - 28px)) !important; grid-template-columns: 38px minmax(0, 1fr) 28px !important; align-items: center !important; gap: 4px 10px !important; padding: 13px 14px !important; border-radius: 14px !important; }
.data-server-toast .swal2-icon { grid-column: 1 !important; width: 2em !important; height: 2em !important; margin: 0 !important; border-width: .2em !important; font-size: 1em !important; transform: none !important; }
.data-server-toast .data-server-popup-title { grid-column: 2 !important; margin: 0 !important; text-align: left !important; font-size: .88rem !important; }
.data-server-toast .data-server-popup-content { grid-column: 2 !important; margin: 2px 0 0 !important; text-align: left !important; font-size: .74rem !important; line-height: 1.4 !important; }
.data-server-toast .swal2-close { grid-column: 3 !important; color: #94a3b8 !important; font-size: 1.4rem !important; }
.data-server-toast .swal2-timer-progress-bar { background: linear-gradient(90deg, #6366f1, #8b5cf6) !important; }
/* Keep success/error notifications compact on both desktop and mobile. */
.data-server-toast.swal2-toast {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) 24px !important;
    grid-template-rows: auto auto !important;
    align-items: center !important;
    align-content: center !important;
    width: min(390px, calc(100vw - 28px)) !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 104px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}
.data-server-toast.swal2-toast .swal2-title,
.data-server-toast.swal2-toast .swal2-html-container { min-height: 0 !important; }
.data-server-toast.swal2-toast .swal2-title { line-height: 1.25 !important; }
.data-server-toast.swal2-toast .swal2-html-container { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

@media (max-width: 1399px) {
    .admin-shell.dashboard-sync-shell .user-table-card .col-recovery { display: none; }
    .admin-shell.dashboard-sync-shell .user-table-card table { min-width: 1120px; }
}

@media (min-width: 1400px) {
    .admin-shell.dashboard-sync-shell .compact-user-action { display: none !important; }
}

@media (max-width: 1199px) {
    .admin-shell.dashboard-sync-shell .auto-delete-label { display: none; }
    .admin-shell.dashboard-sync-shell .user-table-card .col-actions { width: 255px; }
}

@media (max-width: 991px) {
    .admin-shell.dashboard-sync-shell .mobile-header { display: flex !important; }
    .admin-shell.dashboard-sync-shell .main { padding-top: 76px !important; }
    .admin-shell.dashboard-sync-shell .result-grid,
    .admin-shell.dashboard-sync-shell .result-grid.result-grid-two { grid-template-columns: minmax(0, 1fr); }
    .admin-shell.dashboard-sync-shell .checker-container { grid-template-columns: minmax(0, 1fr) !important; }
    .admin-shell.dashboard-sync-shell .data-toolbar-organized { flex-direction: column; }
    .admin-shell.dashboard-sync-shell .toolbar-group-secondary { margin-left: 0; justify-content: flex-start; }
    .admin-shell.dashboard-sync-shell .recovery-toolbar .table-search-form { order: 3; width: 100%; margin-left: 0; }
}

@media (max-width: 600px) {
    .swal2-container { align-items: flex-end !important; padding: 10px !important; }
    .swal2-container.swal2-top-end { align-items: flex-start !important; }
    .data-server-popup { width: 100% !important; padding: 20px 18px !important; border-radius: 18px !important; }
    .data-server-toast,
    .data-server-toast.swal2-toast { width: min(100%, calc(100vw - 20px)) !important; max-height: 104px !important; }
    .data-server-popup-actions { display: grid !important; grid-template-columns: 1fr 1fr; }
    .data-server-popup-actions > button { width: 100%; min-width: 0; margin: 0 !important; }
    .admin-shell.dashboard-sync-shell .modal-overlay { align-items: flex-end !important; padding: 8px !important; }
    .admin-shell.dashboard-sync-shell .modal,
    .admin-shell.dashboard-sync-shell .modal.modal-wide { width: 100% !important; max-height: calc(100svh - 16px); border-radius: 18px 18px 12px 12px !important; }
    .admin-shell.dashboard-sync-shell .checker-results-header .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .admin-shell.dashboard-sync-shell .checker-results-header .result-actions .btn { justify-content: center; }
    .admin-shell.dashboard-sync-shell .profile-summary.has-token { grid-template-columns: 1fr; }
    .admin-shell.dashboard-sync-shell .table-search-form { width: 100%; }
    .admin-shell.dashboard-sync-shell .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .admin-shell.dashboard-sync-shell .stat-card { min-height: 92px; padding: 14px !important; }
    .admin-shell.dashboard-sync-shell .stats-grid > .stat-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

    .admin-shell.dashboard-sync-shell .user-table-card { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    .admin-shell.dashboard-sync-shell .user-table-card table { display: block; width: 100%; min-width: 0 !important; table-layout: auto; }
    .admin-shell.dashboard-sync-shell .user-table-card thead { display: none; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody { display: grid; gap: 12px; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; padding: 16px; border: 1px solid var(--rp-border); border-radius: 15px; background: #fff; box-shadow: var(--rp-shadow-sm); }
    .admin-shell.dashboard-sync-shell .user-table-card tbody td { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 5px; padding: 0 !important; border: 0 !important; text-align: left !important; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody td::before { color: #94a3b8; font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; content: attr(data-label); }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-index { position: absolute; top: 13px; right: 14px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #f1f5f9; font-size: .7rem; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-index::before { display: none; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody :is(.col-name,.col-email,.col-token,.col-actions) { grid-column: 1 / -1; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-name { padding-right: 38px !important; color: #172033 !important; font-size: .9rem; font-weight: 750 !important; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-email span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-recovery { display: none !important; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-token a { display: block; width: 100%; min-width: 0; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .token-cell { display: block; width: 100%; max-width: 100%; overflow: hidden; padding: 7px 9px; border-radius: 7px; text-overflow: ellipsis; white-space: nowrap; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody td.col-actions { position: static; box-shadow: none; }
    .admin-shell.dashboard-sync-shell .user-table-card .action-group { justify-content: flex-start; gap: 7px; }
    .admin-shell.dashboard-sync-shell .user-table-card .auto-delete-label { display: inline !important; }
}

/* 2026-08-31 cross-browser layout hardening */
html,
body.dashboard-sync-shell {
    width: 100%;
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body.admin-shell.dashboard-sync-shell {
    overflow-x: hidden;
}

body.admin-shell.dashboard-sync-shell .main,
body.admin-shell.dashboard-sync-shell .main > * {
    min-width: 0;
}

body.admin-shell.dashboard-sync-shell .main {
    overflow-x: hidden;
}

body.admin-shell.dashboard-sync-shell .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 16px;
}

body.admin-shell.dashboard-sync-shell .header-bar > div:first-child {
    min-width: 0;
    flex: 1 1 240px;
}

body.admin-shell.dashboard-sync-shell .header-bar > div:last-child {
    display: flex;
    min-width: 0;
    max-width: 100%;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 1 auto;
    flex-wrap: wrap;
}

body.admin-shell.dashboard-sync-shell .header-bar > .btn,
body.admin-shell.dashboard-sync-shell .header-bar .btn {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
}

body.admin-shell.dashboard-sync-shell .page-title,
body.admin-shell.dashboard-sync-shell .breadcrumb,
body.admin-shell.dashboard-sync-shell .card h1,
body.admin-shell.dashboard-sync-shell .card h2,
body.admin-shell.dashboard-sync-shell .card h3,
body.admin-shell.dashboard-sync-shell .card h4 {
    min-width: 0;
    overflow-wrap: break-word;
}

body.admin-shell.dashboard-sync-shell .data-toolbar,
body.admin-shell.dashboard-sync-shell .data-toolbar-organized,
body.admin-shell.dashboard-sync-shell .toolbar,
body.admin-shell.dashboard-sync-shell .recovery-toolbar,
body.admin-shell.dashboard-sync-shell .toolbar-group,
body.admin-shell.dashboard-sync-shell .token-sort-controls,
body.admin-shell.dashboard-sync-shell .table-tools,
body.admin-shell.dashboard-sync-shell .table-search-form,
body.admin-shell.dashboard-sync-shell .search-box {
    min-width: 0;
    max-width: 100%;
}

body.admin-shell.dashboard-sync-shell .toolbar-group,
body.admin-shell.dashboard-sync-shell .token-sort-controls {
    flex-wrap: wrap;
}

body.admin-shell.dashboard-sync-shell .table-search-form input,
body.admin-shell.dashboard-sync-shell .search-box input {
    min-width: 0;
    max-width: 100%;
}

body.admin-shell.dashboard-sync-shell .table-card,
body.admin-shell.dashboard-sync-shell .api-card,
body.admin-shell.dashboard-sync-shell .api-doc-card,
body.admin-shell.dashboard-sync-shell .card {
    min-width: 0;
    max-width: 100%;
}

body.admin-shell.dashboard-sync-shell .table-card {
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

body.admin-shell.dashboard-sync-shell .table-card th,
body.admin-shell.dashboard-sync-shell .table-card td,
body.admin-shell.dashboard-sync-shell .param-table th,
body.admin-shell.dashboard-sync-shell .param-table td {
    overflow-wrap: break-word;
}

body.admin-shell.dashboard-sync-shell .data-value-cell {
    min-width: 0;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
}

body.admin-shell.dashboard-sync-shell .api-code,
body.admin-shell.dashboard-sync-shell .api-code-wrap,
body.admin-shell.dashboard-sync-shell .api-doc-card code,
body.admin-shell.dashboard-sync-shell .log-box {
    min-width: 0;
    max-width: 100%;
}

body.admin-shell.dashboard-sync-shell .api-code,
body.admin-shell.dashboard-sync-shell .api-doc-card code {
    overflow-x: auto;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
    word-break: break-word;
}

body.admin-shell.dashboard-sync-shell button,
body.admin-shell.dashboard-sync-shell input,
body.admin-shell.dashboard-sync-shell textarea,
body.admin-shell.dashboard-sync-shell select {
    font-family: inherit;
}

body.admin-shell.dashboard-sync-shell img,
body.admin-shell.dashboard-sync-shell svg,
body.admin-shell.dashboard-sync-shell video,
body.admin-shell.dashboard-sync-shell canvas {
    max-width: 100%;
}

@media (min-width: 992px) and (max-width: 1199px) {
    body.admin-shell.dashboard-sync-shell .main {
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    body.admin-shell.dashboard-sync-shell .header-bar {
        margin-right: -24px !important;
        margin-left: -24px !important;
        padding-right: 24px !important;
        padding-left: 24px !important;
    }

    body.admin-shell.dashboard-sync-shell .data-toolbar-organized {
        flex-wrap: wrap !important;
    }

    body.admin-shell.dashboard-sync-shell .data-toolbar-organized > .toolbar-group {
        flex: 1 1 100%;
    }

    body.admin-shell.dashboard-sync-shell .toolbar-group-secondary {
        margin-left: 0 !important;
        justify-content: flex-start;
    }
}

/* 2026-08-31 compact, high-contrast recovery controls */
.admin-shell.dashboard-sync-shell .user-table-card .col-recovery {
    width: 96px;
}

.admin-shell.dashboard-sync-shell .recovery-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border: 1px solid #86efac;
    border-radius: 8px;
    color: #047857;
    background: #ecfdf5;
    box-shadow: 0 1px 2px rgba(5, 150, 105, .08);
    font-size: .63rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
    white-space: nowrap;
}

.admin-shell.dashboard-sync-shell .recovery-badge:hover {
    border-color: #34d399;
    color: #065f46;
    background: #d1fae5;
    box-shadow: 0 3px 9px rgba(5, 150, 105, .14);
}

.admin-shell.dashboard-sync-shell .recovery-toolbar > .toolbar-group > .btn,
.admin-shell.dashboard-sync-shell .recovery-toolbar > .btn {
    min-height: 32px;
    padding: 7px 12px !important;
    font-size: .74rem;
}

.admin-shell.dashboard-sync-shell .recovery-table-card td:last-child button {
    min-height: 28px;
    padding: 5px 10px !important;
    font-size: .68rem !important;
    line-height: 1.15;
}

@media (max-width: 600px) {
    .admin-shell.dashboard-sync-shell .recovery-toolbar > .toolbar-group > .btn,
    .admin-shell.dashboard-sync-shell .recovery-toolbar > .btn {
        padding-right: 10px !important;
        padding-left: 10px !important;
    }
}

@media (max-width: 991px) {
    body.admin-shell.dashboard-sync-shell .header-bar > div:last-child {
        width: 100%;
        justify-content: flex-start;
    }

    body.admin-shell.dashboard-sync-shell .header-bar > div:first-child {
        width: 100%;
        flex: 0 1 auto;
    }

    body.admin-shell.dashboard-sync-shell .data-toolbar-organized .toolbar-group,
    body.admin-shell.dashboard-sync-shell .recovery-toolbar .toolbar-group {
        width: 100%;
    }
}

/* Use the readable card layout on compact tablets and narrow browser panels.
   Keeping the 1120px desktop table here hid the count/token columns behind a
   horizontal scroller on otherwise common 601-900px viewports. */
@media (min-width: 601px) and (max-width: 900px) {
    .admin-shell.dashboard-sync-shell .user-table-card { overflow: visible !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
    .admin-shell.dashboard-sync-shell .user-table-card table { display: block; width: 100%; min-width: 0 !important; table-layout: auto; }
    .admin-shell.dashboard-sync-shell .user-table-card thead { display: none; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody { display: grid; gap: 12px; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; padding: 16px; border: 1px solid var(--rp-border); border-radius: 15px; background: #fff; box-shadow: var(--rp-shadow-sm); }
    .admin-shell.dashboard-sync-shell .user-table-card tbody td { display: flex; min-width: 0; align-items: flex-start; flex-direction: column; gap: 5px; padding: 0 !important; border: 0 !important; text-align: left !important; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody td::before { color: #94a3b8; font-size: .63rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; content: attr(data-label); }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-index { position: absolute; top: 13px; right: 14px; display: grid; width: 27px; height: 27px; place-items: center; border-radius: 8px; background: #f1f5f9; font-size: .7rem; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-index::before { display: none; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody :is(.col-name,.col-email,.col-token,.col-actions) { grid-column: 1 / -1; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-name { padding-right: 38px !important; color: #172033 !important; font-size: .9rem; font-weight: 750 !important; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-email span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-recovery { display: none !important; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .col-token a { display: block; width: 100%; min-width: 0; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody .token-cell { display: block; width: 100%; max-width: 100%; overflow: hidden; padding: 7px 9px; border-radius: 7px; text-overflow: ellipsis; white-space: nowrap; }
    .admin-shell.dashboard-sync-shell .user-table-card tbody td.col-actions { position: static; box-shadow: none; }
    .admin-shell.dashboard-sync-shell .user-table-card .action-group { justify-content: flex-start; gap: 7px; }
    .admin-shell.dashboard-sync-shell .user-table-card .auto-delete-label { display: inline !important; }
}

@media (max-width: 600px) {
    body.admin-shell.dashboard-sync-shell .header-bar > div:last-child .btn {
        flex: 1 1 150px;
        justify-content: center;
    }

    body.admin-shell.dashboard-sync-shell .data-toolbar-organized .toolbar-group,
    body.admin-shell.dashboard-sync-shell .recovery-toolbar .toolbar-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.admin-shell.dashboard-sync-shell .data-toolbar-organized .toolbar-group > .btn,
    body.admin-shell.dashboard-sync-shell .data-toolbar-organized .toolbar-group > a.btn,
    body.admin-shell.dashboard-sync-shell .recovery-toolbar .toolbar-group > .btn,
    body.admin-shell.dashboard-sync-shell .recovery-toolbar .toolbar-group > a.btn {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding-right: 10px !important;
        padding-left: 10px !important;
    }

    body.admin-shell.dashboard-sync-shell .recovery-toolbar > .table-search-form,
    body.admin-shell.dashboard-sync-shell .recovery-toolbar > span {
        width: 100%;
        margin-left: 0 !important;
    }

    body.admin-shell.dashboard-sync-shell input[type="search"],
    body.admin-shell.dashboard-sync-shell input[type="text"],
    body.admin-shell.dashboard-sync-shell input[type="email"],
    body.admin-shell.dashboard-sync-shell input[type="password"],
    body.admin-shell.dashboard-sync-shell textarea,
    body.admin-shell.dashboard-sync-shell select {
        font-size: 16px !important;
    }
}

@media (max-width: 420px) {
    body.admin-shell.dashboard-sync-shell .data-toolbar-organized .toolbar-group,
    body.admin-shell.dashboard-sync-shell .recovery-toolbar .toolbar-group {
        grid-template-columns: 1fr;
    }

    body.admin-shell.dashboard-sync-shell .checker-run-actions {
        grid-template-columns: 1fr !important;
    }

    body.admin-shell.dashboard-sync-shell .checker-results-header .result-actions {
        grid-template-columns: 1fr !important;
    }

    body.admin-shell.dashboard-sync-shell .result-tabs {
        grid-template-columns: 1fr;
    }
}

/* 2026-08-31 inner-page and legacy-browser hardening */
/* Keep the viewport fallback before the newer small-viewport unit. */
.admin-shell.dashboard-sync-shell .modal {
    max-height: calc(100vh - 32px);
}

@supports (height: 100svh) {
    .admin-shell.dashboard-sync-shell .modal {
        max-height: calc(100svh - 32px);
    }
}

.admin-shell.dashboard-sync-shell .modal-wide {
    max-width: min(920px, calc(100vw - 32px));
}

/* Long controls in the import/checker screens must wrap instead of pushing the page. */
.admin-shell.dashboard-sync-shell #createModal .form-group + div,
.admin-shell.dashboard-sync-shell .checker-container .card > div[style*="grid-template-columns"] {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    row-gap: 8px;
}

.admin-shell.dashboard-sync-shell #createModal #importInfo {
    min-width: 0;
    max-width: 100%;
    margin-left: 0 !important;
    overflow-wrap: anywhere;
}

.admin-shell.dashboard-sync-shell #createModal .modal-actions {
    flex-wrap: wrap;
}

/* Pagination summaries contain dynamic counts and must be allowed to break. */
.admin-shell.dashboard-sync-shell .data-table-card > div[style*="justify-content:space-between"],
.admin-shell.dashboard-sync-shell .recovery-table-card > div[style*="justify-content:space-between"] {
    min-width: 0;
    flex-wrap: wrap;
}

.admin-shell.dashboard-sync-shell .data-table-card > div[style*="justify-content:space-between"] > div:first-child,
.admin-shell.dashboard-sync-shell .recovery-table-card > div[style*="justify-content:space-between"] > div:first-child {
    min-width: 0;
    max-width: 100%;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.admin-shell.dashboard-sync-shell .data-table-card > div[style*="justify-content:space-between"] > div:last-child,
.admin-shell.dashboard-sync-shell .recovery-table-card > div[style*="justify-content:space-between"] > div:last-child {
    max-width: 100%;
    flex-wrap: wrap;
}

/* Do not clip a toast message just because a browser uses a larger default font. */
.admin-shell.dashboard-sync-shell .data-server-toast.swal2-toast .swal2-html-container {
    max-width: 100%;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
}

/* Keep toast text visible when SweetAlert's toast grid is overridden by a
   browser stylesheet or a page-specific layout rule. */
.data-server-toast.swal2-toast .data-server-popup-title,
.data-server-toast.swal2-toast .data-server-popup-content {
    display: block !important;
    min-width: 0 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.data-server-toast.swal2-toast .data-server-popup-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    color: #172033 !important;
}

.data-server-toast.swal2-toast .data-server-popup-content {
    grid-column: 2 !important;
    grid-row: 2 !important;
    color: #64748b !important;
}

/* SweetAlert 11 may keep its native title/html classes when a page calls the
   library before the shared wrapper is installed. Cover those native nodes as
   well so a success toast can never render as an empty white box. */
.swal2-popup.swal2-toast .swal2-title,
.swal2-popup.swal2-toast .swal2-html-container {
    display: block !important;
    min-width: 0 !important;
    min-height: 1px !important;
    max-width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    text-indent: 0 !important;
    font-family: Inter, Arial, sans-serif !important;
}

.swal2-popup.swal2-toast .swal2-title {
    grid-column: 2 !important;
    grid-row: 1 !important;
    margin: 0 !important;
    color: #172033 !important;
    font-size: .88rem !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.swal2-popup.swal2-toast .swal2-html-container {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 2px 0 0 !important;
    color: #64748b !important;
    font-size: .74rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
}

@media (max-width: 600px) {
    .admin-shell.dashboard-sync-shell .modal {
        max-height: calc(100vh - 16px);
    }

    @supports (height: 100svh) {
        .admin-shell.dashboard-sync-shell .modal {
            max-height: calc(100svh - 16px);
        }
    }

    .admin-shell.dashboard-sync-shell #createModal .form-group + div,
    .admin-shell.dashboard-sync-shell .checker-container .card > div[style*="grid-template-columns"] {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .admin-shell.dashboard-sync-shell #createModal .form-group + div > *,
    .admin-shell.dashboard-sync-shell .checker-container .card > div[style*="grid-template-columns"] > * {
        min-width: 0;
        margin-left: 0 !important;
    }

    .admin-shell.dashboard-sync-shell #createModal .form-group + div > #importInfo {
        grid-column: 1 / -1;
    }
}

@media (max-width: 420px) {
    .admin-shell.dashboard-sync-shell #createModal .form-group + div,
    .admin-shell.dashboard-sync-shell .checker-container .card > div[style*="grid-template-columns"] {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-shell.dashboard-sync-shell *,
    .admin-shell.dashboard-sync-shell *::before,
    .admin-shell.dashboard-sync-shell *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Neo-Brutalism theme, 2026-10-24. Shared by sign-in and every Data workspace. */
:root {
    --rp-bg: #fdf5e1;
    --rp-login-bg: #fdf5e1;
    --rp-sidebar: #fdf5e1;
    --rp-card: #fffefb;
    --rp-card-solid: #fffefb;
    --rp-border: #111111;
    --rp-glass-border: #111111;
    --rp-text: #232323;
    --rp-text-strong: #111111;
    --rp-muted: #52504a;
    --rp-subtle: #68645c;
    --rp-primary: #ffd447;
    --rp-primary-hover: #ffdf70;
    --rp-primary-rgb: 255, 212, 71;
    --rp-success: #b9edcd;
    --rp-danger: #ffb5c5;
    --rp-warning: #ffd447;
    --rp-info: #aedaff;
    --rp-shadow-sm: 3px 3px 0 #111;
    --rp-shadow-md: 5px 5px 0 #111;
    --rp-shadow-lg: 7px 7px 0 #111;
    --neo-ink: #111111;
    --neo-paper: #fffefb;
    --neo-yellow: #ffd447;
    --neo-blue: #aedaff;
    --neo-pink: #ffb5c5;
    --neo-mint: #b9edcd;
    --neo-lilac: #d8c6ff;
    --neo-mono: ui-monospace, 'Cascadia Code', 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
    --neo-dots: none;
}

body.admin-shell.dashboard-sync-shell,
body.auth-shell.dashboard-sync-shell {
    background: var(--rp-bg) !important;
    color: var(--neo-ink) !important;
}
body.dashboard-sync-shell :is(button, input, textarea, select) { font-family: inherit; }
body.dashboard-sync-shell :is(h1, h2, h3, h4, .page-title, .stat-value) {
    color: var(--neo-ink) !important;
    font-weight: 900 !important;
    letter-spacing: -0.045em;
    text-shadow: none !important;
}
body.dashboard-sync-shell :is(.breadcrumb, .stat-label, .nav-section-label, .server-meta-row, .health-metric-line, .eyebrow, .kicker, .dashboard-secure-note) {
    font-family: var(--neo-mono) !important;
}
body.dashboard-sync-shell :is(a, button, input, textarea, select):focus-visible {
    outline: 3px solid var(--neo-ink) !important;
    outline-offset: 4px !important;
}
body.dashboard-sync-shell * { scrollbar-color: #111 var(--rp-bg); }
body.dashboard-sync-shell *::-webkit-scrollbar-track { background: var(--rp-bg); }
body.dashboard-sync-shell *::-webkit-scrollbar-thumb { border-color: var(--rp-bg); border-radius: 0; background: #111; }

/* Cream navigation rail, with a yellow selected sticker. */
body.admin-shell.dashboard-sync-shell .sidebar {
    background: var(--rp-bg) !important;
    border-right: 3px solid var(--neo-ink) !important;
    box-shadow: none !important;
    overflow-y: auto;
}
body.admin-shell.dashboard-sync-shell .sidebar-logo { border-bottom: 3px solid var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .sidebar-logo h2 {
    background: none !important;
    -webkit-text-fill-color: var(--neo-ink);
    color: var(--neo-ink) !important;
    font-weight: 900 !important;
}
body.admin-shell.dashboard-sync-shell .sidebar-logo h2 small {
    color: var(--rp-muted) !important;
    font-family: var(--neo-mono);
    font-size: .6rem;
    letter-spacing: .07em;
}
body.admin-shell.dashboard-sync-shell :is(.sidebar-logo .icon, .dashboard-brand-mark) {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px !important;
    background: var(--neo-yellow) !important;
    color: var(--neo-ink) !important;
    box-shadow: 3px 3px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .nav-section-label { color: var(--rp-muted); font-size: .6rem; letter-spacing: .04em; }
body.admin-shell.dashboard-sync-shell .nav-item {
    margin-bottom: 8px !important;
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px !important;
    background: var(--neo-paper) !important;
    color: var(--neo-ink) !important;
    font-weight: 750 !important;
    box-shadow: 2px 2px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .nav-item.active {
    border-color: var(--neo-ink) !important;
    background: var(--neo-yellow) !important;
    color: var(--neo-ink) !important;
    box-shadow: 3px 3px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .nav-item.active i { color: var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .nav-item:hover { background: var(--neo-blue) !important; transform: translate(-1px, -1px); }
body.admin-shell.dashboard-sync-shell .nav-item i,
body.admin-shell.dashboard-sync-shell .sidebar-footer a i {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0;
    color: var(--neo-ink) !important;
    box-shadow: none !important;
}
body.admin-shell.dashboard-sync-shell .nav-item::after { display: none !important; }
body.admin-shell.dashboard-sync-shell .sidebar-footer { border-top: 2px solid var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .sidebar-footer a {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px;
    background: var(--neo-pink);
    color: var(--neo-ink) !important;
    box-shadow: 2px 2px 0 var(--neo-ink);
}
body.admin-shell.dashboard-sync-shell .server-health {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px !important;
    background: var(--neo-paper) var(--neo-dots) 0 0 / 9px 9px !important;
    box-shadow: 4px 4px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .server-online {
    border: 1.5px solid var(--neo-ink);
    border-radius: 3px;
    color: #163e26;
    background: var(--neo-mint);
    box-shadow: none;
    font-family: var(--neo-mono);
}
body.admin-shell.dashboard-sync-shell .server-online i { box-shadow: none; background: #1c6036; }
body.admin-shell.dashboard-sync-shell .server-meta-list { border-top: 2px solid var(--neo-ink); }
body.admin-shell.dashboard-sync-shell :is(.health-metric-line, .server-meta-row) { font-size: .64rem; }
body.admin-shell.dashboard-sync-shell :is(.health-metric-line strong, .server-meta-row strong) { color: var(--neo-ink); }
body.admin-shell.dashboard-sync-shell .health-track {
    height: 7px;
    border: 1px solid var(--neo-ink);
    border-radius: 0;
    background: #eee7d4;
}
body.admin-shell.dashboard-sync-shell .health-fill { border-radius: 0; }

/* Square paper cards. Keep the existing layouts, scrolling and responsive rules. */
body.admin-shell.dashboard-sync-shell .header-bar {
    width: 100%;
    margin: 0 0 28px !important;
    padding: 18px 0;
    border-bottom: 3px solid var(--neo-ink) !important;
    background: var(--rp-bg) !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.admin-shell.dashboard-sync-shell .page-title { font-size: clamp(1.45rem, 2.3vw, 2rem) !important; }
body.admin-shell.dashboard-sync-shell .breadcrumb { font-size: .65rem !important; }
body.admin-shell.dashboard-sync-shell .breadcrumb a { color: var(--neo-ink) !important; text-decoration: underline; text-underline-offset: 3px; }
body.admin-shell.dashboard-sync-shell :is(.card, .table-card, .stat-card, .api-card, .api-doc-card, .modal) {
    border: 3px solid var(--neo-ink) !important;
    border-radius: 5px !important;
    background: var(--neo-paper) var(--neo-dots) 0 0 / 10px 10px !important;
    box-shadow: 5px 5px 0 var(--neo-ink) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.admin-shell.dashboard-sync-shell .stats-grid { gap: 20px !important; margin-bottom: 30px; }
body.admin-shell.dashboard-sync-shell .stat-card { padding: 22px 20px !important; background: var(--neo-yellow) !important; }
body.admin-shell.dashboard-sync-shell .stat-card:nth-child(4n + 2) { background: var(--neo-blue) !important; }
body.admin-shell.dashboard-sync-shell .stat-card:nth-child(4n + 3) { background: var(--neo-pink) !important; }
body.admin-shell.dashboard-sync-shell .stat-card:nth-child(4n + 4) { background: var(--neo-mint) !important; }
body.admin-shell.dashboard-sync-shell .stat-card::after { display: none !important; }
body.admin-shell.dashboard-sync-shell .stat-card:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .stat-label { color: #302f28 !important; font-size: .65rem; font-weight: 700 !important; letter-spacing: .04em; }
body.admin-shell.dashboard-sync-shell .stat-value { color: var(--neo-ink) !important; font-size: clamp(1.65rem, 2.5vw, 2.2rem); line-height: 1.2; }
body.admin-shell.dashboard-sync-shell .stat-icon {
    top: 13px;
    right: 13px;
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border: 2px solid var(--neo-ink);
    border-radius: 3px;
    background: var(--neo-paper) !important;
    color: var(--neo-ink) !important;
    box-shadow: 2px 2px 0 var(--neo-ink);
    font-size: .85rem;
    animation: none !important;
}
body.admin-shell.dashboard-sync-shell .stat-icon i { color: var(--neo-ink) !important; filter: none !important; animation: none !important; }
body.admin-shell.dashboard-sync-shell .stats-grid .stat-icon { border-radius: 3px !important; }
body.admin-shell.dashboard-sync-shell :is(thead th, .param-table th) {
    border-bottom: 2px solid var(--neo-ink) !important;
    background: #f5ecd4 !important;
    color: var(--neo-ink) !important;
    font: 700 .65rem/1.5 var(--neo-mono) !important;
    letter-spacing: .025em !important;
}
body.admin-shell.dashboard-sync-shell :is(tbody td, .param-table td) { border-bottom-color: #c9c3b3 !important; color: var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell tbody tr:hover { background: #fff0b8 !important; }
body.admin-shell.dashboard-sync-shell .user-table-card th.col-actions { background: #f5ecd4 !important; }
body.admin-shell.dashboard-sync-shell .user-table-card td.col-actions { background: var(--neo-paper) !important; box-shadow: none; }
body.admin-shell.dashboard-sync-shell .user-table-card tbody tr:hover td.col-actions { background: #fff0b8 !important; }
body.admin-shell.dashboard-sync-shell .col-email span { color: #334e67 !important; }
body.admin-shell.dashboard-sync-shell :is(.badge, .token-cell, .recovery-badge) {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 3px !important;
    color: var(--neo-ink) !important;
    font-family: var(--neo-mono);
    box-shadow: 2px 2px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .badge-green { background: var(--neo-mint) !important; }
body.admin-shell.dashboard-sync-shell .badge-blue { background: var(--neo-blue) !important; }
body.admin-shell.dashboard-sync-shell .badge-red { background: var(--neo-pink) !important; }
body.admin-shell.dashboard-sync-shell .badge-purple { background: var(--neo-lilac) !important; }
body.admin-shell.dashboard-sync-shell .token-cell { padding: 3px 6px; background: #f6efde !important; }
body.admin-shell.dashboard-sync-shell .recovery-badge { background: var(--neo-mint) !important; }

/* Buttons have physical, offset ink shadows and a pressed state. */
body.admin-shell.dashboard-sync-shell :is(.btn, .btn-cancel, .profile-token-action, .drag-reset, .copy-api-btn, .result-tab),
body.auth-shell.dashboard-sync-shell .btn-login {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px !important;
    background: var(--neo-yellow) !important;
    color: var(--neo-ink) !important;
    font-weight: 800 !important;
    box-shadow: 3px 3px 0 var(--neo-ink) !important;
    text-shadow: none !important;
    transition: transform 120ms ease, box-shadow 120ms ease !important;
}
body.admin-shell.dashboard-sync-shell :is(.btn-info, .profile-token-action) { background: var(--neo-blue) !important; }
body.admin-shell.dashboard-sync-shell :is(.btn-success, .btn-green) { background: var(--neo-mint) !important; }
body.admin-shell.dashboard-sync-shell .btn-danger { background: var(--neo-pink) !important; }
body.admin-shell.dashboard-sync-shell .btn-cancel { background: var(--neo-paper) !important; }
body.admin-shell.dashboard-sync-shell :is(.btn, .btn-cancel, .profile-token-action, .drag-reset, .copy-api-btn, .result-tab):hover,
body.auth-shell.dashboard-sync-shell .btn-login:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0 var(--neo-ink) !important;
    filter: none !important;
}
body.admin-shell.dashboard-sync-shell :is(.btn, .btn-cancel, .profile-token-action, .drag-reset, .copy-api-btn, .result-tab):active,
body.auth-shell.dashboard-sync-shell .btn-login:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .action-group { gap: 8px; padding-bottom: 3px; }
body.admin-shell.dashboard-sync-shell .result-tab { background: var(--neo-paper) !important; }
body.admin-shell.dashboard-sync-shell .result-tab.active { background: var(--neo-yellow) !important; }
body.admin-shell.dashboard-sync-shell :is(.sort-box, .drag-help, .result-tabs) {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px;
    background: var(--neo-paper);
    box-shadow: 3px 3px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .sort-icon { color: var(--neo-ink); background: var(--neo-lilac); border-right: 2px solid var(--neo-ink); }
body.admin-shell.dashboard-sync-shell .sort-box select { color: var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell :is(input:not([type='checkbox']):not([type='radio']), textarea, select),
body.auth-shell.dashboard-sync-shell :is(input[type='email'], input[type='password']) {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 4px !important;
    background: var(--neo-paper) !important;
    color: var(--neo-ink) !important;
    box-shadow: 2px 2px 0 var(--neo-ink) !important;
}
body.admin-shell.dashboard-sync-shell .sort-box select { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
body.dashboard-sync-shell input[type='checkbox'], body.dashboard-sync-shell input[type='radio'] { accent-color: var(--neo-ink); }
body.admin-shell.dashboard-sync-shell .toggle-slider { border: 2px solid var(--neo-ink); border-radius: 3px; background: #eee7d4; }
body.admin-shell.dashboard-sync-shell .toggle-slider::before { border: 1px solid var(--neo-ink); border-radius: 1px; background: var(--neo-paper); }
body.admin-shell.dashboard-sync-shell .toggle input:checked + .toggle-slider { background: var(--neo-mint); }
body.admin-shell.dashboard-sync-shell .form-group label { color: var(--neo-ink) !important; font-family: var(--neo-mono); font-size: .72rem; }
body.admin-shell.dashboard-sync-shell :is(.log-box, .api-code, .api-doc-card code, .api-result, .file-drop, .progress-container) {
    border: 2px solid var(--neo-ink) !important;
    border-radius: 3px !important;
    background: #f6efde !important;
    color: var(--neo-ink) !important;
    box-shadow: none !important;
    font-family: var(--neo-mono);
}
body.admin-shell.dashboard-sync-shell .api-code a { color: #194c77 !important; }
body.admin-shell.dashboard-sync-shell .api-code span { color: inherit !important; }
body.admin-shell.dashboard-sync-shell .api-desc { color: var(--rp-muted) !important; }
body.admin-shell.dashboard-sync-shell .api-desc b { color: var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .tag {
    border: 2px solid var(--neo-ink);
    border-radius: 3px;
    font: 700 .7rem/1.5 var(--neo-mono);
}
body.admin-shell.dashboard-sync-shell .tag-required { background: var(--neo-pink); color: #632039; }
body.admin-shell.dashboard-sync-shell .tag-optional { background: var(--neo-mint); color: #163e26; }
body.admin-shell.dashboard-sync-shell .recovery-row-actions .btn + .btn { margin-left: 6px; }
body.admin-shell.dashboard-sync-shell .profile-avatar { border: 3px solid var(--neo-ink); border-radius: 4px; background: var(--neo-lilac); color: var(--neo-ink); box-shadow: 3px 3px 0 var(--neo-ink); }
body.admin-shell.dashboard-sync-shell .profile-token-row code { color: var(--neo-ink); }
body.admin-shell.dashboard-sync-shell .profile-divider { border-color: var(--neo-ink); }
body.admin-shell.dashboard-sync-shell :is(.alert-success, .alert-danger) { border: 2px solid var(--neo-ink) !important; border-radius: 3px; color: var(--neo-ink) !important; box-shadow: 3px 3px 0 var(--neo-ink); }
body.admin-shell.dashboard-sync-shell .alert-success { background: var(--neo-mint) !important; }
body.admin-shell.dashboard-sync-shell .alert-danger { background: var(--neo-pink) !important; }
body.admin-shell.dashboard-sync-shell .pagination li :is(a, span) { border: 2px solid var(--neo-ink) !important; border-radius: 2px; color: var(--neo-ink) !important; font-family: var(--neo-mono); }
body.admin-shell.dashboard-sync-shell .pagination li.active span { background: var(--neo-yellow) !important; color: var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell :is(.modal-overlay, .sidebar-overlay) { backdrop-filter: none; -webkit-backdrop-filter: none; }
body.admin-shell.dashboard-sync-shell :is(.data-server-popup, .data-server-toast),
body.admin-shell.dashboard-sync-shell .swal2-popup {
    border: 3px solid var(--neo-ink) !important;
    border-radius: 5px !important;
    box-shadow: 6px 6px 0 var(--neo-ink) !important;
    background: var(--neo-paper) !important;
}
body.admin-shell.dashboard-sync-shell .swal2-actions button { border: 2px solid var(--neo-ink) !important; border-radius: 3px !important; color: var(--neo-ink) !important; background: var(--neo-yellow) !important; box-shadow: 3px 3px 0 var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .swal2-actions .swal2-cancel { background: var(--neo-paper) !important; }

/* Sign-in uses the same paper, typography and sticker controls. */
body.auth-shell.dashboard-sync-shell::before,
body.auth-shell.dashboard-sync-shell::after { display: none; }
body.auth-shell.dashboard-sync-shell .dashboard-login-shell {
    border: 3px solid var(--neo-ink);
    border-radius: 6px;
    background: var(--neo-paper);
    box-shadow: 10px 10px 0 var(--neo-ink);
}
body.auth-shell.dashboard-sync-shell .dashboard-login-welcome {
    border-right: 3px solid var(--neo-ink);
    background: var(--neo-yellow) var(--neo-dots) 0 0 / 12px 12px;
    color: var(--neo-ink);
}
body.auth-shell.dashboard-sync-shell .dashboard-login-panel { background: var(--neo-paper) var(--neo-dots) 0 0 / 12px 12px; }
body.auth-shell.dashboard-sync-shell :is(.dashboard-brand strong, .dashboard-welcome-copy h2, .dashboard-welcome-copy p, .dashboard-ready) { color: var(--neo-ink); }
body.auth-shell.dashboard-sync-shell .dashboard-brand strong { font-weight: 900; }
body.auth-shell.dashboard-sync-shell .dashboard-brand small { color: #34332c; font-family: var(--neo-mono); font-size: .65rem; }
body.auth-shell.dashboard-sync-shell .dashboard-brand-mark { border: 2px solid var(--neo-ink); border-radius: 4px; background: var(--neo-blue); color: var(--neo-ink); box-shadow: 3px 3px 0 var(--neo-ink); }
body.auth-shell.dashboard-sync-shell .dashboard-welcome-copy .kicker { border: 2px solid var(--neo-ink); border-radius: 3px; background: var(--neo-paper); color: var(--neo-ink); box-shadow: 3px 3px 0 var(--neo-ink); }
body.auth-shell.dashboard-sync-shell .dashboard-welcome-copy h2 { font-size: clamp(2.1rem, 3.7vw, 3.3rem); font-weight: 900; }
body.auth-shell.dashboard-sync-shell .dashboard-feature-row span { border: 2px solid var(--neo-ink); border-radius: 3px; background: var(--neo-blue); color: var(--neo-ink); box-shadow: 3px 3px 0 var(--neo-ink); font: 700 .72rem var(--neo-mono); }
body.auth-shell.dashboard-sync-shell .dashboard-feature-row span:nth-child(2) { background: var(--neo-pink); }
body.auth-shell.dashboard-sync-shell .dashboard-feature-row span:nth-child(3) { background: var(--neo-mint); }
body.auth-shell.dashboard-sync-shell .dashboard-ready { font-family: var(--neo-mono); }
body.auth-shell.dashboard-sync-shell .dashboard-ready::before { border: 2px solid var(--neo-ink); background: var(--neo-mint); box-shadow: none; }
body.auth-shell.dashboard-sync-shell .dashboard-login-panel .eyebrow { color: var(--rp-muted); }
body.auth-shell.dashboard-sync-shell .dashboard-login-panel h1 { font-size: clamp(1.65rem, 2.6vw, 2.1rem); }
body.auth-shell.dashboard-sync-shell .dashboard-login-panel .form-group label { color: var(--neo-ink); font-family: var(--neo-mono); }
body.auth-shell.dashboard-sync-shell .dashboard-input-wrap > i { color: var(--neo-ink); }
body.auth-shell.dashboard-sync-shell .dashboard-secure-note i { color: #28653c; }

/* Card cells must not inherit desktop table column widths. */
@media (max-width: 900px) {
    body.admin-shell.dashboard-sync-shell .user-table-card tbody td:not(.col-index) {
        width: auto;
        max-width: 100%;
    }
}

/* Preserve the compact mobile workspace and the existing navigation drawer. */
body.admin-shell.dashboard-sync-shell .mobile-header { border-bottom: 3px solid var(--neo-ink) !important; background: var(--rp-bg) !important; box-shadow: none !important; backdrop-filter: none; }
body.admin-shell.dashboard-sync-shell .mobile-title,
body.admin-shell.dashboard-sync-shell .mobile-title i { color: var(--neo-ink) !important; font-weight: 900; }
body.admin-shell.dashboard-sync-shell :is(.menu-toggle, .mobile-logout) { border: 2px solid var(--neo-ink); border-radius: 3px; background: var(--neo-yellow); color: var(--neo-ink) !important; box-shadow: 2px 2px 0 var(--neo-ink); }
@media (max-width: 991px) {
    body.admin-shell.dashboard-sync-shell .sidebar { box-shadow: 5px 0 0 var(--neo-ink) !important; }
    body.admin-shell.dashboard-sync-shell .sidebar:not(.show) { visibility: hidden; box-shadow: none !important; }
    body.admin-shell.dashboard-sync-shell .header-bar { padding: 12px 0 16px; }
}
@media (max-width: 600px) {
    body.admin-shell.dashboard-sync-shell .header-bar > div:last-child { flex-direction: row; flex-wrap: wrap; }
    body.admin-shell.dashboard-sync-shell .header-bar > div:last-child .btn { flex: 1 1 auto; min-height: 42px; }
    body.admin-shell.dashboard-sync-shell .stats-grid { gap: 14px !important; }
    body.admin-shell.dashboard-sync-shell .stat-card { padding: 18px 14px !important; }
    body.admin-shell.dashboard-sync-shell .stat-label { max-width: calc(100% - 23px); font-size: .58rem; }
    body.admin-shell.dashboard-sync-shell .stat-icon { width: 25px; height: 25px; top: 9px; right: 9px; font-size: .72rem; }
    body.admin-shell.dashboard-sync-shell .stat-value { font-size: 1.6rem; }
    body.admin-shell.dashboard-sync-shell .user-table-card { border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 5px 5px 0 !important; }
    body.admin-shell.dashboard-sync-shell .user-table-card tbody { gap: 17px; }
    body.admin-shell.dashboard-sync-shell .user-table-card tbody tr { border: 3px solid var(--neo-ink) !important; border-radius: 4px; background: var(--neo-paper) var(--neo-dots) 0 0 / 10px 10px !important; box-shadow: 4px 4px 0 var(--neo-ink); }
    body.admin-shell.dashboard-sync-shell .user-table-card tbody td::before { color: var(--rp-muted); font-family: var(--neo-mono); }
    body.admin-shell.dashboard-sync-shell .user-table-card tbody .col-index { border: 1px solid var(--neo-ink) !important; border-radius: 2px; background: var(--neo-yellow); }
    body.auth-shell.dashboard-sync-shell .dashboard-login-shell { box-shadow: 5px 5px 0 var(--neo-ink); }
    body.auth-shell.dashboard-sync-shell .dashboard-login-panel { padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    body.dashboard-sync-shell :is(.btn, .btn-cancel, .profile-token-action, .drag-reset, .copy-api-btn, .result-tab, .btn-login) { transition: none !important; }
}

/* 2026-10-25 responsive data/recovery tables */
body.admin-shell.dashboard-sync-shell .btn.btn-danger-outline { background: var(--neo-paper) !important; color: #b91c1c !important; border-color: #b91c1c !important; }
body.admin-shell.dashboard-sync-shell .btn.btn-danger-outline:hover { background: var(--neo-pink) !important; color: var(--neo-ink) !important; }
body.admin-shell.dashboard-sync-shell .toolbar-danger { display: inline-flex; margin-left: 6px; padding-left: 12px; border-left: 2px dashed #b91c1c; }
body.admin-shell.dashboard-sync-shell .danger-zone { display: none; }
@media (min-width: 1400px) {
    body.admin-shell.dashboard-sync-shell .user-table-card table { min-width: 1060px !important; }
    body.admin-shell.dashboard-sync-shell .user-table-card .col-token { width: 220px; }
    body.admin-shell.dashboard-sync-shell .user-table-card .col-actions { width: 255px; }
    body.admin-shell.dashboard-sync-shell .user-table-card .col-recovery { display: none; }
}
@media (min-width: 1680px) {
    body.admin-shell.dashboard-sync-shell .user-table-card table { min-width: 1180px !important; }
    body.admin-shell.dashboard-sync-shell .user-table-card .col-recovery { display: table-cell; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
    body.admin-shell.dashboard-sync-shell .user-table-card table { min-width: 960px !important; }
    body.admin-shell.dashboard-sync-shell .user-table-card .col-token { width: 200px; }
}
@media (min-width: 601px) and (max-width: 991px) {
    body.admin-shell.dashboard-sync-shell :is(.data-table-card, .recovery-table-card) { overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
    body.admin-shell.dashboard-sync-shell .data-list-table .col-row-actions, body.admin-shell.dashboard-sync-shell .rec-table .recovery-row-actions { position: sticky; right: 0; z-index: 2; background: var(--neo-paper) !important; box-shadow: -10px 0 14px -12px rgba(17,17,17,.45); }
}
@media (max-width: 600px) {
    body.admin-shell.dashboard-sync-shell .data-toolbar-organized > .toolbar-group { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px !important; width: 100%; margin-left: 0; }
    body.admin-shell.dashboard-sync-shell .data-toolbar-organized > .toolbar-group > .btn { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px !important; justify-content: center; font-size: .8rem !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    body.admin-shell.dashboard-sync-shell .toolbar-danger { display: none !important; }
    body.admin-shell.dashboard-sync-shell .danger-zone { display: flex; flex-direction: column; gap: 10px; margin: 22px 5px 8px 0; padding: 14px; border: 2px dashed #b91c1c; border-radius: 4px; background: var(--neo-paper); }
    body.admin-shell.dashboard-sync-shell .danger-zone strong { display: block; color: #b91c1c; font-size: .82rem; }
    body.admin-shell.dashboard-sync-shell .danger-zone span { display: block; margin-top: 4px; color: var(--rp-muted); font-size: .74rem; }
    body.admin-shell.dashboard-sync-shell .danger-zone .btn { width: 100%; justify-content: center; min-height: 42px; }
    body.admin-shell.dashboard-sync-shell :is(.data-table-card, .recovery-table-card) { overflow: visible !important; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0 5px 5px 0 !important; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) { display: block; width: 100%; min-width: 0 !important; table-layout: auto; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) thead { display: none; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody { display: grid; gap: 14px; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody tr { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; padding: 14px; border: 3px solid var(--neo-ink) !important; border-radius: 4px; background: var(--neo-paper) !important; box-shadow: 4px 4px 0 var(--neo-ink); }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody td { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; gap: 4px; padding: 0 !important; border: 0 !important; text-align: left !important; white-space: normal !important; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody td[data-label]::before { content: attr(data-label); color: var(--rp-muted); font-family: var(--neo-mono); font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody td[colspan] { grid-column: 1 / -1; align-items: center; text-align: center !important; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody .col-index { position: absolute; top: 12px; right: 12px; display: grid; width: auto !important; min-width: 27px !important; max-width: none !important; height: 27px; padding: 0 6px !important; place-items: center; border: 1px solid var(--neo-ink) !important; border-radius: 2px; background: var(--neo-yellow); font-size: .7rem; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody .col-index::before { display: none; }
    body.admin-shell.dashboard-sync-shell .data-list-table tbody .col-select { grid-column: 1 / -1; flex-direction: row; align-items: center; }
    body.admin-shell.dashboard-sync-shell .data-list-table tbody .col-select input { width: 20px; height: 20px; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table, .rec-table) tbody .data-value-cell { grid-column: 1 / -1; max-width: none !important; padding-right: 36px !important; overflow: visible; white-space: normal !important; overflow-wrap: anywhere; word-break: break-word; }
    body.admin-shell.dashboard-sync-shell .rec-table tbody .data-value-cell { padding-right: 36px !important; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table .col-row-actions, .rec-table .recovery-row-actions) { grid-column: 1 / -1; flex-direction: row !important; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 4px !important; border-top: 1px dashed var(--rp-border, #d6d3d1) !important; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table .col-row-actions, .rec-table .recovery-row-actions)::before { margin-right: auto; }
    body.admin-shell.dashboard-sync-shell :is(.data-list-table .col-row-actions, .rec-table .recovery-row-actions) .btn { min-height: 38px; min-width: 42px; }
}
