:root {
  --paper: #eee9df;
  --ink: #20211f;
  --muted: #77766f;
  --line: #cbc6bb;
  --card: rgba(255, 255, 255, 0.32);
  --accent: #f05a3e;
  --accent-dark: #d9472d;
  --shadow: 0 24px 70px rgba(53, 49, 39, 0.08);
  --glow: rgba(255, 255, 255, 0.8);
  --texture: rgba(96, 89, 70, 0.03);
  --font-ui: 'Manrope', system-ui, sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'DM Mono', monospace;
}

body[data-font='modern'] {
  --font-ui: 'Space Grotesk', system-ui, sans-serif;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}
body[data-font='rounded'] {
  --font-ui: 'Nunito Sans', system-ui, sans-serif;
  --font-display: 'Nunito Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;
}
body[data-font='mono'] {
  --font-ui: 'IBM Plex Mono', monospace;
  --font-display: 'IBM Plex Mono', monospace;
  --font-mono: 'IBM Plex Mono', monospace;
}

body[data-skin='midnight'] {
  --paper: #17191c;
  --ink: #f1eee7;
  --muted: #a3a6a8;
  --line: #3c3f42;
  --card: rgba(40, 43, 47, 0.72);
  --accent: #f3a847;
  --accent-dark: #dc8e2e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --glow: rgba(89, 96, 105, 0.18);
  --texture: rgba(255, 255, 255, 0.018);
  color-scheme: dark;
}
body[data-skin='moss'] {
  --paper: #e5e6da;
  --ink: #253027;
  --muted: #70786d;
  --line: #bcc2b4;
  --card: rgba(250, 251, 243, 0.38);
  --accent: #397d5b;
  --accent-dark: #2d6749;
  --shadow: 0 24px 70px rgba(43, 65, 47, 0.11);
  --glow: rgba(255, 255, 248, 0.72);
  --texture: rgba(52, 82, 59, 0.035);
}
body[data-skin='rose'] {
  --paper: #f0e3e0;
  --ink: #352629;
  --muted: #8b7275;
  --line: #d2beba;
  --card: rgba(255, 249, 247, 0.38);
  --accent: #b84d64;
  --accent-dark: #9f3c52;
  --shadow: 0 24px 70px rgba(94, 53, 62, 0.1);
  --glow: rgba(255, 252, 250, 0.78);
  --texture: rgba(128, 66, 80, 0.028);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, var(--glow), transparent 28%),
    linear-gradient(135deg, var(--texture) 25%, transparent 25%) 0 0 / 5px 5px,
    var(--paper);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}
button {
  color: inherit;
}

.app-shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  min-height: 102px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.brand-mark {
  width: 24px;
  height: 25px;
  display: flex;
  align-items: end;
  gap: 3px;
}
.brand-mark span {
  width: 4px;
  height: 11px;
  background: var(--accent);
  border-radius: 3px;
  transform: rotate(7deg);
}
.brand-mark span:nth-child(2) {
  height: 21px;
}
.brand-mark span:nth-child(3) {
  height: 15px;
}

.shortcut-hint {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.shortcut-hint span,
kbd {
  display: inline-flex;
  min-width: 46px;
  min-height: 25px;
  margin-right: 5px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-bottom-color: #aaa59b;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #5c5c56;
  font-family: var(--font-mono);
  font-size: 10px;
}

.instrument {
  border: 1px solid rgba(116, 111, 99, 0.22);
  border-radius: 18px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.instrument-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 34px 40px 28px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}
h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  letter-spacing: -0.035em;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.status-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #9d9a91;
  border-radius: 50%;
}
.status.running .status-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 90, 62, 0.12);
}
.head-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 2px;
}
.skin-trigger {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.skin-trigger:hover {
  color: var(--ink);
  border-color: var(--muted);
}
.skin-swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
.font-glyph {
  min-width: 16px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
}

.tempo-stage {
  padding: 25px 40px 40px;
  text-align: center;
}

.beat-track {
  height: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.beat-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c1bdb4;
  transition:
    width 0.08s,
    height 0.08s,
    background 0.08s,
    box-shadow 0.08s;
}
.beat-dot.active {
  width: 8px;
  height: 8px;
  background: var(--ink);
  box-shadow: 0 0 0 4px rgba(32, 33, 31, 0.07);
}
.beat-dot.accent.active {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(240, 90, 62, 0.11);
}

.tempo-readout {
  display: grid;
  grid-template-columns: 72px minmax(210px, 290px) 72px;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin-top: 4px;
}
.bpm-display {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bpm-display input {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: clamp(70px, 11vw, 112px);
  font-weight: 400;
  line-height: 1;
  text-align: center;
  appearance: textfield;
}
.bpm-display input::-webkit-inner-spin-button {
  appearance: none;
}
.bpm-display span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.24em;
}

.nudge {
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.16s ease;
}
.nudge:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}
.nudge:active {
  transform: translateY(1px);
}

.tempo-name {
  min-height: 20px;
  margin: 7px 0 23px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 14px;
  font-style: italic;
}

.slider-wrap {
  width: min(570px, 100%);
  margin: 0 auto 30px;
}
input[type='range'] {
  --progress: 33.33%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}
input[type='range']::-webkit-slider-runnable-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) var(--progress),
    #c6c1b7 var(--progress)
  );
}
input[type='range']::-moz-range-track {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) var(--progress),
    #c6c1b7 var(--progress)
  );
}
input[type='range']::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  margin-top: -7.5px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow:
    0 0 0 1px var(--accent),
    0 3px 7px rgba(0, 0, 0, 0.15);
  appearance: none;
}
input[type='range']::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 0;
  color: #99968e;
  font-family: var(--font-mono);
  font-size: 9px;
}

.play-button {
  min-width: 148px;
  min-height: 49px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #f6f2ea;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 18px rgba(31, 31, 29, 0.15);
  cursor: pointer;
  transition: 0.18s ease;
}
.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(31, 31, 29, 0.2);
}
.play-button:active {
  transform: translateY(0);
}
.play-button.running {
  border-color: var(--accent-dark);
  background: var(--accent);
}
.play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
}
.play-button.running .play-icon {
  width: 9px;
  height: 10px;
  border: 0;
  border-left: 3px solid;
  border-right: 3px solid;
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.control-group {
  padding: 25px 40px 27px;
}
.control-group + .control-group {
  border-left: 1px solid var(--line);
}
.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.control-label-row h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.control-label-row > span {
  color: var(--muted);
  font-size: 10px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.segmented button {
  min-height: 39px;
  border: 0;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.14);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
}
.segmented button:last-child {
  border: 0;
}
.segmented button.active {
  background: var(--ink);
  color: white;
}

.sound-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}
.speaker-icon {
  width: 11px;
  height: 12px;
  display: inline-block;
  background: currentColor;
  clip-path: polygon(0 32%, 34% 32%, 77% 0, 77% 100%, 34% 68%, 0 68%);
}
.sound-toggle:not(.active) {
  opacity: 0.55;
}
.sound-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: -2px 0 12px;
}
.sound-picker button {
  min-height: 29px;
  padding: 0 5px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.24);
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: 0.15s ease;
}
.sound-picker button:hover {
  border-color: var(--line);
  color: var(--ink);
}
.sound-picker button.active {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 600;
}
.volume-row {
  display: grid;
  grid-template-columns: 11px 1fr 16px;
  align-items: center;
  gap: 14px;
  height: 27px;
}
.volume-low,
.volume-high {
  height: 12px;
  background: var(--muted);
  clip-path: polygon(0 36%, 33% 36%, 75% 6%, 75% 94%, 33% 64%, 0 64%);
  opacity: 0.65;
}
.volume-high {
  position: relative;
}

.utility-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 83px;
}
.utility-button,
.accent-control {
  display: flex;
  align-items: center;
  padding: 19px 40px;
  border: 0;
  background: transparent;
  text-align: left;
}
.utility-button {
  gap: 16px;
  border-right: 1px solid var(--line);
  cursor: pointer;
}
.utility-button:hover {
  background: rgba(255, 255, 255, 0.2);
}
.utility-button strong,
.accent-control strong {
  display: block;
  font-size: 11px;
  font-weight: 600;
}
.utility-button small,
.accent-control small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.tap-rings {
  width: 26px;
  height: 26px;
  border: 1px solid var(--muted);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 6px var(--paper),
    inset 0 0 0 7px var(--muted);
  transition: 0.1s;
}
.utility-button.pressed .tap-rings {
  border-color: var(--accent);
  box-shadow:
    inset 0 0 0 4px var(--paper),
    inset 0 0 0 8px var(--accent);
  transform: scale(0.9);
}

.accent-control {
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
}
.accent-control > span:first-child {
  margin-right: auto;
}
.accent-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch {
  width: 38px;
  height: 21px;
  position: relative;
  border-radius: 20px;
  background: #bbb7ae;
  transition: 0.2s;
}
.switch::after {
  content: '';
  width: 15px;
  height: 15px;
  position: absolute;
  top: 3px;
  left: 3px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: 0.2s;
}
.accent-control input:checked + .switch {
  background: var(--accent);
}
.accent-control input:checked + .switch::after {
  transform: translateX(17px);
}
.accent-control input:focus-visible + .switch {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

footer {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #8a8880;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.language-picker {
  max-width: 125px;
  min-height: 34px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 10px var(--font-mono);
}
.trainer-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(150px, 0.55fr);
  gap: 20px 30px;
  margin-top: 18px;
  padding: 30px 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 18px 55px rgba(55, 51, 43, 0.08);
}
.trainer-panel h2 {
  margin: 3px 0 8px;
  font: 400 clamp(25px, 4vw, 38px)/1.1 var(--font-display);
}
.trainer-help {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.rhythm-tap {
  grid-row: span 2;
  min-height: 145px;
  border: 1px solid var(--ink);
  border-radius: 9px;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  transition:
    transform 0.08s ease,
    background 0.08s ease;
}
.rhythm-tap span,
.rhythm-tap strong,
.rhythm-tap small {
  display: block;
}
.rhythm-tap span {
  font-size: 30px;
  color: var(--accent);
}
.rhythm-tap strong {
  margin: 8px 0 3px;
  font-size: 13px;
}
.rhythm-tap small {
  opacity: 0.65;
}
.rhythm-tap:active,
.rhythm-tap.hit {
  transform: scale(0.97);
  background: var(--accent);
}
.trainer-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.trainer-stats div {
  padding: 15px;
  text-align: center;
}
.trainer-stats div + div {
  border-left: 1px solid var(--line);
}
.trainer-stats small,
.trainer-stats strong {
  display: block;
}
.trainer-stats small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.trainer-stats strong {
  margin-top: 6px;
  font: 500 20px var(--font-mono);
}
.trainer-message {
  grid-column: 1/-1;
  margin: 0;
  padding: 10px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.24);
  font-size: 11px;
}
.dojo-actions {
  grid-column: 1/-1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dojo-actions button,
.dojo-actions a {
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  text-decoration: none;
  cursor: pointer;
}
.dojo-actions button:hover,
.dojo-actions a:hover {
  border-color: var(--accent);
}

dialog {
  width: min(430px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f1ede4;
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}
body[data-skin='midnight'] dialog {
  background: #23262a;
}
body[data-skin='moss'] dialog {
  background: #eceee4;
}
body[data-skin='rose'] dialog {
  background: #f4e9e6;
}
dialog::backdrop {
  background: rgba(33, 31, 27, 0.35);
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  padding: 25px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 400;
}
.dialog-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
}
.shortcut-list {
  padding: 12px 28px 22px;
}
.shortcut-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 47px;
  border-bottom: 1px solid rgba(203, 198, 187, 0.7);
  font-size: 12px;
}
.shortcut-list > div:last-child {
  border: 0;
}
.shortcut-list kbd {
  margin: 0 2px;
}

.skin-dialog {
  width: min(520px, calc(100% - 32px));
}
.skin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px 24px 25px;
}
.skin-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.skin-option:hover {
  border-color: var(--muted);
}
.skin-option.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.skin-option strong,
.skin-option small {
  display: block;
}
.skin-option strong {
  font-size: 11px;
}
.skin-option small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}
.skin-preview {
  width: 60px;
  height: 44px;
  flex: 0 0 auto;
  display: flex;
  align-items: end;
  gap: 4px;
  padding: 8px;
  border-radius: 6px;
  background: #eee9df;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.skin-preview i {
  width: 8px;
  height: 11px;
  border-radius: 2px;
  background: #f05a3e;
}
.skin-preview i:nth-child(2) {
  height: 22px;
}
.skin-preview i:nth-child(3) {
  width: 20px;
  height: 3px;
  margin: 0 0 9px 4px;
  background: #20211f;
}
.midnight-preview {
  background: #17191c;
}
.midnight-preview i {
  background: #f3a847;
}
.midnight-preview i:nth-child(3) {
  background: #f1eee7;
}
.moss-preview {
  background: #e5e6da;
}
.moss-preview i {
  background: #397d5b;
}
.moss-preview i:nth-child(3) {
  background: #253027;
}
.rose-preview {
  background: #f0e3e0;
}
.rose-preview i {
  background: #b84d64;
}
.rose-preview i:nth-child(3) {
  background: #352629;
}

.font-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 22px 24px 25px;
}
.font-option {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 76px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.font-option:hover {
  border-color: var(--muted);
}
.font-option.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.font-option strong,
.font-option small {
  display: block;
}
.font-option strong {
  font-size: 11px;
}
.font-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}
.font-sample {
  width: 48px;
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 29px;
  line-height: 1;
}
.sample-editorial {
  font-family: 'Fraunces', Georgia, serif;
}
.sample-modern {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
}
.sample-rounded {
  font-family: 'Nunito Sans', sans-serif;
  font-weight: 700;
}
.sample-mono {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 24px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .app-shell {
    width: min(100% - 20px, 600px);
  }
  .site-header {
    min-height: 76px;
  }
  .shortcut-hint {
    font-size: 0;
  }
  .shortcut-hint span {
    margin: 0;
    font-size: 10px;
  }
  .instrument-head {
    padding: 27px 23px 22px;
  }
  .status {
    display: none;
  }
  .head-actions {
    gap: 0;
  }
  .head-actions .skin-trigger {
    padding: 0 7px;
  }
  .head-actions .skin-trigger span:last-child {
    display: none;
  }
  .tempo-stage {
    padding: 21px 20px 32px;
  }
  .tempo-readout {
    grid-template-columns: 46px minmax(150px, 220px) 46px;
    gap: 6px;
  }
  .nudge {
    width: 43px;
    height: 43px;
  }
  .control-grid,
  .utility-row {
    grid-template-columns: 1fr;
  }
  .control-group {
    padding: 23px;
  }
  .control-group + .control-group {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .utility-button,
  .accent-control {
    padding: 19px 23px;
  }
  .utility-button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  footer {
    padding: 0 5px;
  }
  .skin-grid {
    grid-template-columns: 1fr;
  }
  .font-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    gap: 8px;
  }
  .brand {
    font-size: 10px;
  }
  .language-picker {
    max-width: 105px;
  }
  .trainer-panel {
    grid-template-columns: 1fr;
    padding: 23px;
  }
  .rhythm-tap {
    grid-row: auto;
    min-height: 115px;
  }
  .trainer-stats,
  .trainer-message,
  .dojo-actions {
    grid-column: auto;
  }
  .trainer-stats div {
    padding: 12px 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
