/* ── 知识→技能优化面板 ── */
#optimize-panel { margin-top: 24px; }

.opt-proposal {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 8px;
  background: var(--bg);
  transition: box-shadow .15s;
}
.opt-proposal:hover { box-shadow: 0 1px 6px rgba(0,0,0,.08); }

.opt-proposal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.opt-proposal-type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}
.opt-type-gene { background: #E3F2FD; color: #1565C0; }
.opt-type-forbidden { background: #FFEBEE; color: #C62828; }
.opt-type-viral { background: #FFF3E0; color: #E65100; }
.opt-type-quality { background: #F3E5F5; color: #6A1B9A; }
.opt-type-platform { background: #F3E5F5; color: #6A1B9A; }
.opt-type-search { background: #E8F5E9; color: #2E7D32; }
.opt-type-section { background: #E0F7FA; color: #00695C; }

.opt-proposal-desc {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 6px;
  line-height: 1.5;
}
.opt-diff-preview {
  font-size: 12px;
  color: var(--text-secondary);
  padding: 6px 8px;
  background: var(--bg-gray);
  border-radius: 4px;
  margin-bottom: 8px;
  font-family: var(--font-mono, monospace);
}
.opt-confidence-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.opt-confidence-bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #E0E0E0;
  overflow: hidden;
}
.opt-confidence-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .3s;
  background: var(--primary);
}
.opt-confidence-fill.high { background: var(--primary); }
.opt-confidence-fill.medium { background: #FFA000; }
.opt-confidence-fill.low { background: #E53935; }

.opt-history-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  font-size: 12px;
  border-bottom: 1px solid var(--border);
}
.opt-history-item:last-child { border-bottom: none; }

.opt-badge-applied {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  background: #E8F5E9;
  color: #2E7D32;
}
.opt-badge-pending {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 10px;
  background: #FFF8E1;
  color: #F57F17;
}

/* ════════════════════════════════════════════
   内联样式替代工具类（自动生成，减少 JS 内联）
   ════════════════════════════════════════════ */
.text-secondary { color: var(--text-secondary); }
.text-danger { color: var(--danger); }
.text-center { text-align: center; }
.text-sm { font-size: 12px; }
.text-xs { font-size: 11px; }
.text-base { font-size: 13px; }
.text-md { font-size: 14px; }
.text-lg { font-size: 15px; }
.text-bold { font-weight: 600; }
.mt-4 { margin-top: 4px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mb-4 { margin-bottom: 4px; }
.mb-6 { margin-bottom: 6px; }
.mb-8 { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.p-4 { padding: 4px; }
.p-8 { padding: 8px; }
.p-12 { padding: 12px; }
.p-16 { padding: 16px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-4 { gap: 4px; }
.gap-8 { gap: 8px; }
.grid-full { grid-column: 1 / -1; }
.hidden { display: none; }
.w-full { width: 100%; }
.rounded-4 { border-radius: 4px; }
.rounded-6 { border-radius: 6px; }
.rounded-8 { border-radius: 8px; }
.overflow-hidden { overflow: hidden; }

/* ════════════════════════════════════════════
   质量管理看板
   ════════════════════════════════════════════ */
.qd-container { padding: 16px; max-width: 960px; margin: 0 auto; }
.qd-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); padding-bottom: 8px; }
.qd-tab { padding: 6px 16px; border: none; background: none; cursor: pointer; font-size: 13px; border-radius: 6px; color: var(--text-secondary); }
.qd-tab:hover { background: var(--bg-gray); }
.qd-tab-active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.qd-panel { padding: 16px 0; }
.qd-card { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 16px; }
.qd-card-title { font-size: 12px; color: var(--text-secondary); margin-bottom: 6px; }
.qd-card-value { font-size: 28px; font-weight: 700; margin-bottom: 4px; }

/* ════════════════════════════════════════════
   技能广场 (L3 Skill Plaza)
   ════════════════════════════════════════════ */
.plaza-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.plaza-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  transition: box-shadow .15s, transform .15s;
}
.plaza-card:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.plaza-card-disabled { opacity: .5; }
.plaza-card-body { display: flex; flex-direction: column; gap: 8px; }
.plaza-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.plaza-card-name { font-size: 15px; font-weight: 700; color: var(--text); }
.plaza-card-sub { font-size: 12px; color: var(--text-secondary); }
.plaza-card-desc { font-size: 13px; color: var(--text); line-height: 1.4; }
.plaza-card-meta { font-size: 12px; color: var(--text-secondary); }
.plaza-card-actions { display: flex; gap: 6px; margin-top: 4px; }

/* Type tags */
.plaza-type-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.tag-write { background: #e3f2fd; color: #1565C0; }
.tag-course { background: #f3e5f5; color: #7B1FA2; }
.tag-analysis { background: #e8f5e9; color: #2E7D32; }
.tag-persona { background: #fff3e0; color: #E65100; }
.tag-chat { background: #e0f2f1; color: #00695C; }
.tag-seo { background: #fce4ec; color: #C62828; }
.tag-social { background: #f3e5f5; color: #6A1B9A; }
.tag-mixed { background: #f5f5f5; color: #616161; }
.tag-script { background: #e8eaf6; color: #283593; }
.tag-other { background: #f5f5f5; color: #757575; }

/* Status dot */
.plaza-status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-left: 4px;
}

/* Info tags (LLM / Bridge / Health) */
.plaza-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.plaza-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}
.plaza-tag-icon { font-size: 11px; }
.plaza-tag-llm { background: #f0f4ff; border-color: #b3d4ff; color: #1a56db; }
.plaza-tag-bridge-on { background: #f0fdf4; border-color: #86efac; color: #166534; }
.plaza-tag-bridge-off { background: #f5f5f5; border-color: #d4d4d4; color: #737373; }
.plaza-tag-health { font-weight: 600; }

/* Filter buttons */
.plaza-filter-btn { font-size: 12px !important; padding: 4px 12px !important; }
.plaza-filter-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ════════════════════════════════════════════
   技能执行 (L3 Skill Execute)
   ════════════════════════════════════════════ */
#exec-skill-info span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#exec-status {
  transition: opacity .3s;
}
#exec-status:empty { display: none; }
#exec-output-area:empty { display: none; }
#exec-content-editable:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 2px rgba(26,86,219,0.15);
}
#exec-drafts-list {
  scrollbar-width: thin;
}
.btn-xs {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  cursor: pointer;
  color: var(--text-secondary);
}
.btn-xs:hover { background: var(--bg-gray); }

/* ════════════════════════════════════════════
   技能工坊 (L3 Skill Workshop)
   ════════════════════════════════════════════ */
#workshop-health:empty { display: none; }
#workshop-benchmark:empty { display: none; }
#bench-progress:empty { display: none; }

/* ════════════════════════════════════════════
   L4 项目仪表盘 Tab 导航
   ════════════════════════════════════════════ */
.project-tab {
  padding: 8px 18px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.project-tab:hover { color: var(--text); background: rgba(0,0,0,0.02); }
.project-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}
.project-tab-content { display: none; }
.project-tab-content.active { display: block; }
.project-card-clickable { cursor: pointer; transition: box-shadow 0.2s; }
.project-card-clickable:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.project-gen-textarea { min-height: 80px; resize: vertical; width: 100%; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 14px; }
.project-gen-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(26,86,219,0.15); }
.project-filter-select { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; background: var(--bg-card); }
.project-content-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.project-content-row:hover { background: var(--bg-gray); }

/* ── L4 设置 Tab ── */
.settings-layout { padding: 24px; max-width: 960px; }
.settings-section { background: var(--surface, #fff); border-radius: 10px; padding: 20px; margin-bottom: 20px; border: 1px solid var(--border, #e0e0e0); }
.settings-section h3 { margin: 0 0 16px; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.settings-field { margin-bottom: 12px; }
.settings-field label { display: block; font-size: 12px; color: var(--text-secondary, #666); margin-bottom: 4px; }
.settings-field input[type="text"], .settings-field textarea, .settings-field select { padding: 8px 12px; border: 1px solid var(--border, #e0e0e0); border-radius: 6px; font-size: 14px; background: var(--bg-card, #fff); }
.settings-field input[type="text"]:focus, .settings-field textarea:focus { border-color: var(--primary, #1a56db); box-shadow: 0 0 0 2px rgba(26,86,219,0.15); }
.settings-field-row { display: flex; gap: 16px; }
.settings-field.half { flex: 1; }
.settings-field input[type="checkbox"] { margin-right: 6px; }
.settings-skills-list { display: flex; flex-wrap: wrap; gap: 6px; }
.setting-skill-badge { display: inline-block; padding: 4px 12px; background: #e3f2fd; color: #1565C0; border-radius: 12px; font-size: 13px; }
.settings-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.setting-lang-badge { display: inline-block; padding: 4px 10px; background: #f3e5f5; color: #7b1fa2; border-radius: 12px; font-size: 13px; }
.setting-lang-badge .lang-remove { color: #7b1fa2; text-decoration: none; margin-left: 4px; font-weight: bold; }
.setting-lang-badge .lang-remove:hover { color: #c62828; }
.settings-add-lang { display: flex; gap: 8px; align-items: center; }
.settings-hint { font-size: 12px; color: var(--text-secondary, #999); margin: 8px 0 0; }
.settings-channels-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.settings-channels-table th { text-align: left; padding: 8px 10px; border-bottom: 2px solid var(--border, #e0e0e0); font-weight: 600; color: var(--text-secondary, #666); }
.settings-channels-table td { padding: 8px 10px; border-bottom: 1px solid var(--border, #e0e0e0); }
.settings-channels-table tr:hover td { background: var(--bg-gray, #f5f5f5); }
.settings-channels-table a { text-decoration: none; color: var(--primary, #1a56db); cursor: pointer; }
.btn-primary { padding: 10px 24px; background: var(--primary, #1a56db); color: #fff; border: none; border-radius: 8px; font-size: 14px; cursor: pointer; }
.btn-primary:hover { background: #1557b0; }
.btn-sm { padding: 6px 14px; background: var(--surface, #f5f5f5); border: 1px solid var(--border, #e0e0e0); border-radius: 6px; font-size: 13px; cursor: pointer; }
.btn-sm:hover { background: #e8e8e8; }

/* ════════════════════════════════════════════
   L4 项目仪表盘 — Dashboard 视觉升级
   ════════════════════════════════════════════ */

/* 项目详情页头部 */
.project-detail-header {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-gray) 100%);
  border-bottom: 1px solid var(--border);
  padding: 16px 0 0;
}

.back-link {
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.back-link:hover {
  color: var(--primary);
  background: var(--primary-light);
}

.project-detail-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.project-detail-brand {
  flex: 1;
}

.project-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.project-detail-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.project-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}

.project-detail-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 概览 Tab — Dashboard 布局 */
.ov-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ov-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  transition: box-shadow 0.2s;
}

.ov-card:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.ov-card-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

/* 阶段时间线 */
.ov-phase-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ov-phase-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #E0E0E0;
  transition: background 0.15s;
  font-size: 13px;
}

.ov-phase-item.current {
  background: var(--primary-light);
  border-left-color: var(--primary);
}

.ov-phase-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  flex-shrink: 0;
}

.ov-phase-info {
  flex: 1;
  min-width: 0;
}

.ov-phase-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-phase-desc {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-phase-status {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

/* 统计卡片网格 */
.ov-stats-grid {
  display: grid;
  gap: 10px;
  text-align: center;
}

.ov-stat-card {
  padding: 14px 8px;
  background: var(--bg-gray);
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: default;
}

.ov-stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
}

.ov-stat-value {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.ov-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 渠道列表 */
.ov-channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.ov-channel-item:last-child {
  border-bottom: none;
}

.ov-channel-name {
  background: var(--primary-light);
  padding: 2px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--primary);
  min-width: 80px;
  text-align: center;
}

.ov-channel-url {
  color: var(--text-secondary);
  font-size: 11px;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ov-channel-badge {
  font-size: 10px;
  padding: 1px 8px;
  border-radius: 8px;
  background: var(--bg-gray);
  color: var(--text-secondary);
}

/* 快捷操作栏 */
.ov-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.ov-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  transition: all 0.15s;
  text-decoration: none;
}

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

.ov-action-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ov-action-btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(7,193,96,0.3);
}

/* 技能产出分布 */
.ov-skill-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.ov-skill-bar-label {
  width: 100px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ov-skill-bar-track {
  flex: 1;
  height: 18px;
  background: var(--bg-gray);
  border-radius: 9px;
  overflow: hidden;
}

.ov-skill-bar-fill {
  height: 100%;
  border-radius: 9px;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 10px;
  color: #fff;
  font-weight: 500;
}

/* 分布标签 */
.ov-dist-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: default;
  transition: all 0.15s;
}

.ov-dist-tag:hover {
  border-color: var(--primary);
  color: var(--text);
}

/* Tab 头部增强 */
.project-tab-bar {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--bg);
}

.project-tab-bar::-webkit-scrollbar { display: none; }

/* 空状态 */
.ov-empty-state {
  padding: 32px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-gray);
  border-radius: 10px;
  border: 1px dashed var(--border);
}

/* 全宽卡片（底部） */
.ov-card-full {
  grid-column: 1 / -1;
}

/* 指标 Tab 增强 */
.metrics-grid {
  display: grid;
  gap: 16px;
}

.metrics-kpi-grid {
  display: grid;
  gap: 10px;
  text-align: center;
}

.metrics-kpi-card {
  padding: 16px 12px;
  background: var(--bg-gray);
  border-radius: 10px;
  transition: transform 0.15s;
}

.metrics-kpi-card:hover {
  transform: translateY(-1px);
}

.metrics-kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.metrics-kpi-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.metrics-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 13px;
}

.metrics-bar-label {
  width: 70px;
  font-weight: 500;
}

.metrics-bar-track {
  flex: 1;
  height: 20px;
  background: var(--bg-gray);
  border-radius: 10px;
  overflow: hidden;
}

.metrics-bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  font-size: 10px;
  color: #fff;
  font-weight: 600;
}

.metrics-bar-count {
  min-width: 30px;
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
}

/* 全屏概览页 — 适用于项目首页 */
.ov-fullscreen-section {
  grid-column: 1 / -1;
}

/* ══════════════════════════════════════════════
   L4 总控台 — 运营简报
   ══════════════════════════════════════════════ */

.ops-loading {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.ops-banner {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.ops-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.ops-banner-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.ops-banner-date {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 400;
}

.ops-banner-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 18px;
}

.ops-banner-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

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

.ops-banner-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.ops-banner-projects {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-project-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 13px;
}

.ops-project-row:hover {
  background: var(--bg-gray);
}

.ops-project-name {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 200px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.ops-project-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.ops-project-counts {
  font-size: 11px;
  color: var(--text-secondary);
  width: 100px;
  text-align: right;
  flex-shrink: 0;
}

.ops-project-bar {
  flex: 1;
  height: 8px;
  background: var(--bg-gray);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  gap: 2px;
}

.ops-project-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
  min-width: 2px;
}

/* ── 需要关注 ── */

.ops-alerts {
  background: var(--bg);
  border: 1px solid #FFCDD2;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.ops-alerts-header {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text);
}

.ops-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ops-alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--alert-color, #E53935);
  background: var(--bg-gray);
  cursor: pointer;
  transition: background 0.15s;
}

.ops-alert-item:hover {
  background: #FFF5F5;
}

.ops-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.ops-alert-body {
  flex: 1;
  min-width: 0;
}

.ops-alert-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.ops-alert-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 1px;
}

.ops-alert-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 两列布局 ── */

.ops-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .ops-two-col {
    grid-template-columns: 1fr;
  }
}

.ops-section-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
}

.ops-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.ops-section-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.ops-section-body {
  font-size: 13px;
  color: var(--text);
}

/* ── 技能负载条 ── */

.skill-load-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
}

.skill-load-name {
  width: 120px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.skill-load-bar-track {
  flex: 1;
  height: 8px;
  background: var(--bg-gray);
  border-radius: 4px;
  overflow: hidden;
}

.skill-load-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.skill-load-count {
  width: 30px;
  text-align: right;
  font-size: 12px;
  color: var(--text-secondary);
}

.skill-load-rate {
  width: 44px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
}

.skill-load-rate.good { color: var(--success); }
.skill-load-rate.warn { color: #FB8C00; }
.skill-load-rate.bad { color: var(--danger); }

/* ── 知识补给 ── */

.knowledge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
}

.knowledge-item-icon {
  flex-shrink: 0;
}

.knowledge-item-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.knowledge-item-count {
  font-size: 11px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   L4 作战室 — 项目详情
   ══════════════════════════════════════════════ */

.war-room-header {
  padding: 0 0 16px 0;
}

.back-link {
  font-size: 13px;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: opacity 0.15s;
}

.back-link:hover {
  opacity: 0.8;
}

.war-room-identity {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 8px;
}

.project-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.wr-identity-text {
  flex: 1;
  min-width: 0;
}

.wr-identity-text h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

/* ── 作战室内容区块 ── */

.wr-section {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.wr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.wr-section-title {
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
}

/* ── 产出统计卡 ── */

.wr-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.wr-stat-card {
  padding: 14px 8px;
  background: var(--bg-gray);
  border-radius: 10px;
  text-align: center;
  transition: transform 0.15s;
}

.wr-stat-card:hover {
  transform: translateY(-1px);
}

.wr-stat-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.wr-stat-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.wr-stat-trend {
  font-size: 11px;
  margin-top: 2px;
  font-weight: 500;
}

.wr-stat-trend.up { color: var(--success); }
.wr-stat-trend.down { color: var(--danger); }

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

/* ── 流水线三列 ── */

.wr-pipeline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

@media (max-width: 900px) {
  .wr-pipeline {
    grid-template-columns: 1fr;
  }
}

.wr-pipeline-col {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 14px;
  min-height: 160px;
}

.wr-pipeline-col-header {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wr-pipeline-col-header .count {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: auto;
}

.wr-pipeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: box-shadow 0.15s;
}

.wr-pipeline-card:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.wr-pipeline-card-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-pipeline-card-meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  font-size: 11px;
  color: var(--text-secondary);
}

.wr-pipeline-empty {
  color: var(--text-secondary);
  font-size: 12px;
  text-align: center;
  padding: 24px 0;
}

/* ── 排期时间线 ── */

.wr-timeline {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wr-timeline-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
  border-left: 3px solid var(--border);
  transition: background 0.15s;
}

.wr-timeline-item:hover {
  background: var(--bg-gray);
}

.wr-timeline-time {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  width: 54px;
  flex-shrink: 0;
  text-align: right;
}

.wr-timeline-info {
  flex: 1;
  min-width: 0;
}

.wr-timeline-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-timeline-channel {
  font-size: 11px;
  color: var(--text-secondary);
}

.wr-timeline-status {
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── 操作台 ── */

.wr-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wr-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  background: var(--bg);
  color: var(--text);
  transition: all 0.15s;
  text-decoration: none;
}

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

.wr-action-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.wr-action-btn.primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(7,193,96,0.3);
}

.wr-action-btn.danger {
  color: var(--danger);
  border-color: #FFCDD2;
}

.wr-action-btn.danger:hover {
  background: #FFF5F5;
}

/* ── 团队面板 ── */

.wr-team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 1000px) {
  .wr-team-grid {
    grid-template-columns: 1fr;
  }
}

.wr-team-card {
  background: var(--bg-gray);
  border-radius: 10px;
  padding: 14px;
}

.wr-team-card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.wr-skill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}

.wr-skill-name {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-skill-stat {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wr-skill-rate-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wr-channel-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-size: 12px;
}

.wr-channel-name {
  flex: 1;
  font-weight: 500;
}

.wr-channel-status {
  font-size: 10px;
  font-weight: 500;
  padding: 1px 8px;
  border-radius: 6px;
}

.wr-channel-status.ok { background: #E8F5E9; color: #2E7D32; }
.wr-channel-status.warn { background: #FFF8E1; color: #F57F17; }

/* ── 交付物列表 ── */

.wr-del-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wr-del-table th {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 2px solid var(--border);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.wr-del-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wr-del-table tr {
  transition: background 0.1s;
}

.wr-del-table tr:hover {
  background: var(--bg-gray);
}

.wr-del-table .title-col {
  max-width: 250px;
}

.wr-status-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* ── 指标看板 ── */

.wr-metrics-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

@media (max-width: 700px) {
  .wr-metrics-kpi {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wr-metrics-kpi-card {
  padding: 14px 12px;
  background: var(--bg-gray);
  border-radius: 10px;
  text-align: center;
}

.wr-metrics-kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.wr-metrics-kpi-label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.wr-empty-state {
  padding: 40px;
  text-align: center;
  color: var(--text-secondary);
  background: var(--bg-gray);
  border-radius: 10px;
  border: 1px dashed var(--border);
}

/* ── LLM PM 面板 ── */

.wr-llm-section {
  font-size: 13px;
}

.wr-llm-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wr-phase-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border-left: 3px solid #E0E0E0;
  margin-bottom: 4px;
  font-size: 13px;
}

.wr-phase-item.current {
  background: var(--primary-light);
}

.wr-decision-item {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

/* ── 过滤筛选栏 ── */

.wr-filter-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wr-filter-select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
  background: var(--bg);
  color: var(--text);
}

/* ══════════════════════════════════════════════
   视觉 DAG 工作流节点
   ══════════════════════════════════════════════ */

/* ── DAG 定义头部 ── */
.wf-dag-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.wf-dag-header-title {
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.wf-dag-header-meta {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── DAG 流线容器 ── */
.wf-dag-flow {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  min-height: 40px;
}

/* ── DAG 行（依赖层级） ── */
.wf-dag-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  position: relative;
}

/* ── DAG 节点卡片 ── */
.wf-node {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  position: relative;
  cursor: default;
  transition: all 0.2s ease;
  min-width: 60px;
  white-space: nowrap;
  user-select: none;
}
.wf-node:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.wf-node-icon {
  font-size: 14px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  flex-shrink: 0;
}
.wf-node-name {
  max-width: 100px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wf-node-skill {
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: inherit;
  opacity: 0.8;
  max-width: 70px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wf-node-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── 节点类型色系 ── */
.wf-node-skill {
  background: #E3F2FD;
  border: 1px solid #90CAF9;
  color: #1565C0;
}
.wf-node-platform {
  background: #F3E5F5;
  border: 1px solid #CE93D8;
  color: #7B1FA2;
}
.wf-node-human_gate {
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  color: #E65100;
}
.wf-node-publish {
  background: #E8F5E9;
  border: 1px solid #A5D6A7;
  color: #2E7D32;
}
.wf-node-tool {
  background: #F5F5F5;
  border: 1px solid #BDBDBD;
  color: #616161;
}
.wf-node-condition {
  background: #FFF8E1;
  border: 1px solid #FFD54F;
  color: #F57F17;
}

/* ── 节点状态覆盖 ── */
.wf-node.completed {
  border-color: #43A047;
  box-shadow: inset 0 0 0 1px #43A04733;
}
.wf-node.running {
  border-color: #2196F3;
  animation: wf-node-pulse 1.5s ease-in-out infinite;
}
.wf-node.failed {
  border-color: #E53935;
  background: #FFEBEE;
}
.wf-node.paused {
  border-color: #FB8C00;
  background: #FFF8E1;
}

@keyframes wf-node-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(33,150,243,0.2); }
  50% { box-shadow: 0 0 0 4px rgba(33,150,243,0.1); }
}

/* ── DAG 箭头连线 ── */
.wf-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 16px;
  padding: 0 1px;
  flex-shrink: 0;
  opacity: 0.5;
}
.wf-arrow.completed { color: #43A047; opacity: 0.9; }
.wf-arrow.failed { color: #E53935; opacity: 0.9; }

/* ── 并行分支组 ── */
.wf-branch-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px 2px 4px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  background: var(--bg-card);
}
.wf-branch-bracket {
  font-size: 18px;
  color: var(--text-secondary);
  opacity: 0.4;
  font-weight: 100;
}

/* ── 工作流运行进度条 ── */
.wf-progress-track {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 0;
}
.wf-progress-step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  transition: all 0.3s ease;
}
.wf-progress-step.completed { background: #43A047; }
.wf-progress-step.running { background: #2196F3; animation: wf-node-pulse 1.5s infinite; }
.wf-progress-step.failed { background: #E53935; }
.wf-progress-step.paused { background: #FB8C00; }
.wf-progress-step.skipped { background: #BDBDBD; }

/* ── HUMAN_GATE 审批卡片 ── */
.wf-gate-panel {
  margin-top: 10px;
  padding: 12px;
  background: #FFF3E0;
  border: 1px solid #FFCC80;
  border-radius: 8px;
}
.wf-gate-panel h4 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: #E65100;
}
.wf-gate-content-preview {
  max-height: 200px;
  overflow-y: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #FFE0B2;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.6;
  margin-bottom: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}
.wf-gate-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wf-gate-comment {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 12px;
}

/* ── 交付物内联审核 ── */
.del-status-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
}
.del-status-btn:hover { opacity: 0.8; }
.del-status-btn.approve { background: #E8F5E9; color: #2E7D32; }
.del-status-btn.reject { background: #FFEBEE; color: #C62828; }
.del-status-btn.publish { background: #E3F2FD; color: #1565C0; }
.del-status-menu {
  position: absolute;
  z-index: 100;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  padding: 4px;
  min-width: 120px;
}
.del-status-option {
  display: block;
  width: 100%;
  padding: 6px 12px;
  border: none;
  background: none;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
  border-radius: 4px;
  color: var(--text);
}
.del-status-option:hover { background: var(--bg-gray); }

/* ── 工作流监控面板 ── */
.wf-monitor {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.wf-monitor-card {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.wf-monitor-card-title {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.wf-monitor-card-value {
  font-size: 22px;
  font-weight: 700;
}
.wf-monitor-card-value.good { color: #43A047; }
.wf-monitor-card-value.warn { color: #FB8C00; }
.wf-monitor-card-value.bad { color: #E53935; }

/* ── 审批模态框 ── */
.wf-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-modal {
  background: #fff;
  border-radius: 12px;
  width: 720px;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.wf-modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wf-modal-header h3 {
  margin: 0;
  font-size: 16px;
}
.wf-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #999;
  padding: 4px 8px;
  border-radius: 4px;
}
.wf-modal-close:hover { background: #f5f5f5; color: #333; }
.wf-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}
.wf-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid #eee;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── 项目详情 meta 标签 ── */

.project-detail-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid var(--border);
  margin-right: 6px;
  margin-top: 4px;
  white-space: nowrap;
}

/* ── Gold FX 平台仪表盘 ── */

.gf-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.gf-platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.gf-platform-card:hover {
  border-color: var(--text-dim);
}

.gf-sprint-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.gf-summary-row {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding: 0 4px;
}

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

.gf-sprint-title {
  font-size: 13px;
  font-weight: 600;
}

.gf-sprint-track {
  height: 6px;
  background: var(--bg-card-alt);
  border-radius: 3px;
  overflow: hidden;
}

.gf-sprint-bar {
  height: 100%;
  background: linear-gradient(90deg, #DAA520, #FF6F00);
  border-radius: 3px;
  transition: width 0.5s;
}

.gf-sprint-labels {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ── 工作流监控卡 ── */

.wf-monitor {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.wf-monitor-card {
  padding: 12px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-align: center;
}

.wf-monitor-card-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dim);
}

.wf-monitor-card-value.good { color: #43A047; }
.wf-monitor-card-value.warn { color: #FB8C00; }
.wf-monitor-card-value.bad  { color: #E53935; }