:root {
    --bg: #eef1f6;
    --bg-tint: #f4f6fc;
    --surface: #ffffff;
    --text: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --border: #e8edf3;
    --border-light: #f1f5f9;
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --primary-border: #dbeafe;
    --success: #15803d;
    --success-soft: #ecfdf5;
    --success-border: #bbf7d0;
    --accent: #b45309;
    --accent-soft: #fffbeb;
    --accent-border: #fde68a;
    --danger: #dc2626;
    --danger-soft: #fef2f2;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-md: 0 10px 28px rgba(15, 23, 42, 0.08);
    --nav-h: 44px;
    --bar-h: 46px;
    --pager-h: 44px;
}

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

body {
    font-family: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

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

/* ── Dashboard: 固定一屏、不滚动；间距不变，超出走分页 ── */
.app-page-dashboard {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: linear-gradient(165deg, var(--bg-tint) 0%, var(--bg) 42%, #e8edf4 100%);
}

.app-page-dashboard > .container-fluid {
    flex-shrink: 0;
}

.app-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
    padding: 0.5rem 1rem 0.6rem;
    gap: 0.55rem;
    overflow: hidden;
}

.workbench-body {
    flex: 1;
    min-height: 0;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    gap: 0.55rem;
    overflow: hidden;
}

.card-grid-scroll {
    min-height: 0;
    overflow: hidden;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-auto-rows: max-content;
    align-content: start;
    gap: 0.65rem 0.9rem;
}

/* Navbar */
.app-navbar {
    flex-shrink: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    border-bottom: none;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
    flex-shrink: 0;
    min-height: var(--nav-h);
    backdrop-filter: blur(10px);
}

.app-navbar .container-fluid {
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.navbar-brand {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text);
}

.navbar-brand-group {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.navbar-date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.navbar-date-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.nav-link {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.3rem 0.6rem !important;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
}
.nav-link:hover { color: var(--primary); }

.nav-user-divider {
    width: 1px;
    height: 0.875rem;
    background: rgba(15, 23, 42, 0.1);
    flex-shrink: 0;
    align-self: center;
}

.nav-user-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.04);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: 0.01em;
}

/* Page bar */
.page-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.85rem;
    min-height: var(--bar-h);
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.page-bar-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: none;
    font-size: 0.8125rem;
    line-height: 1.2;
}

.stat-chip-label {
    color: inherit;
    opacity: 0.82;
    font-weight: 500;
    white-space: nowrap;
}

.stat-chip strong {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: inherit;
}

.stat-chip-time {
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    font-weight: 500;
    border-radius: var(--radius-sm);
    padding: 0.3rem 0.6rem;
    box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.stat-chip-hint {
    font-size: 0.6875rem;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-chip-neutral {
    background: var(--primary-soft);
    color: #1e40af;
}

.stat-chip-success {
    background: var(--success-soft);
    color: var(--success);
}

.stat-chip-muted {
    background: #eef2f6;
    color: var(--text-muted);
}

.stat-chip-accent {
    background: var(--accent-soft);
    color: var(--accent);
}

.stat-chip-info {
    background: #ecfeff;
    color: #0e7490;
}

.stat-chip-quota {
    background: #eef2ff;
    color: #4338ca;
}

.stat-quota-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.1rem;
}

.stat-quota-sep {
    opacity: 0.55;
    font-weight: 500;
}

.stat-chip-remain {
    background: #f0fdf4;
    color: #166534;
}

.city-filter-wrap {
    flex-shrink: 0;
}

.city-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.04);
}

.city-filter-btn {
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.city-filter-btn:hover {
    color: var(--primary);
    background: rgba(255, 255, 255, 0.85);
}

.city-filter-btn.active {
    background: var(--surface);
    color: var(--primary);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.page-bar-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.page-bar-action-buttons {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-shrink: 0;
}

.icon-inline {
    width: 0.95rem;
    height: 0.95rem;
    margin-right: 0.15rem;
}

.task-hint-banner {
    flex-shrink: 0;
    margin: 0;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    background: #fff7ed;
    color: #9a3412;
    font-size: 0.8125rem;
    border: 1px solid #fed7aa;
}

.live-clock {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--primary);
}

.live-clock::before {
    content: "·";
    margin-right: 0.35rem;
    color: var(--text-muted);
    font-weight: 400;
}

.btn-add {
    padding: 0.3rem 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.wx-card {
    position: relative;
    background: var(--surface);
    border: none;
    border-radius: var(--radius);
    padding: 0.5rem 0.65rem 0.45rem;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    height: auto;
    transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.wx-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.wx-card-priority {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1), var(--shadow);
}

.wx-card-priority::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: var(--radius) 0 0 var(--radius);
    background: linear-gradient(180deg, #3b82f6, #6366f1);
}

.wx-card-disabled {
    opacity: 0.68;
    background: #fafbfc;
}

.wx-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.4rem;
    margin-bottom: 0.15rem;
}

.wx-card-title {
    min-width: 0;
    flex: 1;
    overflow: visible;
}

.wx-card-primary {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    min-width: 0;
    line-height: 1.3;
    overflow: visible;
}

.wx-card-id {
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--text);
    flex-shrink: 0;
    white-space: nowrap;
}

.wx-card-primary-sep {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.72;
}

.wx-card-remark-inline {
    min-width: 0;
    flex: 1 1 auto;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wx-card-meta {
    margin-top: 0.2rem;
    font-size: 0.6875rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}

.wx-card-meta-sep {
    margin: 0 0.12rem;
    opacity: 0.72;
}

.wx-card-badges {
    display: flex;
    gap: 0.2rem;
    flex-shrink: 0;
}

.badge-pill {
    font-size: 0.625rem;
    font-weight: 600;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    line-height: 1.35;
    white-space: nowrap;
}

.badge-rank {
    background: linear-gradient(135deg, var(--primary-soft), #e0e7ff);
    color: #1d4ed8;
}

.badge-sort {
    background: #f1f5f9;
    color: #475569;
}

.badge-empty {
    background: #fef2f2;
    color: #b91c1c;
}

.wx-card-exhausted:not(.wx-card-disabled) {
    opacity: 0.88;
}
.badge-on {
    background: var(--success-soft);
    color: var(--success);
}
.badge-off { background: var(--border-light); color: var(--text-muted); }

.wx-card-stats {
    display: grid;
    gap: 0.35rem;
}

.wx-card-stats-3 {
    grid-template-columns: repeat(3, 1fr);
}

.wx-card-stat-quota {
    background: linear-gradient(135deg, #f0fdf4 0%, #f8fff9 100%);
}

.wx-card-stat-quota .wx-card-stat-label { color: #166534; }
.wx-card-stat-quota .count-value { color: #15803d; font-size: 1.1rem; }

.wx-card-stat-send {
    background: linear-gradient(135deg, #fff8eb 0%, #fffdf7 100%);
}

.wx-card-stat-send .wx-card-stat-label { color: #92400e; }
.wx-card-stat-send .count-value { color: var(--accent); font-size: 1.1rem; }

.wx-card-stat-total {
    background: linear-gradient(135deg, #ecfeff 0%, #f8feff 100%);
}

.wx-card-stat-total .wx-card-stat-label { color: #0e7490; }
.wx-card-stat-total .count-value { color: #0e7490; font-size: 1.1rem; }

/* 卡片统计块 */
.wx-card-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    padding: 0.35rem 0.3rem;
    border: none;
    border-radius: var(--radius-sm);
    text-align: center;
}

.wx-card-stat-label {
    font-size: 0.6875rem;
    font-weight: 600;
    white-space: nowrap;
}

.wx-card-stat .count-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

/* 主操作：图标 + 文字 */
.wx-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.35rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    min-height: 30px;
    padding: 0.25rem 0.4rem;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
}

.action-btn:hover:not(:disabled) {
    background: #e8edf3;
    color: var(--text);
}

.action-btn:active:not(:disabled) {
    transform: scale(0.97);
}

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

.action-btn-primary {
    background: var(--primary-soft);
    color: var(--primary);
}

.action-btn-primary:hover:not(:disabled) {
    background: var(--primary);
    color: #fff;
}

.action-btn .icon {
    width: 14px;
    height: 14px;
}

.action-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* 底部管理链接 */
.wx-card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.15rem 0.35rem;
    margin-top: 0.1rem;
    padding-top: 0.32rem;
    border-top: 1px solid var(--border);
}

.wx-card-footer form {
    display: inline;
    margin: 0;
}

.footer-link {
    border: none;
    background: transparent;
    padding: 0.15rem 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.footer-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.footer-link-danger:hover {
    color: var(--danger);
    background: var(--danger-soft);
}

.footer-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

/* Icon buttons */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.icon-btn:hover:not(:disabled) {
    background: var(--border-light);
    border-color: #cbd5e1;
    color: var(--text);
}

.icon-btn:active:not(:disabled) {
    transform: scale(0.94);
}

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

.icon-btn-primary {
    background: var(--primary-soft);
    border-color: #bfdbfe;
    color: var(--primary);
}

.icon-btn-primary:hover:not(:disabled) {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.icon-btn-danger:hover:not(:disabled) {
    background: var(--danger-soft);
    border-color: #fecaca;
    color: var(--danger);
}

.icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.icon-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.28);
}

/* Tooltips */
.tooltip { font-size: 0.75rem; }

/* Pagination */
.pagination-bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: var(--pager-h);
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pagination-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

.pagination-spaced {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.pagination-spaced .page-item { margin: 0; }

.pagination-spaced .page-link {
    margin-left: 0;
    color: var(--text-secondary);
    border: none;
    background: var(--border-light);
    padding: 0.28rem 0.65rem;
    font-size: 0.8125rem;
    font-weight: 500;
    min-width: 2.25rem;
    text-align: center;
    border-radius: var(--radius-sm);
}

.pagination-spaced .page-link:hover {
    background: var(--primary-soft);
    color: var(--primary);
}

.pagination-spaced .page-item.active .page-link {
    background: var(--primary);
    color: #fff;
}

.pagination-spaced .page-item.disabled .page-link {
    color: var(--text-muted);
    background: #eef2f6;
    opacity: 0.7;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

.page-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 36px;
    min-width: 4.5rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-soft);
    border: none;
    border-radius: var(--radius-sm);
    text-decoration: none;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.page-nav-btn:hover:not(.is-disabled) {
    background: var(--primary);
    color: #fff;
}

.page-nav-btn:active:not(.is-disabled) {
    transform: scale(0.97);
}

.page-nav-btn.is-disabled {
    color: var(--text-muted);
    background: #eef2f6;
    opacity: 0.7;
    pointer-events: none;
    cursor: default;
}

.pagination-pages {
    flex: 1;
    min-width: 0;
}

/* Modals */
.modal-dialog-account {
    max-width: 520px;
}

.modal-dialog-city {
    max-width: 360px;
}

.account-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.account-form-field-full {
    grid-column: 1 / -1;
}

.city-manage-link {
    font-size: 0.75rem;
    text-decoration: none;
}

.city-list-wrap {
    max-height: 220px;
    overflow-y: auto;
}

.city-list .list-group-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.45rem 0;
    border-color: var(--border);
    font-size: 0.875rem;
}

.city-list .btn-remove-city {
    font-size: 0.75rem;
    padding: 0.1rem 0.35rem;
}

.modal-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-size: 0.9375rem;
    font-weight: 600;
}

.modal-body { padding: 1rem; }
.modal-footer {
    padding: 0.65rem 1rem;
    border-top: 1px solid var(--border);
}

.modal-content {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-label-sm {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.count-modal-target {
    font-size: 0.875rem;
    padding: 0.5rem 0.65rem;
    background: var(--primary-soft);
    border-radius: var(--radius-sm);
    border: 1px solid var(--primary-border);
}

.count-modal-target strong {
    display: block;
    margin-top: 0.15rem;
    word-break: break-all;
    color: var(--text);
}

.count-modal-hint {
    margin: -0.15rem 0 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.count-modal-editor {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.count-modal-editor .form-control {
    flex: 1;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.count-modal-editor .btn {
    width: 2.25rem;
    padding: 0;
    flex-shrink: 0;
}

/* Buttons global */
.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-hover);
    --bs-btn-hover-border-color: var(--primary-hover);
}

.btn, .form-control, .form-select, .page-link {
    border-radius: var(--radius-sm);
}

.form-control.form-control-locked,
.form-control.form-control-locked:read-only {
    background: var(--border-light);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-text-sm {
    font-size: 0.8125rem;
    margin-top: 0.35rem;
}

/* Empty state */
.empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* Login */
.login-page {
    min-height: 100dvh;
    background: #f1f5f9;
}

.login-shell {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.login-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 820px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.login-aside {
    position: relative;
    padding: 2rem 1.75rem;
    background: linear-gradient(145deg, #eff6ff 0%, #e0e7ff 48%, #f8fafc 100%);
    border-bottom: 1px solid var(--primary-border);
    overflow: hidden;
}

.login-aside::before,
.login-aside::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.login-aside::before {
    width: 180px;
    height: 180px;
    top: -60px;
    right: -40px;
    background: rgba(37, 99, 235, 0.12);
}

.login-aside::after {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -20px;
    background: rgba(99, 102, 241, 0.1);
}

.login-aside-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.login-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 0.85rem;
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
    border: 1px solid var(--primary-border);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
}

.login-mark .icon {
    width: 26px;
    height: 26px;
}

.login-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.login-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 0.75rem;
    margin: 1.1rem 0 0;
    padding: 0;
    list-style: none;
}

.login-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.25rem 0.55rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
}

.login-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

.login-feature-dot-primary { background: var(--primary); }
.login-feature-dot-accent { background: var(--accent); }
.login-feature-dot-success { background: var(--success); }

.login-main {
    padding: 1.75rem 1.75rem 2rem;
}

.login-form-title {
    margin: 0 0 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
}

.login-alert {
    font-size: 0.8125rem;
    border: none;
    border-radius: var(--radius-sm);
}

.login-form {
    display: grid;
    gap: 0.9rem;
}

.login-field {
    display: grid;
    gap: 0.35rem;
}

.login-input-wrap {
    position: relative;
}

.login-input-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}

.login-input {
    min-height: 44px;
    padding: 0.45rem 0.75rem 0.45rem 2.35rem;
    font-size: 0.875rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #f8fafc;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.login-input:focus {
    background: #fff;
    border-color: #93c5fd;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.login-input::placeholder {
    color: #94a3b8;
}

.login-submit {
    margin-top: 0.35rem;
    min-height: 44px;
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-sm);
    background: var(--primary);
    transition: background-color 0.15s ease;
}

.login-submit:hover {
    background: var(--primary-hover);
}

@media (min-width: 768px) {
    .login-card {
        flex-direction: row;
        min-height: 420px;
    }

    .login-aside {
        flex: 0 0 42%;
        display: flex;
        align-items: center;
        justify-content: center;
        border-bottom: none;
        border-right: 1px solid var(--primary-border);
    }

    .login-aside-inner {
        max-width: 280px;
    }

    .login-main {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2.5rem 2.75rem;
    }
}

@media (max-width: 767.98px) {
    .login-shell {
        padding: 1rem;
    }

    .login-aside {
        padding: 1.5rem 1.25rem 1.25rem;
    }

    .login-features {
        margin-top: 0.85rem;
    }

    .login-main {
        padding: 1.35rem 1.25rem 1.5rem;
    }

    .login-form-title {
        margin-bottom: 1rem;
    }
}

/* Settings */
.settings-panel { max-width: 640px; }

.settings-panel .card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.app-main {
    max-width: 1480px;
    margin: 0 auto;
    padding: 1rem;
}

.template-editor {
    font-size: 0.9375rem;
    line-height: 1.65;
    min-height: 220px;
}

.template-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.template-hint code {
    font-size: 0.8125rem;
    color: var(--primary);
    background: var(--primary-soft);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
}

/* Toast */
.app-toast-container {
    top: 1.25rem;
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translateX(-50%);
    z-index: 1090;
    width: max-content;
    max-width: calc(100vw - 2rem);
    pointer-events: none;
}

.app-toast-container .toast {
    pointer-events: auto;
}

.app-toast {
    width: fit-content;
    min-width: 0;
    max-width: min(420px, calc(100vw - 2rem));
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow:
        0 16px 40px rgba(4, 120, 87, 0.35),
        0 0 0 1px rgba(4, 120, 87, 0.12);
}

.app-toast.showing,
.app-toast.show {
    animation: app-toast-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes app-toast-in {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.app-toast > .d-flex {
    padding: 0.65rem 1rem;
    gap: 0.5rem;
}

.app-toast-icon {
    display: inline-flex;
    flex-shrink: 0;
    width: 1.35rem;
    height: 1.35rem;
    color: #fff;
}

.app-toast-icon svg {
    width: 100%;
    height: 100%;
}

.app-toast-body {
    padding: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.35;
}

.app-toast-undo {
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
}

.app-toast-undo:hover {
    background: rgba(255, 255, 255, 0.24);
    border-color: rgba(255, 255, 255, 0.75);
}

.app-toast-undo:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.app-toast-close {
    flex-shrink: 0;
    margin-right: 0;
    opacity: 0.82;
}

.app-toast-close:hover {
    opacity: 1;
}

.alert {
    font-size: 0.875rem;
    border-radius: var(--radius-sm);
}

/* Responsive grid columns */
@media (max-width: 1199.98px) {
    .card-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .app-page-dashboard {
        height: 100svh;
        max-height: 100svh;
    }

    .app-shell {
        padding: 0.35rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
        gap: 0.35rem;
    }

    /* 导航栏：去掉汉堡菜单，右侧内联紧凑链接 */
    .app-navbar {
        min-height: 0;
        padding-top: env(safe-area-inset-top, 0px);
    }

    .app-navbar .container-fluid {
        padding: 0.25rem 0.65rem;
        min-height: 34px;
        align-items: center;
    }

    .navbar-brand {
        font-size: 0.8125rem;
        padding-top: 0;
        padding-bottom: 0;
        margin-right: 0;
    }

    .navbar-brand-group {
        gap: 0.45rem;
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
    }

    .navbar-date {
        font-size: 0.6875rem;
        min-width: 0;
        overflow: hidden;
    }

    .navbar-date-hint {
        display: none;
    }

    .app-navbar .navbar-toggler {
        display: none;
    }

    .app-navbar .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
        flex-grow: 0;
    }

    .app-navbar .navbar-nav {
        flex-direction: row;
        align-items: center;
        gap: 0.15rem;
    }

    .app-navbar .nav-link {
        padding: 0.15rem 0.4rem !important;
        font-size: 0.75rem;
        border-radius: 6px;
    }

    .app-navbar .nav-link.active {
        padding: 0.15rem 0.4rem !important;
    }

    .app-navbar form .nav-link {
        padding: 0.15rem 0.4rem !important;
    }

    .nav-user-divider {
        display: none;
    }

    .nav-user-badge {
        font-size: 0.625rem;
        padding: 0.12rem 0.38rem;
    }

    .card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem 0.55rem;
    }

    .card-grid-scroll {
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* 统计区横向滑动，避免换行挤占卡片区域 */
    .page-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.35rem;
        padding: 0.32rem 0.55rem;
        min-height: 0;
    }

    .stat-chip {
        flex-shrink: 0;
        padding: 0.2rem 0.45rem;
        font-size: 0.75rem;
    }

    .stat-chip-time {
        padding: 0.22rem 0.5rem;
        font-size: 0.75rem;
    }

    .live-clock {
        font-size: 0.75rem;
    }

    .page-bar-stats {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        gap: 0.35rem;
        padding-bottom: 0.1rem;
    }

    .page-bar-stats::-webkit-scrollbar {
        display: none;
    }

    .stat-chip-hint {
        display: none;
    }

    .page-bar-actions {
        width: 100%;
        gap: 0.35rem;
        flex-wrap: wrap;
        align-items: stretch;
    }

    .page-bar-action-buttons {
        display: flex;
        width: 100%;
        gap: 0.35rem;
    }

    .page-bar-action-buttons .btn {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.28rem 0.35rem;
        font-size: 0.75rem;
        min-height: 32px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .page-bar-action-buttons .icon-inline {
        width: 0.8rem;
        height: 0.8rem;
        margin-right: 0.1rem;
    }

    .city-filter-wrap {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .city-filter-wrap::-webkit-scrollbar {
        display: none;
    }

    .city-filter {
        flex-wrap: nowrap;
    }

    .city-filter-btn {
        flex-shrink: 0;
        font-size: 0.6875rem;
        padding: 0.24rem 0.48rem;
    }

    .task-hint-banner {
        padding: 0.32rem 0.55rem;
        font-size: 0.75rem;
    }

    /* 分页栏：上一页/下一页固定两侧，页码区可横滑 */
    .pagination-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 0.4rem;
        padding: 0.45rem 0.65rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
        position: relative;
        z-index: 20;
    }

    .pagination-info {
        text-align: center;
        font-size: 0.75rem;
    }

    .pagination-controls {
        gap: 0.4rem;
    }

    .page-nav-btn {
        min-height: 44px;
        min-width: 4.75rem;
        padding: 0.45rem 0.65rem;
        font-size: 0.8125rem;
    }

    .pagination-pages {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
        touch-action: pan-x;
    }

    .pagination-pages::-webkit-scrollbar {
        display: none;
    }

    .pagination-pages.pagination-spaced {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.35rem;
    }

    .pagination-pages .page-link {
        min-height: 44px;
        min-width: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.35rem 0.7rem;
        flex-shrink: 0;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

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

    .footer-link,
    .action-btn {
        min-height: 36px;
        padding: 0.35rem 0.5rem;
    }
}

@media (max-width: 479.98px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* 保持三列紧凑布局，避免卡片过高导致一页放不下 */
    .wx-card-stats-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .wx-card-stat {
        padding: 0.28rem 0.2rem;
    }

    .wx-card-stat-label {
        font-size: 0.625rem;
    }

    .wx-card-stat .count-value {
        font-size: 0.95rem;
    }
}

/* Daily task modal */
.daily-task-modal .modal-header,
.daily-task-modal .modal-footer {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.daily-task-modal .modal-header {
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 0.875rem;
}

.daily-task-modal .modal-footer {
    padding-top: 0.75rem;
    padding-bottom: 0.875rem;
}

.daily-task-modal-body {
    padding: 0.75rem 1.5rem 1rem;
}

.daily-task-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.daily-task-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.45rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
}

.daily-task-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
}

.daily-task-status.is-draft {
    background: #fff7ed;
    color: #c2410c;
}

.daily-task-status.is-saved {
    background: #ecfdf5;
    color: #047857;
}

.daily-task-table-wrap {
    max-height: min(62vh, 520px);
    margin: 0 -0.25rem;
    padding: 0 0.25rem;
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.daily-task-table {
    table-layout: fixed;
    width: 100%;
}

.daily-task-table--task .task-col-id { width: 11%; }
.daily-task-table--task .task-col-remark { width: 20%; }
.daily-task-table--task .task-col-status { width: 9%; }
.daily-task-table--task .task-col-num { width: 12%; }

.daily-task-table--stats .task-col-id { width: 14%; }
.daily-task-table--stats .task-col-remark { width: 30%; }
.daily-task-table--stats .task-col-status { width: 12%; }
.daily-task-table--stats .task-col-num { width: 22%; }

.daily-task-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    border-bottom-width: 1px;
    white-space: nowrap;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.daily-task-table thead th,
.daily-task-table td {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
}

.daily-task-table thead th:first-child,
.daily-task-table td:first-child {
    padding-left: 0.85rem;
}

.daily-task-table thead th:last-child,
.daily-task-table td:last-child {
    padding-right: 0.85rem;
}

.daily-task-table td {
    vertical-align: middle;
    font-size: 0.8125rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.task-col-id {
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.task-col-remark {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.task-col-status {
    white-space: nowrap;
}

.task-col-num,
.daily-task-table .task-col-current,
.daily-task-table .task-col-used,
.daily-task-table .task-col-delta,
.daily-task-table .task-col-final,
.daily-task-table .task-col-send,
.daily-task-table .task-col-actual {
    text-align: center;
    white-space: nowrap;
}

.task-col-used {
    font-variant-numeric: tabular-nums;
    color: var(--text-secondary);
    white-space: nowrap;
}

.task-stepper-input.is-negative {
    color: var(--bs-danger, #dc3545);
}

.task-final-value.is-invalid-quota {
    color: var(--bs-danger, #dc3545);
}

.task-stepper-input.is-invalid-quota {
    color: var(--bs-danger, #dc3545);
    border-color: var(--bs-danger, #dc3545);
}

.daily-task-status.is-invalid {
    color: var(--bs-danger, #dc3545);
}

.daily-task-table--stats tr.stats-row-invalid td {
    background-color: rgba(220, 53, 69, 0.06);
}

.task-input {
    width: 5.5rem;
    margin: 0 auto;
    font-variant-numeric: tabular-nums;
}

.task-stepper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin: 0 auto;
}

.task-stepper-input {
    width: 3.25rem;
    min-width: 3.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    -moz-appearance: textfield;
}

.task-stepper-input::-webkit-outer-spin-button,
.task-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.task-step-btn {
    width: 1.75rem;
    min-width: 1.75rem;
    padding: 0.1rem 0;
    line-height: 1.2;
    font-weight: 600;
}

.task-col-delta,
.task-col-send,
.task-col-actual {
    white-space: nowrap;
}

.task-final-value {
    font-variant-numeric: tabular-nums;
    color: var(--accent);
}

.task-readonly-value {
    display: inline-block;
    min-width: 2rem;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
}

.workbench-search-form {
    flex: 0 0 12.5rem;
    width: 12.5rem;
    max-width: 12.5rem;
}

.workbench-search-input {
    width: 100%;
    border-radius: 999px;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

@media (max-width: 767.98px) {
    .workbench-search-form {
        flex: 1 1 100%;
        width: 100%;
        max-width: none;
        min-width: 0;
    }

    .daily-task-modal .modal-header,
    .daily-task-modal .modal-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .daily-task-modal-body {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .daily-task-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .daily-task-table-wrap {
        margin: 0;
        padding: 0;
    }

    .daily-task-table {
        table-layout: auto;
        width: max-content;
        min-width: 100%;
    }

    .daily-task-table--task .task-col-id,
    .daily-task-table--stats .task-col-id {
        width: auto;
        min-width: 5.5rem;
        overflow: visible;
        text-overflow: clip;
    }

    .daily-task-table--task .task-col-remark,
    .daily-task-table--stats .task-col-remark {
        width: auto;
        min-width: 4.5rem;
        max-width: 9rem;
    }

    .daily-task-table--task .task-col-status,
    .daily-task-table--stats .task-col-status {
        width: auto;
        min-width: 3.25rem;
    }

    .daily-task-table--task .task-col-num,
    .daily-task-table--stats .task-col-num {
        width: auto;
        min-width: 4.5rem;
    }

    .daily-task-table .task-col-delta,
    .daily-task-table .task-col-send,
    .daily-task-table .task-col-actual {
        min-width: 7.75rem;
    }

    .daily-task-table .task-stepper {
        flex-shrink: 0;
    }
}

@media (max-width: 399.98px) {
    .page-bar-action-buttons .page-bar-btn-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .page-bar-action-buttons .icon-inline {
        margin-right: 0;
    }

    .page-bar-action-buttons .btn {
        padding: 0.35rem;
        min-width: 2.5rem;
    }
}

.page-bar-simple {
    align-items: center;
    margin-bottom: 0.75rem;
}

.page-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
}

.page-subtitle {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.admin-users-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-users-table {
    width: 100%;
    table-layout: auto;
}

.admin-users-table th,
.admin-users-table td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
}

.admin-users-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom-color: var(--border);
}

.admin-users-table td {
    font-size: 0.8125rem;
}

.admin-users-col-user,
.admin-users-col-created,
.admin-users-col-actions {
    width: 1%;
}

.admin-users-col-role,
.admin-users-col-status {
    width: 6.5rem;
}

.admin-users-col-name,
.admin-users-col-remark {
    width: auto;
}

.admin-users-table .badge-pill {
    font-size: 0.75rem;
    padding: 0.2rem 0.55rem;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1),
.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3),
.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4),
.admin-users-table th:nth-child(6),
.admin-users-table td:nth-child(6),
.admin-users-table th:nth-child(7),
.admin-users-table td:nth-child(7) {
    white-space: nowrap;
}

.admin-users-table td:nth-child(2),
.admin-users-table td:nth-child(5) {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-users-actions {
    white-space: nowrap;
}

.admin-users-actions .btn-link {
    text-decoration: none;
    font-size: 0.8125rem;
    padding-left: 0;
}

.admin-stats-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admin-stats-date-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin: 0;
}

.admin-stats-date-input {
    width: 10.5rem;
}

.admin-stats-live-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    line-height: 1.4;
}

.admin-stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-stats-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.admin-stats-tabs {
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 92%, var(--bg));
}

.admin-stats-tabs .nav-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.75rem 0.9rem;
}

.admin-stats-tabs .nav-link.active {
    color: var(--accent);
    background: transparent;
    border-bottom-color: var(--accent);
}

.admin-stats-tab-content {
    padding: 0;
}

.admin-stats-table th,
.admin-stats-table td {
    padding: 0.65rem 1rem;
    vertical-align: middle;
    font-size: 0.8125rem;
    text-align: center;
}

.admin-stats-table th {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
    border-bottom-color: var(--border);
}

.admin-stats-table td {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-stats-total-row td {
    font-weight: 600;
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface) 90%, var(--bg));
}
