/* pace-calculator 专用，依赖 /home.css 变量与 /tool.css */
.form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
  padding: 4px 0 2px;
}
.form > label { font: 500 12px/1 var(--mono); color: var(--ink-2); }
.form .inline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.form .inline .field { flex: 1; min-width: 0; width: auto; }
.form .unit { font: 13px/1 var(--mono); color: var(--ink-2); }
.form .presets { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.form > [hidden] { display: none; }
.hint { margin: 10px 0 0; font: 12.5px/1.6 var(--sans); color: var(--ink-2); }

/* 表头换行：tool.css 把 th 固定宽（桌面 140px、手机 96px）且不换行，德语、俄语的长词放不下。宽度不动（上下两张表对齐），
   按词换行，长词用连字符断；不用 overflow-wrap: anywhere，它会不加连字符从词中间断开 */
.kv th { white-space: normal; overflow-wrap: break-word; hyphens: auto; }
.kv td { font-variant-numeric: tabular-nums; }
.kv td .sub { display: block; font-weight: 400; color: var(--ink-2); font-size: 12px; }
.sub-head { margin-top: 22px; }

.splits-wrap { margin-top: 28px; }
.scroll { overflow-x: auto; max-height: 480px; overflow-y: auto; }
.splits { width: 100%; border-collapse: collapse; font: 13px/1.5 var(--mono); font-variant-numeric: tabular-nums; }
.splits th, .splits td { padding: 7px 10px; border-bottom: 1px solid var(--rule); text-align: right; white-space: nowrap; }
.splits th { font-weight: 500; color: var(--ink-2); border-bottom-color: var(--ink); position: sticky; top: 0; background: var(--paper); }
.splits th:first-child, .splits td:first-child { text-align: left; color: var(--ink-2); }
.splits tbody tr:hover { background: var(--hover); }
