/* ============================================================
   🚪 RFID Door Access Control - Admin UI
   Theme: White / Red / Green — Clean & Modern
   Fonts: Prompt (Thai), Inter (English), JetBrains Mono (Code)
   ============================================================ */

/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Core Colors */
    --white: #ffffff;
    --bg: #f5f6fa;
    --bg-card: #ffffff;
    --bg-hover: #f0f2f5;
    --bg-input: #f7f8fc;

    /* Brand Colors */
    --red: #e53e3e;
    --red-light: #fff5f5;
    --red-border: #feb2b2;
    --red-dark: #c53030;

    --green: #38a169;
    --green-light: #f0fff4;
    --green-border: #9ae6b4;
    --green-dark: #276749;

    /* Accent */
    --blue: #3182ce;
    --blue-light: #ebf8ff;
    --orange: #dd6b20;
    --orange-light: #fffaf0;
    --purple: #805ad5;
    --purple-light: #faf5ff;

    /* Text */
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #a0aec0;
    --text-light: #718096;

    /* Borders */
    --border: #e2e8f0;
    --border-light: #edf2f7;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 2px 4px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.06), 0 4px 10px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.08);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ===== APP CONTAINER ===== */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* ===== HEADER ===== */
.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.25);
    position: relative;
    overflow: hidden;
}

.app-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}

.app-header::after {
    content: '';
    position: absolute;
    bottom: -60%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 1;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.header-title {
    font-family: 'Inter', 'Prompt', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    letter-spacing: -0.5px;
}

.header-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
}

.header-right { z-index: 1; }

.server-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 500;
    color: white;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #68d391;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(104, 211, 145, 0.7); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(104, 211, 145, 0); }
}

/* ===== NAVIGATION TABS ===== */
.nav-tabs {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
    border: 1px solid var(--border-light);
}

.nav-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: transparent;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Prompt', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s var(--ease);
    position: relative;
}

.nav-tab:hover {
    color: var(--text);
    background: var(--bg-hover);
}

.nav-tab.active {
    background: var(--red);
    color: white;
    box-shadow: 0 2px 10px rgba(229, 62, 62, 0.3);
}

.tab-icon { font-size: 1.05rem; }

.tab-badge {
    background: rgba(255,255,255,0.25);
    color: inherit;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
}

.nav-tab.active .tab-badge {
    background: rgba(255,255,255,0.3);
}

/* ===== TAB CONTENT ===== */
.tab-content { display: none; animation: fadeSlideIn 0.35s ease; }
.tab-content.active { display: block; }

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

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 4px 4px 0 0;
}

.stat-card.cyan::before { background: var(--blue); }
.stat-card.green::before { background: var(--green); }
.stat-card.orange::before { background: var(--orange); }
.stat-card.purple::before { background: var(--purple); }

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

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

.stat-icon { font-size: 1.2rem; }

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-value {
    font-family: 'Inter', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1px;
}

/* ===== CARDS ===== */
.card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.card-title-icon { font-size: 1.1rem; }

.two-columns {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 20px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--red);
    color: white;
    box-shadow: 0 2px 8px rgba(229, 62, 62, 0.3);
}
.btn-primary:hover {
    background: var(--red-dark);
    box-shadow: 0 4px 12px rgba(229, 62, 62, 0.4);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--green);
    color: white;
    box-shadow: 0 2px 8px rgba(56, 161, 105, 0.3);
}
.btn-success:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--red);
    color: white;
}
.btn-danger:hover { background: var(--red-dark); }

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

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

/* ===== FORMS ===== */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group { margin-bottom: 8px; }
.form-group.full-width { grid-column: 1 / -1; }

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input, .form-select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s var(--ease);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    background: white;
}

/* ===== SEARCH BAR ===== */
.filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    background: var(--bg-input);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Prompt', sans-serif;
    font-size: 0.85rem;
    color: var(--text);
    transition: all 0.2s var(--ease);
}

.search-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
    background: white;
}

/* ===== EMPLOYEE GRID ===== */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.employee-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 20px;
    border: 1px solid var(--border-light);
    transition: all 0.3s var(--ease);
    position: relative;
    display: flex;
    flex-direction: column;
}

.employee-card:hover {
    border-color: var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.employee-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

/* Avatar (ใช้ใน employee card + log table + live feed) */
.employee-avatar,
.log-avatar {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg);
    border: 3px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}

.employee-avatar img,
.log-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.log-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    font-size: 0.75rem;
    border-width: 2px;
}

.employee-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--border-light);
    flex-shrink: 0;
    background: var(--bg);
}

.employee-info {
    flex: 1;
    min-width: 0;
}

.employee-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.employee-position {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.employee-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 600;
    margin-top: 4px;
}

.role-boss,
.badge-boss {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
}

.role-employee,
.badge-employee {
    background: var(--red-light);
    color: var(--red-dark);
    border: 1px solid var(--red-border);
}

.employee-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

.employee-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.employee-detail-icon { font-size: 0.85rem; }

.rfid-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-input);
    color: var(--red);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.employee-actions {
    display: flex;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}

/* ===== LIVE FEED ===== */
.live-feed {
    max-height: 380px;
    overflow-y: auto;
    padding-right: 4px;
}

.live-feed::-webkit-scrollbar { width: 4px; }
.live-feed::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

.live-feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    background: var(--green-light);
    border: 1px solid var(--green-border);
    transition: all 0.2s var(--ease);
}

.live-feed-item:hover {
    box-shadow: var(--shadow-sm);
}

.live-feed-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Live feed re-uses .log-avatar from above */
.live-feed-item .log-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-color: var(--green-border);
}

.live-feed-photo {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--green-border);
    flex-shrink: 0;
}

.live-feed-content,
.live-feed-info {
    flex: 1;
    min-width: 0;
}

.live-feed-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-feed-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.live-feed-time {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--green-dark);
    white-space: nowrap;
}

/* ===== LOG TABLE ===== */
.log-table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
}

.log-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

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

.log-table th {
    padding: 12px 16px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 2px solid var(--border);
}

.log-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text);
    vertical-align: middle;
}

.log-table tbody tr {
    transition: background 0.15s var(--ease);
}

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

/* Log table employee cell */
.log-employee,
.log-employee-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.log-name {
    font-weight: 500;
}

.log-rfid {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    font-weight: 500;
    background: var(--bg-input);
    color: var(--red);
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.log-action {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--green-dark);
}

.log-time {
    font-size: 0.78rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.log-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.log-status {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
}

.log-status-success {
    background: var(--green-light);
    color: var(--green-dark);
    border: 1px solid var(--green-border);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.empty-state-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s var(--ease);
}

.modal-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: white;
    border-radius: var(--radius-xl);
    padding: 32px;
    width: 90%;
    max-width: 550px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
    transform: translateY(20px) scale(0.97);
    transition: all 0.3s var(--ease);
}

.modal-overlay.show .modal {
    transform: translateY(0) scale(1);
}

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

.modal-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.modal-close {
    width: 36px;
    height: 36px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.2s var(--ease);
}

.modal-close:hover {
    background: var(--red-light);
    border-color: var(--red-border);
    color: var(--red);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ===== PHOTO UPLOAD ===== */
.photo-upload {
    display: flex;
    align-items: center;
    gap: 16px;
}

.photo-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px dashed var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    overflow: hidden;
    flex-shrink: 0;
}

.photo-preview:hover {
    border-color: var(--red);
    background: var(--red-light);
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-upload-info {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
}

/* ===== NOTIFICATION POPUP ===== */
.notification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s var(--ease);
}

.notification-overlay.show {
    opacity: 1;
    pointer-events: all;
}

.notification-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.8);
    transition: all 0.4s var(--ease);
    border-top: 5px solid var(--green);
    min-width: 320px;
}

.notification-overlay.show .notification-card {
    transform: scale(1);
}

.notification-icon {
    font-size: 3rem;
    margin-bottom: 12px;
}

.notification-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--green-dark);
    margin-bottom: 20px;
}

.notification-employee-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 12px;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--green-border);
    background: var(--green-light);
}

.notification-employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notification-employee-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
}

.notification-employee-position {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.notification-time {
    font-size: 0.8rem;
    color: var(--green);
    font-weight: 500;
}

/* ===== TOAST ===== */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: white;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--green);
    animation: slideInRight 0.35s var(--ease);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 280px;
}

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

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
        padding: 20px;
    }

    .header-left { justify-content: center; }

    .nav-tabs { flex-direction: column; }

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

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

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

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

    .filter-bar { flex-direction: column; }

    .modal { padding: 20px; width: 95%; }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .employee-card-header { flex-direction: column; text-align: center; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
