:root {
  color-scheme: dark;
  --bg: #111217;
  --surface: #181a21;
  --surface-2: #20232c;
  --ink: #f4f0e6;
  --muted: #a9a7a0;
  --line: #353944;
  --blue: #548dff;
  --blue-soft: #a9c4ff;
  --red: #ff685f;
  --red-soft: #ffb0aa;
  --acid: #d8f56a;
  --gold: #f3c861;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 4%, rgba(84, 141, 255, 0.12), transparent 25rem),
    var(--bg);
  color: var(--ink);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
pre:focus-visible {
  outline: 3px solid var(--acid);
  outline-offset: 3px;
}

button {
  color: inherit;
}

.app-header,
main,
footer {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.back-link {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.back-link span {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--blue);
  transition: transform 160ms ease;
}

.back-link:hover span {
  transform: translateX(-3px);
}

.header-mark {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
  gap: 48px;
  min-height: 0;
  padding: 82px 0 74px;
  text-align: center;
}

.hero-copy {
  max-width: 820px;
  margin-inline: auto;
}

.eyebrow,
.section-label,
.card-kicker,
.picker-step {
  margin: 0;
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 26px;
  font-family: var(--display);
  font-size: clamp(4.7rem, 9vw, 8rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: -0.075em;
  line-height: 0.78;
  text-transform: uppercase;
}

.hero h1 em {
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 2px var(--red);
  text-stroke: 2px var(--red);
}

.lede {
  max-width: 570px;
  margin: 0 auto;
  color: #c7c5be;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

.progression-form {
  position: relative;
  width: min(760px, 100%);
  margin-inline: auto;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #454a57;
  background: rgba(24, 26, 33, 0.92);
  box-shadow: 18px 18px 0 rgba(84, 141, 255, 0.1);
  text-align: left;
}

.progression-form::before {
  position: absolute;
  top: -1px;
  right: 24px;
  width: 76px;
  height: 4px;
  background: var(--red);
  content: "";
}

.progression-form > label {
  display: block;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr auto;
}

.input-row input {
  min-width: 0;
  height: 64px;
  padding: 0 18px;
  border: 1px solid #505563;
  border-right: 0;
  border-radius: 0;
  background: #101116;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.input-row input::placeholder {
  color: #686b73;
}

.analyze-button {
  height: 64px;
  padding: 0 22px;
  border: 1px solid var(--acid);
  border-radius: 0;
  background: var(--acid);
  color: #151710;
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 160ms ease, transform 160ms ease;
}

.analyze-button:hover {
  background: #ecff9a;
  transform: translateY(-2px);
}

.form-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
}

.form-foot p,
.form-error {
  margin: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.examples {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.examples button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid #5d616d;
  background: none;
  color: #d7d4ca;
  cursor: pointer;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.examples button:hover {
  border-color: var(--blue);
  color: var(--blue-soft);
}

.form-error {
  min-height: 1.2em;
  margin-top: 12px;
  color: var(--red-soft);
}

.key-panel {
  display: grid;
  grid-template-columns: 70px minmax(260px, 0.8fr) minmax(300px, 1.2fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(84, 141, 255, 0.08), transparent 60%);
}

.section-number {
  align-self: stretch;
  padding-top: 2px;
  border-right: 1px solid var(--line);
  color: #71757f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.76rem;
}

.key-heading-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin: 5px 0 7px;
}

.key-result h2,
.workspace-heading h2,
.play-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 850;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: uppercase;
}

.fit-badge {
  padding: 5px 8px;
  border: 1px solid var(--acid);
  color: var(--acid);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fit-badge.is-near {
  border-color: var(--red);
  color: var(--red-soft);
}

.key-result > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.key-candidates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.candidate-key {
  padding: 12px;
  border: 1px solid var(--line);
  background: rgba(17, 18, 23, 0.68);
}

.candidate-key strong,
.candidate-key span {
  display: block;
}

.candidate-key strong {
  font-size: 0.87rem;
}

.candidate-key span {
  margin-top: 2px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.voicing-workspace,
.play-section {
  padding: 92px 0;
}

.workspace-heading,
.play-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
}

.section-label span {
  margin-right: 12px;
  color: #737782;
}

.workspace-heading h2,
.play-heading h2 {
  max-width: 740px;
  margin-top: 12px;
}

.workspace-note {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: right;
}

.chord-rail {
  display: flex;
  margin: 46px 0 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  scrollbar-width: thin;
}

.rail-chord {
  position: relative;
  flex: 1 0 150px;
  min-height: 86px;
  padding: 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: default;
  text-align: left;
}

.rail-chord:last-child {
  border-right: 0;
}

.rail-chord span,
.rail-chord strong,
.rail-chord small {
  display: block;
}

.rail-chord span {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.61rem;
  letter-spacing: 0.1em;
}

.rail-chord strong {
  margin-top: 3px;
  color: inherit;
  font-size: 1.15rem;
}

.rail-chord small {
  margin-top: 3px;
  font-size: 0.66rem;
}

.rail-chord.is-current {
  background: var(--blue);
  color: #0d1830;
}

.rail-chord.is-current::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--chord-color, var(--acid));
  content: "";
}

.rail-chord.is-picked {
  color: var(--ink);
  cursor: pointer;
}

.rail-chord.is-picked small {
  color: var(--chord-color, var(--acid));
}

.picker-shell {
  padding: clamp(22px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--surface);
}

.picker-topline {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.picker-topline h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.85;
}

.voicing-kind {
  display: flex;
  border: 1px solid #4a4f5c;
}

.voicing-kind button {
  min-width: 108px;
  padding: 10px 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
}

.voicing-kind button + button {
  border-left: 1px solid #4a4f5c;
}

.voicing-kind button.is-active {
  background: var(--ink);
  color: #14151b;
}

.picker-guidance {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.voicing-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
  margin-top: 20px;
}

.voicing-filters > label {
  display: flex;
  align-items: center;
  border: 1px solid #454a57;
  background: #13151a;
}

.voicing-filters > label > span {
  padding: 0 11px;
  color: #9b9da4;
  font-size: 0.68rem;
  font-weight: 720;
}

.voicing-filters select {
  min-height: 39px;
  padding: 0 32px 0 11px;
  border: 0;
  border-left: 1px solid #454a57;
  border-radius: 0;
  background: #20232c;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.7rem;
}

.no-skip-filter {
  padding: 0 12px;
  cursor: pointer;
}

.no-skip-filter input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--acid);
}

.no-skip-filter > span {
  padding-right: 0 !important;
}

.voicing-sort {
  display: flex;
  width: fit-content;
  margin-top: 20px;
  align-items: center;
  border: 1px solid #454a57;
}

.voicing-sort > span {
  padding: 0 11px;
  color: #7f838d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voicing-sort button {
  padding: 9px 12px;
  border: 0;
  border-left: 1px solid #454a57;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 740;
}

.voicing-sort button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.voicing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 30px;
}

.show-all-voicings {
  display: block;
  margin: 24px auto 0;
  padding: 11px 18px;
  border: 1px solid var(--blue);
  background: transparent;
  color: var(--blue-soft);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 760;
}

.show-all-voicings:hover {
  background: rgba(84, 141, 255, 0.1);
}

.voicing-option {
  position: relative;
  min-width: 0;
  padding: 17px;
  overflow: hidden;
  border: 1px solid #3e424e;
  background: #13151a;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 150ms ease, transform 150ms ease, background 150ms ease;
}

.voicing-option:hover {
  border-color: var(--blue);
  background: #191d27;
  transform: translateY(-3px);
}

.option-rank {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.option-rank b {
  color: var(--acid);
  font-weight: 700;
}

.shape-strings {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
  margin: 20px 0 16px;
  padding: 13px 8px 10px;
  border-top: 4px solid #d8d5cb;
  background: #1d2028;
}

.shape-string {
  min-width: 0;
  text-align: center;
}

.shape-string i,
.shape-string strong,
.shape-string small {
  display: block;
  font-style: normal;
}

.shape-string i {
  color: #7f838d;
  font-size: 0.55rem;
}

.shape-string strong {
  margin-top: 6px;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
}

.shape-string.is-muted strong {
  color: #666a74;
}

.shape-string small {
  min-height: 1.1em;
  margin-top: 5px;
  overflow: hidden;
  color: var(--blue-soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.5rem;
  font-weight: 650;
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.option-position {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
}

.option-detail {
  min-height: 2.8em;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.4;
}

.empty-voicings {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed #505562;
  color: var(--muted);
  text-align: center;
}

.play-section {
  border-top: 1px solid var(--line);
}

.copy-tab {
  padding: 11px 16px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.copy-tab:hover {
  background: var(--ink);
  color: var(--bg);
}

.tab-card,
.fretboard-card {
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.tab-card {
  padding: clamp(22px, 4vw, 38px);
}

.tab-card pre {
  margin: 22px 0 0;
  overflow-x: auto;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  line-height: 1.65;
}

.fretboard-card {
  padding: clamp(22px, 4vw, 38px);
}

.fretboard-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
}

.fretboard-head h3 {
  margin: 8px 0 3px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.fretboard-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px 15px;
  max-width: 390px;
  color: var(--muted);
  font-size: 0.67rem;
}

.fretboard-tools {
  display: grid;
  justify-items: end;
  gap: 16px;
}

.scale-view {
  display: flex;
  align-items: center;
  border: 1px solid #424753;
}

.scale-view > span {
  padding: 0 10px;
  color: #7f838d;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scale-view button {
  padding: 8px 11px;
  border: 0;
  border-left: 1px solid #424753;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.66rem;
  font-weight: 740;
}

.scale-view button.is-active {
  background: var(--ink);
  color: var(--bg);
}

.legend span {
  display: flex;
  gap: 6px;
  align-items: center;
}

.legend-dot {
  width: 12px;
  height: 12px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: #555;
}

.legend-dot.key-only {
  background: var(--blue);
}

.legend-dot.chord-only {
  background: var(--red);
}

.legend-dot.both {
  background: linear-gradient(135deg, var(--blue) 0 48%, var(--red) 52% 100%);
}

.legend-dot.route {
  border: 2px solid transparent;
  background: linear-gradient(#181a21, #181a21) padding-box,
    conic-gradient(#f3c861 0 25%, #77d6b3 25% 50%, #b99cff 50% 75%, #ff8a70 75%) border-box;
}

.inspect-chords {
  display: flex;
  gap: 7px;
  margin-top: 28px;
  overflow-x: auto;
}

.inspect-chords button {
  flex: 0 0 auto;
  padding: 8px 13px;
  border: 1px solid var(--chord-color, #424753);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
}

.inspect-chords button.is-active {
  background: #292c35;
  color: var(--ink);
  box-shadow: inset 0 -3px var(--chord-color);
}

.fretboard-scroll {
  margin-top: 18px;
  overflow-x: auto;
  padding: 0 0 14px;
}

.fretboard {
  display: grid;
  min-width: 820px;
  border: 1px solid #454a55;
  background: #121318;
}

.fret-label,
.string-label,
.fret-cell {
  min-width: 0;
}

.fret-label {
  display: grid;
  min-height: 30px;
  place-items: center;
  border-left: 1px solid #30343d;
  color: #7b7f88;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.58rem;
}

.fret-label.is-open {
  border-left: 0;
}

.string-label {
  display: grid;
  min-height: 58px;
  place-items: center;
  border-top: 1px solid #2c3038;
  color: #b7b5ad;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.fret-cell {
  position: relative;
  display: grid;
  min-height: 58px;
  place-items: center;
  border-top: 1px solid #2c3038;
  border-left: 1px solid #3b404a;
}

.fret-cell::before {
  position: absolute;
  top: 50%;
  right: 0;
  left: 0;
  height: 1px;
  background: #6b6c6e;
  content: "";
}

.note-marker {
  position: relative;
  z-index: 1;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
}

.note-marker.is-route-tone {
  background: var(--route-ring);
  box-shadow: 0 0 0 2px #111217;
}

.note-marker.has-focus {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.34));
}

.note-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 4px 2px 3px;
  place-items: center;
  border: 2px solid transparent;
  border-radius: 50%;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.note-dot small {
  display: block;
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.82);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.44rem;
  font-weight: 620;
  letter-spacing: -0.04em;
}

.note-dot.key-only {
  background: var(--blue);
}

.note-dot.chord-only {
  background: var(--red);
}

.note-dot.selected-only {
  background: #292c35;
}

.note-dot.both {
  background: linear-gradient(135deg, var(--blue) 0 48%, var(--red) 52% 100%);
}

.route-badge {
  position: absolute;
  top: -8px;
  right: -10px;
  min-width: 18px;
  padding: 3px 4px;
  border: 1px solid #111217;
  border-radius: 999px;
  background: #111217;
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.48rem;
  line-height: 1;
  white-space: nowrap;
}

.interval-key {
  margin: 3px 0 0;
  color: #777b84;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

.interval-key strong:first-child {
  color: var(--blue-soft);
}

.interval-key strong:last-child {
  color: var(--red-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: #7c7f88;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

[hidden] {
  display: none !important;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
    padding: 72px 0;
  }

  .hero-copy {
    max-width: 720px;
  }

  .key-panel {
    grid-template-columns: 48px 1fr;
  }

  .key-candidates {
    grid-column: 2;
  }

  .voicing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fretboard-head {
    align-items: start;
    flex-direction: column;
  }

  .legend {
    justify-content: flex-start;
  }

  .fretboard-tools {
    justify-items: start;
  }
}

@media (max-width: 660px) {
  .app-header,
  main,
  footer {
    width: min(100% - 28px, 1240px);
  }

  .hero {
    padding: 56px 0;
  }

  .hero h1 {
    font-size: clamp(3.55rem, 19vw, 5.5rem);
  }

  .progression-form {
    padding: 20px;
    box-shadow: 8px 8px 0 rgba(84, 141, 255, 0.1);
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  .input-row input {
    border-right: 1px solid #505563;
  }

  .analyze-button {
    width: 100%;
    height: 52px;
  }

  .form-foot,
  .workspace-heading,
  .play-heading,
  .picker-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .examples {
    justify-content: flex-start;
  }

  .key-panel {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 25px 20px;
  }

  .section-number {
    display: none;
  }

  .key-candidates {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .workspace-note {
    text-align: left;
  }

  .voicing-workspace,
  .play-section {
    padding: 68px 0;
  }

  .picker-topline {
    align-items: flex-start;
  }

  .voicing-kind {
    width: 100%;
  }

  .voicing-kind button {
    flex: 1;
    min-width: 0;
  }

  .voicing-sort {
    width: 100%;
  }

  .voicing-filters,
  .voicing-filters > label {
    width: 100%;
  }

  .voicing-filters select {
    flex: 1;
    min-width: 0;
  }

  .voicing-sort > span {
    display: none;
  }

  .voicing-sort button {
    flex: 1;
    min-width: 0;
  }

  .voicing-grid {
    grid-template-columns: 1fr;
  }

  .play-heading .copy-tab {
    align-self: flex-start;
  }

  .fretboard-tools,
  .scale-view {
    width: 100%;
  }

  .scale-view button {
    flex: 1;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
