body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.table th { white-space: nowrap; }
.form-inline label { margin-right: 10px; }
fieldset { border: 1px solid #dee2e6; padding: 16px; border-radius: 8px; background: #f8f9fa; }
legend { font-size: 1rem; padding: 0 8px; }
.app-shell-main {
    flex: 1 0 auto;
}
.app-footer {
    margin-top: 24px;
    padding: 8px 16px;
    font-size: 12px;
    color: #6b7280;
    text-align: right;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    background: #fff;
}

@media (max-width: 768px) {
    .app-footer {
        text-align: center;
        padding-bottom: 16px;
    }
}
.page-header h2 { font-weight: 700; }
.anchor-filter-bar .form-label { font-weight: 600; color: #374151; }
.anchor-filter-bar .form-select,
.anchor-filter-bar .form-control { border-radius: 10px; height: 40px; }
.anchor-filter-bar .form-text { font-size: 12px; }
.data-pill { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #f8fafc; }
.detail-actions .icon-btn { margin-left: 6px; }
.anchor-hero-card .hero-avatar img { width: 82px; height: 82px; object-fit: cover; }
.hero-metrics { min-width: 180px; }
.timeline { border-left: 2px solid #e5e7eb; padding-left: 12px; }
.timeline-item { position: relative; padding-left: 12px; margin-bottom: 12px; }
.timeline-item::before { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #2563eb; left: -5px; top: 6px; }
.empty-state i { color: #cbd5e1; }
.avatar-sm {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.creator-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.creator-avatar--large {
    width: 80px;
    height: 80px;
}

/* 录播管理列表布局优化 */
.recording-table tbody tr:hover {
    background: #f8f9fb;
}

.recording-table .col-anchor .anchor-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #1f2937;
}

.recording-table .col-anchor .anchor-link:hover {
    color: #0d6efd;
}

.recording-table .col-anchor .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.recording-table .anchor-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.recording-table .anchor-name {
    font-weight: 700;
    line-height: 1.2;
}

.recording-table .anchor-id {
    color: #6b7280;
    font-size: 12px;
    line-height: 1.2;
}

.recording-table .col-room .room-id {
    font-weight: 600;
    margin-bottom: 4px;
}

.badge-ended {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 10px;
    background: #f0f0f0;
    color: #888;
    font-size: 12px;
}

.btn-xs {
    padding: 2px 8px;
    font-size: 12px;
    line-height: 1.4;
}

.btn-live-room {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.size-large {
    position: relative;
    background: #fff4f4;
}

.size-large::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #dc3545;
    top: 6px;
    left: 6px;
}

.avatar-lg {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 50%;
}

/* 主播池新版列表排版样式 */
.anchor-pool-table .anchor-grid-table th {
    white-space: nowrap;
}

.anchor-card .anchor-meta {
    min-width: 0;
}

.anchor-name {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.anchor-meta .text-muted {
    line-height: 1.2;
}

.mini-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 10px 14px;
}

.stat-number {
    text-align: right;
    font-weight: 600;
}

.badge-hot,
.badge-growth {
    font-size: 12px;
    line-height: 1.2;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid transparent;
}

.badge-hot {
    background: #fb923c;
    color: #fff;
    border-color: #f97316;
}

.badge-growth {
    background: #34d399;
    color: #0b3a2a;
    border-color: #059669;
}

/* 主播卡片信息展示优化，突出关键指标和操作入口 */
.anchor-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* /anchors 列表页：更紧凑的卡片间距（不影响 /profiles 等复用页） */
.anchor-panel--anchors {
    gap: 8px;
}

.anchor-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    align-items: flex-start;
}

.anchor-card-row:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.dashboard-anchor-link {
    color: inherit;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-anchor-link:hover {
    background: #f1f5f9;
    text-decoration: none;
    box-shadow: inset 0 0 0 1px #e5e7eb;
    cursor: pointer;
}

.dashboard-room-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    padding: 6px 8px;
    border-radius: 10px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dashboard-room-link:hover {
    background: #f1f5f9;
    text-decoration: none;
    color: #0d6efd;
}

.dashboard-live-row:hover {
    background: #f8fafc;
}

.anchor-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
    flex: 1 1 260px;
}

/* anchors 卡片 v2：三列（左身份 / 中标签+指标 / 右按钮） */
.anchor-card--v2 {
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.anchor-card--v2:hover {
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.anchor-card--v2 .anchor-left {
    flex: 0 0 220px;
    min-width: 220px;
}

.anchor-card--v2 .anchor-identity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.anchor-card--v2 .anchor-middle {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.anchor-card--v2 .anchor-main-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.anchor-card--v2 .anchor-main-row .anchor-name {
    font-size: 0.95rem;
    font-weight: 700;
}

.anchor-card--v2 .anchor-main-row .anchor-id {
    font-size: 0.85rem;
}

.anchor-card--v2 .anchor-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 12px;
}

.anchor-card--v2 .anchor-actions .action-group {
    flex-wrap: nowrap;
    gap: 6px;
}

.anchor-card--v2 .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    font-size: 0.85rem;
}

.anchor-card--v2 .anchor-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.anchor-card--v2 .tag-badge {
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.4;
    background-color: #f3f4f6;
    color: #4b5563;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.anchor-card--v2 .tag-badge.lang-es { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.anchor-card--v2 .tag-badge.lang-en { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.anchor-card--v2 .tag-badge.lang-pt { background: #fce7f3; color: #9f1239; border-color: #f9a8d4; }
.anchor-card--v2 .tag-badge.lang-fr { background: #e0e7ff; color: #3730a3; border-color: #a5b4fc; }

.anchor-card--v2 .tag-badge.risk-low { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.anchor-card--v2 .tag-badge.risk-medium { background: #fffbeb; color: #854d0e; border-color: #fef3c7; }
.anchor-card--v2 .tag-badge.risk-high { background: #fef2f2; color: #991b1b; border-color: #fecdd3; }
.anchor-card--v2 .tag-badge.risk-unknown { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }

.anchor-card--v2 .tag-badge.monitor-normal { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.anchor-card--v2 .tag-badge.monitor-high { background: #f3e8ff; color: #6b21a8; border-color: #c4b5fd; }
.anchor-card--v2 .tag-badge.monitor-low { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }

/* watch_status：尽量对齐“监控/暂停/忽略”语义（字段值不同也会回退到默认灰色） */
.anchor-card--v2 .tag-badge.monitor-watching { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.anchor-card--v2 .tag-badge.monitor-active { background: #ecfdf3; color: #166534; border-color: #bbf7d0; }
.anchor-card--v2 .tag-badge.monitor-paused { background: #fffbeb; color: #854d0e; border-color: #fef3c7; }
.anchor-card--v2 .tag-badge.monitor-ignored { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }

.anchor-card--v2 .tag-badge.priority-0 { background: #f3f4f6; color: #4b5563; border-color: #e5e7eb; }
.anchor-card--v2 .tag-badge.priority-medium { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.anchor-card--v2 .tag-badge.priority-high { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.anchor-card--v2 .tag-badge.category-pk { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.anchor-card--v2 .tag-badge.category-gaming { background: #dbeafe; color: #1e40af; border-color: #93c5fd; }
.anchor-card--v2 .tag-badge.category-entertainment { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.anchor-card--v2 .tag-badge.category-ecommerce { background: #dcfce7; color: #166534; border-color: #bbf7d0; }

.anchor-card--v2 .tag-badge.tag-pk { background: #fee2e2; color: #991b1b; border-color: #fecaca; }

.anchor-card--v2 .anchor-metrics-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 4px;
    flex-wrap: nowrap;
    min-width: 0;
}

.metric-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    min-width: 70px;
    height: 24px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    white-space: nowrap;
}

.metric-pill i {
    font-size: 12px;
}

.avatar-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
}

.avatar-wrapper img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
}

/* 录播磁盘空间提示样式 */
.disk-status-card {
    min-width: 260px;
    border-left: 4px solid transparent;
}

.disk-status-card.ok { border-left-color: #22c55e; }
.disk-status-card.warning { border-left-color: #f59e0b; }
.disk-status-card.critical { border-left-color: #ef4444; }

.tag-ok { background: #22c55e; color: #fff; }
.tag-warning { background: #f59e0b; color: #fff; }
.tag-critical { background: #ef4444; color: #fff; }

.disk-progress {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
}

.disk-progress-bar {
    height: 100%;
    background: #22c55e;
    transition: width 0.3s ease;
}

.disk-progress.warning .disk-progress-bar { background: #f59e0b; }
.disk-progress.critical .disk-progress-bar { background: #ef4444; }

/* 全局监控导航条小组件 */
.global-insights-inline {
    gap: 6px;
}

.insight-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    line-height: 1.2;
    transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.insight-chip:hover {
    transform: translateY(-1px);
    border-color: #dbeafe;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.08);
}

.chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chip-label {
    font-size: 12px;
    color: #6b7280;
}

.chip-value {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
}

.chip-icon {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.mini-pie {
    --pie-percent: 0%;
    --pie-color: #0d6efd;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: conic-gradient(var(--pie-color) var(--pie-percent), #e5e7eb 0);
    position: relative;
    flex-shrink: 0;
}

.mini-pie::after {
    content: "";
    position: absolute;
    inset: 5px;
    background: #f8fafc;
    border-radius: 50%;
}

.mini-pie-success { --pie-color: #22c55e; }
.mini-pie-warning { --pie-color: #f59e0b; }

@media (max-width: 991px) {
    .global-insights-inline {
        width: 100%;
    }

    .insight-chip {
        width: calc(50% - 10px);
        flex: 1 1 calc(50% - 10px);
        min-width: 160px;
    }
}

@media (max-width: 575px) {
    .insight-chip {
        width: 100%;
        min-width: 0;
    }

    .chip-value {
        font-size: 14px;
    }
}

.chip-soft {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    font-size: 0.88rem;
}

.chip-soft i {
    color: #94a3b8;
}

.cleanup-card .btn {
    white-space: nowrap;
}

.live-indicator {
    position: absolute;
    right: -2px;
    top: -2px;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #a0aec0;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6);
}

.live-indicator.live-active {
    background: #34d399;
}

.anchor-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anchor-title-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.anchor-name {
    font-weight: 700;
    color: #1f2937;
    font-size: 1rem;
}

.anchor-id {
    color: #9ca3af;
    font-size: 0.9rem;
}

.meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-line.time-meta {
    color: #9ca3af;
    font-size: 0.85rem;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f8fafc;
    color: #1f2937;
    font-size: 0.88rem;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}

.badge-hot,
.badge-growth {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.anchor-middle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
    flex: 2 1 360px;
}

.stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    min-width: 150px;
    flex: 1 1 150px;
}

.stat-chip i {
    color: #2563eb;
    font-size: 1rem;
}

.stat-chip .stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.stat-chip .stat-number {
    font-weight: 700;
    color: #111827;
    font-size: 1rem;
}

.stat-chip .stat-label {
    color: #6b7280;
    font-size: 0.78rem;
}

.stat-chip.accent {
    background: #eef2ff;
    border-color: #c7d2fe;
}

.anchor-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
    flex: 1 1 220px;
}

.rating-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
}

.rating-score {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: #111827;
    font-size: 1.05rem;
}

.rating-score i {
    color: #f59e0b;
}

.rating-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #4b5563;
}

.pill-badge.risk-low { color: #16a34a; background: #ecfdf3; border-color: #bbf7d0; }
.pill-badge.risk-medium { color: #f59e0b; background: #fffbeb; border-color: #fef3c7; }
.pill-badge.risk-high { color: #ef4444; background: #fef2f2; border-color: #fecdd3; }
.pill-badge.pill-muted { background: #f3f4f6; color: #4b5563; }

.action-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.action-group form {
    margin: 0;
}

.icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    background: #f8fafc;
    color: #4b5563;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
    text-decoration: none;
    cursor: pointer;
}

.icon-btn:hover {
    background: #2563eb;
    color: #fff;
    border-color: #1d4ed8;
}

.soft-label {
    color: #9ca3af;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .anchor-card-row {
        flex-direction: column;
    }
    .anchor-right,
    .rating-box {
        align-items: flex-start;
    }
}

/* 小屏幕下改为卡片式堆叠展示 */
@media (max-width: 991px) {
    .anchor-grid-table thead {
        display: none;
    }

    .anchor-grid-table tbody tr {
        display: block;
        margin-bottom: 16px;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    }

    .anchor-grid-table tbody td {
        display: block;
        width: 100%;
        border: 0;
        padding: 8px 0;
    }

    .anchor-grid-table tbody td + td {
        border-top: 1px dashed #e5e7eb;
    }

    .anchor-card {
        align-items: flex-start;
    }

    .mini-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .anchor-pool-table {
        overflow: visible;
    }
}

/* 桌面端列宽调优 */
@media (min-width: 1200px) {
    .anchor-grid-table .col-anchor {
        width: 22%;
    }

    .anchor-grid-table .col-basic,
    .anchor-grid-table .col-performance,
    .anchor-grid-table .col-fans {
        width: 19%;
    }

    .anchor-grid-table .col-action {
        width: 21%;
    }
}

/* 紧凑布局样式 - 用于精简重构后的主播卡片 */
.anchor-card-row.compact {
    padding: 10px 12px;
    gap: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.anchor-card-row.compact .anchor-left {
    display: flex;
    align-items: center;
    min-width: 200px;
    flex: 1 1 240px;
    gap: 10px;
}

.anchor-card-row.compact .avatar-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.anchor-card-row.compact .avatar-wrapper img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 50%;
}

.anchor-card-row.compact .anchor-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}

.anchor-card-row.compact .anchor-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.anchor-card-row.compact .anchor-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2937;
}

.anchor-card-row.compact .anchor-id {
    font-size: 0.85rem;
    color: #9ca3af;
}

.locale-line-compact {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.flag-icon {
    font-size: 1.2rem;
    line-height: 1;
    cursor: help;
}

.language-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 28px;
    cursor: help;
    border: 1px solid transparent;
}

.language-badge.lang-default {
    background: #f3f4f6;
    color: #6b7280;
    border-color: #e5e7eb;
}

.language-badge.lang-es {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

.language-badge.lang-en {
    background: #dbeafe;
    color: #1e40af;
    border-color: #93c5fd;
}

.language-badge.lang-pt {
    background: #fce7f3;
    color: #9f1239;
    border-color: #f9a8d4;
}

.language-badge.lang-fr {
    background: #e0e7ff;
    color: #3730a3;
    border-color: #a5b4fc;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: help;
    font-size: 0.75rem;
}

.category-icon.category-default {
    background: #f3f4f6;
    color: #6b7280;
}

.category-icon.category-gaming {
    background: #dbeafe;
    color: #1e40af;
}

.category-icon.category-pk {
    background: #fee2e2;
    color: #991b1b;
}

.category-icon.category-entertainment {
    background: #fef3c7;
    color: #92400e;
}

.category-icon.category-ecommerce {
    background: #dcfce7;
    color: #166534;
}

.status-badge-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.7rem;
    cursor: help;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    align-items: stretch;
    width: 100%;
}

.stat-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    cursor: help;
    transition: all 0.15s ease;
    min-width: 0;
}

.stat-item:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

.stat-item i {
    color: #2563eb;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.stat-item .stat-value {
    font-weight: 700;
    color: #111827;
    font-size: 0.85rem;
    line-height: 1.2;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
}

/* /anchors 列表页：中间统计区域紧凑横向布局（只影响 anchor row 的统计块） */
.anchor-card-row .anchor-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
    min-width: 0;
}

.anchor-card-row .anchor-metric-item {
    /* 基础宽度 80px，但允许在极端情况下轻微收缩，避免挤爆布局 */
    flex: 0 1 80px;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap;
}

.anchor-card-row .anchor-metric-item i {
    color: #2563eb;
    font-size: 12px;
    flex-shrink: 0;
}

.anchor-card-row .anchor-metric-item .stat-value {
    font-weight: 700;
    color: #111827;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.anchor-card-row .anchor-metric-item .metric-label {
    display: none;
}

.anchor-card-row .anchor-metric-item:hover {
    background: #eef2ff;
    border-color: #c7d2fe;
    transform: translateY(-1px);
}

@media (max-width: 1200px) {
    .anchor-card-row .anchor-metrics {
        flex-wrap: wrap;
        row-gap: 4px;
        justify-content: flex-start;
    }
    .anchor-card-row .anchor-metric-item {
        flex: 0 0 30%;
    }
}

.status-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    width: 100%;
}

.status-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: help;
    font-size: 0.9rem;
    transition: all 0.15s ease;
}

.status-icon:hover {
    transform: scale(1.1);
}

.status-icon.risk-low {
    background: #ecfdf3;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.status-icon.risk-medium {
    background: #fffbeb;
    color: #f59e0b;
    border: 1px solid #fef3c7;
}

.status-icon.risk-high {
    background: #fef2f2;
    color: #ef4444;
    border: 1px solid #fecdd3;
}

.status-icon.risk-unknown {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.status-icon.priority-0 {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.status-icon.priority-medium {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.status-icon.priority-high {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.status-icon .priority-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

.status-icon.monitor-normal {
    background: #dbeafe;
    color: #2563eb;
    border: 1px solid #93c5fd;
}

.status-icon.monitor-high {
    background: #f3e8ff;
    color: #9333ea;
    border: 1px solid #c4b5fd;
}

.status-icon.monitor-low {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
}

.status-icon.pk-focused {
    background: #fee2e2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.anchor-card-row.compact .anchor-middle {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    flex: 2 1 320px;
    gap: 8px;
    min-width: 0;
}

.anchor-card-row.compact .anchor-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    flex: 1 1 180px;
    min-width: 0;
}

.anchor-card-row.compact .action-group {
    gap: 6px;
}

.anchor-card-row.compact .icon-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .anchor-card-row.compact {
        flex-direction: column;
    }
    
    .anchor-card-row.compact .anchor-left {
        width: 100%;
        min-width: 0;
    }
    
    .anchor-card-row.compact .anchor-middle {
        width: 100%;
        min-width: 0;
    }
    
    .anchor-card-row.compact .anchor-right {
        width: 100%;
        align-items: flex-start;
    }
    
    .anchor-card-row.compact .status-icons {
        align-items: flex-start;
        justify-content: flex-start;
    }
    
    .stat-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }
    
    .stat-item {
        padding: 5px 3px;
    }
    
    .stat-item i {
        font-size: 0.8rem;
    }
    
    .stat-item .stat-value {
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .anchor-card-row.compact {
        padding: 8px 10px;
        gap: 10px;
    }
    
    .anchor-card-row.compact .anchor-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .anchor-card-row.compact .avatar-wrapper {
        align-self: flex-start;
    }
}

/* v2 覆盖：放在文件末尾，避免被 compact 旧规则覆盖 */
.anchor-card-row.compact.anchor-card--v2 {
    flex-wrap: nowrap;
    align-items: center;
    padding: 10px 16px;
}

.anchor-card-row.compact.anchor-card--v2 .anchor-left {
    flex: 0 0 330px;
    min-width: 330px;
}

.anchor-card-row.compact.anchor-card--v2 .anchor-middle {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.anchor-card-row.compact.anchor-card--v2 .anchor-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    margin-left: 12px;
}

.anchor-card-row.compact.anchor-card--v2 .icon-btn {
    width: 32px;
    height: 32px;
}

.anchor-card-row.compact.anchor-card--v2 .anchor-metrics-row {
    justify-content: flex-start;
}
