@media (max-width: 480px) {
  .nav {
    padding: 8px 0;
    height: auto;
    min-height: auto;
  }
  .nav-inner {
    padding: 0 12px;
    gap: 8px;
    height: auto;
    min-height: auto;
  }
  .nav-logo {
    font-size: 17px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .nav-links {
    gap: 4px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-link {
    font-size: 11px;
    padding: 0 7px;
    min-height: 30px;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 10px;
  }
  .bannerHeader {
    overflow: hidden;
  }
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 700px) {
  .songsBanner .banner-decor,
  .patternsBanner .glow,
  .patternsBanner .note-1,
  .patternsBanner .note-2,
  .patternsBanner .note-3 {
    opacity: 0;
    pointer-events: none;
  }
  .bannerHeader .strings {
    transform: scale(0.55) translateY(-45px);
    opacity: 0.4;
  }
  .bannerHeader .icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
  }
}

@media (max-width: 400px) {
  .nav-link {
    font-size: 10px;
    padding: 0 5px;
    min-height: 28px;
  }

  .nav-logo {
    font-size: 16px;
  }
}
/* Footer brand row and wordmark styles moved from inline */
.footer-brand-row {
  margin-bottom: 8px;
}
.footer-wordmark {
  color: rgba(245,247,251,0.8);
}
.footer-wordmark-gold {
  color: var(--gold);
}
/* Mini dotBeat demo for hero */
.mini-dotbeat-demo {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.mini-dotbeat-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 8px;
  margin-bottom: 6px;
}

/* Navigation fade-out transition */
html { overflow-y: scroll; scrollbar-gutter: stable; }

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(10, 20, 50, 0.18);
  margin: 0 0 14px;
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.nav-inner {
  max-width: 1320px;
  width: 100%;
  height: 64px;
  min-height: 64px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
}

.fade-out {
  opacity: 0;
  transition: opacity 0.15s ease;
}
.mini-pattern-btn-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.mini-pattern-btn, .mini-action-btn, .mini-tempo-btn {
  min-width: 0;
  width: auto;
  height: 24px;
  font-size: 12px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
  font-weight: 700;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  color: #f5f7fb;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.13s, box-shadow 0.13s;
  outline: none;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
}
.mini-btn-primary {
  background: linear-gradient(180deg, rgba(90,170,220,0.34) 0%, rgba(34,52,95,0.38) 100%);
  color: #f5f7fb;
  border: 1px solid rgba(90,170,220,0.55);
}
.mini-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: rgba(245,247,251,0.88);
  border: 1px solid rgba(255,255,255,0.12);
}
.mini-right-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.mini-panel-actions {
  display: flex;
  gap: 4px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.mini-dot-track-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 8px 0 4px 0;
  padding: 10px 12px;
  box-sizing: border-box;
}
.strum-label {
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  margin-top: 6px;
  color: rgba(245, 247, 251, 0.92);
}
.slot-label {
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  margin-top: 4px;
  color: rgba(245, 247, 251, 0.72);
}
.mini-tempo-controls {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 0;
}
.mini-tempo-controls span {
  color: rgba(245, 247, 251, 0.78);
}
.mini-tempo-controls .tempo-value {
  color: #f5f7fb;
  font-weight: 800;
}
/* DotBeat Animator Demo Button Styles */
.animator-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.pattern-btn-row {
  display: flex;
  gap: 6px;
  margin: 6px 0 6px 0;
}
.mini-btn, .pattern-btn, .action-btn, .tempo-btn {
  min-width: 80px;
  max-width: 120px;
  width: 100px;
  height: 26px;
  font-size: 13px;
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
  font-weight: 700;
  padding: 0 8px;
  border-radius: 7px;
  border: none;
  background: #f5f7fb;
  color: #22345f;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background 0.13s, box-shadow 0.13s;
  outline: none;
  cursor: pointer;
  margin: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}
.mini-btn:focus, .pattern-btn:focus, .action-btn:focus, .tempo-btn:focus {
  border-radius: 7px;
  background: #ffe3a0;
  box-shadow: 0 0 0 2px #f0c45b55;
}
.btn-primary {
  background: linear-gradient(180deg, #ffe3a0 0%, #f0c45b 100%);
  color: #2d1e00;
  border: 1px solid #f0c45b;
}
.btn-ghost {
  background: #f5f7fb;
  color: #22345f;
  border: 1px solid #e4ecf9;
}
.mini-btn:not(:focus), .pattern-btn:not(:focus), .action-btn:not(:focus), .tempo-btn:not(:focus) {
  border-radius: 7px;
}
.pattern-btn, .action-btn, .tempo-btn {
  font-size: 12px;
  height: 28px;
  padding: 4px 10px;
}
.panel-actions {
  display: flex;
  gap: 6px;
}
.animator-tempo-controls {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
/* Page transition */
body {
  animation: pageFadeIn 0.18s ease-out both;
  padding: 0;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- HERO CARDS ROW --- */
.hero-cards-row {
  display: flex;
  flex-direction: row;
  gap: 48px;
  width: 100%;
}
.hero-card {
  display: flex;
  flex-direction: column;
}
.hero-card-main {
  flex: 1 1 46%;
  max-width: 560px;
  justify-content: flex-start;
}
.hero-card-side {
  flex: 0 1 54%;
  max-width: 700px;
}
/* Add margin to static dotbeat-strip in landing page top card */
.landing-hero-visual {
margin-top: auto;
}
:root {
      /* Type scale — Inter only */
      --font-xs:   12px;   /* labels, captions, kickers */
      --font-sm:   13px;   /* secondary UI text, meta */
      --font-base: 15px;   /* body text, default UI */
      --font-md:   17px;   /* lead text, intro paragraphs */
      --font-lg:   22px;   /* section headings */
      --font-xl:   34px;   /* page headings */
    /* Consolidated colour system — Phase 1 cleanup */
    --bg-darkest:  #141629;
    --bg-dark:     #19274a;
    --bg-mid:      #22345f;
    --bg-accent:   #41577d;
    --muted-light: #8a97aa;
    --surface:     #f5f7fb;
    --surface-2:   #f3f6fb;
    --accent-blue: #5aaadc;
  --bg: #33466f;
  --blue-bg: #33466f;
  --blue-panel: #19274a;
  --blue-panel-light: #22345f;
  --blue-accent: #41577d;
  --blue-gradient: linear-gradient(180deg, #33466f 0%, #41577d 100%);
  --blue-panel-gradient: linear-gradient(180deg, #22345f 0%, #33466f 100%);
  --surface: #ffffff;
  --surface-2: #f3f6fb;
  --surface-3: #eef3fa;
  --border: #c9d4e3;
  --border-strong: #b8c5d8;
  --text: #1f2937;
  --muted: #607086;
  --primary: #2f366f;
  --primary-2: #3b467f;
  --primary-3: #4d5a98;
  --gold-1: #f7e08a;
  --gold-2: #e7b73e;
  --gold-text: #4a3200;
  --active: #facc6b;
  --ui-indigo: #4b5cc4;
  --ui-indigo-soft: #818cf8;
  --ui-indigo-deep: #3730a3;
  --ui-teal: #2f6676;
  --ui-teal-soft: #4fd1c5;
  --ui-tab: #e4ecf9;
  --ui-tab-2: #d5e0f0;
  --ui-tab-active: #f5f8ff;
  --ui-border-indigo: #b3c0ff;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 18px;
  --shadow-sm: 0 4px 10px rgba(15, 23, 42, 0.16);
}

body {
  margin: 0;
  min-height: 100vh;
  padding: 24px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(111, 87, 255, 0.10), transparent 30%),
    radial-gradient(circle at top right, rgba(90, 170, 220, 0.08), transparent 24%),
    var(--blue-gradient);
  background-color: var(--blue-bg);
  color: var(--text);
  line-height: 1.45;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Consistent page width for all main content */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.card {
  width: min(1320px, 96vw);
  margin: 0 auto;
}

/* Panel/Card backgrounds for depth */
.panel,
.card,
.bannerHeader,
.dotbeat-inner {
  background: var(--blue-panel-gradient);
  border: 1px solid var(--panel-border, rgba(255,255,255,0.18));
  box-shadow: 0 10px 30px rgba(0,0,0,0.18), 0 2px 24px 0 rgba(90,170,220,0.08);
}

/* Dotbeat-specific panel for extra depth */
.dotbeat-inner {
  background:
    radial-gradient(circle at top right, rgba(240, 196, 91, 0.09), transparent 28%),
    var(--blue-panel-gradient);
  border: 1px solid rgba(240, 196, 91, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 18px rgba(15, 23, 42, 0.16);
  color: #e5edf7;
}

.wrap {
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 24px 24px;
}

/* ── Shared Site Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 32px;
  background:
    radial-gradient(circle at top right, rgba(240, 196, 91, 0.08), transparent 28%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 42%),
    #132746;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

.site-wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: #f5f7fb;
}
.site-wordmark .wm-dot  { color: #f5f7fb; }
.site-wordmark .wm-beat { color: #f0c45b; }
.site-wordmark .wm-tm {
  font-size: 0.45em;
  color: rgba(245, 247, 251, 0.75);
  vertical-align: super;
  margin-left: 1px;
  font-weight: 400;
}

.page-shell {
  margin-top: 12px;
  padding: 14px 22px 22px;
  background: transparent;
  border: 1px solid rgba(214, 223, 238, 0.14);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 28px rgba(15, 23, 42, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.nav-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.logo-dot {
  color: #f5f7fb;
}

.logo-beat {
  color: #f0c45b;
}

.logo-tm {
  display: inline-block;
  margin-left: 1px;
  font-size: 13px;
  color: #f5f7fb;
  opacity: 0.9;
  vertical-align: text-top;
  transform: translateY(-0.14em);
}

.wordmark,
.wordmark:link,
.wordmark:visited,
.wordmark:hover,
.wordmark:active {
  color: inherit;
  text-decoration: none;
}

.wm-dot { color: #fff; text-transform: lowercase; }
.wm-beat { color: #f0c45b; text-transform: capitalize; }
.wm-tm { color: #fff; }

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.nav-links {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: 6px;
}

.nav-link {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 14px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  transition: all 0.14s;
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: #f5f7fb;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  outline: none;
}

.nav-link.active {
  color: #f5f7fb;
  background: linear-gradient(180deg, rgba(240, 196, 91, 0.18), rgba(240, 196, 91, 0.08));
  border-color: rgba(240, 196, 91, 0.42);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 18px rgba(15, 23, 42, 0.16);
}

.header.bannerHeader {
    position: relative;
}

/* Always use the vibrant gradient for the header/banner */
.header.bannerHeader {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  min-height: 120px;
  margin-top: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #141629 0%, #1f2440 40%, #162f3d 100%);
  border: none;
  box-shadow: none;
  overflow: hidden;
}

.header.bannerHeader::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at top left, rgba(111, 87, 255, 0.1), transparent 30%),
    radial-gradient(circle at top right, rgba(90, 170, 220, 0.08), transparent 24%);
  pointer-events: none;
  border-radius: inherit;
}
.hero {
  min-height: 120px;
  padding: 16px 20px;
  margin: 0 0 18px 0;
  border-radius: 24px;
  background: linear-gradient(...);
}
.hero {
  --hero-scene-width: min(50vw, 520px);
  --hero-scene-right: 44px;
  position: relative;
  display: flex;
  flex-direction: row;
  gap: 48px;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 1320px;
  margin: 0 auto 18px auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: visible;
  isolation: isolate;
  background: transparent;
  box-shadow: none;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 2;
}

.hero-copy {
  flex: 1 1 46%;
  min-width: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: 6px;
}

.hero-visual {
  flex: 0 1 54%;
  min-width: 0;
  max-width: 700px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.bannerHeader .strings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.bannerHeader .string {
  position: absolute;
  left: 86px;
  right: 0;
  height: 1px;
  background: rgba(214, 223, 238, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02);
}

.bannerHeader .string:nth-child(1) { top: 80px; }
.bannerHeader .string:nth-child(2) { top: 121px; }
.bannerHeader .string:nth-child(3) { top: 162px; }
.bannerHeader .string:nth-child(4) { top: 203px; }

.bannerHeader .fret-dot {
  position: absolute;
  top: 126px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  opacity: 0.34;
}

.bannerHeader .fret-dot:nth-child(5) {
  left: 278px;
  background: rgba(233, 199, 117, 0.55);
}

.bannerHeader .fret-dot:nth-child(6) {
  left: 515px;
  background: rgba(205, 146, 91, 0.5);
}

.bannerHeader .fret-dot:nth-child(7) {
  left: 753px;
  background: rgba(210, 140, 90, 0.5);
}

.bannerHeader .fret-dot:nth-child(8) {
  left: 986px;
  background: rgba(100, 173, 220, 0.5);
}

.bannerHeader .fret-dot:nth-child(9) {
  left: 1227px;
  background: rgba(229, 188, 108, 0.48);
}

.bannerHeader .fret-dot:nth-child(10) {
  left: 1468px;
  background: rgba(217, 186, 116, 0.45);
}

.bannerHeader .glow {
  position: absolute;
  inset: auto auto 20px 182px;
  width: 520px;
  height: 182px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(90, 170, 220, 0.12) 0%, rgba(90, 170, 220, 0.06) 34%, rgba(90, 170, 220, 0) 72%);
  pointer-events: none;
  z-index: 1;
}

.bannerHeader .circle-deco {
  position: absolute;
  top: -22px;
  right: -70px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(209, 180, 104, 0.07);
  box-shadow:
    0 0 0 29px rgba(209, 180, 104, 0.02),
    0 0 0 58px rgba(209, 180, 104, 0.014);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.bannerHeader .sound-hole {
  position: absolute;
  top: -34px;
  right: 302px;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: rgba(201, 173, 126, 0.14);
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

/* dotBeat companion section */
.dotbeat-section {
  margin: 32px auto 10px;
  max-width: 1100px;
}

.leftCol .dotbeat-section {
  margin: -2px 0 0;
  max-width: none;
}
.dotbeat-inner {
  padding: 24px 24px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(240, 196, 91, 0.09), transparent 28%),
    linear-gradient(180deg, rgba(18, 34, 66, 0.98), rgba(13, 28, 58, 0.98));
  border: 1px solid rgba(240, 196, 91, 0.16);
  box-shadow: 0 16px 36px rgba(0,0,0,0.22), 0 1.5px 0 rgba(255,255,255,0.04) inset;
  color: #e5edf7;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.4fr);
  gap: 18px;
  align-items: center;
}

.dotbeat-logo {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.16);
}

.dotbeat-logo .brand-dot {
  color: #ffffff;
}

.dotbeat-logo .brand-beat {
  color: #f0c45b;
}

.dotbeat-logo .brand-tm {
  display: inline-block;
  margin-left: 1px;
  font-size: 13px;
  color: #ffffff;
  opacity: 0.96;
  vertical-align: text-top;
  transform: translateY(-0.14em);
}

.wordmark-inline {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
}

.dotbeat-title {
  margin: 0 0 6px;
  font-size: 1.6rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fdfdfd;
}

.dotbeat-text {
  margin: 0 0 12px;
  font-size: 0.96rem;
  color: rgba(226, 232, 240, 0.9);
}

.dotbeat-copy .primary {
  font-size: 0.94rem;
}


/* Static dotbeat strip for hero visuals (harmonized with strumming-patterns.css) */
.dotbeat-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin: 0 auto 18px auto;
  max-width: 220px;
  padding: 18px 0;
}

.dotbeat-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #fff3b9, #f0c45b 72%);
  opacity: 0.92;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.72), 0 10px 22px rgba(7,14,30,0.5);
  display: inline-block;
}

.dotbeat-dot.strong {
  width: 22px;
  height: 22px;
  background: radial-gradient(circle at 30% 24%, #ffe3a0, #d69425 78%);
  box-shadow: 0 0 0 2px rgba(255,248,219,0.76), 0 0 20px rgba(240,196,91,0.3);
}

.bannerHeader .sound-hole::before {
  content: "";
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 210, 100, 0.15);
}

.bannerHeader .note {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  z-index: 1;
  pointer-events: none;
}

.bannerHeader .note-1 { width: 110px; height: 110px; background: radial-gradient(circle at 38% 32%, #ffe3a0 0%, #d69425 78%); top: -20px; right: 180px; left: auto; }
.bannerHeader .note-2 { width: 70px; height: 70px; background: radial-gradient(circle at 32% 28%, #fff4c6 0%, #f0c45b 76%); top: 30px; right: 310px; left: auto; }
.bannerHeader .note-3 { width: 44px; height: 44px; background: radial-gradient(circle at 38% 32%, #ffe3a0 0%, #d4a030 78%); top: 8px; right: 440px; left: auto; }

.bannerHeader .icon {
  width: 112px;
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  flex: 0 0 112px;
}

.bannerHeader .icon svg {
  width: 112px;
  height: 112px;
}

.bannerHeader .brandText {
  min-width: 0;
  max-width: 820px;
  flex: 1 1 auto;
  margin-left: -8px;
}

.bannerHeader .brandEyebrow {
  margin-top: 6px;
  margin-bottom: 12px;
  color: rgba(240, 196, 91, 0.96);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bannerHeader .brandWordmark {
  display: inline-block;
  margin-bottom: 8px;
  font-size: clamp(2.35rem, 4.9vw, 3.45rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.98;
  white-space: nowrap;
}

.bannerHeader .brandWordmark .brand-dot {
  color: #ffffff;
}

.bannerHeader .brandWordmark .brand-beat {
  color: #f0c45b;
}

.bannerHeader .brandWordmark .brand-tm {
  display: inline-block;
  margin-left: 1px;
  font-size: 0.42em;
  color: #ffffff;
  opacity: 0.92;
  vertical-align: text-top;
  transform: translateY(0.02em);
}

.bannerHeader .brandTitle {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: rgba(245, 247, 251, 0.96);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.bannerHeader .brandTag {
  margin-top: 10px;
  max-width: 680px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1rem;
  line-height: 1.7;
  font-weight: 500;
  letter-spacing: 0;
  color: rgba(222, 232, 244, 0.86);
}

.brandStory {
  margin-top: 16px;
}

.brandStoryInner {
  padding: 18px 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(19, 39, 70, 0.94), rgba(13, 28, 58, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.18);
}

.brandStoryKicker {
  margin-bottom: 8px;
  color: #f0c45b;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brandStoryText {
  margin: 0;
  max-width: 880px;
  color: rgba(229, 237, 247, 0.92);
  font-size: 1rem;
  line-height: 1.6;
}

/* Homepage flow sections */
.homeHero {
  margin: 20px 0 26px;
  padding: 28px 18px 26px;
  background: linear-gradient(135deg, #141629 0%, #1f2440 40%, #162f3d 100%);
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.65);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.45);
  color: #f9fafb;
  text-align: center;
}

.homeHeroTitle {
  margin: 0 0 10px;
  font-size: clamp(2.4rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fdfdfd;
}

.homeHeroSub {
  margin: 0 0 12px;
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.9);
}

.homeHeroButtons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

.homeHeroButtons button {
  min-width: 130px;
}

.homeHeroButtons .primary {
  font-size: 0.98rem;
}

.homeHeroButtons .secondary {
  background: rgba(15, 23, 42, 0.2);
  border-color: rgba(148, 163, 184, 0.6);
  color: #e2e8f0;
}

.homeSection {
  margin: 0 auto 16px;
  padding: 6px 4px 2px;
  max-width: 960px;
  background: transparent;
  border-radius: 0;
  border: 0;
}

.homeSectionTitle {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--ui-indigo);
}

.homeSectionText {
  margin: 0;
  font-size: 0.94rem;
  color: var(--muted);
}

.previewStrip {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  margin-top: 18px;
}

.previewDot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #cbd6e3;
  opacity: 0.8;
  transform: scale(1);
  animation: previewBeat 1.1s infinite ease-out;
}

.previewDot.strong {
  width: 18px;
  height: 18px;
  background: var(--active);
  opacity: 0.95;
}

.previewStrip .previewDot:nth-child(1) { animation-delay: 0s; }
.previewStrip .previewDot:nth-child(2) { animation-delay: 0.12s; }
.previewStrip .previewDot:nth-child(3) { animation-delay: 0.24s; }
.previewStrip .previewDot:nth-child(4) { animation-delay: 0.36s; }
.previewStrip .previewDot:nth-child(5) { animation-delay: 0.48s; }
.previewStrip .previewDot:nth-child(6) { animation-delay: 0.60s; }

@keyframes previewBeat {
  0%, 100% {
    transform: scale(1);
    opacity: 0.6;
  }
  20% {
    transform: scale(1.35);
    opacity: 1;
  }
}

.homeFeaturedList {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.homeFeaturedList a {
  color: var(--ui-indigo);
  text-decoration: none;
  font-weight: 600;
}

.homeFeaturedList a span {
  margin-left: 4px;
  font-weight: 400;
  font-size: 0.9rem;
  color: var(--muted);
}

.homeFeaturedList a:hover {
  text-decoration: underline;
}

.homeKeysLink {
  margin-top: 4px;
  font-size: 0.9rem;
}

.homeKeysLink a {
  color: var(--ui-teal);
  text-decoration: none;
  font-weight: 600;
}

.homeKeysLink a:hover {
  text-decoration: underline;
}

/* Main layout */
.mainLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  align-items: start;
}

.leftCol {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rightCol {
  width: 260px;
  min-width: 260px;
  align-self: start;
}

/* Display area */
.lessonIntro {
  background: linear-gradient(180deg, #fdfcf8 0%, #f6f1e6 100%);
  border: 1px solid #e7dcc4;
  border-radius: 16px;
  margin-bottom: 6px;
  padding: 18px 0 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  animation: sectionRise 560ms ease-out both;
}

.display,
.keySig,
.scaleHelp {
  background: transparent;
  border: 0;
  text-align: center;
}

.display {
  padding: 0 22px 6px;
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.95rem, 3.2vw, 2.55rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #2f366f;
  overflow-wrap: anywhere;
}

.display::after {
  content: "";
  display: block;
  width: 72px;
  height: 2px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(231, 183, 62, 0.2), rgba(231, 183, 62, 0.9), rgba(47, 102, 118, 0.25));
}

.keySig {
  margin-top: 0;
  padding: 6px 26px 8px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: #41577d;
}

.scaleHelp {
  padding: 2px 34px 0;
  font-size: 0.93rem;
  line-height: 1.62;
  color: #665f52;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Chord grid */
.chordGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 18px;
  padding: 22px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
  border: 1px solid #d7e0ea;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  animation: sectionRise 640ms ease-out both;
}

.chordContainer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 6px;
}

.chordCard {
  min-height: 126px;
  padding: 0;
  border: 1px solid #d6dee9;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
  cursor: pointer;
  overflow: visible;
  position: relative;
  display: flex;

.learningFlow {
  margin: 18px auto 0;
  padding: 0 22px 4px;
  max-width: 960px;
}

.learningFlow-inner {
  padding: 14px 18px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
  border: 1px solid #d7e0ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.learningFlow-title {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #2f366f;
}

.learningFlow-text {
  margin: 0 0 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #41577d;
}
  flex-direction: column;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.chordCard:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10), 0 6px 12px rgba(15, 23, 42, 0.05);
  border-color: #c4d1e3;
}

.chordCard .degreeLabel {
  position: absolute;
  top: 9px;
  left: 10px;
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(47, 54, 111, 0.92), rgba(65, 82, 133, 0.82));
  -webkit-backdrop-filter: blur(3px) saturate(1.1);
  backdrop-filter: blur(3px) saturate(1.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  z-index: 2;
  letter-spacing: 0.04em;
}

.chordTitleRow {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 8px;
  padding-top: 24px;
}

.chordName {
  display: block;
  text-align: center;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #19274a;
  margin-top: 4px;
}

.chordFrets {
  margin-top: 6px;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8799;
}

.chordNotes {
  margin-top: 6px;
  padding: 0 10px 14px;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #41577d;
}

.chordNotes .chordRoot {
  color: #b88316 !important;
  font-weight: 700;
}

.chordCard img,
.chordCard svg,
.chordCard canvas {
  display: block;
  margin: 0 auto;
  align-self: center;
}

.chordCard.active,
.chordCard.isActive,
.chordCard.selected {
  border-color: #c8b37e;
  background: linear-gradient(180deg, #fffdf7 0%, #faf5e7 100%);
  box-shadow: 0 14px 28px rgba(91, 65, 0, 0.10);
}

.voicingRow {
  width: 100%;
  text-align: center;
  margin-top: 2px;
  font-size: 0.84rem;
}

.voicingLink {
  color: #607086;
  text-decoration: none;
  cursor: pointer;
  padding: 2px 2px;
  font-weight: 600;
}

.voicingLink:hover {
  text-decoration: underline;
}

.voicingLink.active {
  color: #2f6676;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.voicingSep {
  color: var(--border-strong);
  opacity: 0.7;
  margin: 0 3px;
}

.chordSvgHolder {
  display: flex;
  justify-content: center;
  margin: 8px 0 4px 0;
}

/* Tabs and panels */
.tabSection {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.tabs {
  display: flex;
  width: 100%;
  gap: 0;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 2;
}

.tabs button {
  flex: 1 1 0;
  width: 100%;
  min-height: 46px;
  padding: 12px 12px 11px;
  margin: 0;
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-radius: 12px 12px 0 0;

  background: linear-gradient(180deg, var(--ui-tab) 0%, var(--ui-tab-2) 100%);
  color: #41577d;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.tabs button + button {
  margin-left: -1px;
}

.tabs button:hover {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--ui-tab) 86%, white) 0%,
    color-mix(in srgb, var(--ui-tab-2) 92%, white) 100%
  );
  color: #22345f;
  box-shadow: none;
  transform: translateY(-1px);
}

.tabs button.active {
  background: var(--ui-tab-active);
  color: var(--ui-indigo-deep);
  border-color: #d6c8a8;
  border-bottom-color: var(--ui-tab-active);
}

.panel {
  padding: 14px;
  margin: 0;
  background: var(--ui-tab-active);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  display: none;
  transform-origin: top center;
}

.panel.active {
  display: block;
  animation: panelReveal 220ms ease-out;
}

/* Pattern / tip row */
.patternTopRow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 430px);
  gap: 12px;
  align-items: stretch;
}

/* Ensure tabStack and tipBox always match height in patternTopRow */
.patternTopRow .tabStack,
.patternTopRow .tipBox {
  min-height: 96px;
  display: flex;
  flex-direction: column;
}

.patternTopRow .tabStack {
  margin-bottom: 12px;
}

.tabStack {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

pre.tab {
  margin: 0;
}

.tab {
  min-height: 96px;
  padding: 14px 20px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    #111827 0%,
    #1f2937 42%,
    #102235 100%
  );
  border: 1px solid rgba(160, 182, 230, 0.42);
  color: #f8fafc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.97rem;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.tipBox {
  min-height: 96px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid #e8cf96;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff8e8 0%, #fdf0cf 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #5b4630;
  line-height: 1.5;
  font-size: 0.92rem;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.tipBox:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(91, 70, 48, 0.08);
}

.tipNavRow {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.tipNav {
  width: auto;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(139, 94, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  box-shadow: none;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
  font-size: 0.86rem;
  font-weight: 700;
  color: #8b5e00;
  cursor: pointer;
  white-space: nowrap;
}

.tipNav:hover {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(139, 94, 0, 0.32);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.tipText {
  min-width: 0;
}

.boxNotice {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid #e8cf96;
  border-radius: 10px;
  background: #fff7df;
  color: #7a5600;
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Fretboard */
.fretboardWrap {
  padding: 22px 22px 18px;
  border: 1px solid #d6deea;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

.panel .fretboardWrap {
  margin-top: 16px;
}

.fretboard {
  display: grid;
  column-gap: 5px;
  row-gap: 8px;
  width: 100%;
}

.fretHeader,
.stringLabel,
.fret {
  border-radius: 8px;
  min-width: 0;
}

.fretHeader {
  min-height: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f5f7fb 0%, #e3eaf3 100%);
  border: 1px solid #c8d4e2;
  font-size: 0.82rem;
  font-weight: 700;
  color: #41577d;
}

.fretHeader.marker {
  background: linear-gradient(180deg, #e2e8ff 0%, #d6def8 100%);
  color: #39459b;
}

.fretHeader.markerDouble {
  background: linear-gradient(180deg, #ece4fc 0%, #e2d8f8 100%);
  color: #6a3db0;
}

.stringLabel {
  min-height: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #f5f7fb 0%, #ecf1f7 100%);
  border: 1px solid #cfd9e5;
  font-size: 0.84rem;
  font-weight: 760;
  color: #41577d;
  letter-spacing: 0.04em;
}

.fret {
  min-height: 28px;
  border: 1px solid #d8e0ea;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 1px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.fret:hover,
.fret:focus-visible {
  border-color: #8ba8cf;
  box-shadow: 0 0 0 2px rgba(98, 140, 193, 0.18);
}

.fret[data-note]:hover::after,
.fret[data-note]:focus-visible::after {
  content: attr(data-note);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(31, 45, 79, 0.94);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
  pointer-events: none;
  z-index: 4;
}

.fret.stringShade {
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
}

.fret.scale {
  background: linear-gradient(180deg, #e6ebff 0%, #d6def8 100%);
  border-color: #bfc9e8;
}

.fret.alt {
  background: linear-gradient(180deg, #e0f4ed 0%, #cfe8de 100%);
  border-color: #afd0c2;
}

.fret.root {
  background: linear-gradient(180deg, #f7e7a6 0%, #e7b73e 100%) !important;
  border-color: #c89a31 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.fret.active,
.fret.chordTone {
  background: linear-gradient(180deg, #f7c997 0%, #ef8f37 100%) !important;
  border-color: #d97a22 !important;
  color: #5c2200;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55) inset;
  transform: scale(1.03);
}

.noteName {
  font-size: 0.7rem;
  font-weight: 760;
  line-height: 1;
}

.solfegeText {
  font-size: 0.58rem;
  color: #607086;
  line-height: 1;
}

.legend {
  margin-top: 12px;
  padding: 0 4px;
  font-size: 0.87rem;
  line-height: 1.55;
  color: #607086;
}

/* Right column controls */
.controlsVertical {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid #d8dfeb;
  border-radius: 14px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: sectionRise 720ms ease-out both;
}

.controlSection {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.controlSection + .controlSection {
  padding-top: 8px;
  border-top: 1px solid rgba(77, 90, 132, 0.12);
}

.sectionEyebrow {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a87416;
}

.navRow,
.controlsRow {
  display: grid;
  gap: 6px;
}

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

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

.tempoRow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid #cbd6e3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.tempoStepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tempoLabel {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 760;
  color: #41577d;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, #f5f7fb 0%, #edf3f8 100%);
  border: 1px solid #d6dee9;
}

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

select,
input[type="number"],
button {
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  font: inherit;
}

select,
input[type="number"] {
  border: 1px solid #c8d3e1;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  color: var(--text);
  padding: 0 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

#tempo {
  width: 68px;
  min-height: 30px;
  padding: 0 8px;
  border-color: #b9c8dc;
  border-radius: 9px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  text-align: center;
  font-weight: 700;
  color: #2f366f;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.tempoStepBtn {
  width: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 9px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

button {
  border: 1px solid #cbd6e3;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  color: var(--text);
  padding: 7px 10px;
  font-weight: 680;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
.voicingLink:focus-visible,
.chordCard:focus-visible {
  outline: 3px solid rgba(231, 183, 62, 0.9);
  outline-offset: 3px;
}

.tabs button:focus-visible {
  outline-offset: 2px;
}

.tipNav:focus-visible {
  outline-offset: 2px;
}

button.primary {
  background: linear-gradient(180deg, #f7d06a 0%, #e0a020 100%);
  border: 1px solid rgba(240, 196, 91, 0.4);
  color: #1b2137;
}
button.primary:hover {
  background: linear-gradient(180deg, #f0c45b 0%, #c97d1a 100%);
}

#playAscending {
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #213250 0%,
    #36527b 50%,
    #2a5967 100%
  );
  border: 1px solid rgba(196, 210, 240, 0.62);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(31, 51, 84, 0.16);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#playAscending:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #213250 88%, white) 0%,
    color-mix(in srgb, #36527b 88%, white) 50%,
    color-mix(in srgb, #2a5967 76%, white) 100%
  );
}

#playDescending {
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    #244759 0%,
    #416283 50%,
    #253754 100%
  );
  border: 1px solid rgba(196, 210, 240, 0.62);
  color: #f8fafc;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(31, 51, 84, 0.16);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

#playDescending:hover {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, #244759 76%, white) 0%,
    color-mix(in srgb, #416283 88%, white) 52%,
    color-mix(in srgb, #253754 88%, white) 100%
  );
}

button.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  color: #41577d;
  border-radius: var(--radius-pill);
}

.progBtn {
  text-align: left;
  padding: 8px 10px 9px;
  border-radius: 10px;
  line-height: 1.2;
  min-height: 0;
  font-size: 0.9rem;
}

.progBtn span {
  display: inline-block;
  margin-top: 3px;
  line-height: 1.28;
  font-size: 0.66rem !important;
  font-weight: 600 !important;
  opacity: 0.88;
}

button.gold {
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
  color: var(--gold-text);
  border-color: transparent;
}

button.activeProg {
  outline: 2px solid rgba(240, 196, 91, 0.2);
  border-color: rgba(240, 196, 91, 0.6);
}

.sidebarHeading {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2f6676;
  text-align: left;
}

.sidebarHelp {
  margin-top: 0;
  font-size: 0.89rem;
  line-height: 1.58;
  color: #607086;
}

.progressionSection .controlsRow {
  gap: 8px;
}

.progressionGrid {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

.siteFooter {
  width: min(1320px, 96vw);
  margin: 22px auto 0;
  padding: 18px 32px 28px;
  text-align: center;
  color: rgba(222, 232, 244, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
  animation: sectionRise 840ms ease-out both;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sectionRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.siteFooter .footerTitle,
.siteFooter .footerText p {
  margin: 6px 0;
}
.siteFooter .footerContact,
.siteFooter .footerLegal {
  text-align: center;
}

.siteFooter .footerTitle {
  font-weight: 700;
  color: #f5f7fb;
  margin-bottom: 4px;
}

.siteFooter .footerText {
  max-width: 720px;
  margin: 6px auto 8px;
  line-height: 1.5;
  text-align: center;
}

.siteFooter .footerContact {
  margin: 10px 0 6px;
}

.siteFooter .footerContactLink {
  color: #f5f7fb;
  text-decoration: none;
}

.siteFooter .footerContactLink:hover,
.siteFooter .footerContactLink:focus-visible {
  text-decoration: underline;
}

.siteFooter .footerLegal {
  margin-top: 14px;
  font-size: 0.85rem;
  color: rgba(185, 192, 207, 0.75);
}

.siteFooter .footerWordmark {
  display: inline-block;
  white-space: nowrap;
  line-height: 1;
  letter-spacing: -0.03em;
}

.siteFooter .footerWordmark .brand-dot {
  color: #f5f7fb;
}

.siteFooter .footerWordmark .brand-beat {
  color: #f0c45b;
}

.siteFooter .footerWordmark .brand-tm {
  display: inline-block;
  margin-left: 1px;
  font-size: 0.5em;
  color: #f5f7fb;
  opacity: 0.92;
  vertical-align: text-top;
  transform: translateY(0.02em);
}

/* Responsive */
@media (max-width: 1100px) {
  .patternTopRow {
    grid-template-columns: 1fr;
  }

    /* Removed opacity override for .bannerHeader elements at 1100px; now always bright */

    /* Removed opacity fade for .bannerHeader elements at 1100px */
}

@media (max-width: 860px) {
  body {
    padding: 10px;
  }

  .wrap,
  .card {
    width: 100%;
  }

  .header.bannerHeader {
    min-height: 160px;
    padding: 16px 18px;
    gap: 14px;
    border-radius: 16px;
  }

  .bannerHeader .icon {
    width: 104px;
    height: 104px;
    flex: 0 0 104px;
    margin-right: 0;
  }

  .bannerHeader .icon svg {
    width: 104px;
    height: 104px;
  }

  .bannerHeader .brandTitle {
    font-size: 31px;
    line-height: 1.08;
  }

  .bannerHeader .brandWordmark {
    font-size: 2.7rem;
  }

  .bannerHeader .brandTag {
    font-size: 0.9rem;
    line-height: 1.4;
    max-width: 480px;
  }

  .brandStoryInner {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .brandStoryText {
    font-size: 0.92rem;
  }

  .page-shell {
    padding: 18px;
    border-radius: 16px;
  }

  .mainLayout {
    grid-template-columns: minmax(0, 1fr) 272px;
    gap: 18px;
  }

  .rightCol {
    width: 272px;
    min-width: 272px;
  }

  .controlsVertical {
    padding: 16px;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  body {
    padding: 6px;
  }

  .wrap,
  .card {
    width: 100%;
  }

  .header.bannerHeader {
    min-height: 148px;
    padding: 16px 14px;
    gap: 12px;
    align-items: flex-start;
    border-radius: 14px;
  }

  .bannerHeader .icon {
    width: 82px;
    height: 82px;
    flex: 0 0 82px;
    margin-top: 0;
  }

  .bannerHeader .icon svg {
    width: 82px;
    height: 82px;
  }

  .bannerHeader .brandTitle {
    font-size: 31px;
    line-height: 1.06;
  }

  .bannerHeader .brandWordmark {
    font-size: 2.1rem;
  }

  .bannerHeader .brandTag {
    margin-top: 6px;
    font-size: 0.84rem;
    line-height: 1.42;
    max-width: none;
  }

  .brandStoryInner {
    padding: 16px 18px;
    border-radius: 16px;
  }

  .brandStoryText {
    font-size: 0.92rem;
  }

  .bannerHeader .circle-deco,
  .bannerHeader .sound-hole,
  .bannerHeader .note-2,
  .bannerHeader .note-3 {
    display: none;
  }

  .songsBanner .circle-deco,
  .songsBanner .sound-hole,
  .songsBanner .note-1,
  .songsBanner .note-2,
  .songsBanner .note-3,
  .patternsBanner .circle-deco,
  .patternsBanner .sound-hole,
  .patternsBanner .glow,
  .patternsBanner .note-1,
  .patternsBanner .note-2,
  .patternsBanner .note-3 {
    display: none;
  }

  .bannerHeader .strings {
    transform: scale(0.6) translateY(-40px);
    opacity: 0.5;
  }

  .page-shell {
    padding: 14px;
    border-radius: 14px;
  }

  .mainLayout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .leftCol {
    gap: 14px;
  }

  .rightCol {
    width: 100%;
    min-width: 0;
    order: 2;
  }

  .display {
    font-size: 1.55rem;
    padding: 0 14px 8px;
  }

  .keySig {
    padding: 4px 14px 10px;
    font-size: 0.95rem;
  }

  .scaleHelp {
    padding: 0 16px 4px;
    font-size: 0.88rem;
  }

  .chordGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 14px;
    gap: 12px;
  }

  .chordName {
    font-size: 1.04rem;
  }

  .chordFrets,
  .chordNotes {
    font-size: 0.7rem;
  }

  .chordCard {
    min-height: 120px;
    border-radius: 14px;
  }

  .tabs {
    width: 100%;
    justify-content: space-between;
    gap: 6px;
  }

  .tabs button {
    flex: 1 1 0;
    width: auto;
    min-height: 42px;
    padding: 10px 8px 9px;
    font-size: 0.82rem;
    line-height: 1.15;
    border-radius: 12px 12px 0 0;
  }

  .tabs button + button {
    margin-left: 0;
  }

  .patternTopRow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tab {
    min-height: 0;
    padding: 12px 13px;
    font-size: 0.84rem;
    line-height: 1.45;
    border-radius: 12px;
  }

  .tipBox {
    min-height: 0;
    padding: 11px 12px;
    font-size: 0.88rem;
    border-radius: 12px;
  }

  .tipNavRow {
    gap: 8px;
  }

  .tipNav {
    min-height: 28px;
    padding: 4px 9px;
    font-size: 0.79rem;
  }

  .fretboardWrap {
    padding: 10px;
    overflow-x: auto;
    border-radius: 14px;
  }

  .fretboard {
    width: max-content;
    min-width: 540px;
  }

  .fretHeader,
  .stringLabel,
  .fret {
    border-radius: 10px;
  }

  .noteName {
    font-size: 0.66rem;
  }

  .solfegeText {
    font-size: 0.54rem;
  }

  .legend,
  .sidebarHelp,
  .footerMeta {
    font-size: 0.84rem;
  }

  .controlsVertical {
    padding: 14px;
    border-radius: 14px;
  }

  .controlSection {
    gap: 9px;
  }

  .controlSection + .controlSection {
    padding-top: 12px;
  }

  .sectionEyebrow,
  .sidebarHeading {
    font-size: 0.74rem;
  }

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

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

  .progBtn {
    padding: 11px 12px 12px;
    border-radius: 12px;
  }

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

  .siteFooter {
    margin-top: 18px;
    padding: 16px 18px 24px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 12px;
  }

  .header.bannerHeader {
    min-height: 0;
    padding: 14px 12px;
    gap: 12px;
  }

  .bannerHeader .brandTitle {
    font-size: 31px;
  }

  .bannerHeader .brandWordmark {
    font-size: 1.82rem;
  }

  .bannerHeader .brandEyebrow {
    font-size: 0.68rem;
  }

  .bannerHeader .brandTag {
    font-size: 0.8rem;
  }

  .brandStoryInner {
    padding: 14px 16px;
  }

  .brandStoryText {
    font-size: 0.88rem;
  }

  .lessonIntro {
    padding: 16px 0 16px;
  }

  .display {
    font-size: 1.42rem;
  }

  .chordGrid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .chordCard {
    min-height: 114px;
  }

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

  .chordTitleRow {
    padding-top: 16px;
    margin-bottom: 6px;
  }

  .chordName {
    font-size: 0.98rem;
  }

  .fretboard {
    min-width: 510px;
  }

  .noteName {
    font-size: 0.62rem;
  }

  .solfegeText {
    font-size: 0.5rem;
  }
}

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

.draftLabLink {
  display: inline-flex;
  align-items: center;
}

.expansionPage .card {
  overflow: visible;
}

.draftCard {
  margin-bottom: 18px;
  position: relative;
  isolation: isolate;
}

.labHeader {
  justify-content: space-between;
  gap: 18px;
}

.labHeaderActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 4px;
  min-width: 160px;
  position: relative;
  z-index: 2;
}

.labNavLink {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: rgba(232, 239, 250, 0.88);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.labNavLink:hover,
.labNavLink:focus-visible {
  color: #ffffff;
  text-decoration: none;
}

.labBadge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(240, 192, 96, 0.16);
  border: 1px solid rgba(240, 192, 96, 0.36);
  color: #ffe7a4;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.songSectionTitle {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.44rem;
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #2f366f;
}

.labLayout {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(201, 212, 227, 0.9);
  border-radius: 18px;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.08), 0 6px 16px rgba(15, 23, 42, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.labHero {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.labHeroCopy,
.labStatusPanel,
.labSection {
  position: relative;
  z-index: 40;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(255, 254, 249, 0.99) 0%, rgba(247, 242, 231, 0.96) 100%);
  border: 1px solid #e7dec9;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.labHeroCopy {
  padding: 24px 24px 22px;
}

.labHeroCopy h1,
.labSectionHeader h2 {
  margin: 4px 0 10px;
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #19274a;
}

.labHeroCopy p,
.labSectionHeader p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.52;
  color: #655c4e;
  max-width: 780px;
}

.labDebugRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.labDebugBadge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.92);
  border: 1px solid rgba(240, 192, 96, 0.55);
  color: #4f3a06;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
}

.labActionStatus {
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(47, 102, 118, 0.08);
  border: 1px solid rgba(47, 102, 118, 0.16);
  color: #41577d;
  font-size: 0.79rem;
  font-weight: 700;
}

.labStatusPanel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
  border-color: #d8dfeb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.labStatusCard {
  position: relative;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  border: 1px solid #cbd6e3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.labStatusCard::before {
  content: "";
  position: absolute;
  top: 0;
  left: 12px;
  right: 12px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(220, 171, 54, 0.92) 0%, rgba(237, 191, 82, 0.88) 50%, rgba(244, 215, 130, 0.84) 100%);
  opacity: 1;
}

.labStatusCard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 36%);
  opacity: 0;
  transition: opacity 0.14s ease;
  pointer-events: none;
}

.labStatusCard[data-level="beginner"]::before {
  background: linear-gradient(90deg, rgba(73, 139, 88, 0.95) 0%, rgba(101, 177, 115, 0.9) 100%);
}

.labStatusCard[data-level="intermediate"]::before {
  background: linear-gradient(90deg, rgba(70, 98, 166, 0.95) 0%, rgba(107, 139, 206, 0.9) 52%, rgba(136, 171, 222, 0.84) 100%);
}

#patternJumpBtn::before {
  background: linear-gradient(90deg, rgba(92, 163, 149, 0.95) 0%, rgba(126, 195, 171, 0.9) 100%);
}

.labStatusCardButton {
  appearance: none;
  width: 100%;
  text-align: center;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, background 0.14s ease, box-shadow 0.14s ease;
}

.labStatusCardButton:hover,
.labStatusCardButton:focus-visible {
  transform: translateY(-1px);
  border-color: #c8d3e1;
  box-shadow: 0 10px 20px rgba(31, 45, 79, 0.08);
}

.labStatusCardButton.active {
  border-color: var(--ui-border-indigo);
  background:
    linear-gradient(
      135deg,
      var(--ui-indigo-deep) 0%,
      var(--ui-indigo-soft) 48%,
      var(--ui-teal) 100%
    );
  box-shadow: 0 14px 28px rgba(31, 45, 79, 0.16);
}

.labStatusCardButton.active::before {
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 14px 14px 999px 999px;
  background: linear-gradient(90deg, rgba(241, 191, 66, 1) 0%, rgba(232, 177, 53, 0.98) 52%, rgba(247, 216, 126, 0.92) 100%);
  box-shadow: 0 0 18px rgba(223, 181, 70, 0.26);
}

.labStatusCardButton[data-level="beginner"].active::before {
  background: linear-gradient(90deg, rgba(101, 185, 110, 1) 0%, rgba(79, 165, 95, 0.98) 46%, rgba(160, 223, 155, 0.9) 100%);
}

.labStatusCardButton[data-level="intermediate"].active::before {
  background: linear-gradient(90deg, rgba(103, 142, 223, 1) 0%, rgba(78, 117, 198, 0.98) 50%, rgba(164, 193, 241, 0.9) 100%);
}

#patternJumpBtn.active::before {
  background: linear-gradient(90deg, rgba(117, 199, 170, 1) 0%, rgba(86, 172, 146, 0.98) 100%);
}

.labStatusCardButton.active::after {
  opacity: 1;
}

.labStatusValue {
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #19274a;
  position: relative;
  z-index: 1;
}

.labStatusLabel {
  margin-top: 0;
  font-size: 0.84rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #607086;
  position: relative;
  z-index: 1;
}

.labStatusCardButton.active .labStatusValue {
  color: #f8fafc;
}

.labStatusCardButton.active .labStatusLabel {
  color: rgba(241, 247, 252, 0.86);
}

.labSection {
  padding: 18px;
}

.labSectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.genreSummary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.genreSummaryCard,
.songBoard,
.songCard,
.patternCard,
.ideaCard {
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
  border: 1px solid #d6dee9;
  border-radius: 16px;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.genreSummaryCard {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 5px 11px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  position: relative;
  z-index: 50;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.genreToneall {
  background: linear-gradient(180deg, #fffef9 0%, #f5efe2 100%);
}

.genreTonePop {
  background: linear-gradient(180deg, #fff8f7 0%, #f9e7e4 100%);
}

.genreToneRock {
  background: linear-gradient(180deg, #f5f7fb 0%, #e9eef9 100%);
}

.genreToneCountry {
  background: linear-gradient(180deg, #fffbf3 0%, #f4ead5 100%);
}

.genreToneBlues {
  background: linear-gradient(180deg, #f5f7fb 0%, #e3edf7 100%);
}

.genreToneJazz {
  background: linear-gradient(180deg, #f7fcfb 0%, #e4f1ec 100%);
}

.genreToneReggae {
  background: linear-gradient(180deg, #f7fcf6 0%, #e4f1de 100%);
}

.genreToneTraditional {
  background: linear-gradient(180deg, #fffdf6 0%, #efe7d5 100%);
}

.genreSummaryCard:hover,
.genreSummaryCard:focus-visible {
  transform: translateY(-3px);
  border-color: #c4d1e3;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.10), 0 6px 12px rgba(15, 23, 42, 0.05);
}

.genreSummaryCard.active {
  border-color: #d4a54f;
  background: linear-gradient(180deg, #fffef9 0%, #f6eedf 100%);
  box-shadow: 0 14px 28px rgba(202, 153, 55, 0.14), 0 4px 10px rgba(15, 23, 42, 0.04);
}

.genreSummaryCard.active .genreSummaryTop h3 {
  color: #8f6410;
}

.genreSummaryTop {
  display: block;
}

.genreSummaryTop h3 {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #22345f;
}
.songDecade,
.songCount,
.patternTempo {
  font-size: 0.82rem;
  font-weight: 700;
  color: #607086;
}
.genreSummaryCard p,
.songNote,
.patternFeel,
.ideaCard p {
  margin: 0;
  font-size: .81rem;
  line-height: 1.55;
  color: #5d5d58;
}

.songControls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
  align-items: end;
}

.songFilter {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #41577d;
  letter-spacing: 0.02em;
}

.songFilter select {
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid #c9d4e3;
  border-radius: var(--radius-pill);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  color: #607086;
  position: relative;
  z-index: 50;
  pointer-events: auto;
}

.songFilter input {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #c9d4e3;
  border-radius: var(--radius-pill);
  background: #fff;
  font: inherit;
  font-size: 0.8rem;
  color: #607086;
}

.songFilter input::placeholder {
  color: #8a97aa;
}

.songFilter input:focus {
  outline: none;
  border-color: #d4a54f;
  box-shadow: 0 0 0 3px rgba(231, 183, 62, 0.14);
}

.songSearchFilter {
  grid-column: span 2;
}

.songBoard {
  padding: 14px;
}

.songBoardHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.songBoardMeta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.feelFilterRow.feelFilterRowHeader {
  flex: 0 0 auto;
  display: inline-flex;
  justify-content: flex-start;
  align-items: center;
  align-self: center;
  margin: 0 auto 0 -6px;
  min-height: 32px;
  padding: 2px 20px 2px 24px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f5f7fb 0%, #f5f7fb 100%);
  border: 1px solid #d6dee9;
}

.viewToggle {
  display: inline-flex;
  padding: 2px;
  border-radius: 8px;
  background: #f5f7fb;
  border: 1px solid #d6dee9;
  gap: 2px;
}

.viewToggleBtn {
  min-height: 26px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: #41577d;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.viewToggleBtn.active {
  background: linear-gradient(180deg, #fff8e8 0%, #f4df9b 100%);
  color: #5b4100;
  box-shadow: 0 4px 12px rgba(199, 154, 49, 0.18);
}

.songBoardHeader h3,
.patternCard h3,
.ideaCard h3 {
  margin: 4px 0 0;
  color: #22345f;
}

.songBoardFilters {
  margin-top: 4px;
  color: #8a6618;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.35;
}

.songResults,
.patternGrid,
.ideaGrid {
  display: grid;
  gap: 12px;
}

.songResults {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.songResultsFooter {
  display: flex;
  justify-content: center;
  margin-top: 14px;
}

.songResultsMoreBtn {
  min-width: 180px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #5b4100;
  background: linear-gradient(180deg, #f7e08a 0%, #e7b73e 100%);
  border: 1px solid rgba(181, 128, 22, 0.34);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.songResultsMoreBtn:hover,
.songResultsMoreBtn:focus-visible {
  color: #4b3600;
  background: linear-gradient(180deg, #f9e79c 0%, #ebb94a 100%);
}

.songResultsGridView {
  grid-template-columns: 1fr;
  gap: 10px;
}

.songRowHeader {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.24fr) minmax(88px, 0.52fr) minmax(150px, 0.8fr) minmax(118px, 0.6fr) minmax(108px, 0.5fr) 58px 38px;
  column-gap: 6px;
  row-gap: 10px;
  align-items: center;
  padding: 0 11px 2px;
  color: #7b889b;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.songRowHeader > :nth-child(3) {
  text-align: center;
}

.songRowHeader > :nth-child(5),
.songRowHeader > :nth-child(6),
.songRowHeader > :nth-child(7),
.songRowHeader > :nth-child(8) {
  text-align: center;
}

.patternGridCardView {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.patternGridTableView {
  grid-template-columns: 1fr;
  gap: 10px;
}

.patternBoard {
  padding: 14px;
}

.songCard {
  padding: 15px;
}

.songCompactCard {
  display: flex;
  flex-direction: column;
  padding: 11px 12px;
  overflow: hidden;
  height: 100%;
}

.songCardFocus {
  border-color: #d4882d;
  box-shadow: 0 0 0 3px rgba(239, 143, 55, 0.22), 0 16px 30px rgba(15, 23, 42, 0.10);
}

.songCardTop,
.patternCardTop {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.songGenreTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 8px;
  min-width: 74px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff8e7 0%, #f4e3b5 100%);
  color: #7c5a12;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.songArtist {
  margin-top: 0;
  font-size: 0.84rem;
  color: #607086;
  line-height: 1.2;
}

.songArtistName {
  display: inline;
}

.songArtistYear {
  white-space: nowrap;
}

.songCardTitleBlock {
  min-width: 0;
}

.songCompactCard h3 {
  margin: 0;
  line-height: 1.08;
}

.songCompactCard .songArtist {
  margin-top: 2px;
  font-size: 0.76rem;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.songMetaTop {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
}

.songMetaInlineLabel {
  color: #7b889b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.songMetaInlineDivider {
  margin-left: 6px;
  color: #a87416;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.songMetaInlineValue {
  color: #41577d;
  white-space: nowrap;
}

.songCardFooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #e6edf5;
}

.songCardFooterMeta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
  color: #41577d;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1;
}

.songCardActions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 54px;
}

.songAudioBtn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid #d6dee9;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: #2f6676;
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
}

.songAudioBtn:hover,
.songAudioBtn:focus-visible {
  border-color: #b8c8db;
  background: linear-gradient(180deg, #ffffff 0%, #ebf2f8 100%);
}

.songAudioBtn:disabled,
.songAudioBtn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  border-color: #d6dee9;
  background: linear-gradient(180deg, #ffffff 0%, #f3f7fb 100%);
  color: #7f8ca0;
}

.songAudioBtn.isPlaying {
  border-color: #d4a54f;
  background: linear-gradient(180deg, #fffaf0 0%, #f5e7c8 100%);
  color: #8a5a18;
  box-shadow: 0 0 0 2px rgba(212, 165, 79, 0.16);
}

.songAudioPlaceholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #7f8ca0;
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.songMetaGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 8px;
}

.songMetaRow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.songTempoMeta {
  flex-shrink: 0;
  color: #7b889b;
  font-size: 0.69rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.songMetaLabel {
  display: block;
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #7b889b;
}

.songProgression,
.songKey,
.songTime,
.patternCode,
.patternCount {
  font-weight: 800;
  color: #22345f;
}

.songKey,
.songTime {
  font-size: 0.84rem;
  line-height: 1.2;
}

.songProgression {
  font-size: 0.9rem;
  line-height: 1.36;
}

.songCompactCard .songMetaGrid {
  margin: 8px 0 6px;
}

.songCompactCard .songMetaLabel {
  padding-top: 8px;
  margin-bottom: 1px;
}

.songCompactCard .songProgression {
  padding-top: 0;
}

.songCompactCard .songNote {
  font-size: 0.81rem;
  line-height: 1.38;
  color: #607086;
}

.songCompactCard .songCardFooter {
  margin-top: auto;
}

.songRowCard {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.24fr) minmax(88px, 0.52fr) minmax(150px, 0.8fr) minmax(118px, 0.6fr) minmax(108px, 0.5fr) 58px 38px;
  column-gap: 6px;
  row-gap: 8px;
  align-items: center;
  padding: 7px 11px;
  min-height: 60px;
  border-radius: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.songRowCard:hover,
.songRowCard:focus-within {
  transform: translateY(-1px);
  border-color: #c7d3e2;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.songRowAudio {
  display: flex;
  justify-content: center;
}

.songRowMain {
  min-width: 0;
  overflow: hidden;
}

.songRowGenre {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.songRowTitle,
.songRowProgression,
.songRowStrum,
.songRowTempo,
.songRowTime,
.songRowKey {
  color: #22345f;
}

.songRowTitle {
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.06;
}

.songRowProgression,
.songRowStrum,
.songRowTempo,
.songRowTime,
.songRowKey {
  font-size: 0.79rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  justify-self: start;
}

.songRowStrum,
.songRowTempo,
.songRowTime,
.songRowKey {
  justify-self: center;
}

.songRowProgression,
.songRowStrum,
.songRowTempo,
.songRowTime,
.songRowKey {
  color: #41577d;
}

.songRowTempo {
  padding-right: 8px;
}

.songRowFeel {
  color: #7b889b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.patternListRow {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.15fr) minmax(150px, 0.9fr) minmax(260px, 1fr) 64px;
  column-gap: 18px;
  row-gap: 6px;
  align-items: center;
  padding: 5px 11px;
  min-height: 56px;
  border-radius: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.patternListRow:hover,
.patternListRow:focus-within {
  transform: translateY(-1px);
  border-color: #c7d3e2;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.07);
}

.patternRowHeader {
  display: grid;
  grid-template-columns: 44px minmax(220px, 1.15fr) minmax(150px, 0.9fr) minmax(260px, 1fr) 64px;
  column-gap: 18px;
  align-items: center;
  padding: 0 11px 1px;
  color: #7b889b;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.patternRowHeader > :nth-child(3),
.patternRowHeader > :nth-child(5) {
  text-align: center;
}

.patternListAudio {
  display: flex;
  justify-content: center;
}

.patternListRow .songAudioBtn {
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  font-size: 0.82rem;
}

.patternListMain {
  min-width: 0;
}

.patternListFeel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.patternFeelTag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 8px;
  background: #eef2f6;
  color: #41577d;
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.patternListTitle {
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.05;
  color: #22345f;
}

.patternListDescription {
  margin-top: 4px;
  color: #607086;
  font-size: 0.76rem;
  line-height: 1.32;
}

.patternListTime,
.patternTime {
  margin-top: 3px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #607086;
}

.patternListPattern {
  color: #22345f;
  justify-self: start;
}

.patternListTimeCol {
  color: #41577d;
  font-size: 0.79rem;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  justify-self: center;
  white-space: nowrap;
}

.songTagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.songTagRow span {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f5f7fb;
  color: #41577d;
  font-size: 0.7rem;
  font-weight: 700;
}

.patternCard {
  padding: 15px;
}

.patternCompactCard {
  display: flex;
  flex-direction: column;
  padding: 10px 12px 12px;
  overflow: hidden;
}

.patternTileHeader {
  min-width: 0;
}

.patternTitleRow {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.patternCompactCard h3 {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.04;
}

.patternDescription {
  margin: 8px 0 0;
  color: #607086;
  font-size: 0.8rem;
  line-height: 1.38;
}

.patternCompactCard .songAudioBtn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.patternCompactCard .patternCardTop {
  padding-bottom: 10px;
}

.patternTimeTag {
  display: block;
  color: #9a6f18;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.patternCode {
  margin-top: 0;
  font-size: 1rem;
  letter-spacing: 0.03em;
}

.patternCodeCard {
  display: flex;
  justify-content: center;
  margin: auto 0 0;
  min-height: 84px;
  padding: 12px 14px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f7fbff 0%, #e3edf8 100%);
  border: 1px solid #d6e2f0;
}

.patternCompactCard .patternStrokeDisplay {
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
}

.patternCompactCard .patternStroke {
  min-width: 16px;
  row-gap: 2px;
}

.patternCompactCard .patternStrokeSymbol {
  font-size: 1.02rem;
  color: #8a5a18;
}

.patternCompactCard .patternStrokeArrow {
  color: #b1832a;
  font-size: 1.06rem;
}

.patternStrokeDisplay {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.patternStrokeDisplayCompact {
  gap: 4px;
}

.patternBeatGroup {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
}

.patternBeatGroup + .patternBeatGroup {
  position: relative;
  margin-left: 10px;
  padding-left: 12px;
}

.patternBeatGroup + .patternBeatGroup::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  bottom: 2px;
  width: 1px;
  background: rgba(143, 162, 188, 0.55);
}

.patternStrokeDisplayCompact .patternBeatGroup {
  gap: 4px;
}

.patternStrokeDisplayCompact .patternBeatGroup + .patternBeatGroup {
  margin-left: 6px;
  padding-left: 8px;
}

.patternStroke {
  display: inline-grid;
  justify-items: center;
  row-gap: 0;
  min-width: 11px;
}

.patternStrokeSymbol {
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #22345f;
}

.patternStrokeArrow {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1;
  color: #607086;
}

.patternCode .patternStrokeSymbol {
  font-size: 0.95rem;
}

.patternCode .patternStrokeArrow {
  font-size: 1rem;
}

.patternCount {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #607086;
}

.ideaGrid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ideaCard {
  padding: 18px;
}

/* ── Feel card stripe ──────────────────────────────────────────────────── */
.songCardStripe {
  height: 3px;
  margin: -11px -12px 9px;
  width: calc(100% + 24px);
  flex-shrink: 0;
}

/* ── Compact strum pill in footer ──────────────────────────────────────── */
.songFeelBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  padding: 3px 10px;
  border-radius: 8px;
  border: 1px solid #d6e2f0;
  background: linear-gradient(180deg, #f7fbff 0%, #e3edf8 100%);
  color: #33466f;
  white-space: nowrap;
}

/* ── Feel filter pill row ───────────────────────────────────────────────── */
.feelFilterRow {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  flex-wrap: nowrap;
  width: fit-content;
  max-width: 100%;
  padding: 0;
}

.feelFilterLabel {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8a9ab0;
  margin-right: 10px;
  white-space: nowrap;
}

.feelPill {
  padding: 1px 5px;
  border-radius: 8px;
  border: 1px solid #d0d8e5;
  background: #fff;
  font-size: 0.63rem;
  font-weight: 700;
  line-height: 1.1;
  color: #556070;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
  font-family: inherit;
  white-space: nowrap;
  text-align: center;
}

.feelPill:hover {
  border-color: #b0bccf;
  background: #f5f7fb;
}

.feelPill.feelPillActive {
  border-color: transparent;
}

.emptyState {
  padding: 28px 18px;
  text-align: center;
}

.emptyState h3 {
  margin: 0 0 8px;
  color: #22345f;
}


.labFooter {
  position: relative;
  z-index: 6;
  margin-top: 10px;
}

@media (max-width: 960px) {
  .nav-inner {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  .songSearchFilter {
    grid-column: span 2;
  }

  .feelFilterRow {
    display: flex;
    flex-wrap: wrap;
  }

  .songRowCard {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .songRowHeader {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 700px) {
  .songControls {
    grid-template-columns: 1fr;
  }

  .songSearchFilter {
    grid-column: span 1;
  }

  .songRowCard {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .songRowHeader {
    display: none;
  }

  .patternListRow {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .patternRowHeader {
    display: none;
  }

  .songRowGenre,
  .songRowProgression,
  .songRowStrum,
  .songRowTempo,
  .songRowTime,
  .songRowKey {
    grid-column: 2;
  }

  .patternListFeel,
  .patternListPattern,
  .patternListTimeCol {
    grid-column: 2;
  }
}

@media (max-width: 720px) {
  .labLayout,
  .labSection {
    padding: 16px;
  }

  .labStatusPanel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .labStatusCard {
    min-height: 86px;
    padding: 12px 10px;
  }

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

  .labHeaderActions {
    width: 100%;
    justify-content: flex-start;
    align-items: flex-start;
  }

  .songBoardHeader,
  .songCardTop,
  .patternCardTop {
    flex-direction: column;
    align-items: flex-start;
  }

  .songBoardMeta {
    align-items: flex-start;
  }

  .viewToggle {
    display: none;
  }

  .feelFilterRowHeader {
    width: 100%;
    margin: 0;
    padding: 8px 10px 10px 12px;
  }

  .feelFilterRow {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 6px;
  }

  .feelPill {
    flex: 1 1 calc(33.333% - 8px);
    width: auto;
    min-width: 0;
    min-height: 28px;
    padding: 3px 10px;
    font-size: 0.82rem;
    border-radius: 999px;
  }

  .feelFilterLabel {
    flex: 0 0 100%;
    font-size: 0.72rem;
    margin: 0 0 2px;
  }

  .songResultsGridView {
    gap: 12px;
  }

  .songRowCard {
    grid-template-columns: 36px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
    align-items: start;
    padding: 12px;
  }

  .songRowAudio {
    justify-content: flex-start;
    grid-row: 1 / span 2;
    padding-top: 2px;
  }

  .songRowMain,
  .songRowGenre,
  .songRowProgression,
  .songRowStrum,
  .songRowTempo,
  .songRowTime,
  .songRowKey {
    grid-column: 2;
    justify-self: start;
    text-align: left;
  }

  .songRowGenre {
    align-items: flex-start;
    gap: 6px;
  }

  .songRowStrum,
  .songRowTempo,
  .songRowTime,
  .songRowKey {
    justify-self: start;
  }

  .songRowMain .songArtist {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

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

  .patternCompactCard {
    padding: 12px;
  }

  .patternCompactCard .patternCardTop {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
  }

  .patternCompactCard .songAudioBtn {
    grid-row: 1 / span 2;
    align-self: start;
  }

  .patternTitleRow {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

  .patternDescription {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .patternCodeCard {
    min-height: 0;
    padding: 12px;
  }

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

  .songCardActions {
    flex-direction: row;
    align-items: center;
  }
}
