/* 严格模式开关和每种练法的「规则」说明（需求 48，docs/58）。js/rules.js 和 app.html 引用 */

/* 选题页「开始练习」旁边：开关 + 规则链接，窄屏自己换行，不出横向滚动 */
.strict-opt { display: inline-flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-width: 0; --opt-hue: #6b4c01; }
.strict-toggle { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--muted); min-height: 32px; }
.strict-toggle input { margin: 0; accent-color: var(--accent); }
.strict-toggle:has(input:checked) { color: var(--warn); }

/* 「规则」小链接 + 第一次出现时的小圆点（点过就不再显示） */
.rules-host { display: inline-flex; align-items: center; }
.rules-link { background: none; border: 0; padding: 0 2px; margin: 0; min-height: 28px; color: var(--accent);
  text-decoration: underline; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.rules-link:hover:not(:disabled) { border: 0; text-decoration-thickness: 2px; }
.rules-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; flex: none; }

/* 说明框：每种练法六条，标题和一句话；手机上不出横向滚动 */
.rules-box { max-height: 60vh; overflow-y: auto; overflow-x: hidden; }
.rules-list { margin: 0; }
.rules-list dt { margin: 10px 0 2px; font-weight: 600; color: var(--text); }
.rules-list dt:first-child { margin-top: 0; }
.rules-list dd { margin: 0; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; }

/* 练习台 / 复盘 / 历史里的「严格」小标签 */
.strict-tag { cursor: default; }
.strict-note { font-size: 12px; color: var(--warn); margin: 2px 0; }
.strict-chip { font-size: 12px; padding: 0 6px; border-radius: 8px; border: 1px solid var(--warn); color: var(--warn); white-space: nowrap; }
