/* RIDDIM MACHINE — サウンドシステム機材ラックの意匠。
   1台のマシン（シャーシ）にラックユニットが積まれている見た目で統一する。
   Webフォント不使用（システムのコンデンス書体を優先）。 */

:root {
  --rm-bg: #08090b;
  --rm-chassis: #131519;
  --rm-face: #1b1e24;
  --rm-face-2: #22262d;
  --rm-inset: #0e1013;
  --rm-line: #33383f;
  --rm-line-strong: #4a505a;
  --rm-text: #f2efe6;
  --rm-muted: #8f939c;
  --rm-red: #e0453a;
  --rm-gold: #eab53c;
  --rm-green: #3fae66;
  --rm-lcd-bg: #0a180e;
  --rm-lcd: #86ffab;
  --rm-lcd-dim: #3f7a51;
  --rm-font-display: "Avenir Next Condensed", "HelveticaNeue-CondensedBold", "Arial Narrow", "Yu Gothic", sans-serif;
  --rm-font-mono: "SF Mono", ui-monospace, Menlo, monospace;
}

body { background: var(--rm-bg); }

.rm-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 12px 110px;
}

/* ── シャーシ（マシン全体の筐体）── */
.rm-chassis {
  border: 1px solid var(--rm-line-strong);
  border-radius: 14px;
  background: linear-gradient(180deg, #1a1d22, var(--rm-chassis) 40px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

/* ── 銘板（ヘッダー）── */
.rm-plate {
  position: relative;
  padding: 22px 20px 18px;
  background: linear-gradient(180deg, #23262c, #17191d);
  border-bottom: 1px solid #000;
}
.rm-plate::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rm-red) 0 33.4%, var(--rm-gold) 33.4% 66.7%, var(--rm-green) 66.7% 100%);
}
.rm-plate__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10px;
  letter-spacing: 0.28em;
}
.rm-plate__brand::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rm-green);
  box-shadow: 0 0 8px var(--rm-green);
}
.rm-plate h1 {
  margin: 0;
  font-family: var(--rm-font-display);
  font-size: clamp(40px, 11vw, 64px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--rm-text);
}
.rm-plate__sub {
  margin: 8px 0 0;
  color: var(--rm-muted);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

/* ── ラックユニット（各セクション）── */
.rm-unit {
  position: relative;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid #000;
  background:
    radial-gradient(circle 3px at 10px 14px, #0a0b0d 0 2px, #2e333b 2.6px, transparent 4px),
    radial-gradient(circle 3px at calc(100% - 10px) 14px, #0a0b0d 0 2px, #2e333b 2.6px, transparent 4px),
    linear-gradient(180deg, var(--rm-face), var(--rm-face-2));
}
.rm-unit:last-of-type { border-bottom: 0; }
.rm-unit__head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
}
.rm-unit__head h2 {
  margin: 0;
  font-family: var(--rm-font-display);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rm-text);
}
.rm-unit__head .rm-unit__no {
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}
.rm-hint { margin: 0 0 14px; color: var(--rm-muted); font-size: 12px; }

/* ── RIDDIM BANK: パッド ── */
.rm-scenes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.rm-scenes button {
  position: relative;
  display: grid;
  align-content: end;
  gap: 3px;
  min-height: 74px;
  padding: 10px 12px;
  border: 1px solid #000;
  border-radius: 9px;
  background: linear-gradient(180deg, #2a2e35, #1a1d22 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 3px 0 #000;
  color: var(--rm-text);
  text-align: left;
  cursor: pointer;
}
.rm-scenes button::before {
  content: "";
  position: absolute;
  top: 9px; right: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #363b43;
  box-shadow: inset 0 1px 2px #000;
}
.rm-scenes button strong {
  font-family: var(--rm-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.rm-scenes button small { color: var(--rm-muted); font-size: 10.5px; }
.rm-scenes button:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 0 #000; }
.rm-scenes button[aria-pressed="true"] {
  border-color: rgba(63, 174, 102, 0.7);
  background: linear-gradient(180deg, #24352a, #16211a 70%);
}
.rm-scenes button[aria-pressed="true"]::before {
  background: var(--rm-green);
  box-shadow: 0 0 9px var(--rm-green);
}
.rm-scenes button:disabled { opacity: 0.55; cursor: default; }

/* ── LCD ディスプレイ ── */
.rm-lcd {
  margin: 0 0 12px;
  padding: 12px 14px;
  border: 1px solid #000;
  border-radius: 8px;
  background: radial-gradient(120% 140% at 50% 0%, #10321b, var(--rm-lcd-bg) 70%);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(72, 255, 128, 0.05);
  font-family: var(--rm-font-mono);
}
.rm-lcd__title {
  margin: 0;
  color: var(--rm-lcd);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(134, 255, 171, 0.5);
}
.rm-lcd__meta { margin: 4px 0 0; color: var(--rm-lcd-dim); font-size: 11.5px; letter-spacing: 0.06em; }
.rm-lcd__status { margin: 6px 0 0; min-height: 1.3em; color: var(--rm-lcd); font-size: 12px; opacity: 0.9; }
#vu { display: block; width: 100%; height: 12px; margin-top: 10px; }

/* ── 譜面 ── */
.rm-score {
  height: 96px;
  margin: 0 0 14px;
  border: 1px solid #000;
  border-radius: 8px;
  background: var(--rm-inset);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.rm-score svg { display: block; width: 100%; height: 100%; }
.rm-score rect { fill: var(--rm-muted); }
.rm-score .rm-lead { fill: var(--rm-gold); }
.rm-score .rm-skank { fill: var(--rm-green); }
.rm-score .rm-bass { fill: var(--rm-red); }
.rm-score line { stroke: var(--rm-text); stroke-width: 1.6; }
.rm-empty { display: grid; place-items: center; height: 100%; color: var(--rm-muted); font-size: 12px; font-family: var(--rm-font-mono); letter-spacing: 0.1em; }

/* ── ボタン共通 ── */
.rm-transport { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rm-btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #000;
  border-radius: 9px;
  background: linear-gradient(180deg, #2b2f36, #1c1f24 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 0 #000;
  color: var(--rm-text);
  font-family: var(--rm-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.rm-btn:active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 1px 0 #000; }
.rm-btn:disabled { opacity: 0.45; cursor: default; transform: none; }
.rm-btn--play { border-color: rgba(63, 174, 102, 0.8); color: var(--rm-green); min-width: 116px; }
.rm-btn--rec { color: var(--rm-red); }
.rm-recording { border-color: var(--rm-red) !important; background: #2a1210 !important; }

/* ── フェーダー（range共通）── */
input[type="range"].rm-fader {
  -webkit-appearance: none;
  appearance: none;
  height: 26px;
  background: transparent;
  cursor: pointer;
}
input[type="range"].rm-fader::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background:
    repeating-linear-gradient(90deg, transparent 0 9px, rgba(255, 255, 255, 0.10) 9px 10px),
    linear-gradient(180deg, #06070a, #14171c);
  box-shadow: inset 0 1px 3px #000;
}
input[type="range"].rm-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 24px;
  margin-top: -9px;
  border: 1px solid #000;
  border-radius: 4px;
  background: linear-gradient(180deg, #454b55, #23262c 45%, #3b414b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), inset 0 -6px 0 -5px var(--rm-accent, var(--rm-text)), 0 2px 4px #000;
}
input[type="range"].rm-fader::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: #101318;
  box-shadow: inset 0 1px 3px #000;
}
input[type="range"].rm-fader::-moz-range-thumb {
  width: 16px;
  height: 24px;
  border: 1px solid #000;
  border-radius: 4px;
  background: linear-gradient(180deg, #454b55, #23262c 45%, #3b414b);
}
.rm-fader--send { --rm-accent: var(--rm-gold); }
.rm-fader--level { --rm-accent: var(--rm-green); }
.rm-fader--siren { --rm-accent: var(--rm-red); }

.rm-field {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
}
.rm-field select,
.rm-field input[type="number"],
#seedInput {
  min-height: 40px;
  padding: 0 8px;
  border: 1px solid #000;
  border-radius: 7px;
  background: #101318;
  box-shadow: inset 0 1px 3px #000;
  color: var(--rm-text);
  font-family: var(--rm-font-mono);
  font-size: 12px;
}
#seedInput { width: 104px; }
.rm-field input[type="number"] { width: 84px; }
.rm-field input[type="range"] { width: 118px; }

.rm-genrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rm-line);
}

/* ── DUB CONSOLE ── */
.rm-console {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
}
.rm-strip {
  display: grid;
  gap: 9px;
  justify-items: center;
  padding: 12px 5px 10px;
  border: 1px solid #000;
  border-radius: 8px;
  background: linear-gradient(180deg, #191c21, #14161a);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.rm-strip__name {
  color: var(--rm-text);
  font-family: var(--rm-font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.rm-strip input[type="range"] { width: 100%; max-width: 92px; }
.rm-strip__mute {
  min-height: 30px;
  width: 100%;
  max-width: 92px;
  border: 1px solid #000;
  border-radius: 6px;
  background: #191c21;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  cursor: pointer;
}
.rm-strip__mute--on {
  border-color: var(--rm-red);
  color: var(--rm-red);
  background: #2a1210;
  box-shadow: 0 0 8px rgba(224, 69, 58, 0.35);
}

.rm-master {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--rm-line);
}
.rm-throw {
  position: relative;
  min-height: 56px;
  padding: 0 24px;
  border: 1px solid var(--rm-gold);
  border-radius: 9px;
  background:
    repeating-linear-gradient(-45deg, transparent 0 8px, rgba(234, 181, 60, 0.14) 8px 16px),
    linear-gradient(180deg, #2a2310, #1c1809);
  color: var(--rm-gold);
  font-family: var(--rm-font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.rm-throw:active, .rm-throw[aria-pressed="true"] { background: var(--rm-gold); color: #171307; box-shadow: 0 0 16px rgba(234, 181, 60, 0.48); }

/* ── SEQUENCER ── */
.rm-seq { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; min-height: 36px; }
.rm-seq__chip {
  min-height: 36px;
  min-width: 46px;
  padding: 0 12px;
  border: 1px solid #000;
  border-radius: 7px;
  background: linear-gradient(180deg, #262a31, #191c21 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #000;
  color: var(--rm-gold);
  font-family: var(--rm-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.rm-seq__chip--add { color: var(--rm-muted); }
.rm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── SONG MODE ── */
.rm-clips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rm-clip {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #000;
  border-radius: 7px;
  background: linear-gradient(180deg, #262a31, #191c21 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #000;
  color: var(--rm-text);
  font-family: var(--rm-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.rm-clip--empty { color: var(--rm-muted); cursor: default; box-shadow: none; background: transparent; border-style: dashed; border-color: #2a2e35; }
.rm-clip--active { border-color: var(--rm-gold); color: var(--rm-gold); background: #201b0d; }
.rm-song { min-height: 42px; align-items: center; }
.rm-song .rm-seq__chip.is-playing { border-color: var(--rm-green, #5fe08a); color: #5fe08a; background: #0d2014; }

/* ── SIREN ── */
.rm-pads { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.rm-pads button {
  min-height: 92px;
  border: 1px solid #000;
  border-radius: 10px;
  background: radial-gradient(90% 120% at 50% 0%, #3a1613, #200c0a 75%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(224, 69, 58, 0.5), 0 3px 0 #000;
  color: var(--rm-red);
  font-family: var(--rm-font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.12em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.rm-pads button:active {
  background: var(--rm-red);
  color: #14060a;
  transform: translateY(2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 #000;
}
.rm-siren-controls { display: flex; flex-wrap: wrap; gap: 14px; }

/* ── TEXTURE RACK ── */
.rm-rack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.rm-rack__unit {
  display: grid;
  grid-template-columns: 92px 1fr;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid #000;
  border-radius: 8px;
  background: linear-gradient(180deg, #191c21, #14161a);
}
.rm-rack__toggle {
  position: relative;
  min-height: 42px;
  padding-left: 18px;
  border: 1px solid #000;
  border-radius: 7px;
  background: linear-gradient(180deg, #262a31, #191c21 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 0 #000;
  color: var(--rm-text);
  font-family: var(--rm-font-display);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.rm-rack__toggle::before {
  content: "";
  position: absolute;
  left: 9px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: #363b43;
  box-shadow: inset 0 1px 2px #000;
}
.rm-rack__toggle--on { color: var(--rm-gold); }
.rm-rack__toggle--on::before { background: var(--rm-gold); box-shadow: 0 0 8px var(--rm-gold); }
.rm-rack__level { width: 100%; }

/* ── フッター注記 ── */
.rm-notes { margin: 20px 4px 0; color: var(--rm-muted); font-size: 12px; line-height: 1.9; }
.rm-notes p { margin: 0 0 8px; }
.rm-notes a { color: var(--rm-text); }

.rm-quick-stop {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--rm-red);
  border-radius: 999px;
  background: #200c0a;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
  color: var(--rm-red);
  font-family: var(--rm-font-display);
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

@media (min-width: 640px) {
  .rm-scenes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rm-rack { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rm-rack__unit { grid-template-columns: 1fr; justify-items: stretch; }
}
@media (max-width: 560px) {
  .rm-console { grid-template-columns: repeat(5, minmax(56px, 1fr)); gap: 5px; }
  .rm-strip { padding: 9px 4px 8px; }
}

/* ── v4: PATTERNソース（SEQUENCER移植）── */

.rm-tabs { display: inline-flex; gap: 6px; margin-left: auto; }
.rm-tabs button {
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--rm-line);
  border-radius: 7px;
  background: transparent;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
}
.rm-tabs button.is-active {
  border-color: var(--rm-gold);
  color: var(--rm-gold);
  background: #201b0d;
}
.rm-unit__head { flex-wrap: wrap; }

.rm-seq__chip--active { border-color: var(--rm-gold); color: var(--rm-gold); background: #201b0d; }

/* ステップグリッド */
.rm-grid-scroll { overflow-x: auto; padding-bottom: 6px; }
.rm-grid { display: grid; gap: 5px; min-width: 640px; }
.rm-grid__row { display: grid; grid-template-columns: 128px 1fr; gap: 8px; align-items: center; }
.rm-grid__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 8px;
  border: 1px solid #000;
  border-radius: 6px;
  background: linear-gradient(180deg, #191c21, #14161a);
  color: var(--rm-text);
  font-family: var(--rm-font-display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.rm-grid__head i {
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--lane-color, var(--rm-muted));
  flex: none;
}
.rm-grid__head span { overflow: hidden; text-overflow: ellipsis; }
.rm-grid__workshop { margin-left: auto; color: var(--rm-muted); text-decoration: none; font-size: 13px; }
.rm-grid__workshop:hover { color: var(--rm-gold); }
.rm-grid__lock {
  flex: none;
  width: 24px; height: 24px;
  margin-left: 4px;
  border: 1px solid var(--rm-line);
  border-radius: 5px;
  background: transparent;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10px;
  cursor: pointer;
}
.rm-grid__lock.is-on { border-color: var(--rm-gold); color: var(--rm-gold); background: #201b0d; }
.rm-grid__cells { display: grid; grid-template-columns: repeat(32, 1fr); gap: 3px; }
.rm-grid__cell {
  aspect-ratio: 1 / 1.35;
  min-width: 12px;
  border: 1px solid #000;
  border-radius: 3px;
  background: #101318;
  box-shadow: inset 0 1px 2px #000;
  cursor: pointer;
  padding: 0;
}
.rm-grid__cell--bar { margin-left: 6px; }
.rm-grid__cell.is-on {
  background: var(--lane-color, var(--rm-gold));
  box-shadow: 0 0 6px color-mix(in srgb, var(--lane-color, var(--rm-gold)) 55%, transparent);
  border-color: color-mix(in srgb, var(--lane-color, var(--rm-gold)) 70%, #000);
}
.rm-grid__cell.is-ghost:not(.is-on) {
  background: color-mix(in srgb, var(--lane-color, var(--rm-gold)) 26%, #101318);
}
.rm-grid__cell.is-now { outline: 1px solid var(--rm-text); outline-offset: 1px; }
.rm-auto-edit__head { display: flex; align-items: end; flex-wrap: wrap; gap: 10px 16px; margin: 0 0 12px; }
.rm-auto-edit__head select { min-height: 34px; margin-left: 7px; background: #151512; color: var(--rm-text); border: 1px solid var(--rm-line); border-radius: 5px; }
.rm-auto-edit__head .rm-hint { margin: 0; max-width: 44rem; }

.rm-ghost {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--rm-line);
}
.rm-ghost .rm-hint { margin: 0; }
.rm-ghost input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--rm-gold); }

.rm-import {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 1px solid var(--rm-gold);
  border-radius: 7px;
  background: #201b0d;
  color: var(--rm-gold);
  font-size: 12px;
}
.rm-import button {
  margin-left: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--rm-gold);
  border-radius: 6px;
  background: transparent;
  color: var(--rm-gold);
  font-size: 11px;
  cursor: pointer;
}

.rm-synth { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 16px; }
.rm-synth__control label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.rm-synth__control output { color: var(--rm-text); }
.rm-synth__control input { width: 100%; }

.rm-field output { color: var(--rm-text); font-family: var(--rm-font-mono); font-size: 11px; }
.rm-strip__name { color: var(--lane-color, var(--rm-text)); }

@media (max-width: 640px) {
  .rm-grid__row { grid-template-columns: 96px 1fr; }
  .rm-synth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── v7: 統合バンク ── */
.rm-bank { display: grid; gap: 18px; }
.rm-bank-group { display: grid; gap: 9px; }
.rm-bank-label {
  margin: 0;
  color: var(--rm-muted);
  font-family: var(--rm-font-mono);
  font-size: 10px;
  letter-spacing: 0.26em;
}
#variations { margin: 2px 0 0; min-height: 0; }
.rm-scenes button { min-height: 56px; }
