/* BPM delay calculator */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.bpm-input-row { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: end; }
.bpm-input-row label, .bpm-extra label { font-weight: 600; margin-bottom: .25rem; }
#bpm-input { font-size: 1.6rem; width: 9ch; min-width: 8rem; margin: 0; font-variant-numeric: tabular-nums; }
.bpm-status { margin: 0 0 .5rem; color: var(--ink); font-weight: 600; }
#bpm-tool h3 { margin: 1.5rem 0 .25rem; }
.table-scroll { position: relative; overflow-x: auto; max-width: 100%; margin: .75rem 0; border: 1px solid var(--line); border-radius: .6rem; }
.table-scroll:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.table-scroll table { margin: 0; width: 100%; border-collapse: collapse; }
.bpm-table td { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bpm-table thead th:not(:first-child) { text-align: end; }
.bpm-table tbody th { white-space: nowrap; font-weight: 600; }
.bpm-short { color: var(--muted); font-weight: 400; }
.bpm-note { font-size: .92rem; }
.bpm-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin-top: 1rem; }
.bpm-extra fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: .6rem; padding: .75rem 1rem; }
.bpm-extra legend { font-weight: 700; padding: 0 .35rem; }
.bpm-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: .75rem; }
.bpm-pair input, .bpm-pair select { width: 100%; margin: 0; }
.bpm-extra output { color: var(--ink); font-weight: 600; }
input[aria-invalid="true"] { border-color: #ff8a8a; }
@media (max-width: 650px) {
  .table-scroll th, .table-scroll td { padding: .4rem .5rem; }
  .bpm-pair { grid-template-columns: minmax(0, 1fr); }
}
