/* ==================== 首页三栏布局样式 ==================== */

:root {
    /* 颜色系统 */
    --color-primary: #3366cc;
    --color-primary-light: #e8f0fe;
    --color-success: #22c55e;
    --color-warning: #f59e0b;
    --color-danger: #ef4444;
    --color-info: #3b82f6;

    --color-bg: #ffffff;
    --color-surface: #f8fafc;
    --color-border: #e2e8f0;

    --color-text-primary: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* 尺寸 */
    --sidebar-width: 260px;
    --chat-width: 288px;
    --gap: 20px;

    /* 圆角 */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    /* 阴影 */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* ==================== 主布局容器 ==================== */
.home-layout {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr var(--chat-width);
    gap: var(--gap);
    min-height: calc(100vh - 64px - 48px);
    padding: var(--gap);
    max-width: 1920px;
    margin: 0 auto;
}

/* ==================== 左侧导航栏 ==================== */
.home-sidebar {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    height: fit-content;
    max-height: calc(100vh - 140px);
    position: sticky;
    top: 84px;
}

.sidebar-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.nav-section {
    margin-bottom: 20px;
}

.nav-section:last-child {
    margin-bottom: 0;
}

.nav-section-title {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    padding-left: 8px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-bottom: 4px;
}

.nav-item:hover {
    background: var(--color-surface);
    color: var(--color-primary);
    transform: translateX(4px);
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.nav-text {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.status-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-label {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.status-value {
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

/* Regime 状态颜色 */
.status-value.regime-recovery { background: #dcfce7; color: #166534; }
.status-value.regime-overheat { background: #fee2e2; color: #991b1b; }
.status-value.regime-stagflation { background: #fef3c7; color: #92400e; }
.status-value.regime-deflation { background: #dbeafe; color: #1e40af; }
.status-value.regime-unknown { background: #e2e8f0; color: #334155; }

/* 政策档位颜色 */
.status-value.policy-p0 { background: #dcfce7; color: #166534; }
.status-value.policy-p1 { background: #fef3c7; color: #92400e; }
.status-value.policy-p2 { background: #fed7aa; color: #9a3412; }
.status-value.policy-p3 { background: #fee2e2; color: #991b1b; }
.status-value.policy-unknown { background: #e2e8f0; color: #334155; }

/* ==================== 中间主内容区 ==================== */
.home-main {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.priority-panels-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(480px, 1.4fr);
    gap: var(--gap);
    margin-bottom: var(--gap);
    align-items: stretch;
}

.priority-panels-grid > * {
    min-width: 0;
}

/* 顶部欢迎区 */
.home-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: var(--radius-lg);
    padding: 24px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.header-welcome {
    flex: 1;
}

.home-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.home-subtitle {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 32px;
}

.header-stat {
    text-align: right;
}

.header-stat .stat-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
}

.header-stat .stat-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
}

.header-stat .stat-value.positive { color: #86efac; }
.header-stat .stat-value.negative { color: #fca5a5; }

/* 核心指标卡片 */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.metric-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

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

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

.metric-icon {
    font-size: 20px;
}

.metric-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.metric-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.metric-value.positive { color: var(--color-success); }
.metric-value.negative { color: var(--color-danger); }

.metric-footer {
    font-size: 12px;
    color: var(--color-text-muted);
}

.metric-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

/* Regime 象限区 */
.regime-section {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

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

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
}

.section-link {
    font-size: 13px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.section-link:hover {
    text-decoration: underline;
}

.chart-account-label {
    font-size: 12px;
    color: var(--color-text-secondary, #888);
    background: var(--color-bg-secondary, #f5f5f5);
    padding: 2px 8px;
    border-radius: 4px;
}

.regime-matrix {
    display: flex;
    align-items: center;
    gap: 16px;
}

.regime-axis-y {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-muted);
    letter-spacing: 2px;
    transform: rotate(180deg);
}

.regime-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    flex: 1;
}

.regime-quad {
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.regime-quad:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.regime-quad.active {
    border-color: currentColor;
    box-shadow: 0 0 0 4px currentColor, var(--shadow-lg);
    opacity: 1;
}

.quad-recovery {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
}

.quad-overheat {
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
    color: #991b1b;
}

.quad-deflation {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    color: #166534;
}

.quad-stagflation {
    background: linear-gradient(135deg, #fefce8, #fef9c3);
    color: #854d0e;
}

.quad-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.quad-prob {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.quad-hint {
    font-size: 12px;
    opacity: 0.8;
}

/* 内容卡片行 */
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--gap);
}

.content-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.content-card.half {
    flex: 1;
}

.card-body {
    padding: 16px 20px;
}

/* 数据表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background: var(--color-surface);
}

.data-table th {
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--color-surface);
}

.data-table tbody tr:hover {
    background: var(--color-surface);
}

.data-table .positive { color: var(--color-success); }
.data-table .negative { color: var(--color-danger); }

/* 信号列表 */
.signal-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.signal-item {
    padding: 12px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    transition: all 0.2s ease;
}

.signal-item:hover {
    box-shadow: var(--shadow-sm);
    border-color: var(--color-primary);
}

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

.signal-asset {
    font-weight: 600;
    font-size: 14px;
    color: var(--color-text-primary);
}

.signal-badge {
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.signal-badge.badge-long { background: #dbeafe; color: #1e40af; }
.signal-badge.badge-short { background: #fee2e2; color: #991b1b; }

.signal-logic {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin: 0;
}

/* 空状态 */
.empty-state {
    text-align: center;
    padding: 32px;
    color: var(--color-text-muted);
}

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

/* 系统状态 */
.system-status {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.status-item-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
}

.status-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-sm);
}

.status-content {
    flex: 1;
}

.status-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.status-desc {
    font-size: 11px;
    color: var(--color-text-muted);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-indicator.status-ok {
    background: var(--color-success);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2);
}

/* ==================== 右侧 AI 聊天窗口 ==================== */
.home-chat {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    height: fit-content;
    max-height: calc(100vh - 140px);
    position: sticky;
    top: 84px;
    overflow: hidden;
}

.chat-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.chat-status {
    width: 8px;
    height: 8px;
    background: #86efac;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(134, 239, 172, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    min-height: 400px;
    max-height: 500px;
    background: var(--color-surface);
}

.message {
    margin-bottom: 16px;
    display: flex;
}

.message-system {
    justify-content: center;
}

.message-user {
    justify-content: flex-end;
}

.message-content {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.5;
}

.message-system .message-content {
    background: white;
    color: var(--color-text-primary);
    border: 1px solid var(--color-border);
}

.message-user .message-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.message-content p {
    margin: 0 0 8px 0;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.message-content ul {
    margin: 8px 0;
    padding-left: 20px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    resize: none;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
}

.chat-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-light);
}

.btn-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-send:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* AI 建议卡片 */
.ai-suggestions {
    padding: 16px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.suggestions-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.suggestion-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-btn {
    padding: 10px 14px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--color-text-secondary);
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-btn:hover {
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1600px) {
    :root {
        --sidebar-width: 240px;
        --chat-width: 280px;
    }

    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .home-layout {
        grid-template-columns: 1fr;
    }

    .home-sidebar,
    .home-chat {
        position: static;
        max-height: none;
    }

    .content-row {
        grid-template-columns: 1fr;
    }

    .priority-panels-grid {
        grid-template-columns: 1fr;
    }

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --gap: 16px;
    }

    .home-header {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .header-actions {
        justify-content: center;
        width: 100%;
    }

    .header-stat {
        text-align: center;
    }

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

    .regime-axis-y {
        display: none;
    }

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

/* ==================== Regime Status Bar ==================== */
.regime-status-bar {
    padding: 10px 20px;
    border-radius: var(--radius-md);
    margin-bottom: var(--gap);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease;
}

.regime-status-bar__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
}

.regime-bg-recovery { background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%); }
.regime-bg-overheat { background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%); }
.regime-bg-stagflation { background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%); }
.regime-bg-deflation { background: linear-gradient(135deg, #eff6ff 0%, #bfdbfe 100%); }
.regime-bg-unknown { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); }

.regime-badge {
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
}
.regime-badge--recovery { background: rgba(22,101,52,0.12); color: #166534; }
.regime-badge--overheat { background: rgba(154,52,18,0.12); color: #9a3412; }
.regime-badge--stagflation { background: rgba(153,27,27,0.12); color: #991b1b; }
.regime-badge--deflation { background: rgba(30,64,175,0.12); color: #1e40af; }

.regime-direction { display: flex; align-items: center; gap: 4px; }
.regime-arrow--stable { color: var(--color-success); font-size: 10px; }
.regime-arrow--warn { color: var(--color-warning); animation: blink 1.5s infinite; }

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.regime-confidence__label,
.regime-risk-budget__label { color: var(--color-text-muted); margin-right: 4px; }
.regime-confidence__value,
.regime-risk-budget__value { font-weight: 600; color: var(--color-text-primary); }

.regime-divider { color: var(--color-text-muted); opacity: 0.4; }

.pulse-badge--strong { color: var(--color-success); font-weight: 600; }
.pulse-badge--moderate { color: var(--color-warning); font-weight: 600; }
.pulse-badge--weak { color: var(--color-danger); font-weight: 600; }

.regime-warning-badge {
    background: var(--color-danger);
    color: white;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    animation: blink 1.5s infinite;
}

/* ==================== Pulse Dashboard Card ==================== */
.pulse-dashboard-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.pulse-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.pulse-card__title { font-size: 16px; font-weight: 600; margin: 0; }
.pulse-card__date { font-size: 12px; color: var(--color-text-muted); }

.pulse-composite {
    text-align: center;
    margin-bottom: 20px;
}

.pulse-composite__score {
    font-size: 36px;
    font-weight: 700;
}

.pulse-composite--strong { color: var(--color-success); }
.pulse-composite--moderate { color: var(--color-warning); }
.pulse-composite--weak { color: var(--color-danger); }

.pulse-composite__label {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.pulse-dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.pulse-dim {
    padding: 12px;
    border-radius: var(--radius-sm);
    background: var(--color-surface);
}

.pulse-dim--bullish { --pulse-fill-color: var(--color-success); }
.pulse-dim--neutral { --pulse-fill-color: var(--color-warning); }
.pulse-dim--bearish { --pulse-fill-color: var(--color-danger); }

.pulse-dim__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.pulse-dim__score {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.pulse-dim__bar {
    height: 6px;
    background: var(--color-border);
    border-radius: 3px;
    overflow: hidden;
}

.pulse-dim__fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.pulse-warning {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #92400e;
}

.pulse-stale-notice {
    margin-top: 8px;
    padding: 6px 12px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    font-size: 11px;
    color: var(--color-text-muted);
}

/* ==================== Action Recommendation Card ==================== */
.action-rec-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.action-rec__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.action-rec__title { font-size: 16px; font-weight: 600; margin: 0; }
.action-rec__confidence { font-size: 12px; color: var(--color-text-muted); }

.action-rec__allocations {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.action-alloc-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-alloc__label {
    width: 72px;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.action-alloc__bar {
    flex: 1;
    height: 8px;
    background: var(--color-surface);
    border-radius: 4px;
    overflow: hidden;
}

.action-alloc__fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.action-alloc__fill--equity { background: #3b82f6; }
.action-alloc__fill--bond { background: #22c55e; }
.action-alloc__fill--commodity { background: #f59e0b; }
.action-alloc__fill--cash { background: #94a3b8; }

.action-alloc__value {
    width: 40px;
    text-align: right;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-primary);
}

.action-rec__risk-row {
    display: flex;
    justify-content: space-between;
    gap: 10px 16px;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.action-rec__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.action-rec__tags-label {
    font-size: 12px;
    color: var(--color-text-muted);
}

.action-tag {
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 500;
}

.action-tag--sector { background: #dbeafe; color: #1e40af; }
.action-tag--style { background: #dcfce7; color: #166534; }

.action-rec__hedge {
    margin-top: 8px;
    padding: 8px 12px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #92400e;
}

.action-rec__reasoning {
    margin-top: 12px;
}

.action-rec__reasoning summary {
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.action-rec__reasoning p {
    font-size: 12px;
    color: var(--color-text-muted);
    margin: 4px 0;
    line-height: 1.5;
}

.attention-card {
    background: var(--color-card-bg, #fff);
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius-lg, 16px);
    padding: 18px;
    box-shadow: var(--shadow-sm, 0 6px 18px rgba(15, 23, 42, 0.06));
}

.attention-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.attention-card__title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.attention-card__count {
    min-width: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.attention-card__body {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
}

.attention-item {
    border-radius: var(--radius-md, 12px);
    padding: 12px 14px;
    border: 1px solid transparent;
}

.attention-item--high {
    background: #fef2f2;
    border-color: #fecaca;
}

.attention-item--medium {
    background: #fff7ed;
    border-color: #fed7aa;
}

.attention-item--low {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.attention-item__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: 4px;
}

.attention-item__detail,
.attention-item__meta {
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

.attention-item__meta {
    margin-top: 4px;
    color: var(--color-text-muted);
}
