/* 分子的空间结构特有样式（通用样式见 ../shared/base.css） */

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

.ok { color: #7ee081; }
.bad { color: #ff7a59; }
.gold { color: var(--accent); }

#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: var(--accent); margin-left: 8px; }
.kind:empty { display: none; }
.readout .tip { font-size: 12px; color: #cfd6e0; line-height: 1.6; margin-top: 4px; min-height: 18px; }
.readout dd { font-variant-numeric: tabular-nums; }
.readout dt { white-space: nowrap; }
#rName.ok { color: #7ee081; }
#rName.bad { color: #ff7a59; }

/* 选择 */
#picker h3 { font-size: 12px; color: var(--muted); font-weight: normal; margin: 8px 0 4px; }
#picker h3:first-child { margin-top: 0; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.presets.three { grid-template-columns: repeat(3, 1fr); }
.presets.xs { grid-template-columns: repeat(4, 1fr); margin: 0; }
.presets 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; }
.presets button:hover { border-color: var(--accent); }
.presets button.on { border-color: var(--accent); background: rgba(255,201,74,.14); }
.presets.xs button { line-height: 1.25; padding: 5px 2px; }
.presets.xs button b { display: block; font-size: 12.5px; }
.presets.xs button small { font-size: 10.5px; color: var(--muted); }

#panel .row { grid-template-columns: 56px 1fr; margin: 8px 0; }
#panel .row > span:first-child { white-space: nowrap; color: var(--muted); font-size: 12px; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; font-size: 12px; padding: 5px 0; }
.checks { margin-top: 8px; }
.checks input:disabled { opacity: .4; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 判断步骤 */
#steps { margin: 0; padding-left: 20px; font-size: 12px; color: #cfd6e0; line-height: 1.65; }
#steps li { margin: 2px 0; }
#steps b { color: var(--text); }
#steps b.gold { color: var(--accent); }

.cmp { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp th, .cmp td { padding: 4px 6px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp th { color: var(--muted); font-weight: 600; background: var(--panel-2); }
.cmp td:first-child { white-space: nowrap; }

/* 轨道表示式 */
#cfg { font-size: 12px; }
.cfg-row { display: flex; align-items: flex-end; gap: 10px; padding: 5px 6px; border-radius: 8px; border: 1px solid transparent; flex-wrap: wrap; }
.cfg-row.on { border-color: var(--accent); background: rgba(255,201,74,.08); }
.cfg-n { width: 64px; color: var(--muted); align-self: center; }
.sh { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; }
.sh small { font-size: 10.5px; color: var(--muted); }
.boxes { display: inline-flex; }
.boxes i { font-style: normal; width: 24px; height: 22px; line-height: 21px; text-align: center; border: 1px solid #8d99ab; margin-left: -1px; color: var(--text); font-size: 12px; letter-spacing: -2px; }
.boxes.hy i { border-color: #7ee081; }
.cfg-arr { font-size: 11px; color: var(--muted); padding: 0 0 0 80px; line-height: 1.4; }
#hyNote { margin-top: 8px; }

/* 画面上的图例与标注 */
#legend { position: absolute; left: 12px; top: 12px; z-index: 3; display: flex; flex-direction: column; gap: 4px;
  padding: 6px 10px; border-radius: 10px; background: rgba(17,23,35,.75); border: 1px solid var(--line);
  font-size: 12px; color: var(--text); pointer-events: none; }
#legend:empty { display: none; }
#legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
#legend .chg { color: var(--muted); }
.lab { font-size: 12px; color: #fff; background: rgba(17,23,35,.82); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.lab.ang { color: var(--accent); border-color: rgba(255,201,74,.5); }
.lab.orb { font-size: 11.5px; }
.lab.lone { color: #c9a7ff; }
.lab.sig { color: #7ee081; }
.lab.pi { color: #4fc3f7; }

#cover { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  padding-bottom: 140px; pointer-events: none; }
#cover b { font-size: 64px; font-weight: 600; color: #e6ebf2; letter-spacing: 1px; }
#cover span { font-size: 13px; color: var(--muted); }

/* 练习 */
#quizBar { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 3; width: min(560px, calc(100% - 24px));
  padding: 10px 12px; border-radius: 12px; background: rgba(17,23,35,.92); border: 1px solid var(--line); }
#quizQ { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
#quizMsg { margin: 0 0 6px; font-size: 13px; line-height: 1.6; }
#quizMsg:empty { display: none; }
#quizMsg b { margin-right: 4px; }
.answer { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.answer.four { grid-template-columns: repeat(4, 1fr); }
.answer button { padding: 7px 4px; font-size: 13px; }
.answer button:disabled { opacity: .55; cursor: default; }
.answer button.on { opacity: 1; border-color: #7ee081; color: #7ee081; }
.answer button.no { opacity: 1; border-color: #ff7a59; color: #ff7a59; }
#quizBar .btns { justify-content: flex-end; margin-top: 8px; }

@media (max-width: 760px) {
  #quizBar { bottom: 40px; }
  #legend { top: 86px; }
  #cover b { font-size: 48px; }
}
