/* 熔化与凝固特有样式（通用样式见 ../shared/base.css） */

#melt { 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; }
.kind.c { color: #7ee081; }
.kind.a { color: #c9a7ff; }
.readout dd { font-variant-numeric: tabular-nums; }
.readout dt { white-space: nowrap; }
.swatch { display: inline-block; width: 12px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
#rProc { color: var(--accent); }
#rFact { margin-top: 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 #lampBtn { grid-column: 1 / -1; font-size: 14px; padding: 8px 0; }
.actions #lampBtn.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; }
#procNote { color: #ff9b8a; }

/* 物质 */
.subs { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.subs button { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line);
  border-top: 2px solid var(--c); border-radius: 8px; padding: 5px 0 4px; cursor: pointer; line-height: 1.25; }
.subs button b { display: block; font-size: 14px; }
.subs button small { font-size: 11px; color: var(--muted); }
.subs button:hover { border-color: var(--c); }
.subs button.on { background: rgba(255,201,74,.14); border-color: var(--accent); }
.subs .c { --c: #7ee081; }
.subs .a { --c: #c9a7ff; }
.legend .lg { width: 10px; height: 10px; border-radius: 2px; background: var(--c); }
.legend { align-items: center; }

.checks.one { grid-template-columns: 1fr; }
.checks label:has(input:disabled) { opacity: .45; cursor: default; }

/* 记录表 */
.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); }
.tbl th { position: sticky; top: 0; background: var(--panel-2); color: var(--muted); font-weight: 600; }
.tbl td:last-child, .tbl th:last-child { text-align: left; }
.tbl tbody tr:last-child td { border-bottom: none; color: var(--accent); }

/* 晶体与非晶体对照 */
.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; }
