@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Outfit:wght@500;600;700&display=swap');

:root {
  --font-primary: 'Inter', sans-serif;
  --font-heading: 'Outfit', 'Inter', sans-serif;
}

h1,
h2 {
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}

h1 {
  font-weight: 700;
}

h2 {
  font-weight: 600;
}

@media (max-width: 900px) {
  .mainLayout {
    display: block !important;
    width: 100% !important;
    grid-template-columns: none !important;
    column-gap: 0 !important;
    row-gap: 0 !important;
  }
  .leftCol {
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .rightCol {
    width: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
    margin-top: 24px !important;
  }
}
@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: 12px;
    padding: 0 7px;
    min-height: 40px;
    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: 900px) {
  .lessonIntroInner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
    padding: 0 8px !important;
    width: 100% !important;
    box-sizing: border-box;
  }
  .lessonIntroCopy {
    order: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
  }
  .lessonIntroVisual {
    order: 2 !important;
    width: 100% !important;
    margin-top: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    display: flex !important;
  }
  .lessonIntroSvg {
    width: min(100%, 220px) !important;
    height: auto !important;
    display: block;
    margin: 0 auto;
  }
}

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

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  background: rgba(19, 39, 70, 0.92);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(10, 20, 50, 0.18);
  margin: 0 0 14px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  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;
  width: 100%;
}
.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-pattern-btn {
  width: 100%;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14px;
}
.mini-btn-primary {
  background: linear-gradient(180deg, rgba(116, 216, 208, 0.96) 0%, rgba(88, 184, 176, 0.92) 100%);
  color: #0d3533;
  border: 1px solid rgba(88, 184, 176, 0.58);
}
.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-toggle-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 64px;
  margin-left: 8px;
}
.mini-toggle-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(245,247,251,0.88);
  font-size: 12px;
  line-height: 1.2;
}
.mini-toggle-option input[type="checkbox"] {
  accent-color: #2a9db5;
}
.mini-dot-track-shell {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: 10px 0 6px 0;
  padding: 14px 14px 18px;
  box-sizing: border-box;
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(16, 29, 57, 0.96), rgba(12, 23, 47, 0.96));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 30px rgba(6, 12, 28, 0.26);
  overflow: hidden;
}
.mini-dot-track-shell .dot-track {
  display: grid;
  width: 100%;
  gap: 0;
  align-items: start;
}
.mini-dot-track-shell .dot-track.step-count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mini-dot-track-shell .dot-track.step-count-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mini-dot-track-shell .dot-track.step-count-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.mini-dot-track-shell .dot-track.step-count-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}
.mini-dot-track-shell .track-slot {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-dot-track-shell .track-slot.beat-start::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 18px;
  width: 1px;
  background: rgba(255,255,255,0.14);
}
.mini-dot-track-shell .track-slot.bar-start::before {
  background: rgba(255,255,255,0.24);
}
.mini-dot-track-shell .track-slot-label {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(245, 247, 251, 0.72);
  font-size: 11px;
  font-weight: 700;
}
.mini-dot-track-shell .stroke {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.92;
  transition: transform 0.28s ease-out, opacity 0.28s ease-out;
}
.mini-dot-track-shell .stroke-dot {
  width: var(--dot-size, 12px);
  height: var(--dot-size, 12px);
  border-radius: 50%;
  background: radial-gradient(circle at 28% 22%, #fff3b9, #f0c45b 72%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72),
    0 10px 22px rgba(7, 14, 30, 0.5);
  transition: transform 0.28s ease-out, background 0.28s ease-out, box-shadow 0.28s ease-out;
}
.mini-dot-track-shell .stroke.down .stroke-dot {
  background: radial-gradient(circle at 28% 22%, #ffd97a, #c7861e 76%);
  box-shadow:
    0 0 0 1px rgba(255, 244, 210, 0.72),
    0 10px 22px rgba(7, 14, 30, 0.56);
}
.mini-dot-track-shell .stroke.up .stroke-dot {
  background: radial-gradient(circle at 28% 22%, #fff9df, #efd894 76%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(7, 14, 30, 0.34);
}
.mini-dot-track-shell .stroke-dot-rest {
  opacity: 0.14;
}
.mini-dot-track-shell .stroke-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  order: -1;
  width: 1em;
  min-height: 14px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", sans-serif;
}
.mini-dot-track-shell .track-slot.is-active .stroke {
  opacity: 1;
  transform: translateY(-2px);
  transition: transform 0.05s ease-out, opacity 0.05s ease-out;
}
.mini-dot-track-shell .track-slot.is-active .stroke-dot {
  background: var(--gold, #f0c45b);
  box-shadow:
    0 0 0 4px rgba(240, 196, 91, 0.22),
    0 0 22px rgba(255, 179, 71, 0.36);
  transform: scale(1.08);
  transition: transform 0.05s ease-out, background 0.05s ease-out, box-shadow 0.05s ease-out;
}
.mini-dot-track-shell .track-slot.is-active .stroke-label {
  color: rgba(255, 227, 160, 0.92);
}
.mini-playhead-line {
  position: absolute;
  top: 16px;
  bottom: 32px;
  left: 0;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250, 250, 255, 0.38), rgba(240, 196, 91, 0.28));
  box-shadow: 0 0 16px rgba(240, 196, 91, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateX(0);
  transition: opacity 0.15s ease;
}
.mini-dot-track-shell .note-sixteenth {
  width: 8px;
  height: 8px;
}
.mini-dot-track-shell .note-eighth {
  width: 12px;
  height: 12px;
}
.mini-dot-track-shell .note-quarter {
  width: 17px;
  height: 17px;
}
.mini-dot-track-shell .note-half {
  width: 23px;
  height: 23px;
}
.mini-dot-track-shell .note-whole {
  width: 30px;
  height: 30px;
}
.mini-dotbeat-demo .animator-label,
.mini-dotbeat-demo .animator-tagline {
  max-width: 34ch;
}
.mini-tempo-controls {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  min-width: 0;
}
.mini-tempo-controls .tempo-slider {
  width: 82px;
  min-width: 0;
  accent-color: #2a9db5;
}
.mini-tempo-controls span {
  color: rgba(245, 247, 251, 0.78);
  white-space: nowrap;
}
.mini-tempo-controls .tempo-value {
  color: #f5f7fb;
  font-weight: 700;
}
/* 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, #74d8d0 0%, #58b8b0 100%);
  color: #0d3533;
  border: 1px solid rgba(88, 184, 176, 0.62);
}
.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); }
}

/* Mobile Safari/Chrome can show a gray/nav flash while blur + body fade are compositing.
   On smaller screens, keep the page stable and remove the transient effects. */
@media (max-width: 900px) {
  body {
    animation: none !important;
  }
  .nav {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(19, 39, 70, 0.96);
  }
}

/* --- 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:   13px;   /* labels, captions, kickers */
      --font-sm:   14px;   /* 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;
  --site-bg-top: #1f3360;
  --site-bg-bottom: #26406e;
  --site-panel: #162848;
  --site-panel-border: rgba(255, 255, 255, 0.18);
  --site-text: #f5f7fb;
  --site-muted: #c6cfde;
  --site-muted-soft: rgba(245, 247, 251, 0.76);
  --site-gold: #e2b95f;
  --site-gold-bright: #f0c45b;
  --site-gold-deep: #d79b1d;
  --control-radius: 14px;
  --site-blue-panel: #162848;
  --site-blue-panel-light: #1e3460;
  --site-blue-gradient: linear-gradient(180deg, #1f3360 0%, #26406e 100%);
  --site-blue-panel-gradient: linear-gradient(180deg, #162848 0%, #1e3460 100%);
  --bg: #1f3360;
  --blue-bg: #1f3360;
  --blue-panel: #162848;
  --blue-panel-light: #1e3460;
  --blue-accent: #2a9db5;
  --blue-gradient: linear-gradient(180deg, #1f3360 0%, #26406e 100%);
  --blue-panel-gradient: linear-gradient(180deg, #162848 0%, #1e3460 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: #2a9db5;
  --ui-teal-soft: #2a9db5;
  --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.18), transparent 35%),
    radial-gradient(circle at top right, rgba(90, 170, 220, 0.14), transparent 28%),
    radial-gradient(circle at 70% 80%, rgba(240, 196, 91, 0.07), transparent 30%),
    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: 1100px;
  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: none;
  border-radius: 0;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.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 {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  color: inherit;
  text-decoration: none;
}

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

.wordmark-tag {
  margin-top: 2px;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: rgba(245, 247, 251, 0.58);
  white-space: nowrap;
}

.wm-dot { color: #fff; text-transform: lowercase; }
.wm-beat { color: #f0c45b; text-transform: capitalize; }
.wm-tm { font-size: 0.45em; vertical-align: super; color: rgba(255,255,255,0.7); font-weight: 400; }

@media (max-width: 860px) {
  .wordmark-tag {
    display: none;
  }
}

.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: 144px;
  margin: 0 0 18px;
  border-radius: 24px;
  background: linear-gradient(180deg, #29416c 0%, #38507d 100%);
  border: 1px solid rgba(214, 223, 238, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 28px rgba(15, 23, 42, 0.14),
    0 3px 10px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.header.bannerHeader::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
  pointer-events: none;
  border-radius: inherit;
}

/* Page-specific banner tints — match each page's accent color */
.patternsBanner {
  background: linear-gradient(180deg, #173848 0%, #1d4858 100%);
}
.patternsBanner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0));
}
.songsBanner {
  background: linear-gradient(180deg, #26385e 0%, #2c3f6e 100%);
}
.songsBanner::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

.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 {
  display: none;
}

.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;
  text-transform: none;
  letter-spacing: -0.03em;
}

.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;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -8px;
}

.bannerHeader .brandEyebrow {
  margin-top: 6px;
  margin-bottom: 12px;
  color: rgba(240, 196, 91, 0.96);
  font-size: 13px;
  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 {
  margin: 0 0 8px;
  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: 13px;
  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) 288px;
  column-gap: 22px;
  row-gap: 18px;
  align-items: start;
}

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

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

/* Display area */
.lessonIntro {
    min-height: 180px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 100%),
    linear-gradient(135deg, #fbf7ee 0%, #f6f0e4 42%, #eaf1f8 100%);
  border: 1px solid rgba(219, 207, 181, 0.85);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  padding: 22px 0 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 28px rgba(20, 33, 58, 0.09);
  animation: sectionRise 560ms ease-out both;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.lessonIntroInner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  padding: 0 22px;
  flex: 1 1 0;
}

.lessonIntroCopy {
  min-width: 0;
  flex: 1 1 0;
  order: 1;
  align-self: stretch;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lessonIntroVisual {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  order: 2;
  box-sizing: border-box;
  height: 100%;
  flex: 0 0 auto;
@media (max-width: 900px) {
  .lessonIntroInner {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
    padding: 0 8px !important;
  }
  .lessonIntroVisual {
    width: 100% !important;
    align-items: center !important;
    margin-top: 0 !important;
  }
}
}
}

.lessonIntroSvg {
  width: min(100%, 320px);
  height: auto;
}

.lessonIntroSvg-note {
  font: 800 15px/1 Inter, system-ui, sans-serif;
  fill: #24345f;
}

.lessonIntroSvg-pill {
  fill: rgba(255, 255, 255, 0.88);
  stroke: rgba(89, 113, 156, 0.14);
}

.lessonIntroSvg-pillWarm {
  fill: rgba(255, 243, 212, 0.98);
  stroke: rgba(231, 183, 62, 0.36);
}

.lessonIntroSvg-pillCool {
  fill: rgba(235, 246, 255, 0.96);
  stroke: rgba(78, 143, 182, 0.26);
}

.lessonIntroSvg-label {
  font: 800 12px/1 Inter, system-ui, sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: #4a5f84;
}

.lessonIntroSvg-panel {
  transition: opacity 0.18s ease;
}

.display,
.keySig,
.lessonInstruction,
.scaleHelp {
  background: transparent;
  border: 0;
  text-align: left;
  position: relative;
  z-index: 1;
}

.display {
  padding: 0 0 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: 100%;
  max-width: 440px;
  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 0 8px;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.45;
  color: #41577d;
}

.lessonInstruction {
  max-width: 620px;
  margin: 0;
  padding: 8px 0 4px;
  font-size: 0.97rem;
  line-height: 1.58;
  color: #5d6574;
}


.scaleHelp {
  padding: 0;
  font-size: 0.97rem;
  line-height: 1.58;
  color: #5d6574;
  max-width: 620px;
  text-align: center;
  margin: 0 auto;
}

.chordBridge {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--site-panel-border);
  border-radius: 16px;
  background: var(--site-blue-panel-gradient);
  box-shadow: none;
  animation: sectionRise 620ms ease-out both;
}

.chordBridgeTitle {
  font-size: 0.98rem;
  font-weight: 780;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #f0c96b;
}

.chordStrip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chordStripItem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.10) 100%);
  color: var(--site-text);
  font-size: 1.05rem;
  font-weight: 720;
  line-height: 1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 2px 8px rgba(0, 0, 0, 0.28);
  transform: translateY(0);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 220ms ease;
  text-align: center;
  vertical-align: middle;
}

.chordStripItem.isPlaybackActive {
  border-color: rgba(240, 196, 91, 0.34);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.11) 100%);
  color: #fffdf8;
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(11, 19, 37, 0.18),
    0 0 0 1px rgba(240, 196, 91, 0.08);
}

.chordStripItem.isPlaybackSettled {
  border-color: rgba(240, 196, 91, 0.5);
  background:
    linear-gradient(180deg, rgba(255, 247, 227, 0.2) 0%, rgba(240, 196, 91, 0.16) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
  color: #fff7e4;
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 20px rgba(11, 19, 37, 0.22),
    0 0 18px rgba(240, 196, 91, 0.16);
}

.guidedAction {
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%),
    linear-gradient(180deg, rgba(65, 87, 125, 0.28) 0%, rgba(34, 52, 95, 0.2) 100%);
  color: var(--site-text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: sectionRise 660ms ease-out both;
}

.chordBridge .guidedAction {
  margin-top: 2px;
  padding: 14px 16px;
  animation: none;
}

.guidedActionLabel {
  margin-right: 4px;
  font-weight: 700;
  color: inherit;
}

.guidedActionText {
  font-weight: 620;
}

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

.chordBridge .chordGrid {
  padding: 4px 0 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  animation: none;
}

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

.chordCard {
  min-height: 120px;
  padding: 0;
  border: 1px solid #dde5ef;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7fb 100%);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05), 0 2px 6px rgba(15, 23, 42, 0.03);
  cursor: pointer;
  overflow: visible;
  position: relative;
  display: flex;
  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(-3px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08), 0 4px 10px rgba(15, 23, 42, 0.04);
  border-color: #c4d1e3;
}

.chordCard .degreeLabel {
  position: absolute;
  top: 8px;
  left: 10px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  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: 6px;
  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: 4px;
  font-size: 0.72rem;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7a8799;
}

.chordNotes {
  margin-top: 4px;
  padding: 0 10px 10px;
  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);
}

.chordCard.isPlaybackActive {
  transform: translateY(-2px);
  border-color: rgba(231, 183, 62, 0.42);
  background: linear-gradient(180deg, #fffdf8 0%, #f8fbff 100%);
  box-shadow:
    0 14px 24px rgba(24, 40, 74, 0.08),
    0 0 0 1px rgba(231, 183, 62, 0.08),
    0 0 18px rgba(231, 183, 62, 0.14);
}

.chordCard.isPlaybackSettled {
  transform: translateY(-3px);
  border-color: rgba(231, 183, 62, 0.56);
  background: linear-gradient(180deg, #fffef9 0%, #faf4e6 100%);
  box-shadow:
    0 16px 28px rgba(91, 65, 0, 0.12),
    0 0 0 1px rgba(231, 183, 62, 0.14),
    0 0 24px rgba(231, 183, 62, 0.18);
}

.voicingRow {
  width: 100%;
  text-align: center;
  margin-top: 6px;
  font-size: 0.84rem;
  line-height: 1.5;
  white-space: normal;
}

.voicingLine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.voicingLineBreak {
  display: flex;
  justify-content: center;
  margin-top: 2px;
}

.voicingLink {
  color: rgba(245, 247, 251, 0.78);
  text-decoration: none;
  cursor: pointer;
  padding: 2px 3px;
  font-weight: 650;
}

.voicingLink:hover {
  text-decoration: underline;
  color: #f5f7fb;
}

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

.voicingSep {
  color: rgba(245, 247, 251, 0.42);
  opacity: 1;
  margin: 0 2px;
}

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

/* Tabs and panels */
.tabSection {
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: sectionRise 600ms ease-out both;
}

.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: 48px;
  padding: 13px 14px 12px;
  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: 18px;
  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: none;
  display: none;
  position: relative;
  transform-origin: top center;
}

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

.panelActionRow {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 12px;
  margin-bottom: 2px;
}

.panelActionLead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex: 0 1 auto;
  min-width: 0;
}

.scalePlayBtn {
  width: auto;
  min-width: 0;
  padding: 10px 16px 11px;
  border-radius: var(--control-radius);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 10px 20px rgba(139, 94, 0, 0.12);
}

.theoryHint {
  display: inline-block;
  min-height: 0;
  color: #7a5a2f;
  font-size: 0.74rem;
  font-weight: 620;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  cursor: help;
  opacity: 0.9;
}

.theoryHint:focus-visible {
  outline: 3px solid rgba(231, 183, 62, 0.9);
  outline-offset: 3px;
  border-radius: 6px;
}

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

.patternTopRow {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.tipInline {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: flex-start;
  flex: 0 0 auto;
  gap: 0;
  margin-bottom: 4px;
  width: clamp(280px, 31vw, 350px);
  max-width: clamp(280px, 31vw, 350px);
  font-size: 0.66rem;
  line-height: 1.12;
  color: #f8fafc;
  text-align: left;
}

.tipInlineMain {
  display: block;
  width: 100%;
  min-height: 2.2em;
}

.tipInlineLabel {
  color: #f8fafc;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.08;
}

.tipInlineText {
  display: inline;
  font-size: 0.66rem;
  line-height: 1.02;
  color: #f8fafc;
}

.tipInline .tipText,
.tipInlineText.tipText {
  color: #f8fafc;
}

.tipInlineLinks {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  width: 100%;
  margin-top: 2px;
  line-height: 1;
}

.tipTextLink {
  width: auto;
  display: inline-block;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #f8fafc;
  font-size: 0.58rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
}

.tipTextLink:hover {
  transform: none;
  box-shadow: none;
  color: #ffe3a0;
}

.tabDetails {
  border: 1px solid rgba(184, 205, 239, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
}

.tabDetails summary {
  list-style: none;
  cursor: pointer;
  padding: 9px 12px;
  color: #dbe6f7;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.2;
}

.tabDetails summary::-webkit-details-marker {
  display: none;
}

.tabDetails summary::after {
  content: "+";
  float: right;
  color: rgba(245, 247, 251, 0.76);
  font-size: 1rem;
  line-height: 1;
}

.tabDetails[open] summary {
  border-bottom: 1px solid rgba(184, 205, 239, 0.14);
}

.tabDetails[open] summary::after {
  content: "-";
}

.tabDetails .tab,
.tabDetails .tabStack {
  margin: 0;
}

.tabDetails .tab {
  border: 0;
  border-radius: 0 0 12px 12px;
  box-shadow: none;
  min-height: 0;
  padding: 12px 14px;
}

.tabDetails .tabStack {
  padding: 0;
}

.tabDetails .boxNotice {
  margin: 10px 10px 0;
}

.tabDetails .tabStack .tab {
  border-radius: 0 0 12px 12px;
}

pre.tab {
  margin: 0;
}

.tab {
  min-height: 104px;
  padding: 16px 20px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0%, rgba(255, 255, 255, 0.015) 100%),
    linear-gradient(135deg, #182741 0%, #20365a 50%, #1e4658 100%);
  border: 1px solid rgba(160, 182, 230, 0.22);
  color: #f3f7fc;
  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.05),
    0 10px 20px rgba(12, 20, 38, 0.16);
}
.tipBox {
  min-height: 96px;
  min-width: 0;
  padding: 12px 16px;
  border: 1px solid rgba(160, 182, 230, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%),
    linear-gradient(180deg, #1b2d4d 0%, #213a60 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #d7e5f8;
  line-height: 1.5;
  font-size: 0.89rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.tipBox:hover {
  border-color: rgba(184, 205, 239, 0.28);
  box-shadow: 0 10px 20px rgba(12, 20, 38, 0.18);
}

.tipBox.compactTipBox,
.tipBox.compactTipBox:hover {
  min-height: 0;
  min-width: 0;
  width: 228px;
  max-width: 228px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  gap: 2px;
}

.tipBox.compactTipBox .tipText {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  max-height: 2.4em;
  font-size: 0.62rem;
  line-height: 1.18;
  color: rgba(234, 241, 252, 0.88);
}

.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(184, 205, 239, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  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: #eef4ff;
  cursor: pointer;
  white-space: nowrap;
}

.tipNav:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(184, 205, 239, 0.34);
  text-decoration: none;
  transform: none;
  box-shadow: none;
}

.tipText {
  min-width: 0;
}

.tipBoxLabel,
.tipText {
  color: #edf4ff;
}

.boxNotice {
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(232, 188, 94, 0.24);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 244, 220, 0.1) 0%, rgba(231, 183, 62, 0.12) 100%);
  color: #fff0cb;
  font-size: 0.88rem;
  line-height: 1.45;
}

/* Fretboard */

.fretboardWrap {
  overflow-x: hidden;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 12px 0 0;
@media (max-width: 700px) {
  .fretboardWrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .fretboard {
    min-width: 980px;
  }
}
}

.panel .fretboardWrap {
  margin-bottom: 10px;
}


.fretboard {
  display: grid;
  column-gap: 0;
  row-gap: 0;
  width: 100%;
  min-width: 0;
  background: linear-gradient(to bottom, #252d3f 0%, #171d29 100%);
  border-radius: 18px;
  box-shadow: 0 2px 16px 0 rgba(31,38,53,0.12);
  border: 1.5px solid #232a3a;
  padding: 12px 0 10px 0;
  position: relative;
  min-height: 180px;
}
}


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


.fretHeader {
  min-height: 24px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  font-size: 0.65rem;
  font-weight: 600;
  color: #a89070;
}


.fretHeader.marker {
  background: transparent;
  color: #c8a060;
}


.fretHeader.markerDouble {
  background: transparent;
  color: #d4aa55;
}


.stringLabel {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  font-size: 0.82rem;
  font-weight: 700;
  color: #d4b896;
  letter-spacing: 0.04em;
}


.fret {
  min-height: 42px;
  border: none;
  border-left: 2px solid rgba(232,214,176,0.34);
  background: transparent;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  text-align: center;
  box-shadow: none;
  transition: none;
}

.fret::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: rgba(232,214,176,0.34);
  transform: translateY(-50%);
  z-index: 0;
  pointer-events: none;
}


.fret:hover,
.fret:focus-visible {
  border-color: #a08050;
  box-shadow: none;
  background: rgba(255,255,255,0.04);
}


/* Remove note hover popup for fretboard */


.fret.stringShade::before {
  background: rgba(255,255,255,0.14);
  height: 3px;
}


.fret.scale {
  background: transparent;
  border-color: #8b7355;
}
.fret.scale .noteName {
  background: #3a4e6a;
  border-color: #2c3a54;
}

.fret.alt {
  background: transparent;
  border-color: #8b7355;
}

.fret.root {
  background: transparent !important;
  border-color: #8b7355 !important;
  box-shadow: none;
}
.fret.root .noteName {
  background: linear-gradient(180deg, #f7e7a6 0%, #e7b73e 100%);
  border: 2px solid #c89a31;
  color: #6b4708;
  box-shadow: 0 0 6px rgba(231,183,62,0.5);
}


.fret.active,
.fret.chordTone {
  background: transparent !important;
  border-color: #8b7355 !important;
  box-shadow: none;
  transform: none;
  color: inherit;
}
.fret.active .noteName,
.fret.chordTone .noteName {
  background: linear-gradient(180deg, #f7c997 0%, #ef8f37 100%);
  border: 2px solid #d97a22;
  color: #5c2200;
}


.noteName {
  font-size: 0.68rem;
  font-weight: 760;
  line-height: 1;
  color: #e6eaf3;
  background: #2a3550;
  border: 2px solid #22304a;
  border-radius: 50%;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}


.solfegeText {
  font-size: 0.55rem;
  color: #c8aa80;
  line-height: 1;
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 2;
}


/* .fret.root .noteName and .solfegeText handled above */


/* .fret.active/.chordTone .noteName handled above */

.legend {
  margin-top: 0;
  padding: 0 4px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #7a5a2f;
}

/* Right column controls */
.controlsVertical {
  width: 100%;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid rgba(147, 177, 226, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #1c2d4d 0%, #22355a 100%);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: sectionRise 720ms ease-out both;
}

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

.controlSection + .controlSection {
  padding-top: 12px;
  border-top: 1px solid rgba(184, 205, 239, 0.12);
}

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

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

.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 rgba(184, 205, 239, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.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: #e7eef9;
  letter-spacing: 0.02em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(184, 205, 239, 0.14);
}

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

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

.tabShortcut {
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  border-radius: var(--control-radius);
}

.tabShortcut.active {
  border-color: #d3bf8d;
  background: linear-gradient(180deg, #fff6de 0%, #f6ead0 100%);
  color: #22345f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

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: var(--control-radius);
  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: var(--control-radius);
  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, #74d8d0 0%, #58b8b0 100%);
  border: 1px solid rgba(88, 184, 176, 0.44);
  color: #0d3533;
}
button.primary:hover {
  background: linear-gradient(180deg, #83ddd6 0%, #4ca8a1 100%);
}

#playAscending {
  min-height: 48px;
  border-radius: var(--control-radius);
  background: linear-gradient(180deg, #74d8d0 0%, #58b8b0 100%);
  border: 1px solid rgba(88, 184, 176, 0.44);
  color: #0d3533;
  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(180deg, #83ddd6 0%, #4ca8a1 100%);
}

#playDescending {
  min-height: 48px;
  border-radius: var(--control-radius);
  background: linear-gradient(180deg, #74d8d0 0%, #58b8b0 100%);
  border: 1px solid rgba(88, 184, 176, 0.44);
  color: #0d3533;
  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(180deg, #83ddd6 0%, #4ca8a1 100%);
}

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

.controlsVertical select,
.controlsVertical input[type="number"] {
  border: 1px solid rgba(184, 205, 239, 0.18);
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.98) 0%, rgba(235, 242, 250, 0.96) 100%);
  color: #213250;
}

.controlsVertical button.secondary,
.controlsVertical .tabShortcut {
  border-color: rgba(184, 205, 239, 0.18);
  background: linear-gradient(180deg, rgba(247, 250, 253, 0.98) 0%, rgba(234, 241, 249, 0.96) 100%);
  color: #314867;
}

.controlsVertical .tabShortcut.active {
  border-color: rgba(231, 183, 62, 0.32);
  background: linear-gradient(180deg, rgba(255, 246, 222, 0.98) 0%, rgba(246, 234, 208, 0.96) 100%);
  color: #22345f;
}

.progBtn {
  text-align: left;
  padding: 8px 10px 9px;
  border-radius: var(--control-radius);
  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: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #dbe8fb;
  text-align: left;
}

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

.keySongLink {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 62px;
  margin: 4px 0 10px;
  padding: 10px 14px 9px;
  border-radius: var(--control-radius);
  border: 1px solid rgba(132, 196, 232, 0.26);
  background: linear-gradient(180deg, #22345f 0%, #1a284b 100%);
  color: #f5f7fb;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(20, 30, 60, 0.14);
}

.keySongLink::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #2a9db5 0%, #2a9db5 36%, #e2b95f 100%);
}

.keySongLink:hover,
.keySongLink:focus-visible {
  border-color: rgba(132, 196, 232, 0.42);
  color: #f5f7fb;
  background: linear-gradient(180deg, #2a3e6c 0%, #1f2f56 100%);
}

.keySongLink-title {
  color: #f5f7fb;
  line-height: 1.2;
}

.keySongLink-meta {
  margin-top: 3px;
  color: rgba(245, 247, 251, 0.7);
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.15;
}

.keySongLink[aria-disabled="true"] {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  box-shadow: none;
}

.keySongStatus {
  margin: -2px 0 12px;
}

.songsSection .keySongLink {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin: 2px 0 8px;
}

.songsSection .keySongStatus {
  margin: 0;
  color: #bccce3;
}

.progressionSection .controlsRow {
  gap: 8px;
}

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

.feel-badge {
  --feel-accent: #f0c45b;
  --feel-bg: rgba(240, 196, 91, 0.14);
  --feel-border: rgba(240, 196, 91, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--feel-bg) 84%, rgba(15, 27, 58, 0.44)), rgba(10, 18, 40, 0.52)),
    var(--feel-bg);
  border: 1px solid var(--feel-border);
  color: rgba(245, 247, 251, 0.94);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px color-mix(in srgb, var(--feel-accent) 22%, transparent);
}

.feel-badge-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 14px;
  color: var(--feel-accent);
}

.feel-badge-mark svg {
  width: 24px;
  height: 14px;
  overflow: visible;
}

.feel-badge-mark path,
.feel-badge-mark line,
.feel-badge-mark polyline,
.feel-badge-mark circle {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 32%, transparent));
}

.feel-badge-mark circle[fill] {
  fill: currentColor;
  stroke: none;
  stroke-width: 0;
}

.feel-badge::after {
  content: '';
  width: 1px;
  height: 14px;
  background: color-mix(in srgb, var(--feel-accent) 26%, rgba(255, 255, 255, 0.08));
}

.feel-badge-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.24);
}

.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 > .footer-brand-row,
.siteFooter > div:not([class]) {
  display: none;
}
.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;
}

.footerShare {
  margin-top: 10px;
}

.siteFooter .footerShareText {
  margin-bottom: 8px;
}

.footerShareLinks {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

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

.footerShareSep {
  color: rgba(185, 192, 207, 0.9);
}

.siteFooter .footerContactLink:hover,
.siteFooter .footerContactLink:focus-visible,
.siteFooter .footerShareLink:hover,
.siteFooter .footerShareLink: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) {
  .fret,
  .fretHeader {
    border-radius: 0;
  }
  .noteName {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }
}

@media (max-width: 860px) {
  .fret,
  .fretHeader {
    border-radius: 0;
  }
  .noteName {
    width: 22px;
    height: 22px;
    font-size: 0.6rem;
  }
  /* ...existing code... */
    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) 276px;
    gap: 18px;
  }

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

  /* Removed grid-template-areas and grid-template-columns for mobile to prevent layout conflict */

  .lessonIntroCopy {
    order: 1;
    grid-area: copy;
    grid-row: 1;
  }

  .lessonIntroVisual {
    order: 2;
    grid-area: visual;
    grid-row: 2;
    justify-self: center;
    margin-top: 2px;
  }

  .lessonIntroSvg {
    width: min(100%, 210px);
  }

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

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

  .chordCard {
    min-height: 116px;
  }

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

@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 {
    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;
  }

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

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

  .lessonIntroInner {
    grid-template-areas:
      "copy"
      "visual";
    padding: 0 16px;
  }

  .lessonIntroCopy {
    order: 1;
    grid-area: copy;
    grid-row: 1;
  }

  .lessonIntroVisual {
    order: 2;
    grid-area: visual;
    grid-row: 2;
    margin-top: 0;
  }

  .lessonIntroSvg {
    width: min(100%, 210px);
  }

  .theoryHint {
    font-size: 0.78rem;
  }

  .chordBridgeTitle {
    font-size: 0.94rem;
  }

  .chordStrip {
    gap: 8px;
  }

  .chordStripItem {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 0.88rem;
  }

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

  .chordCard {
    min-height: 110px;
  }

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

  .chordTitleRow {
    padding-top: 14px;
    margin-bottom: 4px;
  }

  .chordName {
    font-size: 0.98rem;
  }

  .fretboard {
    min-width: 510px;
  }

  .noteName {
    font-size: 0.62rem;
  }

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

@media (max-width: 960px) and (orientation: landscape) and (max-height: 520px) {
  .lessonIntro {
    padding: 14px 0 14px;
  }

  .lessonIntroInner {
    gap: 10px;
  }

  .lessonIntroVisual {
    margin-top: 0;
  }

  .lessonIntroSvg {
    width: min(100%, 128px);
  }

  .display {
    font-size: 1.38rem;
  }

  .scaleHelp,
  .lessonInstruction {
    font-size: 0.84rem;
  }
}

.lessonIntro--shortLandscape {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.18) 100%),
    #fbf7ee;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.lessonIntro--shortLandscape .lessonIntroInner {
  gap: 14px;
}

.lessonIntro--shortLandscape .lessonIntroSvg {
  width: min(100%, 144px);
}

.lessonIntro--shortLandscape .lessonIntroSvg-panel {
  opacity: 0;
}

.lessonIntro--shortLandscape .display {
  font-size: clamp(1.75rem, 2.6vw, 2.2rem);
}

.lessonIntro--shortLandscape .scaleHelp,
.lessonIntro--shortLandscape .lessonInstruction {
  font-size: 0.9rem;
  line-height: 1.5;
}

@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, background 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: row;
    align-items: center;
  }

  .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;
  }
}

@media (min-width: 761px) {
  .chordGrid,
  .chordBridge .chordGrid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
}
