/* 简谐运动与单摆特有样式（通用样式见 ../shared/base.css） */

#view { 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; }
#panel h2 .mini { float: right; padding: 0 8px; font-size: 11px; font-weight: normal; }

/* 读数 */
.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); }
.kind:empty { display: none; }
.readout .tip { font-size: 12px; color: var(--accent); margin-top: 4px; min-height: 18px; }
.readout dd { font-variant-numeric: tabular-nums; }
.readout dt { white-space: nowrap; }

.presets { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 4px 0 8px; }
.presets.two-col { grid-template-columns: 1fr 1fr; }
.presets.four-col { grid-template-columns: repeat(4, 1fr); }
.presets.five-col { grid-template-columns: repeat(5, 1fr); }
.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); }

#panel .slider { grid-template-columns: 80px 1fr 60px; }
.seg.wide { display: flex; width: 100%; }
.seg.wide button { flex: 1; font-size: 12px; padding: 5px 0; }
.checks { margin-top: 10px; }
.checks.one { grid-template-columns: 1fr; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
button.small:disabled { opacity: .4; cursor: default; }
button.primary { color: #111; background: var(--accent); border-color: var(--accent); font-weight: 600; }
button.primary:hover { filter: brightness(1.08); }

.key { list-style: none; padding: 0; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.key li { margin: 3px 0; }
.key i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }

/* 记录表 */
.tbl { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 4px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--panel-2); color: var(--muted); font-weight: 600; }
.tbl td:last-child { text-align: right; }
.warn { color: #ff9b8a; }

.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 td:first-child { white-space: nowrap; color: var(--muted); }

.tbl th, .tbl td { padding: 3px 6px; text-align: right; }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
#panel .slider input:disabled { opacity: .4; }
.tbl tr.hl td { color: var(--accent); }
.tbl .muted { text-align: center !important; }
button.small.primary:disabled { opacity: .6; }
