/* ============================================
   管理后台样式 v2.0 - 现代风格
   ============================================ */

:root {
    --primary: #6366F1;
    --primary-light: #E0E7FF;
    --primary-dark: #4F46E5;
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --danger: #EF4444;
    --danger-light: #FEE2E2;
    --info: #06B6D4;
    --pink: #EC4899;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;

    /* 统一主题变量（修复深色回退值看不清） */
    --text: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --border: #e2e8f0;
    --border-color: #e2e8f0;
    --sidebar-w: 240px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--gray-800);
    background: var(--gray-50);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; transition: all 0.15s; }
a:hover { color: var(--primary-dark); }

/* ========== Layout ========== */
.admin-layout { display: flex; min-height: 100vh; }

/* ========== Sidebar ========== */
.sidebar {
    width: var(--sidebar-w);
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    padding: 0;
}
.sidebar-inner {
    width: 100%; height: 100%;
    background: var(--gray-900);
    color: white;
    display: flex;
    flex-direction: column;
}
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    z-index: 99;
}
.sidebar-logo {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-logo-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.sidebar-nav {
    flex: 1; padding: 12px 12px; overflow-y: auto;
}
.sidebar-nav a {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 16px;
    color: rgba(255,255,255,0.55);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
    transition: all 0.15s;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.sidebar-nav a.active {
    background: linear-gradient(90deg, rgba(99,102,241,0.2), rgba(99,102,241,0.05));
    color: white;
    border-left: 3px solid var(--primary);
    margin-left: -3px;
    padding-left: 19px;
}
.sidebar-nav a .nav-icon { font-size: 18px; width: 20px; text-align: center; }
.nav-group-title {
    padding: 16px 16px 8px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 8px;
}
.nav-group-title:first-child { border-top: none; margin-top: 0; }
.nav-item-sub {
    padding-left: 24px !important;
    font-size: 13px !important;
    color: rgba(255,255,255,0.5) !important;
}
.nav-item-sub:hover { color: rgba(255,255,255,0.85) !important; }
.nav-item-sub.active { padding-left: 27px !important; }

/* Mobile header (hidden on desktop) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 56px;
    background: var(--gray-900);
    color: white;
    z-index: 110;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    pointer-events: auto;
}
.mobile-menu-toggle {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-sm);
    pointer-events: auto;
}
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.08); }
.mobile-title { font-weight: 600; font-size: 16px; }
.mobile-home { color: white; font-size: 20px; padding: 8px; pointer-events: auto; }

/* ========== Main content ========== */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 28px 32px;
    min-height: 100vh;
}

/* ========== Page header ========== */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}
.page-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--gray-900);
    letter-spacing: -0.3px;
}
.page-subtitle {
    font-size: 14px;
    color: var(--gray-400);
    margin-top: 2px;
}

/* ========== Dashboard cards ========== */
.dash-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.dash-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}
.dash-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.dash-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.dash-card .dash-value {
    font-size: 36px; font-weight: 700;
    margin-bottom: 4px; letter-spacing: -1px;
}
.dash-card .dash-label {
    font-size: 13px; color: var(--gray-400); font-weight: 500;
}
.dash-card:nth-child(1)::before { background: linear-gradient(90deg, var(--primary), var(--pink)); }
.dash-card:nth-child(1) .dash-value { color: var(--primary); }
.dash-card:nth-child(2)::before { background: linear-gradient(90deg, var(--success), #34D399); }
.dash-card:nth-child(2) .dash-value { color: var(--success); }
.dash-card:nth-child(3)::before { background: linear-gradient(90deg, var(--warning), #FBBF24); }
.dash-card:nth-child(3) .dash-value { color: var(--warning); }
.dash-card:nth-child(4)::before { background: linear-gradient(90deg, var(--info), #22D3EE); }
.dash-card:nth-child(4) .dash-value { color: var(--info); }
.dash-card:nth-child(5)::before { background: linear-gradient(90deg, var(--orange), #FB923C); }
.dash-card:nth-child(5) .dash-value { color: var(--orange); }
.dash-card:nth-child(6)::before { background: linear-gradient(90deg, var(--pink), #F472B6); }
.dash-card:nth-child(6) .dash-value { color: var(--pink); }

/* ========== Table ========== */
.table-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.data-table {
    width: 100%; border-collapse: collapse;
}
.data-table th {
    background: var(--gray-50);
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}
.data-table td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 14px;
    color: var(--gray-700);
    vertical-align: middle;
}
.data-table tr { transition: background 0.15s; }
.data-table tbody tr:hover { background: var(--gray-50); }
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--gray-900); font-weight: 600; }
.data-table .btn-sm { padding: 5px 12px; font-size: 12px; }

/* ========== Tags ========== */
.tag {
    display: inline-flex; align-items: center;
    padding: 4px 12px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.tag-success { background: var(--success-light); color: #065F46; }
.tag-warning { background: var(--warning-light); color: #92400E; }
.tag-info { background: var(--primary-light); color: #3730A3; }
.tag-gray { background: var(--gray-100); color: var(--gray-500); }
.tag-danger { background: var(--danger-light); color: #991B1B; }

/* ========== Buttons ========== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; border: none;
    cursor: pointer; transition: all 0.15s; gap: 6px;
    text-decoration: none;
    white-space: nowrap;
}
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; box-shadow: 0 2px 8px rgba(99,102,241,0.3);
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-dark), #4338CA);
    color: white; text-decoration: none;
    box-shadow: 0 6px 20px rgba(99,102,241,0.4);
    transform: translateY(-1px);
}
.btn-success { background: linear-gradient(135deg, var(--success), #059669); color: white; box-shadow: 0 2px 8px rgba(16,185,129,0.25); }
.btn-success:hover:not(:disabled) { background: linear-gradient(135deg, #059669, #047857); color: white; text-decoration: none; box-shadow: 0 6px 20px rgba(16,185,129,0.35); transform: translateY(-1px); }
.btn-warning { background: linear-gradient(135deg, var(--warning), #D97706); color: white; box-shadow: 0 2px 8px rgba(245,158,11,0.25); }
.btn-warning:hover:not(:disabled) { background: linear-gradient(135deg, #D97706, #B45309); color: white; text-decoration: none; box-shadow: 0 6px 20px rgba(245,158,11,0.35); transform: translateY(-1px); }
.btn-outline {
    background: white; color: var(--gray-700);
    border: 1.5px solid var(--gray-300);
}
.btn-outline:hover:not(:disabled) { background: var(--gray-50); border-color: var(--gray-400); text-decoration: none; transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, var(--danger), #DC2626); color: white; box-shadow: 0 2px 8px rgba(239,68,68,0.25); }
.btn-danger:hover:not(:disabled) { background: linear-gradient(135deg, #DC2626, #B91C1C); color: white; text-decoration: none; box-shadow: 0 6px 20px rgba(239,68,68,0.35); transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 13px; }

/* ========== Forms ========== */
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 8px; }
.required-mark { color: var(--danger); margin-left: 2px; }
.form-hint {
    display: block;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 6px;
    line-height: 1.4;
}
.form-input, .form-textarea, .form-select, .form-control {
    width: 100%; padding: 10px 14px;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 14px; color: var(--gray-900);
    background: white; transition: all 0.15s;
    font-family: inherit;
    box-sizing: border-box;
}
.form-input:focus, .form-textarea:focus, .form-select:focus, .form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.1);
}
.form-textarea { min-height: 80px; resize: vertical; }

/* 自定义下拉箭头 */
select.form-control, select.form-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}
select.form-control:invalid, select.form-select:invalid { color: var(--gray-400); }
select.form-control option, select.form-select option { color: var(--gray-800); }

/* 上传区域增强 */
.file-upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    background: var(--gray-50);
    transition: all 0.2s;
    color: var(--gray-500);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.file-upload-area:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: #EFF6FF;
}
.file-upload-area.drag-over {
    border-color: var(--primary);
    background: #E0E7FF;
    transform: scale(1.01);
}
.file-upload-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 80px;
}
.file-upload-preview img {
    max-width: 100%;
    max-height: 160px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}
.file-upload-icon { font-size: 28px; margin-bottom: 2px; display: block; }

/* 编辑封面预览 */
.edit-cover-preview {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.edit-cover-preview img {
    max-width: 200px;
    max-height: 120px;
    border-radius: 8px;
    border: 1px solid var(--gray-200);
    object-fit: cover;
}
.edit-cover-preview .no-cover-text {
    color: var(--gray-400);
    font-size: 13px;
}

/* ========== Modal v2 ========== */
.modal-overlay, .modal {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none; align-items: center; justify-content: center;
    z-index: 200;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    animation: modalFadeIn 0.2s ease;
}
.modal-overlay.show, .modal.show { display: flex; }
@keyframes modalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-backdrop {
    position: absolute; inset: 0; z-index: 0;
}
.modal-content {
    position: relative; z-index: 1;
    background: white; border-radius: var(--radius-xl);
    width: 92%; max-width: 520px; max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,0.18);
    animation: modalSlideUp 0.25s ease;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-content > form { padding: 24px; }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--gray-100);
    position: sticky; top: 0; background: white; z-index: 2;
}
.modal-header h3 { font-size: 17px; font-weight: 700; color: var(--gray-900); }
.modal-close {
    background: var(--gray-100); border: none;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; cursor: pointer; color: var(--gray-500);
    transition: all 0.15s;
}
.modal-close:hover { background: var(--gray-200); color: var(--gray-800); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; justify-content: flex-end; gap: 10px; }

/* ========== Upload area ========== */
.upload-area {
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-lg);
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--gray-400);
    background: var(--gray-50);
}
.upload-area:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.upload-area .upload-icon { font-size: 40px; margin-bottom: 8px; display: block; }
.upload-area p { font-size: 14px; font-weight: 500; }

/* ========== Toast ========== */
.toast {
    position: fixed; top: 24px; right: 24px;
    padding: 12px 24px; border-radius: var(--radius-md);
    font-size: 14px; font-weight: 500; z-index: 1000;
    display: none; box-shadow: var(--shadow-lg);
    backdrop-filter: blur(12px);
}
.toast.show { display: block; animation: slideIn 0.3s; }
.toast-success { background: rgba(16,185,129,0.95); color: white; }
.toast-error { background: rgba(239,68,68,0.95); color: white; }

@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ========== Track badge ========== */
.track-badge {
    display: inline-flex; align-items: center;
    padding: 3px 10px; border-radius: 20px;
    font-size: 12px; font-weight: 600;
}
.track-badge.weight_loss { background: var(--success-light); color: #065F46; }
.track-badge.ai_agent { background: var(--primary-light); color: #3730A3; }

/* ========== Login ========== */
.admin-login-wrapper {
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
    position: relative; overflow: hidden;
}
.admin-login-wrapper::before {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.2), transparent 70%);
    border-radius: 50%;
}
.admin-login-wrapper::after {
    content: ''; position: absolute; bottom: -20%; left: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,0.15), transparent 70%);
    border-radius: 50%;
}
.admin-login-box {
    position: relative; z-index: 1;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%; max-width: 400px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
}
.admin-login-box .login-brand-icon {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--pink));
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 20px; color: white;
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}
.admin-login-box h1 { font-size: 22px; text-align: center; margin-bottom: 24px; color: white; font-weight: 700; }
.admin-login-box .form-input {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.1);
    color: white;
}
.admin-login-box .form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.2);
}
.admin-login-box .form-input::placeholder { color: rgba(255,255,255,0.3); }
.admin-login-box .form-label { color: rgba(255,255,255,0.7); }
.admin-login-box .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--pink));
    box-shadow: 0 4px 16px rgba(99,102,241,0.4);
    border-radius: var(--radius-md); font-size: 15px; padding: 12px;
    width: 100%;
}
.admin-login-box .btn-primary:hover {
    box-shadow: 0 6px 24px rgba(99,102,241,0.5);
    transform: translateY(-1px);
}

/* ========== Pagination ========== */
.pagination { display: flex; gap: 4px; margin-top: 16px; justify-content: center; }
.pag-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 32px; height: 32px; padding: 0 8px;
    border-radius: 6px; font-size: 13px; cursor: pointer;
    border: 1px solid var(--gray-200); background: white; color: var(--gray-600);
    transition: all 0.15s; font-weight: 500;
}
.pag-link:hover { background: var(--gray-50); text-decoration: none; }
.pag-link.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border-color: var(--primary); }

/* ========== Empty cell ========== */
.empty-cell { text-align: center; padding: 40px 16px !important; color: var(--gray-400); }

/* ========== Card helper ========== */
.card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    body { -webkit-tap-highlight-color: transparent; }
    .mobile-header { display: flex; }

    .admin-layout { flex-direction: column; }
    .main-content {
        margin-left: 0;
        padding: 76px 16px 24px;
        min-height: 100vh;
    }

    .sidebar {
        width: 0;
        top: 0; left: 0; bottom: 0; right: 0;
        pointer-events: none;
    }
    .sidebar-inner {
        width: 280px;
        max-width: 80vw;
        position: fixed;
        top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .25s ease;
        box-shadow: 4px 0 24px rgba(0,0,0,0.25);
        pointer-events: auto;
        z-index: 101;
    }
    .admin-layout.nav-open .sidebar-inner { transform: translateX(0); }
    .admin-layout.nav-open .sidebar-overlay {
        display: block;
        pointer-events: auto;
    }

    .page-header { flex-direction: column; gap: 12px; align-items: flex-start; }
    .page-title { font-size: 18px; }
    .dash-grid { grid-template-columns: 1fr; gap: 12px; margin-bottom: 20px; }
    .dash-card { padding: 16px; }
    .dash-value { font-size: 24px; }

    .track-tabs { flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
    .track-tab { flex-shrink: 0; padding: 8px 12px; }

    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-radius: var(--radius-md);
        border: 1px solid var(--gray-200);
    }
    .data-table { min-width: 700px; width: 100%; }
    .data-table th, .data-table td { white-space: nowrap; padding: 10px 12px; font-size: 13px; }

    .form-grid, .form-row { grid-template-columns: 1fr !important; }
    .form-actions { flex-direction: column; align-items: stretch; }
    .btn { width: 100%; justify-content: center; min-height: 40px; }
    .btn-sm { min-height: 36px; }

    .modal-content {
        width: 94%;
        max-height: 88vh;
        margin: 0 3%;
        border-radius: var(--radius-md);
    }
    .modal-body { max-height: calc(88vh - 120px); }

    .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; }
    .search-input { width: 100%; }

    .chat-list { gap: 10px; }
    .chat-item { padding: 12px; }
}
