/* ===================================================================
   contrast-fix.css — MCC V1 深色主题文字对比度修复 (2026-06-14)
   ===================================================================
   背景色: #0d1117 (--bg-panel) / #161b22 (--bg-card)
   主文字: #e6edf3 (--text-primary) — 在 #0d1117 上 WCAG AA 达标
   次要文字: #8b949e (--text-secondary)
   禁用/辅助: #484f58 (--text-muted)
   语义: 绿色 #2ea043 / 红色 #f85149 / 蓝色 #58a6ff / 金色 #d29922 / 紫色 #8957e5
   ===================================================================
   设计原则:
   - 所有文本必须有显式 color，不依赖浏览器默认
   - 语义色只在需要强调时用，日常文字使用三层灰度体系
   - 错误/危险用 --red (#f85149)
   - 成功/盈利用 --green (#2ea043)
   - 警告用 --gold (#d29922)
   - 信息用 --blue (#58a6ff)
   =================================================================== */

/* ============================
   1. 缺失的文字颜色类
   ============================ */
.t-body     { color: var(--text-primary); }   /* 正文主色，替代未定义的 t-body */
.t-profit   { color: var(--green); }          /* 盈利/上行 #2ea043 */
.t-loss     { color: var(--red); }            /* 亏损/下行 #f85149 */
.t-warning  { color: var(--gold); }           /* 警告 #d29922 */
.t-info     { color: var(--blue); }           /* 信息 #58a6ff */
.t-danger   { color: var(--red); }            /* 危险 #f85149，与 t-loss 同色 */
.t-ai       { color: var(--purple); }         /* AI 相关 #8957e5 */
.t-2xl      { font-size: 22px; font-weight: 600; }
.t-xl       { font-size: 18px; font-weight: 600; }
.t-xxl      { font-size: 28px; font-weight: 700; }

/* ============================
   2. 缺失的布局/间距类
   ============================ */
.u-pl-2        { padding-left: 8px; }
.u-pr-2        { padding-right: 8px; }
.u-mt-1        { margin-top: 4px; }
.u-mt-2        { margin-top: 8px; }
.u-mt-3        { margin-top: 12px; }
.u-mt-4        { margin-top: 16px; }
.u-mt-6        { margin-top: 24px; }
.u-mb-sm       { margin-bottom: 6px; }
.u-my-1        { margin-top: 4px; margin-bottom: 4px; }
.u-pt-2        { padding-top: 8px; }
.u-pb-3        { padding-bottom: 12px; }
.u-px-4        { padding-left: 16px; padding-right: 16px; }
.u-py-3        { padding-top: 12px; padding-bottom: 12px; }
.u-mr-1        { margin-right: 4px; }
.u-ml-2        { margin-left: 8px; }
.u-self-center { align-self: center; }
.u-items-center { align-items: center; }
.u-cursor-pointer { cursor: pointer; }
.u-border-l    { border-left: 1px solid var(--border-muted); }
.u-overflow-x-auto { overflow-x: auto; }
.u-op-50       { opacity: 0.5; }
.u-flex-shrink-0 { flex-shrink: 0; }
.u-border-rgba { border-bottom: 1px solid rgba(139,148,158,0.15); }

/* ============================
   3. KPI 卡片网格
   ============================ */
.c-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.c-pnl-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color 0.15s;
}

.c-pnl-card.is-positive { border-left: 3px solid var(--green); }
.c-pnl-card.is-negative { border-left: 3px solid var(--red); }
.c-pnl-card.is-flat     { border-left: 3px solid var(--text-muted); }

.c-pnl-title {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 6px;
  font-weight: 500;
}

.c-pnl-amount {
  font-size: var(--font-xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.c-pnl-meta {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================
   4. 顶部状态条 (c-topbar)
   ============================ */
.c-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.c-topbar-left,
.c-topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ============================
   5. 状态圆点
   ============================ */
.c-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  flex-shrink: 0;
}

.c-status-dot.is-ok    { background: var(--green); }
.c-status-dot.is-warn  { background: var(--gold); }
.c-status-dot.is-error { background: var(--red); }

/* ============================
   6. 风险/机会带
   ============================ */
.c-risk-opportunity-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

/* ============================
   7. 风险警报卡
   ============================ */
.c-risk-alert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 14px;
}

.c-risk-alert-card.is-critical { border-left-color: var(--red); }
.c-risk-alert-card.is-warning  { border-left-color: var(--gold); }
.c-risk-alert-card.is-info     { border-left-color: var(--blue); }
.c-risk-alert-card.is-elevated { border-left-color: var(--blue); }

.c-alert-title {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-primary);
}

.c-alert-reason {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-top: 4px;
}

/* ============================
   8. 方向冲突卡
   ============================ */
.c-conflict-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 14px;
}

.c-conflict-symbol {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-primary);
}

.c-conflict-votes {
  margin-top: 4px;
}

/* ============================
   9. 持仓/策略卡片
   ============================ */
.c-position-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 14px;
}

.c-position-card.is-risky       { border-left: 3px solid var(--red); }
.c-position-card.is-opportunity { border-left: 3px solid var(--green); }

.c-pos-symbol {
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-primary);
}

.c-pos-side {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.c-pos-pnl {
  font-size: var(--font-md);
  font-weight: 600;
}

.c-pos-reason {
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-top: 4px;
}

/* ============================
   10. 表格 (c-table)
   ============================ */
.c-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-sm);
}

.c-table thead th {
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-default);
  white-space: nowrap;
  font-size: var(--font-xs);
  text-transform: none;
}

.c-table tbody td {
  padding: 8px 10px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}

.c-table tbody tr:last-child td {
  border-bottom: none;
}

.c-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.c-table td.is-mono,
.c-table th.is-mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ============================
   11. Badge (c-badge)
   ============================ */
.c-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.c-badge.is-buy  { color: var(--green); border-color: var(--green); }
.c-badge.is-sell { color: var(--red); border-color: var(--red); }
.c-badge.is-warn { color: var(--gold); border-color: var(--gold); }
.c-badge.is-info { color: var(--blue); border-color: var(--blue); }

/* ============================
   12. 风险标签 (c-risk-badge)
   ============================ */
.c-risk-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: var(--font-sm);
  font-weight: 600;
  border: 1px solid;
}

.c-risk-badge.is-normal   { color: var(--green); border-color: var(--green); }
.c-risk-badge.is-elevated { color: var(--blue); border-color: var(--blue); }
.c-risk-badge.is-warning  { color: var(--gold); border-color: var(--gold); }
.c-risk-badge.is-critical { color: var(--red); border-color: var(--red); }
.c-risk-badge.is-unknown  { color: var(--text-muted); border-color: var(--text-muted); }

/* ============================
   13. 信号质量/置信度
   ============================ */
.c-sq-score {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.c-sq-bar {
  width: 60px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.c-sq-bar.is-sm { width: 40px; }
.c-sq-bar.is-flex { flex: 1; }

.c-sq-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

.c-signal-quality .c-sq-bar-fill { background: var(--purple); }

/* 信号品质等级 */
.is-excellent { color: var(--green); }
.is-good      { color: var(--blue); }
.is-weak      { color: var(--gold); }
.is-bad       { color: var(--red); }

/* ============================
   14. 置信度表 (c-confidence-meter)
   ============================ */
.c-confidence-meter {
  display: flex;
  align-items: center;
  gap: 6px;
}

.c-cm-value {
  font-size: var(--font-sm);
  font-weight: 700;
  min-width: 36px;
  color: var(--text-primary);
}

.c-cm-bar {
  width: 50px;
  height: 4px;
  background: var(--bg-elevated);
  border-radius: 2px;
  overflow: hidden;
}

.c-cm-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--blue);
}

.c-confidence-meter.is-high .c-cm-bar-fill { background: var(--green); }
.c-confidence-meter.is-medium .c-cm-bar-fill { background: var(--blue); }
.c-confidence-meter.is-low .c-cm-bar-fill { background: var(--gold); }
.c-confidence-meter.is-bad .c-cm-bar-fill { background: var(--red); }

/* ============================
   15. 信号品质卡片
   ============================ */
.c-signal-quality { }

.c-sq-score.is-high { color: var(--green); }
.c-sq-score.is-medium { color: var(--blue); }

/* ============================
   16. 手机端英雄区
   ============================ */
.c-mobile-hero {
  margin-bottom: 16px;
}

.c-mh-pnl {
  margin-bottom: 12px;
}

.c-mh-label {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.c-mh-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
}

.c-mh-value.is-profit,
.c-mh-value.buy  { color: var(--green); }

.c-mh-value.is-loss,
.c-mh-value.sell { color: var(--red); }

.c-mh-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.c-mh-item {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 10px;
}

.c-mh-key {
  display: block;
  font-size: var(--font-xs);
  color: var(--text-muted);
  margin-bottom: 4px;
}

.c-mh-val {
  display: block;
  font-size: var(--font-md);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================
   17. 手机端持仓卡片
   ============================ */
.c-mobile-position-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 12px;
}

.c-mpc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.c-mpc-symbol {
  font-weight: 700;
  font-size: var(--font-md);
}

.c-mpc-pnl {
  font-weight: 700;
  font-size: var(--font-md);
}

.c-mpc-detail {
  display: flex;
  gap: 12px;
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

/* ============================
   18. 风险原因列表
   ============================ */
.c-risk-reason-list { }

.c-rr-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-muted);
}

.c-rr-severity {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  background: var(--text-muted);
}

.c-rr-severity.is-critical { background: var(--red); }
.c-rr-severity.is-warning  { background: var(--gold); }
.c-rr-severity.is-info     { background: var(--blue); }
.c-rr-severity.is-normal   { background: var(--green); }

.c-rr-cause {
  flex: 1;
  font-size: var(--font-sm);
  color: var(--text-primary);
  line-height: 1.4;
}

.c-rr-action {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
}

/* ============================
   19. 右侧情报栏
   ============================ */
.c-rs-title {
  font-size: var(--font-md);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.c-rs-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-muted);
}

.c-rs-label {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.c-rs-value {
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
}

/* ============================
   20. AI 面板
   ============================ */
.c-ai-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 14px;
  border-left: 3px solid var(--purple);
}

.c-ai-conclusion {
  font-size: var(--font-sm);
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.c-ai-confidence {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.c-ai-reasons {
  margin-top: 8px;
}

.c-ai-reason {
  font-size: var(--font-xs);
  color: var(--text-secondary);
  padding: 2px 0;
}

/* ============================
   21. 进度条 (mcc-bar)
   ============================ */
.mcc-bar {
  width: 60px;
  height: 6px;
  background: var(--bg-elevated);
  border-radius: 3px;
  overflow: hidden;
}

.mcc-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s;
}

/* ============================
   22. 标签页 (c-tabs / c-tab)
   ============================ */
.c-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-default);
}

.c-tab {
  padding: 8px 16px;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.c-tab:hover {
  color: var(--text-primary);
  border-bottom-color: var(--text-muted);
}

.c-tab.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--blue);
  font-weight: 600;
}

/* ============================
   23. 筛选按钮组
   ============================ */
.c-filter-group {
  display: flex;
  gap: 4px;
}

.c-filter-btn {
  padding: 4px 12px;
  font-size: var(--font-xs);
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
}

.c-filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.c-filter-btn.is-active {
  color: var(--text-primary);
  background: var(--blue);
  border-color: var(--blue);
}

/* ============================
   24. 按钮 (c-btn)
   ============================ */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: var(--font-sm);
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s;
  white-space: nowrap;
}

.c-btn:hover {
  background: var(--bg-card);
  border-color: var(--text-muted);
}

.c-btn.is-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.c-btn.is-primary:hover {
  background: #4a8ed1;
}

.c-btn.is-outline {
  background: transparent;
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.c-btn.is-outline:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.c-btn.is-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--text-secondary);
}

.c-btn.is-ghost:hover {
  color: var(--text-primary);
}

.c-btn.is-danger {
  color: var(--red);
  border-color: var(--red);
}

.c-btn.is-xs {
  padding: 3px 10px;
  font-size: var(--font-xs);
}

.c-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================
   25. 表单元素
   ============================ */
.c-label {
  display: block;
  font-size: var(--font-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.c-input {
  width: 100%;
  padding: 8px 12px;
  font-size: var(--font-sm);
  color: var(--text-primary);
  background: var(--bg-deep);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  font-family: inherit;
  transition: border-color 0.15s;
}

.c-input:focus {
  outline: none;
  border-color: var(--blue);
}

.c-input::placeholder {
  color: var(--text-muted);
}

select.c-input {
  appearance: auto;
}

/* ============================
   26. 等级卡片
   ============================ */
.grades-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.c-grade-card {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: 16px;
}

.c-grade-icon {
  font-size: 24px;
}

.c-grade-name {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
}

.c-grade-desc {
  font-size: var(--font-sm);
  color: var(--text-secondary);
}

.c-grade-stats {
  font-size: var(--font-xs);
  color: var(--text-secondary);
}

.c-grade-stats .u-flex-between {
  padding: 3px 0;
}

.c-grade-stats hr {
  border: none;
  border-top: 1px solid var(--border-muted);
}

/* ============================
   27. Modal (弹窗)
   ============================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 90%;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid var(--border-muted);
}

.modal-header h3 {
  font-size: var(--font-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-body {
  padding: 16px;
}

/* ============================
   28. 统计卡片 (mcc-stat)
   ============================ */
.mcc-stat {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

.c-card-sm {
  padding: 12px;
}

.mcc-stat.t-profit { color: var(--green); }
.mcc-stat.t-loss   { color: var(--red); }
.mcc-stat.t-warning { color: var(--gold); }
.mcc-stat.t-info   { color: var(--blue); }
.mcc-stat.t-muted  { color: var(--text-muted); }

/* ============================
   29. 告警消息 (mcc-alert)
   ============================ */
.mcc-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: var(--font-sm);
  line-height: 1.5;
}

.mcc-alert.error {
  background: rgba(248,81,73,0.1);
  border-color: var(--red);
  color: var(--red);
}

.mcc-alert.success {
  background: rgba(46,160,67,0.1);
  border-color: var(--green);
  color: var(--green);
}

/* Flash messages (used by friends/bindings) */
.c-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid;
  font-size: var(--font-sm);
  line-height: 1.5;
}

.c-alert.is-error {
  background: rgba(248,81,73,0.1);
  border-color: var(--red);
  color: var(--red);
}

.c-alert.is-success {
  background: rgba(46,160,67,0.1);
  border-color: var(--green);
  color: var(--green);
}

.c-alert.is-warning {
  background: rgba(210,153,34,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

.c-alert.is-info {
  background: rgba(88,166,255,0.1);
  border-color: var(--blue);
  color: var(--blue);
}

/* ============================
   30. 各种 is-* 修饰类
   ============================ */
.is-mono   { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }
.is-inline-row { display: flex; align-items: center; gap: 8px; }
.is-buy    { color: var(--green) !important; }
.is-sell   { color: var(--red) !important; }
.is-warn   { color: var(--gold) !important; }
.is-info   { color: var(--blue) !important; }
.is-profit { color: var(--green); }
.is-loss   { color: var(--red); }

/* ============================
   31. chip is-* 变体覆盖
   ============================ */
.c-chip.is-buy  { color: var(--green); border: 1px solid var(--green); background: rgba(46,160,67,0.1); }
.c-chip.is-sell { color: var(--red); border: 1px solid var(--red); background: rgba(248,81,73,0.1); }
.c-chip.is-warn { color: var(--gold); border: 1px solid var(--gold); background: rgba(210,153,34,0.1); }
.c-chip.is-info { color: var(--blue); border: 1px solid var(--blue); background: rgba(88,166,255,0.1); }

/* ============================
   32. 动画
   ============================ */
.u-animate-fadein {
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================
   33. 内联提示/次要文本
   ============================ */
.t-secondary {
  color: var(--text-secondary);
}

/* ============================
   34. 表格中禁止行高亮
   ============================ */
tr.is-banned td {
  opacity: 0.6;
}

/* ============================
   35. 通用面板 (c-panel)
   ============================ */
.c-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-muted);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

/* ============================
   36. grades 中实体表格颜色使用 style 属性, 无需额外修复
   但 c-chip.is-sell + is-critical 用于 signals 禁止标签
   ============================ */
.c-chip.is-sell.is-critical {
  background: rgba(248,81,73,0.15);
  border-color: var(--red);
  color: var(--red);
}

/* ============================
   37. 统一行内 inline 变体
   ============================ */
.is-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================
   38. 信号行背景
   ============================ */
.c-signal-quality.is-high,
.c-signal-quality.is-excellent {
  border-color: var(--green);
}

/* ============================
   39. 响应式兼容
   ============================ */
@media (max-width: 480px) {
  .c-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .c-risk-opportunity-strip {
    grid-template-columns: 1fr;
  }
  .c-mh-meta {
    grid-template-columns: 1fr 1fr;
  }
  .c-pnl-amount {
    font-size: 18px;
  }
  .grades-card-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================
   40. 通用 t-mono (等宽字体)
   ============================ */
.is-mono,
.t-mono {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

/* ============================
   41. 文本说明/详情
   ============================ */
.text-buy { color: var(--green); }
.text-sell { color: var(--red); }
.text-muted { color: var(--text-muted); }
