/* 酸碱中和特有样式（通用样式见 ../shared/base.css） */

#neutral { 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: 20px; }
#rPH { font-variant-numeric: tabular-nums; }
.kind { font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; border: 1px solid currentColor; }
.kind.acid { color: #ff8a65; }
.kind.base { color: #4fc3f7; }
.kind.neutral { color: #7ee081; }
.readout dd { font-variant-numeric: tabular-nums; }
.readout dt { white-space: nowrap; }
.readout dt, .readout dd { line-height: 1.35; }
#rProc { color: var(--accent); }

/* 操作按钮 */
.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 #dropBtn { grid-column: 1 / -1; font-size: 14px; padding: 8px 0; }
.actions #dropBtn.hot { color: #111; background: var(--accent); border-color: var(--accent); font-weight: 600; }
.speed { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.speed .seg { margin-left: auto; }

/* 反应物 / 方向 / 指示剂 */
.opts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-bottom: 6px; }
.opts.three { grid-template-columns: 1fr 1fr 1fr; }
.opts button { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-top: 2px solid var(--line); border-radius: 8px; padding: 5px 0 4px; cursor: pointer; line-height: 1.25; }
.opts button b { display: block; font-size: 13.5px; }
.opts button small { font-size: 11px; color: var(--muted); }
.opts button:hover { border-color: var(--accent); }
.opts button.on { background: rgba(255,201,74,.14); border-color: var(--accent); }
.opts.three button b { font-size: 13px; }

#panel .slider { grid-template-columns: 92px 1fr 82px; }

/* 方程式 */
.eq { font-family: var(--mono); font-size: 13px; margin: 0 0 4px; color: var(--text); line-height: 1.5; }
.eq.sub { color: var(--accent); margin-bottom: 6px; }

/* 指示剂对照 */
.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 .acid { color: #ff8a65; }
.cmp .base { color: #4fc3f7; }

/* 记录表 */
.tbl { max-height: 188px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 3px 8px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 600; }
.tbl td:nth-child(3), .tbl th:nth-child(3), .tbl td:nth-child(4), .tbl th:nth-child(4) { text-align: left; }
.tbl tbody tr:last-child td { border-bottom: none; color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px;
  vertical-align: middle; border: 1px solid rgba(255,255,255,.25); }

.checks label:has(input:disabled) { opacity: .45; cursor: default; }
