/* ==========================================================================
   Reddit Collector — Applesauce Design System
   Dark (#111117) + Warm (#F2F0EB) dual-theme
   DM Serif Display headings / Inter body / Space Mono data
   ========================================================================== */

/* ---------- Theme variables ---------- */

:root {
    --bg: #111117;
    --bg-card: #1a1a22;
    --bg-card-hover: #22222d;
    --text: #e4e4ec;
    --text-muted: #8888a0;
    --accent: #a78bfa;
    --accent-hover: #c4b5fd;
    --green: #6EE7A0;
    --red: #f87171;
    --gold: #fbbf24;
    --border: rgba(255,255,255,0.08);
    --shadow: rgba(0,0,0,0.3);
    --glass-bg: rgba(26,26,34,0.8);
    --glass-border: rgba(255,255,255,0.06);
    --input-bg: rgba(255,255,255,0.05);
    --input-border: rgba(255,255,255,0.12);
    --table-stripe: rgba(255,255,255,0.02);
    --nav-bg: rgba(17,17,23,0.92);
}

[data-theme="warm"] {
    --bg: #F2F0EB;
    --bg-card: #F5F3EE;
    --bg-card-hover: #EBE8E2;
    --text: #2A2118;
    --text-muted: #8B7E6E;
    --accent: #C2654E;
    --accent-hover: #D4785F;
    --green: #2D8F5E;
    --red: #C44B4B;
    --gold: #B8860B;
    --border: rgba(0,0,0,0.08);
    --shadow: rgba(0,0,0,0.08);
    --glass-bg: rgba(245,243,238,0.9);
    --glass-border: rgba(0,0,0,0.06);
    --input-bg: rgba(0,0,0,0.03);
    --input-border: rgba(0,0,0,0.12);
    --table-stripe: rgba(0,0,0,0.02);
    --nav-bg: rgba(242,240,235,0.92);
}


/* ---------- Reset & Base ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ---------- Typography ---------- */

h1, h2, h3 {
    font-family: 'DM Serif Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: 2.2rem; margin-bottom: 0.25rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.15rem; }

.mono, .data {
    font-family: 'Space Mono', 'Courier New', monospace;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}
a:hover {
    color: var(--accent-hover);
}


/* ---------- Layout ---------- */

.main-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 24px 40px;
}

.section {
    margin-top: 40px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}


/* ---------- Nav ---------- */

.nav-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    padding: 0 24px;
    height: 56px;
    gap: 8px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.15rem;
    margin-right: auto;
    text-decoration: none;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 6px 14px;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}
.nav-link:hover {
    color: var(--text);
    background: var(--input-bg);
}
.nav-link.active {
    color: var(--accent);
    background: rgba(167,139,250,0.08);
}
[data-theme="warm"] .nav-link.active {
    background: rgba(194,101,78,0.08);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1.15rem;
    transition: color 0.15s, border-color 0.15s;
    margin-left: 8px;
}
.theme-toggle:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

/* Show moon in dark, sun in warm */
[data-theme="dark"] .theme-icon-warm,
[data-theme="warm"] .theme-icon-dark { display: none; }
[data-theme="dark"] .theme-icon-dark,
[data-theme="warm"] .theme-icon-warm { display: inline; }


/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 24px;
}

.footer-inner {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.footer-brand {
    font-family: 'DM Serif Display', Georgia, serif;
    color: var(--text);
}

.footer-sep {
    margin: 0 8px;
}


/* ---------- Page Header ---------- */

.page-header {
    margin-bottom: 28px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

.page-header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.header-pop {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.header-sub {
    color: var(--accent);
    font-size: 0.85rem;
}

.back-link {
    display: inline-block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    transition: color 0.15s;
}
.back-link:hover {
    color: var(--accent);
}


/* ---------- Crawl Banner ---------- */

.crawl-banner {
    background: rgba(110,231,160,0.08);
    border: 1px solid rgba(110,231,160,0.2);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 24px;
}

.crawl-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.crawl-banner-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.crawl-banner-text {
    font-weight: 600;
    font-size: 0.9rem;
    flex: 1;
}


/* ---------- Glass Card ---------- */

.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    box-shadow: 0 4px 24px var(--shadow);
}

a.glass-card {
    display: block;
    text-decoration: none;
    color: var(--text);
}
a.glass-card:hover {
    transform: translateY(-2px);
}


/* ---------- Stat Cards ---------- */

.stat-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.stat-row-compact {
    margin-bottom: 20px;
}

.stat-card {
    flex: 1;
    min-width: 140px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

.stat-card-sm {
    padding: 14px;
    min-width: 100px;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-card-sm .stat-value {
    font-size: 1.35rem;
}

.stat-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 500;
}

.stat-active {
    color: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-idle {
    color: var(--text-muted);
}


/* ---------- Subreddit Grid ---------- */

.subreddit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

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

@media (max-width: 600px) {
    .subreddit-grid {
        grid-template-columns: 1fr;
    }
}

.subreddit-card {
    padding: 18px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.card-city {
    font-size: 1.1rem;
}

.state-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    font-family: 'Space Mono', monospace;
    letter-spacing: 0.04em;
    background: rgba(167,139,250,0.12);
    color: var(--accent);
}
[data-theme="warm"] .state-badge {
    background: rgba(194,101,78,0.1);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-sub {
    color: var(--accent);
}

.card-pop {
    font-size: 0.75rem;
}

.card-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 12px;
}

.card-stat {
    display: flex;
    flex-direction: column;
}

.card-stat-val {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
}

.card-stat-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

.card-crawled {
    font-size: 0.75rem;
    color: var(--text-muted);
}


/* ---------- Status Dots ---------- */

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.status-has-data  { background: var(--green); }
.status-no-data   { background: var(--text-muted); opacity: 0.5; }
.status-crawling  { background: var(--gold); animation: pulse-dot 1.5s ease-in-out infinite; }

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(1.3); }
}


/* ---------- Status Badges ---------- */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.status-done    { background: rgba(110,231,160,0.12); color: var(--green); }
.status-running { background: rgba(251,191,36,0.12);  color: var(--gold); }
.status-paused  { background: rgba(136,136,160,0.12); color: var(--text-muted); }
.status-pending { background: rgba(136,136,160,0.08); color: var(--text-muted); }
.status-error   { background: rgba(248,113,113,0.12); color: var(--red); }
.status-none    { color: var(--text-muted); }


/* ---------- Tables ---------- */

.table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

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

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.data-table th.num,
.data-table td.num {
    text-align: right;
}

.data-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.data-table tbody tr:nth-child(even) {
    background: var(--table-stripe);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

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

.table-link {
    font-weight: 600;
}

.sub-count-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: var(--input-bg);
    color: var(--text-muted);
    cursor: default;
}


/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    text-decoration: none;
    line-height: 1.3;
    gap: 6px;
}

.btn:active {
    transform: translateY(1px);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 2px 12px rgba(167,139,250,0.25);
}
[data-theme="warm"] .btn-primary:hover {
    box-shadow: 0 2px 12px rgba(194,101,78,0.2);
}

.btn-danger {
    background: var(--red);
    color: #fff;
}
.btn-danger:hover {
    opacity: 0.9;
}

.btn-secondary {
    background: var(--input-bg);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.8rem;
}

.btn.disabled, .btn:disabled {
    opacity: 0.4;
    pointer-events: none;
}


/* ---------- Forms ---------- */

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.form-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.form-feedback {
    font-size: 0.85rem;
    font-weight: 500;
}

.input, .select {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    padding: 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
    color: var(--text);
    transition: border-color 0.15s;
    outline: none;
    width: 100%;
}

.input:focus, .select:focus {
    border-color: var(--accent);
}

.select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238888a0' fill='none' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.input-prefix-wrap {
    display: flex;
    align-items: center;
    gap: 0;
}

.input-prefix {
    padding: 8px 0 8px 12px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.4;
}

.input-prefix-wrap .input {
    border-radius: 0 8px 8px 0;
    width: 100px;
}


/* ---------- Checkboxes ---------- */

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 4px 12px;
    max-height: 240px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
}

.checkbox-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--input-bg);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.1s;
    font-size: 0.82rem;
}
.checkbox-item:hover {
    background: var(--bg-card-hover);
}

.checkbox-item input[type="checkbox"] {
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-label {
    white-space: nowrap;
}


/* ---------- Toggle Group ---------- */

.toggle-group {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.toggle-option {
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    color: var(--text-muted);
    border-right: 1px solid var(--border);
}
.toggle-option:last-child {
    border-right: none;
}
.toggle-option:hover {
    background: var(--input-bg);
}
.toggle-option.active {
    background: var(--accent);
    color: #fff;
}

.toggle-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}


/* ---------- Filter Bar ---------- */

.filter-bar {
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 120px;
}

.filter-group .select,
.filter-group .input {
    width: auto;
    min-width: 140px;
}

.filter-group-grow {
    flex: 1;
    min-width: 180px;
}
.filter-group-grow .input {
    width: 100%;
}

.filter-group-btn {
    padding-bottom: 0;
}


/* ---------- Results ---------- */

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

.result-card {
    padding: 16px 20px;
}

.result-card:hover {
    transform: none;
}

.result-header {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.result-title {
    font-size: 1.05rem;
    flex: 1;
    line-height: 1.35;
}

.flair-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(167,139,250,0.12);
    color: var(--accent);
    white-space: nowrap;
    flex-shrink: 0;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.result-author {
    color: var(--accent);
    font-weight: 500;
}

.result-score {
    font-weight: 600;
}

.result-comments-badge {
    padding: 1px 8px;
    border-radius: 4px;
    background: var(--input-bg);
    font-size: 0.75rem;
}

.result-body {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text);
    opacity: 0.85;
    word-break: break-word;
}

.result-link {
    margin-top: 8px;
    font-size: 0.78rem;
}
.result-link a {
    color: var(--text-muted);
    word-break: break-all;
}
.result-link a:hover {
    color: var(--accent);
}

.result-parent {
    font-size: 0.72rem;
    opacity: 0.7;
}


/* ---------- Pagination ---------- */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding: 20px 0;
}

.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
}


/* ---------- Progress Bar ---------- */

.progress-section {
    margin-bottom: 20px;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

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

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

.sub-progress-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-progress-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
}

.sub-progress-name {
    min-width: 120px;
    font-weight: 500;
    white-space: nowrap;
}

.sub-progress-bar-wrap {
    flex: 1;
    height: 6px;
    background: var(--input-bg);
    border-radius: 3px;
    overflow: hidden;
}

.sub-progress-fill {
    height: 100%;
    background: var(--green);
    border-radius: 3px;
    transition: width 0.5s ease;
}

.sub-progress-count {
    min-width: 80px;
    text-align: right;
    font-size: 0.78rem;
    color: var(--text-muted);
}


/* ---------- Crawl Form ---------- */

.crawl-form-card {
    padding: 24px;
}


/* ---------- Cost Calculator ---------- */

.cost-calc-card {
    padding: 24px;
}

.calc-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    font-style: italic;
}

.calc-row {
    display: flex;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
}

.calc-input-group {
    min-width: 160px;
}

.calc-result {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.calc-bandwidth,
.calc-cost-display {
    text-align: center;
}

.calc-cost-display .stat-value {
    font-size: 1.5rem;
    color: var(--green);
}


/* ---------- Empty State ---------- */

.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.empty-state .btn {
    margin-top: 16px;
}


/* ---------- Responsive ---------- */

@media (max-width: 768px) {
    .nav-inner {
        padding: 0 12px;
    }

    .nav-links {
        gap: 0;
    }

    .nav-link {
        padding: 6px 8px;
        font-size: 0.78rem;
    }

    .brand-text {
        display: none;
    }

    .main-content {
        padding: 68px 12px 32px;
    }

    h1 { font-size: 1.65rem; }
    h2 { font-size: 1.25rem; }

    .stat-row {
        gap: 8px;
    }

    .stat-card {
        min-width: 100px;
        padding: 14px;
    }

    .stat-value {
        font-size: 1.35rem;
    }

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

    .filter-group {
        min-width: 0;
    }

    .filter-group .select,
    .filter-group .input {
        width: 100%;
    }

    .data-table {
        font-size: 0.78rem;
    }

    .data-table th,
    .data-table td {
        padding: 8px 10px;
    }

    .calc-row {
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .stat-row {
        flex-direction: column;
    }

    .stat-card {
        min-width: 0;
    }

    .page-header-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}


/* ---------- Scrollbar (dark) ---------- */

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}


/* ---------- Selection ---------- */

::selection {
    background: rgba(167,139,250,0.25);
    color: var(--text);
}

[data-theme="warm"] ::selection {
    background: rgba(194,101,78,0.2);
}
