/* 贾维斯工作台 - 知识洞察面板样式 */

/* ─── 模型先生内嵌指标Grid ─── */
.douyin-metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* ─── 区域分隔 — iPhone Vibrancy 玻璃态 ─── */
.insights-region {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-highlight);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.insights-region:last-child {
    margin-bottom: 0;
}
.insights-region-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.insights-region-header svg {
    width: 18px;
    height: 18px;
}
.insights-region-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}
.insights-region-subtitle {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-left: 4px;
}

/* 知识捕获区域 — 蓝色调 */
.insights-region-capture {
    border-color: rgba(59, 130, 246, 0.15);
}
.insights-region-capture .insights-region-header svg {
    color: #3b82f6;
}

/* AI 记忆区域 — 紫色调 */
.insights-region-smriti {
    border-color: rgba(139, 92, 246, 0.15);
}
.insights-region-smriti .insights-region-header svg {
    color: #8b5cf6;
}

/* ─── 消化通知 ─── */
.insights-digest-toast {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #22c55e;
    animation: insights-fade-in 0.3s ease;
}
.insights-digest-toast svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
@keyframes insights-fade-in {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ─── 洞察卡片操作按钮 ─── */
.insights-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
}
.insights-row:last-child {
    border-bottom: none;
}
.insights-row-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.insights-row-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity 0.2s;
    flex-shrink: 0;
}
.insights-row:hover .insights-row-actions {
    opacity: 1;
}
.insights-row-action-btn {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: var(--text-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}
.insights-row-action-btn:hover {
    color: var(--text-primary);
    background: var(--bg-surface);
}
.insights-row-action-btn svg {
    width: 14px;
    height: 14px;
}
.insights-row-source {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.insights-row-source svg {
    width: 11px;
    height: 11px;
}

/* ─── 加载中动画 ─── */
.insights-digest-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--text-tertiary);
    font-size: 13px;
}
.insights-digest-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-subtle);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: insights-spin 0.6s linear infinite;
}
@keyframes insights-spin {
    to { transform: rotate(360deg); }
}

/* ─── 统计卡片网格 ─── */
.insights-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.insights-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: var(--glass-filter);
    -webkit-backdrop-filter: var(--glass-filter);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}
.insights-stat-card:hover {
    background: var(--glass-bg-hover);
    border-color: var(--glass-border-hover);
    box-shadow: var(--neon-glow);
}

.insights-stat-icon {
    margin-bottom: 6px;
}
.insights-stat-icon svg {
    width: 20px;
    height: 20px;
}

.insights-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.insights-stat-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* ─── 两列布局 ─── */
.insights-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.insights-col {
    min-width: 0;
}

/* ─── 卡片标题 ─── */
.insights-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── 捕获类型网格 ─── */
.insights-capture-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.insights-capture-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 12px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.insights-capture-card:hover {
    background: var(--accent-bg);
    border-color: var(--accent-border);
    box-shadow: var(--neon-glow);
    transform: translateY(-2px);
}

.insights-capture-icon svg {
    width: 20px;
    height: 20px;
}
.insights-capture-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 4px;
}
.insights-capture-desc {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
    line-height: 1.3;
}

/* ─── 洞察列表 ─── */
.insights-row-main {
    margin-bottom: 4px;
    min-width: 0;
}
.insights-row-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.insights-row-snippet {
    font-size: 11px;
    color: var(--text-tertiary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}
.insights-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.insights-tag {
    display: inline-block;
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 4px;
    background: var(--accent-bg);
    color: var(--accent-color);
    white-space: nowrap;
}
.insights-date {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ─── 空状态 ─── */
.insights-empty {
    color: var(--text-tertiary);
    font-size: 13px;
    text-align: center;
    padding: 24px 16px;
}

/* ─── 知识健康度 ─── */
.insights-health-gauge {
    text-align: center;
    margin-bottom: 12px;
}
.insights-health-score {
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
}
.insights-health-score span {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-tertiary);
}
.insights-health-level {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}
.insights-health-trend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.insights-section-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 12px 0 6px;
}
.insights-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.insights-gap-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* 类型分布条 */
.insights-type-bars {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.insights-type-row {
    display: grid;
    grid-template-columns: 36px 1fr 24px;
    align-items: center;
    gap: 8px;
}
.insights-type-label {
    font-size: 11px;
    color: var(--text-tertiary);
}
.insights-type-bar-bg {
    height: 6px;
    background: var(--bg-surface);
    border-radius: 3px;
    overflow: hidden;
}
.insights-type-bar-fill {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}
.insights-type-count {
    font-size: 11px;
    color: var(--text-tertiary);
    text-align: right;
}

/* ─── 周连接状态 ─── */
.insights-weekly-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.insights-weekly-label {
    font-size: 12px;
    color: var(--text-tertiary);
}
.insights-weekly-value {
    font-size: 13px;
    color: var(--text-primary);
}

.insights-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
}
.insights-badge-success {
    background: var(--success-bg);
    color: var(--success-color);
}
.insights-badge-warning {
    background: var(--warning-bg);
    color: var(--warning-color);
}
.insights-badge-danger {
    background: var(--danger-bg);
    color: var(--danger-color);
}

.insights-weekly-tip {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 12px;
    padding: 8px;
    background: var(--bg-surface);
    border-radius: 6px;
    line-height: 1.4;
}

/* ─── 行动建议 ─── */
.insights-rec-card {
    background: var(--card-bg);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.insights-rec-card:last-child {
    margin-bottom: 0;
}
.insights-rec-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.insights-rec-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}
.insights-rec-desc {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.insights-rec-benefit {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-tertiary);
}

/* ─── 输入框 ─── */
.insights-input {
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}
.insights-input:focus {
    border-color: var(--accent-color);
}
.insights-input::placeholder {
    color: var(--text-tertiary);
}

/* ─── 移动端适配 ─── */
@media (max-width: 768px) {
    .insights-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .insights-content-grid {
        grid-template-columns: 1fr;
    }
    .insights-capture-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .insights-stat-value {
        font-size: 22px;
    }
}

/* ─── AI 结果面板 ─── */

.ai-result-panel {
    margin: 16px 0;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--accent-color);
    border-radius: 8px;
    max-height: 500px;
    overflow-y: auto;
}

.ai-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 13px;
    padding: 8px 0;
}

.ai-loading .spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-default);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.ai-error {
    color: var(--danger-color);
    font-size: 13px;
    padding: 8px 0;
}

.ai-result-content {
    animation: fadeIn 0.3s ease;
}

.ai-result-header {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    color: var(--accent-color);
    font-size: 14px;
    margin-bottom: 12px;
}

.ai-result-info {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 8px 0;
    padding: 8px 12px;
    background: var(--bg-primary);
    border-radius: 6px;
}

.ai-result-body {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.ai-result-section-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 12px;
    margin-bottom: 4px;
    font-size: 14px;
}

.ai-result-bold {
    font-weight: 600;
    color: var(--text-primary);
    margin: 6px 0;
}

.ai-result-list-item {
    padding-left: 16px;
    position: relative;
    margin: 4px 0;
}

.ai-result-list-item::before {
    content: '•';
    position: absolute;
    left: 4px;
    color: var(--accent-color);
}

.ai-result-paragraph {
    margin: 4px 0;
}

/* 市场面板内的 AI 结果 */
.market-panel-body .ai-result-panel {
    margin: 12px 8px;
    padding: 12px;
    font-size: 12px;
    border-color: var(--accent-color);
}

.market-panel-body .ai-result-body {
    font-size: 12px;
    line-height: 1.6;
}

/* ═══ 视频知识：筛选按钮 ═══ */
.douyin-filter {
    font-size: 12px;
    padding: 4px 12px;
    border: 1px solid var(--border-default);
    background: transparent;
    color: var(--text-secondary);
    transition: all 0.15s;
}

.douyin-filter:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.douyin-filter.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
}

/* ═══ 视频详情弹窗布局（桌面端 + 移动端） ═══ */

/* 统计条 */
.dy-stats-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
    font-size: 0.8em;
    color: var(--text-secondary);
    flex-wrap: wrap;
}
.dy-stats-mobile {
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.75em;
}

/* 桌面端主体：左视频 + 右内容 */
.dy-main-layout {
    display: flex;
    gap: 16px;
    height: calc(92vh - 160px);
    min-height: 400px;
    max-height: 800px;
}

/* 左列视频 */
.dy-video-col {
    flex: 0 0 340px;
    height: 100%;
    overflow: hidden;
}
.dy-video-box {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    height: 100%;
    position: relative;
}
.dy-cover-box {
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 9 / 16;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dy-poster-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
    background: #000;
}
.dy-video-el {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    background: #000;
}

/* 右列内容区 */
.dy-content-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
}

/* Tab切换器 */
.dy-tab-bar {
    display: flex;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-subtle);
}
.dy-tab-mobile {
    margin-bottom: 8px;
}
.dy-tab-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-tertiary);
    font-size: 0.85em;
    font-weight: 400;
    border-bottom: 2px solid transparent;
}
.dy-tab-btn.active {
    color: var(--accent-color);
    font-weight: 600;
    border-bottom-color: var(--accent-color);
}

/* Tab面板 */
.dy-tab-panel {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

/* 转录文本框 */
.dy-transcript-box {
    background: var(--bg-surface, rgba(255, 255, 255, 0.04));
    border-radius: 8px;
    padding: 14px;
    font-size: 0.85em;
    line-height: 1.8;
    color: var(--text-primary);
    white-space: pre-wrap;
}

/* 空状态 */
.dy-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-tertiary);
    font-size: 0.85em;
}

/* 移动端视频（16:9横向） */
.dy-mobile-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background: #000;
    margin-bottom: 10px;
    position: relative;
}

/* ─── 移动端弹窗面板适配 ─── */
@media (max-width: 768px) {
    .dy-main-layout {
        /* 移动端不会走到这个layout，保险起见 */
        flex-direction: column;
        height: auto;
    }
    .dy-tab-panel {
        max-height: calc(100vh - 320px);
    }
    .dy-transcript-box {
        padding: 10px;
        font-size: 0.82em;
        line-height: 1.7;
    }
    .dy-empty {
        padding: 24px;
    }
}

/* ═══ 知识中枢样式 ═══ */

/* 统计栏 */
.kh-stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}
.kh-stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px 16px;
    text-align: center;
}
.kh-stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.kh-stat-max {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 400;
}
.kh-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 2px;
}

/* 过滤器 */
.kh-filters {
    margin-bottom: 16px;
}
.kh-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.kh-filter-label {
    font-size: 11px;
    color: var(--text-tertiary);
    font-weight: 600;
    min-width: 32px;
}
.kh-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}
.kh-pill:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}
.kh-pill.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.3);
    color: #3b82f6;
    font-weight: 600;
}

/* 知识卡片网格 */
.kh-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.kh-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.kh-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.kh-card-expanded {
    grid-column: 1 / -1;
}

/* 卡片头部 */
.kh-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 11px;
}
.kh-card-type {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
}
.kh-card-project {
    color: var(--text-secondary);
}
.kh-card-date {
    color: var(--text-tertiary);
    margin-left: auto;
}
.kh-card-important {
    color: #f59e0b;
    font-size: 14px;
}

/* 卡片标题 */
.kh-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片要点 */
.kh-card-points {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 卡片标签 */
.kh-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.kh-card-tag {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 8px;
    font-size: 10px;
    background: rgba(107, 114, 128, 0.08);
    color: var(--text-tertiary);
    border: 1px solid rgba(107, 114, 128, 0.1);
}

/* 空状态 */
.kh-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
    font-size: 14px;
}

/* === 捕获弹窗 === */
.kh-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
.kh-modal {
    background: var(--bg-primary);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
}
.kh-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.kh-modal-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}
.kh-modal-close {
    font-size: 20px;
    cursor: pointer;
    color: var(--text-tertiary);
    padding: 4px 8px;
    border-radius: 6px;
}
.kh-modal-close:hover {
    background: rgba(239,68,68,0.1);
    color: #ef4444;
}
.kh-modal-body {
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.kh-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    border-top: 1px solid var(--border-subtle);
}

/* 输入控件 */
.kh-input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}
.kh-input:focus {
    border-color: #3b82f6;
}
.kh-textarea {
    height: 100px;
    resize: vertical;
    font-family: inherit;
}
.kh-input-row {
    display: flex;
    gap: 8px;
}
.kh-select {
    flex: 1;
    cursor: pointer;
}

/* 按钮 */
.kh-btn {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
}
.kh-btn-primary {
    background: #3b82f6;
    color: white;
}
.kh-btn-primary:hover {
    background: #2563eb;
}
.kh-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.kh-btn-secondary {
    background: var(--glass-bg);
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
}
.kh-btn-secondary:hover {
    background: rgba(107,114,128,0.1);
}

@media (max-width: 768px) {
    .kh-stats-bar {
        grid-template-columns: repeat(2, 1fr);
    }
    .kh-cards-grid {
        grid-template-columns: 1fr;
    }
}
