/* 調整パネル（一時的なもの。決まったらこのファイルごと削除） */
.tune-btn {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 1001;
  min-width: 64px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: #3a3f4b;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.tune-panel {
  position: fixed;
  right: 12px;
  bottom: calc(60px + env(safe-area-inset-bottom));
  z-index: 1000;
  width: min(320px, calc(100vw - 24px));
  max-height: 60vh;
  overflow-y: auto;
  padding: 12px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
}

.tune-panel[hidden] { display: none; }

.tune-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.tune-head small { color: var(--muted); font-size: 0.72rem; }

.tune-sec {
  margin: 10px 0 2px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--step-on-border);
}

.tune-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 8px;
  font-size: 0.85rem;
}

.tune-row output { font-variant-numeric: tabular-nums; color: var(--muted); }
.tune-row input { grid-column: 1 / -1; width: 100%; }

.tune-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.tune-actions button {
  flex: 1;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-weight: 600;
  font-size: 0.78rem;
  padding: 0 4px;
}

.tune-select { grid-column: 1 / -1; height: 40px; font-size: 0.85rem; margin-top: 2px; }
