/* ============================================================================
   SENDLOG APP DASHBOARD - CSS
   ============================================================================
   Design System for the SendLog web app at sendlog.at/app/
   Fonts: Montserrat (headings), Open Sans (body)
   Colors: #3b82f6 (primary), #f97316 (accent), #1e293b (dark bg)
   ============================================================================ */

/* CSS CUSTOM PROPERTIES - DESIGN TOKENS */
:root {
    /* Colors */
    --primary-color: #3b82f6;           /* Blue */
    --accent-color: #3b82f6;             /* Blue — matches iOS system blue aesthetic */
    --dark-bg: #0f172a;                  /* Deep navy — matches brainstorm header */
    --light-bg: #f1f5f9;                 /* Cool light gray background */
    --white: #ffffff;
    --text-dark: #334155;                /* Dark text */
    --text-light: #f1f5f9;               /* Light text */
    --border-color: #e2e8f0;             /* Light border */
    --border-dark: #cbd5e1;              /* Darker border */
    --success-color: #22c55e;            /* Green */
    --warning-color: #eab308;            /* Yellow */
    --danger-color: #ef4444;             /* Red */
    
    /* Grade badge colors */
    --grade-hard: #ef4444;               /* Red for 8b+ and above */
    --grade-normal: #3b82f6;             /* Blue for normal grades */
    
    /* Send type colors */
    --send-rp: #ef4444;                  /* Red - Redpoint */
    --send-os: #22c55e;                  /* Green - On Sight */
    --send-fl: #f97316;                  /* Orange - Flash (unused, kept for compat) */
    --send-proj: #9ca3af;                /* Grey - Project */
    --send-pp: #ec4899;                  /* Pink - Pinkpoint */
    --send-tr: #64748b;                  /* Slate - Top Rope */
    --send-af: #8b5cf6;                  /* Purple - All Free */
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Typography — system font stack (no external dependency) */
    --font-heading: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text',    'Segoe UI', sans-serif;
    
    /* Sizes */
    --header-height: 52px;
    --sidebar-width: 220px;
    --stats-card-height: 80px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --border-radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Z-index */
    --z-dropdown: 100;
    --z-sticky: 50;
    --z-modal: 1000;
    --z-toast: 1100;
}

/* ============================================================================
   RESET & BASE STYLES
   ============================================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark-bg);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base);
}

a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

input, select, textarea {
    font-family: inherit;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* ============================================================================
   APP SHELL LAYOUT
   ============================================================================
   Fixed header (52px) + body with sidebar (240px) + main content
   ============================================================================ */

#app {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Top Navigation Bar */
.app-header {
    height: var(--header-height);
    background: var(--dark-bg);
    border-bottom: none;
    box-shadow: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 var(--spacing-lg);
    gap: var(--spacing-lg);
    position: relative;
    z-index: var(--z-dropdown);
}

.app-header-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
}

.app-header-logo svg,
.app-header-logo img {
    height: 28px;
    width: auto;
}

.app-nav-links {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.app-nav-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.35rem 0.85rem;
    border-radius: 6px;
    background: transparent;
    border-bottom: none;
    transition: all var(--transition-fast);
}

.app-nav-links a:hover,
.app-nav-links a.active {
    color: var(--white);
    background: var(--primary-color);
    text-decoration: none;
    border-bottom: none;
}

.app-user-chip {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-full);
    color: var(--text-light);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background var(--transition-base);
}

.app-user-chip:hover {
    background: rgba(255, 255, 255, 0.15);
}

.app-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--border-radius-full);
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
}

/* App Body Container */
.app-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Sidebar */
.app-sidebar {
    width: var(--sidebar-width);
    background: #f8fafc;
    border-right: 1px solid var(--border-color);
    overflow-y: auto;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-search {
    display: flex;
    gap: var(--spacing-sm);
}

.sidebar-search input {
    flex: 1;
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

.sidebar-filters {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.sidebar-filters .sidebar-section-label {
    padding-left: 0;
    padding-right: 0;
}

.sidebar-filters select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--white);
    color: var(--dark-bg);
    cursor: pointer;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group select {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: var(--white);
}

.sidebar-nav {
    padding: var(--spacing-sm) 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sidebar-nav-item {
    padding: var(--spacing-sm) var(--spacing-lg);
    color: var(--text-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition-base);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.sidebar-nav-item:hover {
    background: var(--light-bg);
    color: var(--primary-color);
}

.sidebar-nav-item.active {
    background: rgba(59, 130, 246, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-nav-item svg,
.sidebar-nav-item img {
    width: 20px;
    height: 20px;
}

/* Main Content Area */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: var(--light-bg);
}

.app-content {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.app-content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.app-content-header h1 {
    color: var(--dark-bg);
    font-size: 1.75rem;
}

/* ============================================================================
   STATS BAR
   ============================================================================
   4 stat cards in a row at top of main content
   ============================================================================ */

.stats-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

/* Stats cards — compact, gray bg, no colored left border */
.stat-card {
    background: #f8fafc;
    border-radius: var(--border-radius);
    padding: var(--spacing-sm) var(--spacing-md);
    box-shadow: none;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: var(--stats-card-height);
    transition: box-shadow var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-sm);
    transform: none;
}

/* accent-* classes no longer used — stat cards are border-neutral */
.stat-card.accent-primary,
.stat-card.accent-success,
.stat-card.accent-warning,
.stat-card.accent-danger {
    border-left: 1px solid var(--border-color);
}

.stat-label {
    font-size: 0.65rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-bg);
    font-family: var(--font-heading);
    line-height: 1.1;
}

.stat-change {
    font-size: 0.85rem;
    margin-top: var(--spacing-sm);
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* ============================================================================
   CLIMBS TABLE
   ============================================================================
   Table with hover rows, grade/send-type badges
   ============================================================================ */

.table-container {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-bg);
    margin-bottom: var(--spacing-lg);
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light-bg);
    border-bottom: 2px solid var(--border-color);
}

th {
    padding: 8px 12px;
    text-align: left;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #f8fafc;
}

tbody tr {
    border-bottom: 1px solid #f1f5f9;
    transition: background var(--transition-fast);
}

tbody tr:hover {
    background: #f8fafc;
}

td {
    padding: 10px 12px;
    font-size: 0.875rem;
    color: #334155;
}

/* Grade Badge */
.badge {
    display: inline-block;
    padding: 0.1rem 0.3rem;
    border-radius: var(--border-radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grade-hard {
    color: var(--grade-hard);
}

.grade-normal {
    color: var(--grade-normal);
}

.send-rp {
    color: var(--send-rp);
}

.send-os {
    color: var(--send-os);
}

.send-fl {
    color: var(--send-fl);
}

.send-proj {
    color: var(--send-proj);
}

.send-pp {
    color: var(--send-pp);
}

.send-tr {
    color: var(--send-tr);
}

.send-af {
    color: var(--send-af);
}

.type-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
    background: #f1f5f9;
    border-radius: var(--border-radius);
    padding: 0.1rem 0.45rem;
    letter-spacing: 0.02em;
}

.table-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--border-radius);
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-icon:hover {
    background: var(--light-bg);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ============================================================================
   DETAIL MODAL / OVERLAY
   ============================================================================
   Slide-up overlay with photo grid and details
   ============================================================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: var(--z-modal);
    padding: var(--spacing-lg);
}

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

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    max-width: 560px;
    max-height: 85vh;
    width: 100%;
    overflow-y: auto;
    padding: var(--spacing-xl);
    animation: fadeScaleIn 0.2s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes fadeScaleIn {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-lg);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-bg);
}

.modal-close {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--text-dark);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
}

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

.modal-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.modal-photo-placeholder {
    aspect-ratio: 1;
    background: var(--light-bg);
    border-radius: var(--border-radius);
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dark);
    font-size: 2rem;
}

.modal-photo-image {
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius);
    object-fit: cover;
}

.modal-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
}

.detail-label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--dark-bg);
}

.modal-actions {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.btn-primary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-primary:hover {
    background: #2563eb;
}

.btn-secondary {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: var(--light-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* ============================================================================
   TOAST NOTIFICATIONS
   ============================================================================
   Bottom-center, capsule shape
   ============================================================================ */

.toast-container {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.toast {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-full);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    min-width: 300px;
    animation: toastSlideIn 0.3s ease;
}

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

.toast.success {
    background: var(--success-color);
}

.toast.error {
    background: var(--danger-color);
}

.toast.warning {
    background: var(--warning-color);
    color: var(--dark-bg);
}

.toast-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    flex-shrink: 0;
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    transition: opacity var(--transition-base);
}

.toast-close:hover {
    opacity: 0.7;
}

/* ============================================================================
   LOADING SKELETON
   ============================================================================
   Animated pulse effect
   ============================================================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--border-color) 25%,
        rgba(255, 255, 255, 0.2) 50%,
        var(--border-color) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

.skeleton-table {
    width: 100%;
    border-collapse: collapse;
}

.skeleton-table tr {
    border-bottom: 1px solid var(--border-color);
}

.skeleton-table td {
    padding: var(--spacing-md);
}

.skeleton-cell {
    height: 1rem;
    border-radius: var(--border-radius);
    width: 100%;
}

.skeleton-row {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-full);
    flex-shrink: 0;
}

.skeleton-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.skeleton-text-line {
    height: 0.75rem;
    border-radius: var(--border-radius);
    width: 100%;
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

.rounded {
    border-radius: var(--border-radius);
}

.rounded-lg {
    border-radius: var(--border-radius-lg);
}

.rounded-full {
    border-radius: var(--border-radius-full);
}

.shadow-md {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary-color);
}

.text-accent {
    color: var(--accent-color);
}

.text-danger {
    color: var(--danger-color);
}

.text-success {
    color: var(--success-color);
}

.bg-light {
    background: var(--light-bg);
}

.bg-white {
    background: var(--white);
}

.cursor-pointer {
    cursor: pointer;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================
   Mobile: ≤ 768px
   - Collapse sidebar
   - Stack stats vertically
   ============================================================================ */

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

@media (max-width: 768px) {
    :root {
        --sidebar-width: 0;
    }
    
    .app-body {
        flex-direction: column;
    }
    
    .app-sidebar {
        width: 100%;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        overflow-x: auto;
        flex-direction: row;
    }
    
    .sidebar-header {
        min-width: 200px;
        border-right: 1px solid var(--border-color);
        border-bottom: none;
    }
    
    .sidebar-filters {
        flex-direction: row;
        gap: var(--spacing-lg);
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        padding: var(--spacing-md);
        min-width: 300px;
    }
    
    .filter-group {
        flex-direction: row;
        align-items: center;
        gap: var(--spacing-sm);
    }
    
    .filter-group label {
        min-width: 80px;
    }
    
    .filter-group select {
        min-width: 120px;
    }
    
    .sidebar-nav {
        display: none;
    }
    
    .app-content {
        padding: var(--spacing-lg);
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-card {
        min-height: 100px;
        padding: var(--spacing-md);
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .app-nav-links {
        gap: var(--spacing-md);
        margin-right: var(--spacing-md);
        margin-left: auto;
    }
    
    .app-nav-links a {
        font-size: 0.85rem;
        padding: 0.3rem 0;
    }
    
    .app-header-logo {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 48px;
        --spacing-xl: 1rem;
    }
    
    .app-header {
        padding: 0 var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .app-header-logo {
        font-size: 0.9rem;
    }
    
    .app-header-logo svg,
    .app-header-logo img {
        height: 24px;
    }
    
    .app-nav-links {
        display: none;
    }
    
    .app-user-chip {
        padding: var(--spacing-sm) 0.75rem;
        gap: var(--spacing-xs);
    }
    
    .app-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }
    
    .app-content {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }
    
    .app-content-header h1 {
        font-size: 1.25rem;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        min-height: 80px;
        padding: var(--spacing-sm) var(--spacing-md);
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .stat-value {
        font-size: 1.25rem;
    }
    
    .table-container {
        padding: var(--spacing-md);
    }
    
    .table-title {
        font-size: 1rem;
    }
    
    th, td {
        padding: var(--spacing-sm);
        font-size: 0.85rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .modal-content {
        max-height: 92vh;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        padding: var(--spacing-lg);
    }
    
    .modal-photo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .toast {
        min-width: calc(100vw - 2rem);
        max-width: calc(100vw - 2rem);
    }
}

/* ============================================================================
   APP SHELL — body-level layout so mock banner can sit above #app
   ============================================================================ */

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

#app {
    display: flex;
    flex-direction: column;
    flex: 1;
    overflow: hidden;
    min-height: 0;
}

/* ============================================================================
   HEADER USER AREA
   ============================================================================ */

.app-header-user {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    justify-self: end;
}

.btn-signout {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-base);
}

.btn-signout:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-account {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: background var(--transition-base), border-color var(--transition-base);
}

.btn-account:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.35);
}

/* ============================================================================
   SIDEBAR EXTRAS
   ============================================================================ */

.sidebar-section-label {
    padding: var(--spacing-sm) var(--spacing-lg) var(--spacing-xs);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-top: var(--spacing-xs);
}

.count-badge {
    margin-left: auto;
    background: var(--border-color);
    color: var(--text-dark);
    padding: 0.1rem 0.5rem;
    border-radius: var(--border-radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
}

.sidebar-nav-item.active .count-badge {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================================================
   TABLE HEADER ROW
   ============================================================================ */

.table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

/* ============================================================================
   SKELETON ROWS (inside table)
   ============================================================================ */

.skeleton-row-tr td {
    padding: var(--spacing-md);
}

.skeleton-row-tr .skeleton-cell {
    height: 0.9rem;
    border-radius: var(--border-radius);
    display: block;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */

.empty-state {
    text-align: center;
    padding: var(--spacing-2xl) var(--spacing-lg);
    color: #64748b;
}

.empty-state p {
    margin: 0;
    font-size: 1rem;
}

/* ============================================================================
   MODAL — close button positioned top-right
   ============================================================================ */

.modal-content {
    position: relative;
}

.modal-close {
    position: absolute;
    top: var(--spacing-lg);
    right: var(--spacing-lg);
}

/* ============================================================================
   TOAST — fixed bottom-center
   ============================================================================ */

#toast:not(.hidden) {
    position: fixed;
    bottom: var(--spacing-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: var(--z-toast);
}

/* ============================================================
   PHASE 3 — OVERLAYS, FORMS, TRAINING
   ============================================================ */

/* --- Edit Overlay (shared: climb + training) --- */
.edit-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.edit-overlay.hidden { display: none; }

.edit-overlay-content {
  background: var(--white);
  border-radius: 12px;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.edit-overlay-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
}
.edit-overlay-header h2 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.btn-close {
  background: none;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  color: #94a3b8;
  padding: 4px 6px;
  border-radius: 4px;
  line-height: 1;
}
.btn-close:hover { color: var(--dark-bg); background: #f1f5f9; }

.edit-overlay-body {
  overflow-y: auto;
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.edit-overlay-footer {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .9rem 1.25rem;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}
.edit-overlay-footer .btn {
  flex: none;
}
.btn-ghost {
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: .9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: background .15s;
}
.btn-ghost:hover { background: #f1f5f9; }

/* --- Form components --- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}
.form-group label {
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: .5rem .75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: .9rem;
  font-family: inherit;
  background: var(--white);
  color: var(--dark-bg);
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}
.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--danger-color);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-section {
  border-top: 1px solid var(--border-color);
  padding-top: .9rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.form-section.hidden { display: none; }
.form-section-title {
  font-size: .7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-error {
  font-size: .78rem;
  color: var(--danger-color);
  margin-top: 2px;
}

/* Star rating picker */
.star-picker {
  display: flex;
  gap: 4px;
  font-size: 1.3rem;
  cursor: pointer;
  user-select: none;
}
.star-picker span { color: #d1d5db; transition: color .1s; }
.star-picker span.filled,
.star-picker span:hover ~ span { color: #f59e0b; }
.star-picker:hover span { color: #f59e0b; }
.star-picker span:hover ~ span { color: #d1d5db; }

/* Intensity picker (training) */
.intensity-picker {
  display: flex;
  gap: .4rem;
}
.intensity-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  background: var(--white);
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  color: #64748b;
  transition: all .15s;
}
.intensity-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}
.intensity-btn:hover:not(.active) { border-color: var(--primary-color); color: var(--primary-color); }

/* --- Ascents list (inside climb edit overlay) --- */
.ascent-row {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .875rem;
  padding: .4rem 0;
  border-bottom: 1px solid #f1f5f9;
}
.ascent-row:last-child { border-bottom: none; }
.ascent-date { color: #64748b; font-size: .8rem; min-width: 80px; }
.ascent-type { flex: 1; }
.ascent-notes { color: #94a3b8; font-size: .82rem; font-style: italic; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ascent-delete { background: none; border: none; cursor: pointer; color: #94a3b8; font-size: .9rem; padding: 2px 4px; border-radius: 4px; }
.ascent-delete:hover { color: var(--danger-color); background: #fee2e2; }

.ascent-add-row {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
  padding-top: .75rem;
  border-top: 1px dashed var(--border-color);
}
.btn-sm {
  flex: none !important;
  padding: 0.35rem 0.85rem !important;
  font-size: .82rem !important;
  border-radius: 6px !important;
}

/* --- Delete confirm dialog --- */
.confirm-content {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 340px;
  width: 100%;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.confirm-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 .4rem;
}
.confirm-content p {
  font-size: .875rem;
  color: #64748b;
  margin: 0 0 1.25rem;
}
.confirm-buttons {
  display: flex;
  justify-content: flex-end;
  gap: .6rem;
}
.btn-danger {
  background: #ef4444;
  color: var(--white);
  border: none;
  padding: .45rem 1rem;
  border-radius: var(--border-radius);
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-danger:hover { background: #dc2626; }

/* --- Training Page --- */
.training-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.training-page-header h3 { margin: 0; font-size: 1.1rem; font-weight: 700; line-height: 1; padding: .3rem 0; }

.period-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
  background: #f1f5f9;
  border-radius: 8px;
  padding: 3px;
  width: fit-content;
}
.period-tabs button {
  background: none;
  border: none;
  padding: .3rem .8rem;
  border-radius: 6px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  transition: all .15s;
}
.period-tabs button.active {
  background: var(--white);
  color: var(--dark-bg);
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.training-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1.25rem;
}

.training-chart {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.training-chart-title {
  font-size: .7rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .75rem;
}
.training-bars {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
  height: 80px;
}
.training-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}
.training-bar {
  width: 100%;
  background: var(--primary-color);
  border-radius: 3px 3px 0 0;
  min-height: 4px;
  transition: height .3s ease;
}
.training-bar-label {
  font-size: .62rem;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-align: center;
}

.training-list { display: flex; flex-direction: column; gap: .5rem; }

.session-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem .75rem;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: box-shadow .15s;
}
.session-row:hover { box-shadow: var(--shadow-sm); }

.type-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.session-info { flex: 1; min-width: 0; }
.session-type { font-size: .9rem; font-weight: 600; color: var(--dark-bg); }
.session-meta { font-size: .78rem; color: #64748b; margin-top: 1px; }

.session-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex-shrink: 0; }

.intensity-dots {
  display: flex;
  gap: 3px;
}
.intensity-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e2e8f0;
}
.intensity-dot.filled { background: var(--primary-color); }

.session-duration {
  font-size: .78rem;
  color: #64748b;
  font-weight: 600;
}

/* ---- Table header row (heading + action button) ---- */
.table-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .75rem;
  width: 100%;
}
.table-header-row h3 { margin: 0; line-height: 1; padding: .3rem 0; }

/* Action button inside header — must not flex-grow */
.btn-action {
  flex: 0 0 auto;
  padding: .4rem .9rem;
  font-size: .82rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--primary-color);
  color: var(--white);
  border: none;
}
.btn-action:hover { background: #2563eb; }

/* Purple variant for "Add Project" */
.btn-project {
  background: #7c3aed;
  border-color: #7c3aed;
}
.btn-project:hover { background: #6d28d9; }

/* Green variant for "Mark as Sent" */
.btn-success {
  flex: 0 0 auto;
  padding: .6rem 1rem;
  font-size: .9rem;
  font-weight: 600;
  border-radius: var(--border-radius);
  cursor: pointer;
  background: #22c55e;
  color: var(--white);
  border: none;
  transition: all var(--transition-base);
}
.btn-success:hover { background: #16a34a; }

/* ---- Style pill buttons (send overlay) ---- */
.style-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.style-tab {
  padding: .3rem .8rem;
  border-radius: 6px;
  border: 1.5px solid var(--border-color);
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  color: #64748b;
  background: var(--white);
  transition: all .15s;
  user-select: none;
}
.style-tab.active-rp { border-color: #22c55e; background: #f0fdf4; color: #16a34a; }
.style-tab.active-os { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; }
.style-tab.active-fl { border-color: #f59e0b; background: #fffbeb; color: #d97706; }
.style-tab.active-pk { border-color: #ec4899; background: #fdf2f8; color: #be185d; }

/* Badge label used in overlays for "Edit only" tags */
.badge-edit-only {
  font-size: .65rem;
  font-weight: 700;
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  text-transform: uppercase;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .75rem 0 .25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.page-btn {
  padding: .3rem .75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--white);
  color: var(--text-primary);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-base);
}
.page-btn:hover:not(:disabled) { background: var(--light-bg); }
.page-btn:disabled { opacity: .4; cursor: default; }
.page-count { color: var(--text-secondary); }

/* ── Login screen ───────────────────────────────────────── */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--bg-main, #0f172a);
}
.login-card {
  background: var(--bg-card, #1e293b);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
}
.login-card h2 {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  color: var(--text-primary, #f1f5f9);
}
.login-card p {
  color: var(--text-secondary, #94a3b8);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.btn-apple-signin {
  background: #fff;
  color: #000;
  border: none;
  border-radius: 8px;
  padding: .75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: opacity .2s;
}
.btn-apple-signin:hover:not(:disabled) { opacity: .85; }
.btn-apple-signin:disabled { opacity: .5; cursor: default; }

/* ============================================================================
   ACCOUNT PAGE
   ============================================================================ */

.account-page {
    max-width: 620px;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.account-page-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xl);
    color: var(--text-primary, #1e293b);
}

.account-section {
    margin-bottom: var(--spacing-xl);
}

.account-section-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: var(--spacing-sm);
}

.account-user-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.account-name {
    font-weight: 600;
    color: var(--text-primary, #1e293b);
}

.account-email {
    font-size: 0.88rem;
    color: #64748b;
}

.account-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.account-card-text {
    flex: 1;
}

.account-card-text strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-primary, #1e293b);
}

.account-card-text p {
    margin: 0;
    font-size: 0.88rem;
    color: #64748b;
}

.account-card-links {
    display: block;
}

.account-legal-link {
    display: block;
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    font-size: 0.95rem;
}

.account-legal-link:hover {
    text-decoration: underline;
}

.account-card-pref {
    align-items: center;
}

.pref-select {
    min-width: 110px;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    background: #fff;
    color: var(--text-primary);
    cursor: pointer;
    flex-shrink: 0;
}

.account-card-danger {
    border-color: #fca5a5;
    background: #fff5f5;
}

.account-card-danger .account-card-text strong {
    color: #dc2626;
}

.btn-danger {
    background: #dc2626;
    color: #fff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-base);
    flex-shrink: 0;
}

.btn-danger:hover {
    background: #b91c1c;
}

/* ==============================
   Stats Page
   ============================== */

.stats-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.stats-page-header h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.stats-section {
  margin-bottom: 1.5rem;
}

.stats-charts-row {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.stats-section--flex {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
}

.stats-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.stats-cards-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.stats-cards-row .stat-card {
  flex: 1 1 120px;
  min-width: 90px;
}

.stats-chart-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
}

.stats-section--flex .stats-chart-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-sizing: border-box;
}

.stats-chart-container {
  position: relative;
  height: 200px;
}

.stats-chart-container--small {
  height: 200px;
}

/* Top grade */
.sp-top-grade-inline {
  font-size: 0.875rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sp-top-grade-label {
  font-weight: 600;
  color: #64748b;
}

.sp-top-grade-value {
  font-weight: 700;
  color: #1e40af;
}

.sp-top-grade-route {
  color: #1e293b;
}

.sp-top-grade-sep {
  color: #94a3b8;
}

.sp-top-grade-empty {
  font-size: 0.875rem;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

/* Heatmap */
.heatmap-months {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.heatmap-month {
  flex-shrink: 0;
}

.heatmap-month-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.heatmap-weekday-labels {
  display: grid;
  grid-template-columns: repeat(7, 12px);
  gap: 2px;
  margin-bottom: 2px;
}

.heatmap-weekday {
  font-size: 0.55rem;
  color: #94a3b8;
  text-align: center;
}

.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 12px);
  gap: 2px;
}

.heatmap-cell {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.heatmap-cell.level-0 { background: #f1f5f9; }
.heatmap-cell.level-1 { background: rgba(37,99,235,0.3); }
.heatmap-cell.level-2 { background: rgba(37,99,235,0.6); }
.heatmap-cell.level-3 { background: rgba(37,99,235,0.9); }
.heatmap-cell.empty   { background: transparent; }

.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  font-size: 0.7rem;
  color: #94a3b8;
}

.heatmap-legend-cells {
  display: flex;
  gap: 2px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .heatmap-cell.level-0 { background: #e2e8f0; }
}

/* Mobile */
@media (max-width: 600px) {
  .stats-chart-container { height: 160px; }
  .stats-chart-container--small { height: 110px; }
}
