/* メトロノームの配置（色や見た目はサイト全体の base.css に任せる） */
.tempo-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: nowrap; }
.tempo-row .step { padding: 10px 0; width: 52px; justify-content: center; flex: 0 0 auto; }
.bpm-box { text-align: center; flex: 0 1 220px; min-width: 0; }
.bpm-box input { font-size: clamp(44px, 12vw, 84px); font-weight: 700; text-align: center; padding: 0; border: none; background: transparent; font-variant-numeric: tabular-nums; width: 100%; -moz-appearance: textfield; }
.bpm-box input::-webkit-outer-spin-button, .bpm-box input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bpm-unit { color: var(--muted); font-size: 14px; margin-top: -6px; }
.beats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 16px 0 8px; }
.beat { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--accent); background: transparent; color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; position: relative; }
.beat[data-level="3"] { background: var(--accent); color: #fff; }
.beat[data-level="2"] { background: var(--accent-weak); }
.beat[data-level="1"] { border-style: dashed; }
.beat[data-level="0"] { border-color: var(--line); color: var(--muted); }
.beat.group-start::before { content: ""; position: absolute; left: -6px; top: 8px; bottom: 8px; border-left: 2px solid var(--muted); }
.beat.on { transform: scale(1.18); box-shadow: 0 0 0 4px var(--danger); }
.pendulum-wrap { height: 70px; position: relative; overflow: hidden; margin: 4px auto; max-width: 320px; }
.pendulum { position: absolute; left: 50%; bottom: 0; width: 4px; height: 66px; background: var(--muted); transform-origin: 50% 100%; border-radius: 2px; }
.pendulum::after { content: ""; position: absolute; top: -6px; left: -7px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); }
.status { text-align: center; color: var(--muted); min-height: 1.5em; margin: 4px 0; font-variant-numeric: tabular-nums; }
.center-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.btn.large { font-size: 18px; padding: 12px 28px; min-width: 8em; justify-content: center; }
.sig { display: flex; align-items: center; gap: 6px; }
.sig select { width: auto; flex: 1; }
details.box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 12px 0 0; }
details.box > summary { padding: 4px 0; }
fieldset.fs { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px 0; margin: 8px 0; min-width: 0; }
fieldset.fs legend { padding: 0 4px; }
label.inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.plist { padding-left: 1.4em; font-size: 14px; max-height: 220px; overflow: auto; }
ul.plist { list-style: none; padding: 0; }
ul.plist li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding: 4px 0; }
ul.plist li span { flex: 1 1 10em; }
.stage { border-radius: 12px; transition: background-color .08s; padding: 4px 0; }
.stage.flash { background: var(--accent-weak); }
.stage:fullscreen { background: var(--bg); padding: 24px; display: flex; flex-direction: column; justify-content: center; overflow: auto; }
.stage:fullscreen.flash { background: var(--accent-weak); }
.stage:fullscreen .bpm-box input { font-size: min(22vw, 26vh); }
.stage:fullscreen .bpm-box { flex-basis: 60vw; }
.stage:fullscreen .beat { width: min(10vw, 90px); height: min(10vw, 90px); font-size: 20px; }
@media (max-width: 420px) { .tempo-row .step { width: 44px; } .beat { width: 40px; height: 40px; } }
.voice-list li { gap: 6px; }
.voice-list .vname { flex: 0 0 3.4em; font-weight: 700; }
.voice-list .vstate { flex: 1 1 5em; color: var(--muted); font-size: 13px; }
