/* ============================================================
   LinERP Admin — 后台管理样式
   ============================================================ */

:root {
    --primary: #1e40af;
    --primary-light: #2563eb;
    --dark: #0f172a;
    --text: #1e293b;
    --text-secondary: #475569;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --bg: #f1f5f9;
    --white: #ffffff;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --font: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
}

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

body {
    font-family: var(--font);
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


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

    a:hover {
        color: var(--primary);
    }

/* ============================================================
   LOGIN PAGE
   ============================================================ */

.admin-login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8edf5 0%, #dce3f0 30%, #c8d6e5 60%, #e0e7f2 100%);
    background-size: cover;
    background-position: center;
}

    .admin-login-page::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(ellipse at 20% 50%, rgba(30, 64, 175, 0.06) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(14, 165, 233, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

.login-container {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 48px 40px 36px;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--border);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-logo {
    height: 48px;
    width: auto;
    margin-bottom: 16px;
}

.login-header h1 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.login-header p {
    color: var(--gray);
    font-size: 0.9rem;
}

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

.login-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.login-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

    .login-form input:focus {
        outline: none;
        border-color: var(--primary-light);
        box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    }

.form-error {
    color: var(--danger);
    font-size: 0.85rem;
    min-height: 20px;
    margin-bottom: 8px;
    display: none;
}

    .form-error.show {
        display: block;
    }

/* 统一 Toast 提示动画 */
@keyframes linerpToastIn {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 表单校验：必填项为空/无效时橙色高亮 */
.input-error {
    border-color: #f97316 !important;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
}

/* 注册页：滑块验证未通过时高亮验证区域 */
.captcha-box.input-error .captcha-img {
    border-color: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: all 0.2s;
}

    .btn-login:hover {
        background: linear-gradient(135deg, var(--primary-light), #1d4ed8);
    }

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

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

    .login-footer a {
        color: var(--gray);
        font-size: 0.85rem;
    }

        .login-footer a:hover {
            color: var(--primary);
        }

/* ============================================================
   ADMIN HEADER
   ============================================================ */

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.admin-header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--dark);
}

.admin-logo {
    height: 32px;
    width: auto;
}

.admin-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

    .admin-nav a {
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        font-weight: 500;
        color: var(--text-secondary);
        transition: all 0.2s;
    }

        .admin-nav a:hover {
            color: var(--primary);
            background: rgba(30,64,175,0.05);
        }

        .admin-nav a.active {
            color: var(--primary);
            background: rgba(30,64,175,0.08);
            font-weight: 600;
        }

/* ============================================================
   ADMIN TOP BAR
   ============================================================ */

.admin-topbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 45px;
    background: #0f172a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 12px;
    z-index: 1001;
}

.topbar-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

    .topbar-logo img {
        height: 30px;
        width: auto;
        display: block;
    }

.topbar-left {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 80px;
}

.topbar-home {
    color: #fff;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.topbar-home:hover {
    opacity: 0.8;
}

.topbar-user {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.topbar-user-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    height: 100%;
    padding: 0 8px;
    background: none;
    border: none;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

    .topbar-user-btn:hover {
        background: rgba(255,255,255,0.12);
    }

.topbar-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 6px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    padding: 4px 0;
    display: none;
    z-index: 1002;
}

    .topbar-dropdown.open {
        display: block;
    }

    .topbar-dropdown a {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 9px 14px;
        color: var(--text);
        font-size: 13px;
        text-decoration: none;
        transition: background 0.15s;
    }

        .topbar-dropdown a:hover {
            background: #f1f5f9;
        }

        .topbar-dropdown a i {
            width: 16px;
            text-align: center;
            color: var(--gray);
        }

/* ============================================================
   ADMIN SIDEBAR LAYOUT
   ============================================================ */

.admin-layout {
    display: flex;
    min-height: calc(100vh - 25px);
}

.admin-sidebar {
    width: 220px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 25px;
    height: calc(100vh - 25px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    border-bottom: 1px solid var(--border);
}

    .sidebar-brand img {
        height: 36px;
        width: auto;
    }

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .sidebar-nav a {
        position: relative;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border-radius: 10px;
        color: var(--text-secondary);
        font-size: 0.95rem;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

        .sidebar-nav a i {
            width: 20px;
            text-align: center;
            font-size: 16px;
            color: var(--gray);
            transition: all 0.25s;
        }

        .sidebar-nav a::before {
            content: "";
            position: absolute;
            left: 0;
            top: 50%;
            transform: translateY(-50%);
            width: 3px;
            height: 0;
            border-radius: 3px;
            background: linear-gradient(180deg, #2563eb, #6366f1);
            transition: height 0.25s;
        }

        .sidebar-nav a:hover {
            background: rgba(37, 99, 235, 0.06);
            color: var(--primary-light);
        }

        .sidebar-nav a:hover i {
            color: var(--primary-light);
        }

        .sidebar-nav a.active {
            background: linear-gradient(135deg, #2563eb 0%, #6366f1 100%);
            color: #fff;
            font-weight: 600;
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
        }

        .sidebar-nav a.active::before {
            height: 56%;
        }

        .sidebar-nav a.active i {
            color: #fff;
        }

.sidebar-footer {
    padding: 16px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

    .sidebar-footer a {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 16px;
        border-radius: 8px;
        color: var(--text-secondary);
        text-decoration: none;
        transition: all 0.2s;
    }

        .sidebar-footer a:hover {
            background: rgba(239,68,68,0.08);
            color: var(--danger);
        }

.admin-main {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

@media (max-width: 768px) {
    .admin-sidebar {
        width: 64px;
    }

    .sidebar-brand {
        padding: 16px 8px;
    }

        .sidebar-brand img {
            height: 28px;
        }

    .sidebar-nav a, .sidebar-footer a {
        justify-content: center;
        padding: 12px;
    }

        .sidebar-nav a span, .sidebar-footer a span {
            display: none;
        }
}

/* ============================================================
   STATS
   ============================================================ */

.admin-stats {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.stat-card {
    background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 14px;
    text-align: center;
}

    .stat-card .stat-num {
        font-size: 2rem;
        font-weight: 800;
        color: #fff;
        letter-spacing: -0.02em;
    }

    .stat-card.unread .stat-num {
        color: #fff;
    }

    .stat-card.today .stat-num {
        color: #fff;
    }

    .stat-card .stat-label {
        font-size: 0.85rem;
        color: rgba(255,255,255,0.85);
        margin-top: 2px;
    }

/* ============================================================
   CONTENT / FILTER
   ============================================================ */

.admin-content {
    max-width: 1280px;
    width: 100%;
    box-sizing: border-box;
    flex: 1 0 auto;
    margin: 24px auto 40px;
    padding: 0 24px;
}

.filter-bar {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    background: var(--white);
    padding: 16px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin-bottom: 16px;
    min-width: 100%;
    box-sizing: border-box;
}


.filter-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font);
}

    .filter-input:focus {
        outline: none;
        border-color: var(--primary-light);
    }

.filter-select,
.filter-date {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font);
    background: var(--white);
}

.btn-filter,
.btn-reset {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-filter {
    background: #2563eb;
    color: white;
}

    .btn-filter:hover {
        background: var(--primary-light);
    }

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

    .btn-reset:hover {
        background: #cbd5e1;
    }

/* ============================================================
   DATA TABLE
   ============================================================ */

.table-wrap {
    width: 100%;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

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

    .data-table th {
        background: #f8fafc;
        padding: 12px 14px;
        text-align: left;
        font-weight: 600;
        color: var(--text-secondary);
        border-bottom: 2px solid var(--border);
        white-space: nowrap;
    }

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

    .data-table tbody tr:hover {
        background: #f8fafc;
    }

    .data-table tbody tr.unread-row {
        background: #fefce8;
    }

        .data-table tbody tr.unread-row:hover {
            background: #fef9c3;
        }

    .data-table .msg-preview {
        max-width: 240px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        cursor: pointer;
        color: var(--primary-light);
    }

        .data-table .msg-preview:hover {
            text-decoration: underline;
        }

.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-unread {
    background: #fef2f2;
    color: #dc2626;
}

.badge-read {
    background: #f0fdf4;
    color: #16a34a;
}

.badge-topic {
    background: rgba(30,64,175,0.07);
    color: var(--primary);
}

.btn-sm {
    padding: 5px 12px;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: var(--white);
    cursor: pointer;
    font-size: 0.8rem;
    font-family: var(--font);
    transition: all 0.15s;
}

    .btn-sm:hover {
        background: #2563eb;
        color: white;
        border-color: var(--primary);
    }

.empty-tip {
    text-align: center;
    padding: 48px;
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    flex-wrap: wrap;
}

    .pagination button {
        min-width: 36px;
        padding: 8px 12px;
        border: 1px solid var(--border);
        border-radius: 6px;
        background: var(--white);
        cursor: pointer;
        font-size: 0.85rem;
        font-family: var(--font);
        transition: all 0.15s;
    }

        .pagination button:hover {
            background: #2563eb;
            color: white;
            border-color: var(--primary);
        }

        .pagination button.active {
            background: #2563eb;
            color: white;
            border-color: var(--primary);
            font-weight: 600;
        }

        .pagination button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

    .pagination .page-info {
        color: var(--gray);
        font-size: 0.85rem;
        padding: 0 8px;
    }

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

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

.modal-card {
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

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

    .modal-header h3 {
        font-size: 1.1rem;
    }

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    border-radius: 50%;
}

    .modal-close:hover {
        background: var(--bg);
    }

.modal-body {
    padding: 24px;
}

    .modal-body .detail-row {
        display: grid;
        grid-template-columns: 80px 1fr;
        gap: 8px 16px;
        margin-bottom: 12px;
        font-size: 0.9rem;
    }

    .modal-body .detail-label {
        color: var(--gray);
        font-weight: 600;
    }

    .modal-body .detail-value {
        color: var(--text);
    }

    .modal-body .detail-msg {
        margin-top: 16px;
        padding: 16px;
        background: var(--bg);
        border-radius: var(--radius);
        font-size: 0.9rem;
        line-height: 1.8;
        white-space: pre-wrap;
        color: var(--text);
    }

.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 24px;
    border-top: 1px solid var(--border);
}

    .modal-footer button {
        padding: 10px 20px;
        border: none;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
        cursor: pointer;
        font-family: var(--font);
    }

.btn-mark-read {
    background: var(--success);
    color: white;
}

    .btn-mark-read:hover {
        background: #059669;
    }

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

    .btn-close:hover {
        background: #cbd5e1;
    }

/* ============================================================
   PAGE TOOLBAR & EDITOR
   ============================================================ */

.page-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary-sm {
    padding: 10px 20px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: var(--font);
}

    .btn-primary-sm:hover {
        background: var(--primary-light);
        color: white;
    }

.btn-publish {
    padding: 10px 20px;
    background: var(--success);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font);
}

    .btn-publish:hover {
        background: #059669;
    }

.btn-reset-sm {
    padding: 10px 20px;
    background: var(--border);
    color: var(--text-secondary);
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font);
}

.editor-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.editor-title-input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    font-family: var(--font);
}

    .editor-title-input:focus {
        outline: none;
        border-color: var(--primary-light);
    }

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

.form-control {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: var(--font);
}

    .form-control:focus {
        outline: none;
        border-color: var(--primary-light);
    }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* ============================================================
   TOAST
   ============================================================ */

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    15% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    75% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 768px) {
    .login-card {
        padding: 32px 24px 24px;
    }

    .admin-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 14px 10px;
    }

        .stat-card .stat-num {
            font-size: 1.4rem;
        }

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

    .filter-input {
        min-width: auto;
    }

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

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

    .modal-card {
        width: 95%;
        max-height: 90vh;
    }
}

/* ============================================================
   DASHBOARD (控制面板)
   ============================================================ */
.dash-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.dash-stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: all 0.2s;
}

.dash-stat:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.09); }

.dash-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.dash-meta { min-width: 0; }
.dash-num { font-size: 1.7rem; font-weight: 800; color: var(--text); line-height: 1.1; }
.dash-label { font-size: 0.85rem; color: var(--gray); margin-top: 3px; }

.dash-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; }
.dash-card { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.04); }
.dash-card-title { font-size: 1rem; color: var(--text); margin-bottom: 16px; }

.topic-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.topic-row:last-child { margin-bottom: 0; }
.topic-name { width: 70px; font-size: 0.85rem; color: var(--text-secondary); flex-shrink: 0; }
.topic-bar { flex: 1; height: 16px; background: #f1f5f9; border-radius: 8px; overflow: hidden; }
.topic-fill { height: 100%; background: linear-gradient(90deg, #2563eb, #6366f1); border-radius: 8px; transition: width 0.5s ease; }
.topic-count { width: 40px; font-size: 0.85rem; color: var(--text); text-align: right; flex-shrink: 0; font-weight: 600; }

.recent-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.recent-item:last-child { border-bottom: none; }
.recent-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #6366f1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    flex-shrink: 0;
}
.recent-info { flex: 1; min-width: 0; }
.recent-name { font-size: 0.9rem; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-company { font-size: 0.8rem; color: var(--gray); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-right { text-align: right; flex-shrink: 0; }
.recent-topic { display: inline-block; font-size: 0.75rem; padding: 2px 10px; border-radius: 10px; background: rgba(37,99,235,0.1); color: #2563eb; }
.recent-time { font-size: 0.75rem; color: var(--gray-light); margin-top: 3px; }

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