/* 反射弧特有样式（通用样式见 ../shared/base.css） */

#reflex { position: absolute; inset: 0; touch-action: pan-y; }
[hidden] { display: none !important; }

#panel h2 .h2s { font-size: 11px; color: var(--muted); font-weight: normal; margin-left: 6px; letter-spacing: 0; }

/* 读数 */
.readout .big { font-size: 18px; }
.kind { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; color: #58c8ff; }
.readout dd { font-variant-numeric: tabular-nums; }
.readout dt { white-space: nowrap; }
#rNote { color: var(--accent); }
#rWhere { color: #e6ebf2; }

/* 场景与操作 */
.seg.wide { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.seg.wide button { border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 8px; padding: 6px 4px; font-size: 12px; }
.seg.wide button:first-child, .seg.wide button:last-child { border-radius: 8px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.actions button { font: inherit; font-size: 13px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 0; cursor: pointer; }
.actions button:hover:not(:disabled) { border-color: var(--accent); }
.actions button:disabled { opacity: .4; cursor: default; }
.actions #stimBtn { grid-column: 1 / -1; font-size: 14px; padding: 8px 0; }
.actions #stimBtn:hover:not(:disabled) { color: #111; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.actions.one { grid-template-columns: 1fr; }
.speed { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
#procNote { color: #9fb0c8; }

/* 受损部位 */
.lesionGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 8px; }
.lesionGrid button { font: inherit; font-size: 13px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 0; cursor: pointer; }
.lesionGrid button:hover { border-color: var(--accent); }
.lesionGrid button.on { background: rgba(255,201,74,.14); border-color: var(--accent); color: var(--accent); font-weight: 600; }
.lesionGrid button:last-child { grid-column: 1 / -1; }

/* 对照表 */
.cmp { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp th, .cmp td { padding: 4px 6px; border: 1px solid var(--line); vertical-align: top; text-align: left; }
.cmp th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
.cmp td:first-child { color: var(--muted); white-space: nowrap; }
.cmp td.yes { color: #7ee081; }
.cmp td.no { color: #ff8a80; }
.cmp tbody tr.on td { background: rgba(255,201,74,.12); color: var(--accent); }
.cmp.five td:first-child { color: var(--text); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }

/* 练习 */
.q { font-size: 14px; line-height: 1.6; margin: 0 0 8px; }
.opts { display: grid; gap: 6px; }
.opts .opt { font: inherit; font-size: 13px; line-height: 1.45; text-align: left; color: var(--text);
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.opts .opt:hover:not(.ok):not(.bad) { border-color: var(--accent); }
.opts .opt.ok { border-color: #7ee081; background: rgba(126,224,129,.14); color: #c8f5ca; }
.opts .opt.bad { border-color: #ff6b6b; background: rgba(255,107,107,.14); color: #ffc4c4; }
#quizFb { color: #cfd6e0; }
#quizScore { color: var(--muted); }

/* 窄屏图例：不画外围标签，用色块说明五部分 */
#legend { display: none; position: absolute; top: 10px; left: 12px; z-index: 4;
  padding: 7px 10px; border-radius: 10px; background: rgba(17,23,35,.78); border: 1px solid var(--line);
  grid-template-columns: 1fr 1fr; gap: 3px 12px; font-size: 11px; color: var(--muted); }
#legend span { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
#legend i { width: 8px; height: 3px; border-radius: 2px; background: var(--c); }
@media (max-width: 760px) { #legend:not([hidden]) { display: grid; } }
