/* 解药 · 视觉统一补丁（在 tokens.css 之后加载）
   原则：只覆盖"明显不一致"的三类——品牌色、触控尺寸、弱化文字对比度。 */

/* 1) 统一主色：styles.css 里 45 处 var(--brand) 一次性从 #07c160 切到墨绿 */
/*    （变量在 tokens.css 中已重定义；此处只处理遗漏的字面色值） */
[style*="#07c160"] { color: #1F7A6D !important; }
[style*="#06a854"] { color: #175E54 !important; }
[style*="#e8f8f0"] { background-color: #E3F2EF !important; }

/* 2) 触控目标：图标按钮与关键操作不小于 44×44 */
.back-btn2, .tool-back, .sheet-close, .s-close, .menu-btn, .bar-btn {
  min-width: var(--tap); min-height: var(--tap);
  display: inline-grid; place-items: center;
}
#shotBtn, .cbtn, .coach-act, .pack-mini, .wt-btn, .link-btn, #wbDemoBtn {
  min-height: var(--tap);
}
#wbDemoBtn { padding: 10px 14px; }

/* 3) 可读性：弱化文字不再用 #9AA1AB（白底 2.6:1） */
:root { --faint: #6E756D; }

/* 4) 状态与可达性：键盘焦点可见、尊重减少动效 */
:where(button, a, input, textarea, select, [role="button"]):focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
  border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 5) 统一卡片圆角档位（只收敛常见容器，不动特殊形状） */
.row, .card, .tool-card, .gate-card, .plan, .credit-card, .me-card {
  border-radius: var(--r-m);
}
.pack-mini { border-radius: var(--r-s); }

/* 6) 正文最小字号：11px 仅用于角标，正文不低于 12px */
.tip-text, .row-sub, .me-sub, .sub-note, .plan-sub, .credit-label { font-size: max(12px, 1em); }
