/* 动植物细胞的结构特有样式（通用样式见 ../shared/base.css） */

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

.ok { color: #7ee081; }
.bad { color: #ff7a59; }

#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 dt { white-space: nowrap; }
.readout dd { line-height: 1.55; }
#rName.ok { color: #7ee081; }
#rName.bad { color: #ff7a59; }
#rName i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }

/* 控件 */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.presets button { font: inherit; font-size: 12.5px; color: var(--text); background: var(--panel-2);
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 2px; cursor: pointer; }
.presets button:hover { border-color: var(--accent); }
.presets button.on { border-color: var(--accent); background: rgba(255,201,74,.14); }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; font-size: 12px; padding: 5px 0; }
.seg.wide + .seg.wide { margin-top: 6px; }
.checks { margin-top: 8px; }
.btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 结构清单（点行选中） */
.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; color: var(--muted); }
#orgs td { text-align: center; padding: 3px 4px; }
#orgs th { text-align: center; padding: 3px 4px; }
#orgs td:first-child { text-align: left; color: var(--text); }
#orgs tbody tr { cursor: pointer; }
#orgs tbody tr:hover td { background: rgba(255,255,255,.04); }
#orgs tbody tr.on td { background: rgba(255,201,74,.14); }
#orgs tbody tr.sub td:first-child { padding-left: 18px; }
#orgs i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
#orgs .y { color: #7ee081; }
#orgs .n { color: var(--muted); }
#orgs .mem { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* 画面上的名称标注 */
.lab { font-size: 12px; color: #fff; white-space: nowrap; pointer-events: none; padding: 0 6px; border-radius: 6px;
  background: rgba(17,23,35,.72); border: 1px solid rgba(255,255,255,.12); }
.lab.on { color: #111; background: var(--accent); border-color: var(--accent); font-weight: 600; }
#cellTags { position: absolute; left: 0; right: 0; top: 0; pointer-events: none; z-index: 2; }
#cellTags span { position: absolute; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--accent);
  padding: 2px 10px; border-radius: 999px; background: rgba(17,23,35,.8); border: 1px solid var(--line); white-space: nowrap; }

/* 练习 */
#quizBar { position: absolute; left: 50%; bottom: 44px; transform: translateX(-50%); z-index: 3; width: min(600px, 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.one { grid-template-columns: 1fr; }
.answer.one button { text-align: left; padding: 6px 10px; }
.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; }
  .lab { font-size: 11px; padding: 0 4px; }
}
