/* MonterPro 13.0 - Styles */
:root {
    /* Light theme (default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-header: #0f172a;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --accent-blue: #2563eb;
    --accent-green: #22c55e;
    --accent-red: #ef4444;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Dark theme */
body.dark {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-header: #020617;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --accent-blue: #3b82f6;
    --accent-green: #4ade80;
    --accent-red: #f87171;
    --shadow-color: rgba(0, 0, 0, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-primary);
    -webkit-tap-highlight-color: transparent;
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Custom scrollbar */
.custom-scroll::-webkit-scrollbar {
    width: 4px;
}

.custom-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

/* Animations */
.modal-enter {
    animation: slide-up 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slide-up {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade 0.2s ease-in;
}

@keyframes fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Admin/User visibility */
body:not(.is-admin) .admin-only {
    display: none !important;
}

body.is-admin .user-only {
    display: none !important;
}

/* Checkbox cards */
.chk-card:has(input:checked) {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.chk-card:has(input:checked) > div {
    background-color: #eff6ff !important;
    border-color: #2563eb !important;
}

body.dark .chk-card:has(input:checked) {
    background-color: #1e3a5f;
}

body.dark .chk-card:has(input:checked) > div {
    background-color: #1e3a5f !important;
    border-color: #3b82f6 !important;
}

.check-box {
    display: flex;
}

.check-box span {
    display: none;
}

.chk-card:has(input:checked) .check-box {
    background-color: #2563eb !important;
    border-color: #2563eb !important;
}

.chk-card:has(input:checked) .check-box span {
    display: block;
    color: white;
}

/* Worker chips */
.worker-chip:checked+div {
    background-color: #2563eb !important;
    color: white !important;
    border-color: #2563eb !important;
}

/* Tabs */
.tab-active {
    color: #2563eb;
    border-bottom: 2px solid #2563eb;
}

.tab-inactive {
    color: #64748b;
}

/* Icon options */
.icon-option:has(input:checked) {
    background-color: #dbeafe;
    border-color: #3b82f6;
    color: #2563eb;
}

body.dark .icon-option:has(input:checked) {
    background-color: #1e3a5f;
}

/* Dark mode specific overrides */
body.dark .bg-white {
    background-color: var(--bg-secondary) !important;
}

body.dark .bg-slate-50 {
    background-color: var(--bg-tertiary) !important;
}

body.dark .text-slate-800,
body.dark .text-slate-700 {
    color: var(--text-primary) !important;
}

body.dark .text-slate-500,
body.dark .text-slate-400 {
    color: var(--text-secondary) !important;
}

body.dark .border-slate-200,
body.dark .border-slate-100 {
    border-color: var(--border-color) !important;
}

body.dark input,
body.dark textarea,
body.dark select {
    background-color: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}

body.dark nav {
    background-color: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark main {
    background-color: var(--bg-primary) !important;
}

/* Dark mode toggle button */
.dark-mode-toggle {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}

.dark-mode-toggle:hover {
    background-color: var(--bg-tertiary);
}

/* ============================================
   DESKTOP LAYOUT (>= 1024px)
   ============================================ */

/* Shell — pełny ekran */
.desktop-shell {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
}

/* Sidebar */
.desktop-sidebar {
    width: 260px;
    min-width: 260px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.3s ease, min-width 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.desktop-sidebar.collapsed {
    width: 72px;
    min-width: 72px;
}

.desktop-sidebar::-webkit-scrollbar {
    width: 3px;
}

.desktop-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

/* Desktop content area */
.desktop-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #f1f5f9;
    min-width: 0;
}

/* Brand */
.desk-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 16px;
}

.desk-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.desk-brand-text {
    color: #e2e8f0;
    font-size: 18px;
    letter-spacing: -0.5px;
}

.desk-brand-text b {
    color: #3b82f6;
    font-weight: 900;
}

.desk-collapse-btn {
    color: #64748b;
    padding: 4px;
    border-radius: 6px;
    transition: all 0.2s;
    background: transparent;
    border: none;
    cursor: pointer;
}

.desk-collapse-btn:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.08);
}

/* Nav divider */
.desk-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 8px 16px;
}

/* Nav list */
.desk-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
    flex: 1;
}

/* Nav item */
.desk-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: transparent;
    text-align: left;
    width: 100%;
}

.desk-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.desk-nav-item.active {
    background: rgba(59, 130, 246, 0.1);
    color: #e2e8f0;
}

.desk-nav-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.desk-nav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.desk-nav-indicator {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 24px;
    border-radius: 0 4px 4px 0;
}

/* Sidebar footer */
.desk-sidebar-footer {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.desk-user-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    color: #64748b;
    font-size: 12px;
}

/* ---- Desktop header ---- */
.desktop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 28px;
    background: white;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.desk-header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.desk-header-icon {
    font-size: 32px;
}

.desk-header-title {
    font-size: 22px;
    font-weight: 900;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.desk-header-sub {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
}

.desk-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.desk-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 8px 18px;
    text-align: center;
    min-width: 110px;
}

.desk-stat-card.green {
    border-color: #d1fae5;
    background: #ecfdf5;
}

.desk-stat-card.green .desk-stat-value {
    color: #059669;
}

.desk-stat-card.blue {
    border-color: #dbeafe;
    background: #eff6ff;
}

.desk-stat-card.blue .desk-stat-value {
    color: #2563eb;
}

.desk-stat-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.desk-stat-value {
    display: block;
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    margin-top: 2px;
}

.desk-user-btn {
    padding: 8px;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.desk-user-btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

/* ---- Desktop body ---- */
.desktop-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px 28px;
}

.desk-module-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 100%;
}

/* ---- Module toolbar ---- */
.desk-module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.desk-filter-tabs {
    display: flex;
    gap: 4px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px;
}

.desk-filter-tab {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 6px;
}

.desk-filter-tab:hover {
    color: #1e293b;
}

.desk-filter-tab.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.desk-filter-tab.active .desk-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

/* Badges */
.desk-badge {
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    padding: 1px 8px;
    border-radius: 20px;
}

/* Action button */
.desk-action-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    font-size: 13px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.desk-action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Link button */
.desk-link-btn {
    font-size: 12px;
    font-weight: 600;
    color: #3b82f6;
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
}

.desk-link-btn:hover {
    text-decoration: underline;
}

/* Select */
.desk-select {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: white;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    outline: none;
    cursor: pointer;
}

.desk-select:focus {
    border-color: #3b82f6;
}

/* ---- Tables ---- */
.desk-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: white;
}

.desk-table-fill {
    flex: 1;
}

.desk-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.desk-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}

.desk-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 700;
    white-space: nowrap;
    border-right: 1px solid #e2e8f0;
}

.desk-table th:last-child {
    border-right: none;
}

.desk-table td {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    color: #475569;
}

.desk-table td:last-child {
    border-right: none;
}

.desk-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.desk-table tbody tr:hover {
    background: #eff6ff;
}

.desk-table tbody tr:last-child td {
    border-bottom: none;
}

.desk-status-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.desk-sm-btn {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    border: 1px solid currentColor;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s;
    opacity: 0.8;
}

.desk-sm-btn:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.04);
}

/* ---- KPI Row ---- */
.desk-kpi-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.desk-kpi-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.desk-kpi-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.desk-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.desk-kpi-icon .material-symbols-rounded {
    font-size: 26px;
}

.desk-kpi-info {
    display: flex;
    flex-direction: column;
}

.desk-kpi-value {
    font-size: 24px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
}

.desk-kpi-label {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 600;
    margin-top: 4px;
}

/* ---- Dashboard Grid ---- */
.desk-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.desk-dashboard-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 16px;
}

@media (max-width: 1280px) {
    .desk-dashboard-grid {
        grid-template-columns: 1fr;
    }
}

/* Panels */
.desk-panel {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.desk-panel-large {
    grid-column: 1 / -1;
}

.desk-panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    flex-shrink: 0;
}

.desk-panel-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: #1e293b;
}

.desk-panel-body {
    flex: 1;
    overflow-y: auto;
}

.desk-panel-scroll {
    max-height: 320px;
}

/* Recent entries */
.desk-recent-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #f8fafc;
    transition: background 0.15s;
}

.desk-recent-entry:hover {
    background: #f8fafc;
}

.desk-recent-entry:last-child {
    border-bottom: none;
}

.desk-recent-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

/* Product grid */
.desk-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    padding: 16px 20px;
}

.desk-product-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
}

.desk-product-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 12px rgba(59, 130, 246, 0.1);
    background: white;
}

/* Tool buttons */
.desk-tool-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

.desk-tool-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1e293b;
}

/* ---- Cards grid ---- */
.desk-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 16px;
}

.desk-site-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.desk-site-card:hover {
    border-color: #8b5cf6;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.12);
    transform: translateY(-2px);
}

.desk-site-card.archived {
    opacity: 0.6;
}

.desk-site-card.archived:hover {
    border-color: #94a3b8;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.desk-site-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.desk-site-name {
    font-size: 16px;
    font-weight: 800;
    color: #1e293b;
    flex: 1;
}

.desk-site-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.desk-mini-stat {
    font-size: 12px;
    color: #94a3b8;
}

.desk-mini-stat b {
    color: #1e293b;
}

.desk-site-progress {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 10px;
}

.desk-progress-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.desk-progress-bar {
    flex: 1;
    height: 6px;
    background: #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
}

.desk-progress-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s;
}

/* Empty states */
.desk-empty-state {
    text-align: center;
    padding: 80px 20px;
    grid-column: 1/-1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.desk-empty-state-sm {
    text-align: center;
    padding: 30px;
}

/* Hide mobile on desktop */
body.is-desktop>nav,
body.is-desktop>header,
body.is-desktop>main {
    display: none !important;
}

/* ============================================
   TILES MODE (top navigation bar)
   ============================================ */

.desktop-shell-tiles {
    flex-direction: column;
}

.desktop-tiles-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 20px;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: 56px;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: hidden;
}

.desktop-tiles-bar::-webkit-scrollbar {
    height: 2px;
}

.desktop-tiles-bar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
}

.tiles-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
    flex-shrink: 0;
}

.tiles-brand-text {
    color: #e2e8f0;
    font-size: 16px;
    letter-spacing: -0.5px;
    white-space: nowrap;
}

.tiles-brand-text b {
    color: #3b82f6;
    font-weight: 900;
}

.tiles-nav-list {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
}

.tiles-nav-list::-webkit-scrollbar {
    display: none;
}

.tiles-nav-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    border: none;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
}

.tiles-nav-item .material-symbols-rounded {
    font-size: 18px;
}

.tiles-nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.tiles-nav-item.active {
    background: rgba(59, 130, 246, 0.15);
    color: #e2e8f0;
}

.tiles-nav-label {
    font-size: 12px;
}

.tiles-nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 3px;
    border-radius: 3px 3px 0 0;
}

.tiles-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.tiles-toggle-btn {
    padding: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.2s;
}

.tiles-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
}

.tiles-user {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
    padding: 6px 10px;
    font-size: 12px;
}

.desktop-content-tiles {
    flex: 1;
}

/* ============================================
   SUMMARY CARDS for enriched modules
   ============================================ */
.desk-summary-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.desk-summary-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
}

.desk-summary-card:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.desk-summary-card .desk-sc-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    font-weight: 700;
}

.desk-summary-card .desk-sc-value {
    font-size: 22px;
    font-weight: 900;
    color: #1e293b;
}

.desk-summary-card .desk-sc-sub {
    font-size: 11px;
    color: #64748b;
}

.desk-summary-card.highlight {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
}

.desk-summary-card.danger {
    border-color: #fecaca;
    background: linear-gradient(135deg, #fef2f2, #fff1f2);
}

.desk-summary-card.danger .desk-sc-value {
    color: #dc2626;
}

.desk-summary-card.success {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.desk-summary-card.success .desk-sc-value {
    color: #16a34a;
}

/* ============================================
   DARK MODE — Desktop overrides (!important)
   ============================================ */
body.dark .desktop-header {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desktop-content,
body.dark .desk-module-content {
    background: var(--bg-primary) !important;
}

body.dark .desk-module-container {
    background: var(--bg-primary) !important;
}

body.dark .desk-stat-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-stat-label {
    color: var(--text-muted) !important;
}

body.dark .desk-stat-value {
    color: var(--text-primary) !important;
}

body.dark .desk-header-title {
    color: var(--text-primary) !important;
}

body.dark .desk-header-sub {
    color: var(--text-secondary) !important;
}

body.dark .desk-user-btn {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-secondary) !important;
}

body.dark .desk-user-btn:hover {
    background: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark .desk-module-toolbar {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-filter-tab {
    color: var(--text-secondary) !important;
}

body.dark .desk-filter-tab:hover:not(.active) {
    background: var(--bg-tertiary) !important;
}

body.dark .desk-badge {
    background: var(--bg-tertiary) !important;
    color: var(--text-secondary) !important;
}

body.dark .desk-select {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark .desk-table-wrap {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-table thead {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-table th {
    color: var(--text-secondary) !important;
}

body.dark .desk-table td {
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark .desk-table tr:hover td {
    background: var(--bg-tertiary) !important;
}

body.dark .desk-panel {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-panel-header {
    border-color: var(--border-color) !important;
    background: var(--bg-tertiary) !important;
}

body.dark .desk-panel-header h3 {
    color: var(--text-primary) !important;
}

body.dark .desk-kpi-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-kpi-card:hover {
    border-color: var(--text-muted) !important;
}

body.dark .desk-site-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-site-card:hover {
    border-color: var(--text-muted) !important;
}

body.dark .desk-site-name {
    color: var(--text-primary) !important;
}

body.dark .desk-mini-stat b {
    color: var(--text-primary) !important;
}

body.dark .desk-site-progress {
    background: var(--bg-tertiary) !important;
}

body.dark .desk-progress-bar {
    background: var(--border-color) !important;
}

body.dark .desk-tool-btn {
    background: var(--bg-tertiary) !important;
    border-color: var(--border-color) !important;
    color: var(--text-primary) !important;
}

body.dark .desk-tool-btn:hover {
    background: var(--border-color) !important;
}

body.dark .desk-action-btn {
    background: var(--accent-blue) !important;
    border-color: var(--accent-blue) !important;
}

body.dark .desk-sm-btn {
    color: var(--text-secondary) !important;
}

body.dark .desk-product-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-summary-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

body.dark .desk-summary-card .desk-sc-label {
    color: var(--text-muted) !important;
}

body.dark .desk-summary-card .desk-sc-value {
    color: var(--text-primary) !important;
}

body.dark .desk-empty-state {
    color: var(--text-muted) !important;
}

/* Catch inline style="background:white" etc. in dark mode */
body.dark [style*="background:white"],
body.dark [style*="background: white"],
body.dark [style*="background:#fff"],
body.dark [style*="background: #fff"] {
    background: var(--bg-secondary) !important;
}

body.dark [style*="border:1px solid #e2e8f0"],
body.dark [style*="border: 1px solid #e2e8f0"] {
    border-color: var(--border-color) !important;
}

body.dark [style*="color:#334155"],
body.dark [style*="color: #334155"],
body.dark [style*="color:#1e293b"] {
    color: var(--text-primary) !important;
}

body.dark .desk-cards-grid>div {
    background: var(--bg-secondary) !important;
}

/* ============================================
   PAPERLIKE + DARK MODE combined
   ============================================ */
body.paperlike.dark {
    --bg-primary: #1a1a1a;
    --bg-secondary: #252525;
    --bg-tertiary: #333333;
    --bg-header: #111111;
    --text-primary: #e8e8e8;
    --text-secondary: #aaaaaa;
    --text-muted: #777777;
    --border-color: #444444;
    --accent-blue: #5588cc;
    --accent-green: #55aa77;
    --accent-red: #cc5555;
    --shadow-color: rgba(0, 0, 0, 0.3);
    background: #1a1a1a !important;
}

body.paperlike.dark .desktop-sidebar {
    background: linear-gradient(180deg, #111 0%, #1a1a1a 100%) !important;
    border-color: #333 !important;
}

body.paperlike.dark .desktop-header {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-header-title {
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-header-sub {
    color: #aaa !important;
}

body.paperlike.dark .desk-stat-card {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-stat-card.green {
    background: #1e2e1e !important;
    border-color: #3a5a3a !important;
}

body.paperlike.dark .desk-stat-card.blue {
    background: #1e2030 !important;
    border-color: #3a4a5a !important;
}

body.paperlike.dark .desk-stat-label {
    color: #777 !important;
}

body.paperlike.dark .desk-stat-value {
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-user-btn {
    background: #333 !important;
    border-color: #444 !important;
    color: #aaa !important;
}

body.paperlike.dark .desktop-content,
body.paperlike.dark .desk-module-content,
body.paperlike.dark .desk-module-container {
    background: #1a1a1a !important;
}

body.paperlike.dark .desk-module-toolbar {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-filter-tab {
    color: #aaa !important;
}

body.paperlike.dark .desk-filter-tab.active {
    background: #5588cc !important;
    color: #fff !important;
}

body.paperlike.dark .desk-filter-tab:hover:not(.active) {
    background: #333 !important;
}

body.paperlike.dark .desk-badge {
    background: #333 !important;
    color: #aaa !important;
}

body.paperlike.dark .desk-action-btn {
    background: #5588cc !important;
    border-color: #5588cc !important;
    color: #fff !important;
}

body.paperlike.dark .desk-action-btn:hover {
    background: #6699dd !important;
}

body.paperlike.dark .desk-action-btn[style*="background:#eff6ff"],
body.paperlike.dark .desk-action-btn[style*="background:#f0fdf4"] {
    background: #333 !important;
    color: #e8e8e8 !important;
    border: 1px solid #444 !important;
}

body.paperlike.dark .desk-select {
    background: #333 !important;
    border-color: #444 !important;
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-table-wrap {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-table thead {
    background: #333 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-table th {
    color: #aaa !important;
}

body.paperlike.dark .desk-table td {
    border-color: #333 !important;
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-table tr:hover td {
    background: #333 !important;
}

body.paperlike.dark .desk-panel {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-panel-header {
    background: #333 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-panel-header h3 {
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-kpi-card {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-site-card {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-site-card:hover {
    border-color: #666 !important;
}

body.paperlike.dark .desk-site-name {
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-site-progress {
    background: #333 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-progress-bar {
    background: #444 !important;
}

body.paperlike.dark .desk-tool-btn {
    background: #333 !important;
    border-color: #444 !important;
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-product-card {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-summary-card {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark .desk-mini-stat b {
    color: #e8e8e8 !important;
}

body.paperlike.dark .desk-empty-state {
    color: #777 !important;
}

body.paperlike.dark .bg-white {
    background-color: #252525 !important;
}

body.paperlike.dark .bg-slate-50 {
    background-color: #333 !important;
}

body.paperlike.dark .border-slate-200,
body.paperlike.dark .border-slate-100 {
    border-color: #444 !important;
}

body.paperlike.dark .text-slate-800,
body.paperlike.dark .text-slate-700 {
    color: #e8e8e8 !important;
}

body.paperlike.dark .text-slate-500,
body.paperlike.dark .text-slate-400 {
    color: #aaa !important;
}

body.paperlike.dark nav {
    background: #252525 !important;
    border-color: #444 !important;
}

body.paperlike.dark [style*="background:white"],
body.paperlike.dark [style*="background: white"],
body.paperlike.dark [style*="background:#fff"],
body.paperlike.dark [style*="background: #fff"] {
    background: #252525 !important;
}

body.paperlike.dark .desk-status-badge {
    opacity: 0.85;
}

/* ============================================
   PAPERLIKE THEME — Clean White Paper Form
   ============================================ */
body.paperlike {
    --bg-primary: #f0f0f0;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f5f5f5;
    --bg-header: #1a1a1a;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border-color: #cccccc;
    --accent-blue: #2255aa;
    --accent-green: #228844;
    --accent-red: #cc3333;
    --shadow-color: rgba(0, 0, 0, 0.06);
    font-family: 'Calibri', 'Segoe UI', 'Arial', sans-serif;
    background: #f0f0f0;
}

body.paperlike .desktop-sidebar {
    background: #ffffff;
    border-right: 2px solid #cccccc;
}

body.paperlike .desktop-sidebar::-webkit-scrollbar-thumb {
    background: #ccc;
}

body.paperlike .desk-brand-text {
    color: #111;
}

body.paperlike .desk-brand-text b {
    color: #2255aa;
}

body.paperlike .desk-collapse-btn {
    color: #888;
}

body.paperlike .desk-collapse-btn:hover {
    color: #111;
    background: #f0f0f0;
}

body.paperlike .desk-sidebar-brand span:last-child {
    font-family: 'Calibri', sans-serif;
    letter-spacing: 0.5px;
}

body.paperlike .desk-nav-item {
    border-radius: 3px;
    font-family: 'Calibri', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #555;
}

body.paperlike .desk-nav-item:hover {
    background: #f0f0f0;
    color: #111;
}

body.paperlike .desk-nav-item.active {
    background: #f0f0f0;
    color: #111;
    border-left: 3px solid #2255aa;
}

body.paperlike .desk-nav-item .desk-nav-icon {
    color: #888;
}

body.paperlike .desk-nav-item.active .desk-nav-icon {
    color: #2255aa;
}

body.paperlike .desk-nav-divider {
    background: #e0e0e0;
}

body.paperlike .desk-sidebar-footer {
    border-top: 1px solid #e0e0e0;
}

body.paperlike .desk-sidebar-footer .desk-nav-item {
    color: #555;
}

body.paperlike .desk-sidebar-footer .desk-nav-item:hover {
    background: #f0f0f0;
    color: #111;
}

body.paperlike .desk-user-badge {
    color: #888;
}

body.paperlike .desktop-header {
    background: #ffffff;
    border-bottom: 2px solid #cccccc;
}

body.paperlike .desk-header-title {
    font-family: 'Calibri', sans-serif;
    letter-spacing: 0.3px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 18px;
    color: #111;
}

body.paperlike .desk-header-sub {
    font-family: 'Calibri', sans-serif;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #888;
}

body.paperlike .desk-stat-card {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
}

body.paperlike .desk-stat-card.green {
    background: #f5faf5;
    border-color: #b3d4b3;
}

body.paperlike .desk-stat-card.blue {
    background: #f0f4fa;
    border-color: #b3c4d4;
}

body.paperlike .desk-stat-label {
    font-family: 'Calibri', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-size: 9px;
    color: #888;
}

body.paperlike .desk-stat-value {
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    color: #111;
}

body.paperlike .desk-user-btn {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
}

body.paperlike .desk-user-btn:hover {
    background: #f5f5f5;
}

body.paperlike .desktop-content,
body.paperlike .desk-module-content {
    background: #f0f0f0;
}

body.paperlike .desk-module-toolbar {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 10px 16px;
}

body.paperlike .desk-filter-tab {
    border-radius: 2px;
    font-family: 'Calibri', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border: 1px solid transparent;
}

body.paperlike .desk-filter-tab.active {
    background: #1a1a1a;
    color: #fff;
    box-shadow: none;
    border-radius: 2px;
}

body.paperlike .desk-filter-tab.active .desk-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

body.paperlike .desk-filter-tab:hover:not(.active) {
    background: #f5f5f5;
    border-color: #ccc;
}

body.paperlike .desk-badge {
    border-radius: 2px;
    font-family: 'Calibri', sans-serif;
    background: #f0f0f0;
    color: #555;
}

body.paperlike .desk-action-btn {
    border-radius: 2px;
    font-family: 'Calibri', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: #1a1a1a;
    color: #fff;
    border: 1px solid #1a1a1a;
    box-shadow: none;
}

body.paperlike .desk-action-btn:hover {
    background: #333;
    box-shadow: none;
}

body.paperlike .desk-action-btn[style*="background:#eff6ff"],
body.paperlike .desk-action-btn[style*="background:#f0fdf4"] {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #ccc !important;
}

body.paperlike .desk-action-btn[style*="background:#eff6ff"]:hover,
body.paperlike .desk-action-btn[style*="background:#f0fdf4"]:hover {
    background: #f5f5f5 !important;
}

body.paperlike .desk-select {
    border-radius: 2px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: 'Calibri', sans-serif;
    color: #111;
}

body.paperlike .desk-select:focus {
    border-color: #888;
    box-shadow: 0 0 0 1px #ccc;
}

body.paperlike .desk-table-wrap {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
}

body.paperlike .desk-table thead {
    background: #f5f5f5;
    border-bottom: 2px solid #ccc;
}

body.paperlike .desk-table th {
    font-family: 'Calibri', sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #555;
    font-weight: 700;
    padding: 10px 16px;
}

body.paperlike .desk-table td {
    border-bottom: 1px solid #eee;
    color: #111;
    font-size: 13px;
    padding: 10px 16px;
}

body.paperlike .desk-table tr:hover td {
    background: #f9f9f9;
}

body.paperlike .desk-status-badge {
    border-radius: 2px;
    font-family: 'Calibri', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 10px;
}

body.paperlike .desk-panel {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
}

body.paperlike .desk-panel-header {
    border-bottom: 1px solid #eee;
    background: #f9f9f9;
}

body.paperlike .desk-panel-header h3 {
    font-family: 'Calibri', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-size: 14px;
    color: #111;
}

body.paperlike .desk-kpi-card {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: none;
}

body.paperlike .desk-kpi-card:hover {
    box-shadow: none;
    border-color: #999;
    transform: none;
}

body.paperlike .desk-kpi-icon {
    border-radius: 3px;
}

body.paperlike .desk-site-card {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
    box-shadow: none;
}

body.paperlike .desk-site-card:hover {
    border-color: #999;
    box-shadow: none;
    transform: none;
}

body.paperlike .desk-site-name {
    font-family: 'Calibri', sans-serif;
    font-weight: 800;
    color: #111;
}

body.paperlike .desk-site-progress {
    background: #f5f5f5;
    border-radius: 3px;
    border: 1px solid #eee;
}

body.paperlike .desk-progress-bar {
    background: #e0e0e0;
    border-radius: 2px;
}

body.paperlike .desk-progress-fill {
    border-radius: 2px;
}

body.paperlike .desk-summary-card {
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fff;
}

body.paperlike .desk-summary-card.highlight {
    background: #f0f4fa;
    border-color: #b3c4d4;
}

body.paperlike .desk-summary-card.danger {
    background: #faf0f0;
    border-color: #d4b3b3;
}

body.paperlike .desk-summary-card.success {
    background: #f0faf0;
    border-color: #b3d4b3;
}

body.paperlike .desk-sm-btn {
    border-radius: 2px;
    font-family: 'Calibri', sans-serif;
    font-size: 11px;
}

body.paperlike .desk-tool-btn {
    border-radius: 2px;
    border: 1px solid #ccc;
    background: #fff;
    font-family: 'Calibri', sans-serif;
}

body.paperlike .desk-tool-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

body.paperlike .desk-product-card {
    border-radius: 3px;
    background: #fff;
    border: 1px solid #ccc;
}

body.paperlike .desk-product-card:hover {
    border-color: #999;
    box-shadow: none;
    background: #f9f9f9;
}

body.paperlike .desktop-tiles-bar {
    background: #ffffff;
    border-bottom: 2px solid #ccc;
}

body.paperlike .tiles-brand-text {
    color: #111;
}

body.paperlike .tiles-brand-text b {
    color: #2255aa;
}

body.paperlike .tiles-nav-item {
    font-family: 'Calibri', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 2px;
    color: #555;
}

body.paperlike .tiles-nav-item:hover {
    background: #f0f0f0;
    color: #111;
}

body.paperlike .tiles-nav-item.active {
    background: #f0f0f0;
    color: #111;
}

body.paperlike .tiles-bar-right .tiles-toggle-btn {
    background: #f0f0f0;
    border-color: #ccc;
    color: #555;
}

body.paperlike .tiles-user {
    color: #888;
}

body.paperlike .bg-white {
    background-color: #fff !important;
}

body.paperlike .bg-slate-50 {
    background-color: #f5f5f5 !important;
}

body.paperlike .border-slate-200,
body.paperlike .border-slate-100 {
    border-color: #ccc !important;
}

body.paperlike .rounded-2xl,
body.paperlike .rounded-xl,
body.paperlike .rounded-lg {
    border-radius: 3px !important;
}

body.paperlike .shadow-sm,
body.paperlike .shadow-lg,
body.paperlike .shadow-md {
    box-shadow: none !important;
}

body.paperlike h2,
body.paperlike h3 {
    font-family: 'Calibri', sans-serif;
}

body.paperlike nav {
    background: #fff !important;
    border-top: 1px solid #ccc !important;
    box-shadow: none !important;
}

body.paperlike .custom-scroll::-webkit-scrollbar-thumb {
    background: #ccc;
}

body.paperlike .desk-empty-state {
    font-family: 'Calibri', sans-serif;
    color: #888;
}

/* Mobile condensed header + sliding single-strip navigation */
@media (max-width: 1023px) {
    .mobile-app-header,
    .mobile-header-shell,
    .mobile-header-top,
    .mobile-header-stats,
    .mobile-brand-company,
    .mobile-brand-meta,
    .mobile-user-label {
        transition: all 0.22s ease;
    }

    .mobile-header-stats {
        max-height: 180px;
        opacity: 1;
        transform: translateY(0);
        overflow: hidden;
    }

    .mobile-brand-company {
        max-height: 24px;
    }

    .mobile-brand-meta {
        max-height: 28px;
    }

    .mobile-user-label {
        display: block;
        max-height: 18px;
    }

    body.mobile-header-collapsed .mobile-header-shell {
        padding-top: 0.5rem !important;
        padding-bottom: 0.45rem !important;
    }

    body.mobile-header-collapsed .mobile-header-top {
        margin-bottom: 0.35rem !important;
    }

    body.mobile-header-collapsed .mobile-header-stats {
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
    }

    body.mobile-header-collapsed .mobile-brand-company,
    body.mobile-header-collapsed .mobile-brand-meta,
    body.mobile-header-collapsed .mobile-user-label {
        opacity: 0;
        max-height: 0;
        transform: translateY(-6px);
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        overflow: hidden;
    }

    body.mobile-header-collapsed #app-brand-title {
        font-size: 1.05rem;
    }

    body.mobile-header-collapsed #header-username {
        font-size: 1rem;
    }

    .mobile-nav-track-wrap {
        position: relative;
        border: 1px solid #dbe2eb;
        border-radius: 14px;
        background: #ffffff;
        overflow: hidden;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .mobile-nav-track-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        right: 0;
        width: 24px;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.96));
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .mobile-nav.can-shift .mobile-nav-track-wrap {
        border-color: #93c5fd;
        box-shadow: inset 0 0 0 1px #dbeafe;
    }

    .mobile-nav-track-wrap:has(.mobile-nav-strip.at-end)::after {
        opacity: 0.12;
    }

    .mobile-nav-strip {
        display: flex;
        align-items: stretch;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .mobile-nav-strip::-webkit-scrollbar {
        display: none;
    }

    .mobile-strip-tab {
        width: clamp(96px, 28vw, 132px);
        min-width: clamp(96px, 28vw, 132px);
        flex: 0 0 auto;
        border-bottom: 2px solid transparent;
        scroll-snap-align: start;
        transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .mobile-strip-tab.tab-active {
        background: #eff6ff;
        color: #1d4ed8;
        border-bottom-color: #2563eb;
    }

    .mobile-strip-tab[data-primary="false"] {
        background: linear-gradient(180deg, #f8fbff 0%, #eff5ff 100%);
    }

    .mobile-strip-tab[data-primary="false"].tab-active {
        background: #dbeafe;
    }

    .mobile-nav-peek-hint {
        position: absolute;
        top: 4px;
        right: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.92);
        color: #3b82f6;
        border: 1px solid #bfdbfe;
        border-radius: 999px;
        padding: 1px 3px;
        pointer-events: none;
        opacity: 0.75;
        transition: opacity 0.2s ease;
    }

    .mobile-nav-strip.at-end + .mobile-nav-peek-hint {
        opacity: 0.18;
    }

    body.dark .mobile-nav-track-wrap {
        background: var(--bg-secondary);
        border-color: #334155;
    }

    body.dark .mobile-nav-track-wrap::after {
        background: linear-gradient(90deg, transparent, rgba(30, 41, 59, 0.96));
    }

    body.dark .mobile-nav.can-shift .mobile-nav-track-wrap {
        border-color: #475569;
        box-shadow: inset 0 0 0 1px #334155;
    }

    body.dark .mobile-strip-tab.tab-active {
        background: #1e3a5f;
        color: #bfdbfe;
        border-bottom-color: #60a5fa;
    }

    body.dark .mobile-strip-tab[data-primary="false"] {
        background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    }

    body.dark .mobile-strip-tab[data-primary="false"].tab-active {
        background: #1e3a5f;
    }

    body.dark .mobile-nav-peek-hint {
        background: rgba(15, 23, 42, 0.86);
        border-color: #334155;
        color: #93c5fd;
    }
}