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

:root {
    --bg-primary: #121212;
    --bg-secondary: #1e1e2e;
    --bg-tertiary: #2d2d44;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-purple: #8a2be2;
    --accent-blue: #4169e1;
    --accent-pink: #ff6ec7;
    --success: #4ecdc4;
    --warning: #ffe66d;
    --danger: #ff6b6b;
    --border: #3d3d5c;
    --card-radius: 16px;
    --transition: 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Tahoma', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

.app-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--bg-secondary);
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.sidebar-header h1 {
    font-size: 24px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-nav {
    flex: 1;
    padding: 16px;
}

.nav-btn {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
    direction: rtl;
}

.nav-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--accent-purple);
}

.nav-btn.active {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border-color: transparent;
    color: white;
    font-weight: 600;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.clear-btn {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: 1px solid var(--danger);
    border-radius: 12px;
    color: var(--danger);
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: rtl;
}

.clear-btn:hover:not(:disabled) {
    background: var(--danger);
    color: white;
}

.clear-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

.hidden {
    display: none !important;
}

/* Upload Section */
.upload-section {
    max-width: 600px;
    margin: 60px auto;
    text-align: center;
}

.upload-area {
    background: var(--bg-secondary);
    border: 2px dashed var(--border);
    border-radius: var(--card-radius);
    padding: 60px 40px;
    transition: var(--transition);
    cursor: pointer;
}

.upload-area.dragover {
    border-color: var(--accent-purple);
    background: var(--bg-tertiary);
    transform: scale(1.02);
}

.upload-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.upload-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.upload-desc {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.upload-hint {
    color: var(--accent-blue);
    cursor: pointer;
}

.upload-note {
    font-size: 13px;
    color: var(--text-secondary);
    opacity: 0.7;
    margin-top: 24px;
}

.upload-progress {
    margin-top: 32px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin-top: 12px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Section Header */
.section-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-header-text {
    flex: 1;
    min-width: 200px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.15);
}

.stat-card h3 {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-weight: 500;
}

.stat-value {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.stat-value.primary {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-value.highlight {
    background: linear-gradient(135deg, var(--success), #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Chart Section */
.chart-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
    margin-bottom: 24px;
}

.chart-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

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

/* Ratio Section */
.ratio-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
}

.ratio-section h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ratio-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.ratio-item {
    flex: 1;
    min-width: 200px;
}

.ratio-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.ratio-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Controls */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}

.search-box {
    flex: 1;
    min-width: 280px;
}

.search-box input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: var(--transition);
}

.search-box input:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(138, 43, 226, 0.1);
}

.sort-box, .action-box, .bulk-actions, .export-actions {
    display: flex;
    gap: 8px;
}

.sort-box select {
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.sort-box select:focus {
    border-color: var(--accent-purple);
}

/* Buttons */
.btn {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    border: none;
    border-radius: 12px;
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 600;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(138, 43, 226, 0.3);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--border);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover:not(:disabled) {
    background: #ff5252;
}

/* Count badge */
.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 40px;
    padding: 0 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: #fff;
    font-size: 18px;
    font-weight: 700;
}

/* Avatar toggle (opt-in: off by default => zero network requests) */
.avatar-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 12px 16px;
    margin-bottom: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 13px;
    cursor: pointer;
}

.avatar-toggle input {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

.avatar-toggle span {
    font-weight: 600;
}

.avatar-toggle small {
    flex-basis: 100%;
    color: var(--text-secondary);
    font-size: 12px;
    line-height: 1.7;
}

/* List status line */
.list-status {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 13px;
}

/* Profile card grid */
.cards-grid {
    display: grid;
    /* min() keeps the track from overflowing viewports narrower than 220px. */
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
    gap: 16px;
}

.profile-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.profile-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-purple);
    box-shadow: 0 8px 24px rgba(138, 43, 226, 0.18);
}

.profile-card.is-selected {
    border-color: var(--accent-blue);
    background: var(--bg-tertiary);
}

.card-select {
    align-self: flex-start;
}

.card-select input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent-purple);
    cursor: pointer;
}

/* Avatar with letter placeholder fallback */
.card-avatar {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: hsl(var(--h, 260) 55% 32%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    direction: ltr;
}

.card-avatar.has-img {
    background: var(--bg-tertiary);
}

.card-avatar.has-img::before {
    content: none;
}

.card-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-username {
    font-weight: 700;
    font-size: 14px;
    word-break: break-all;
    text-align: center;
    direction: ltr;
    unicode-bidi: isolate;
    color: var(--text-primary);
}

.card-link,
.card-copy {
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    direction: ltr;
}

.card-link:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    color: #fff;
}

.card-copy:hover {
    background: var(--accent-purple);
    border-color: var(--accent-purple);
    color: #fff;
}

.card-empty {
    grid-column: 1 / -1;
    padding: 48px 16px;
    text-align: center;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px dashed var(--border);
    border-radius: var(--card-radius);
}

.load-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.load-more-wrap .btn {
    min-width: 200px;
    justify-content: center;
}

/* Table */
.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    border-radius: var(--card-radius);
    overflow: hidden;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: var(--bg-tertiary);
}

.data-table td.username-cell {
    font-weight: 600;
}

.username-cell a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: var(--transition);
}

.username-cell a:hover {
    color: var(--accent-purple);
}

.status-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-following {
    background: rgba(78, 205, 196, 0.2);
    color: var(--success);
}

.status-no-follow {
    background: rgba(255, 107, 107, 0.2);
    color: var(--danger);
}

.empty-state {
    padding: 48px !important;
    text-align: center;
    color: var(--text-secondary);
}

/* Stats Detail Grid */
.stats-detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.detail-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
}

.detail-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--accent-purple);
}

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

.detail-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.big-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
}

/* Ratio Details */
.ratio-details {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 24px;
}

.ratio-details h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.ratio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ratio-item-full {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: 12px;
    gap: 16px;
}

.ratio-label {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
}

.ratio-value {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
}

.ratio-sub {
    font-size: 13px;
    color: var(--text-secondary);
}

/* Toast Container */
.toast-container {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    direction: rtl;
    min-width: 320px;
}

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

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

.toast.warning {
    border-color: var(--warning);
}

.toast.info {
    border-color: var(--accent-blue);
}

.toast-icon {
    font-size: 20px;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.toast-message {
    font-size: 13px;
    color: var(--text-secondary);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--card-radius);
    padding: 32px;
    max-width: 450px;
    width: 90%;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

/* ==========================================================================
   Mobile navigation drawer
   Desktop (< 1024px) keeps the original sidebar. Below 1024px the sidebar
   becomes an off-canvas drawer driven by the hamburger in .mobile-bar.
   ========================================================================== */

.mobile-bar,
.nav-close,
.nav-backdrop {
    display: none;
}

/* Prevent flex children from forcing horizontal overflow. */
.app-container,
.main-content,
.sidebar {
    min-width: 0;
}

/* Flex rows of controls must be able to wrap on narrow screens. */
.sort-box,
.action-box,
.bulk-actions,
.export-actions {
    flex-wrap: wrap;
}

/* Visible focus ring everywhere (accessibility). */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--accent-purple);
    outline-offset: 2px;
    border-radius: 8px;
}

/* --- Desktop: sidebar is static, drawer chrome is hidden --- */
@media (min-width: 1024px) {
    .sidebar {
        position: static;
        width: 280px;
        height: auto;
        transform: none;
        visibility: visible;
    }

    .nav-btn span {
        display: inline;
    }
}

@media (max-width: 1023.98px) {
    /* --- Top bar with hamburger --- */
    .mobile-bar {
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 800;
        padding: 10px max(12px, env(safe-area-inset-left)) 10px max(12px, env(safe-area-inset-right));
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
    }

    .mobile-bar-title {
        font-size: 17px;
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 44x44 touch target */
    .nav-toggle {
        flex: 0 0 auto;
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        background: var(--bg-tertiary);
        border: 1px solid var(--border);
        border-radius: 12px;
        cursor: pointer;
    }

    .nav-toggle-bars {
        display: block;
        width: 20px;
    }

    .nav-toggle-bars i {
        display: block;
        height: 2px;
        margin: 3px 0;
        border-radius: 2px;
        background: var(--text-primary);
    }

    .nav-toggle[aria-expanded="true"] {
        border-color: var(--accent-purple);
        background: var(--bg-secondary);
    }

    /* --- Stack main content under the bar --- */
    .app-container {
        flex-direction: column;
    }

    /* --- Off-canvas drawer --- */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        z-index: 900;
        width: min(82vw, 320px);
        flex-direction: column;
        padding: 0;
        border-inline-end: 1px solid var(--border);
        overflow-y: auto;
        overscroll-behavior: contain;
        /* Flip the off-canvas offset per direction: +x is always to the right,
           and the drawer sits on the inline-start edge (right in RTL). */
        --drawer-hidden: -100%;
        transform: translateX(var(--drawer-hidden));
        visibility: hidden;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.45);
    }

    [dir="rtl"] .sidebar {
        --drawer-hidden: 100%;
    }

    .sidebar.is-open {
        transform: translateX(0);
        visibility: visible;
    }

    /* --- Header + close button --- */
    .sidebar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex: 0 0 auto;
        padding: 12px 16px;
        padding-top: max(12px, env(safe-area-inset-top));
        border-bottom: 1px solid var(--border);
    }

    .sidebar-header h1 {
        font-size: 18px;
    }

    .nav-close {
        display: grid;
        place-items: center;
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 12px;
        color: var(--text-primary);
        font-size: 26px;
        line-height: 1;
        cursor: pointer;
    }

    /* --- Menu items: full labels, stacked, 44px tall --- */
    .sidebar-nav {
        display: flex;
        flex: 0 1 auto;
        flex-direction: column;
        gap: 8px;
        padding: 16px;
        /* .sidebar itself scrolls; avoid a second nested scrollbar here */
        overflow: visible;
    }

    .nav-btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        margin-bottom: 0;
        padding: 12px 16px;
        justify-content: flex-start;
        text-align: start;
    }

    /* Undo the desktop rule that hides labels */
    .nav-btn span {
        display: block;
        white-space: normal;
    }

    /* --- Footer stays reachable on mobile --- */
    .sidebar-footer {
        display: block;
        flex: 0 0 auto;
        margin-top: auto;
        padding: 16px;
        padding-bottom: max(16px, env(safe-area-inset-bottom));
        border-top: 1px solid var(--border);
    }

    .clear-btn {
        min-height: 44px;
    }

    /* --- Backdrop --- */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 850;
        background: rgba(0, 0, 0, 0.6);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .nav-backdrop.is-open {
        opacity: 1;
        visibility: visible;
    }

    /* --- Comfortable touch targets --- */
    .btn,
    .card-link,
    .card-copy {
        min-height: 44px;
    }

    .main-content {
        padding: 16px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box,
    .sort-box,
    .action-box,
    .bulk-actions,
    .export-actions {
        width: 100%;
    }

    .ratio-stats {
        flex-direction: column;
        gap: 16px;
    }

    .data-table {
        min-width: 500px;
    }
}

@media (max-width: 480px) {
    .upload-area {
        padding: 40px 20px;
    }

    .upload-icon {
        font-size: 48px;
    }

    .upload-title {
        font-size: 20px;
    }

    .upload-desc {
        font-size: 14px;
    }

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

    .big-number {
        font-size: 36px;
    }

    .modal-content {
        padding: 24px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: auto;
    }
}

/* Lock background scrolling while the drawer is open. */
body.nav-open {
    overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
    .sidebar,
    .nav-backdrop {
        transition: none;
    }
}