:root {
  color-scheme: dark;
  --bg: #07111f;
  --panel: #0c1a2e;
  --panel2: #112040;
  --line: #1f3352;
  --text: #e8eef7;
  --muted: #94a3b8;
  --accent: #00b4d8;
  --accent2: #33c9e8;
  --warm: #ff9d80;
  --red: #fca5a5;
  --radius: 20px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 16px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.48;
}
a {
  color: inherit;
}
button {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button {
  border: 0;
  background: transparent;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3,
.brand {
  font-family:
    Montserrat,
    Inter,
    ui-sans-serif,
    -apple-system,
    sans-serif;
}
h1 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  font-weight: 650;
}
h2 {
  font-size: 1.42rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
h3 {
  font-size: 1.04rem;
  line-height: 1.4;
}
p + p {
  margin-top: 0.8rem;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.88rem;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 0.75rem;
  font-weight: 650;
  color: var(--muted);
}
.accent {
  color: var(--accent);
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}
.skip {
  position: fixed;
  top: -100px;
  z-index: 1000;
  background: var(--accent);
  color: var(--bg);
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 34px 22px;
  display: flex;
  flex-direction: column;
  gap: 34px;
  background: #0a1628;
}
.brand {
  font-size: 1.6rem;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brandmark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.brandmark svg {
  display: block;
  width: 100%;
  height: 100%;
}
.profilelink {
  text-decoration: none;
  color: inherit;
}
.brand small {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.nav a {
  text-decoration: none;
  display: flex;
  gap: 12px;
  align-items: center;
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.94rem;
}
.nav a:hover {
  background: var(--panel2);
  color: var(--text);
}
.nav a.active {
  background: var(--accent);
  color: #07111f;
  font-weight: 650;
}
.nav svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.sidebottom {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--panel2);
  margin-right: 8px;
  font-size: 0.8rem;
}
.workspace {
  min-width: 0;
}
.topbar {
  padding: 23px 42px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar .status {
  font-size: 0.81rem;
  color: var(--muted);
}
main {
  max-width: 1450px;
  margin: auto;
  padding: 36px 42px 60px;
}
.pagehead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}
.pagehead .eyebrow {
  margin-bottom: 10px;
}
.pagehead p {
  margin-top: 10px;
  max-width: 630px;
  color: var(--muted);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background: var(--accent);
  color: #07111f;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  min-height: 46px;
  white-space: normal;
}
.btn:hover {
  background: #33c9e8;
}
.btn.secondary {
  background: var(--panel2);
  border-color: var(--line);
  color: var(--text);
}
.btn.secondary:hover {
  background: #1a2d4d;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn.danger {
  color: var(--red);
  background: transparent;
  border-color: var(--line);
}
.btn.tiny {
  padding: 7px 12px;
  min-height: 38px;
  font-size: 0.86rem;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.stack {
  display: grid;
  gap: 20px;
}
.grid2 {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(270px, 1fr);
  gap: 22px;
}
.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-width: 0;
}
.cardhead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.cardhead h2 {
  font-size: 1.15rem;
}
.tag {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 10px;
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.tag.lime {
  background: #00b4d814;
  border-color: #00b4d840;
  color: var(--accent);
}
.sessionsteps {
  display: grid;
  gap: 0;
  margin: 16px 0 20px;
}
.step {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.91rem;
}
.step:last-child {
  border: 0;
}
.step span:last-child {
  margin-left: auto;
  white-space: nowrap;
  color: var(--muted);
  font-size: 0.8rem;
}
.step input {
  accent-color: var(--accent);
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.step:has(input:checked) {
  color: var(--muted);
}
.step:has(input:checked) b {
  text-decoration: line-through;
}
.timer {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.06em;
}
.progress {
  height: 5px;
  border-radius: 5px;
  background: var(--line);
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 0.3s;
}
.stat {
  font-size: 2rem;
  line-height: 1.2;
}
.statdesc {
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 5px;
}
.toolcard {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 15px;
}
.toolicon {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 1.3rem;
  color: var(--accent);
}
.toolcard h3 {
  margin-bottom: 2px;
}
.toolcard .arrow {
  margin-left: auto;
  font-size: 1.4rem;
  color: var(--muted);
}
.fretcard {
  padding: 24px 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0f2038, #0a1628);
}
.fretcard .cardhead,
.fretcard .controls,
.fretcard .fretfoot {
  margin-left: 24px;
  margin-right: 24px;
}
.controls {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: 0.85rem;
  color: var(--muted);
}
select,
input[type='number'],
input[type='text'],
textarea {
  background: #061020;
  color: var(--text);
  border: 1px solid #2a4064;
  border-radius: 9px;
  padding: 10px 12px;
  min-height: 45px;
  max-width: 100%;
}
select {
  padding-right: 25px;
}
input[type='range'] {
  accent-color: var(--accent);
  width: 100%;
  height: 24px;
  cursor: pointer;
}
.fretwrap {
  overflow-x: auto;
  padding: 0 20px 12px;
  scrollbar-color: #2a4064 #0a1628;
}
.fretboard {
  position: relative;
  display: grid;
  grid-template-columns: 44px repeat(13, minmax(48px, 1fr));
  grid-template-rows: 24px repeat(6, 42px);
  min-width: 725px;
  isolation: isolate;
}
.fretboard .fretno {
  text-align: center;
  font-family: ui-monospace, monospace;
  font-size: 0.76rem;
  color: #94a3b8;
  display: grid;
  place-items: center;
}
.fretboard .stringlabel {
  font-size: 0.8rem;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.fretcell {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 2px solid #6b7a90;
  min-width: 0;
}
.fretcell::before {
  content: '';
  position: absolute;
  inset: 50% 0 auto;
  height: var(--gauge, 1px);
  background: #9aa7b8;
  z-index: -1;
}
.fretcell.open {
  border-right: 5px solid #c3bba0;
}
.fretcell.marker {
  background: #ffffff04;
}
.note {
  width: 31px;
  height: 31px;
  background: #163a52;
  border: 1px solid #22a7c9;
  color: #e0f7fb;
  border-radius: 50%;
  font-family: ui-monospace, monospace;
  font-weight: 600;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  padding: 0;
  transition:
    transform 0.12s,
    background 0.12s;
}
.note.root {
  background: var(--accent);
  border: 2px solid var(--accent);
  color: #07111f;
  box-shadow: 0 0 0 3px #00b4d824;
}
.note.off {
  background: #0f2038;
  border-color: #2a4064;
  color: #a9b6c8;
  opacity: 0.7;
}
.note:hover,
.note.sounding {
  transform: scale(1.22);
  background: var(--text);
  color: #07111f;
}
.fretfoot {
  padding-top: 18px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.notechips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.notechip {
  display: grid;
  place-items: center;
  min-width: 42px;
  line-height: 1.35;
}
.notechip b {
  font-size: 1.15rem;
}
.notechip small {
  font-size: 0.75rem;
  color: var(--muted);
}
.legend {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.legend i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  background: var(--accent);
  margin-right: 3px;
}
.insight {
  border-left: 3px solid var(--accent);
  padding: 2px 0 2px 16px;
  margin-top: 20px;
  color: #cbd5e1;
  font-size: 0.92rem;
}
.lessonlist {
  display: grid;
  gap: 10px;
}
.lessonitem {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 17px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.lessonitem:hover {
  background: var(--panel2);
  border-color: #3a5278;
}
.lessonnum {
  font-size: 0.85rem;
  color: var(--accent);
  min-width: 25px;
}
.lessonitem p {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 2px;
}
.lessonitem .check {
  margin-left: auto;
}
.groupheading {
  margin: 28px 0 13px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.reading {
  max-width: 760px;
  font-size: 1.04rem;
}
.reading .lead {
  font-size: 1.17rem;
  line-height: 1.75;
  color: #cbd5e1;
  margin: 24px 0;
}
.reading h2 {
  margin: 30px 0 12px;
}
.reading p {
  line-height: 1.8;
  color: #cbd5e1;
  margin-bottom: 13px;
}
.reading .practice {
  padding: 24px;
  border: 1px solid #00b4d850;
  background: #00b4d808;
  border-radius: 15px;
  margin: 26px 0;
}
.reading .practice h2 {
  margin: 0 0 12px;
}
.quiz {
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 24px;
}
.answers {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}
.answer {
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 13px 16px;
  background: var(--panel);
}
.answer:hover {
  border-color: var(--accent);
}
.answer.correct {
  background: #00b4d820;
  border-color: var(--accent);
}
.answer.wrong {
  background: #fca5a514;
  border-color: var(--red);
}
.feedback {
  padding: 15px;
  background: var(--panel2);
  border-radius: 10px;
  min-height: 24px;
}
.diagram {
  margin: 22px 0;
  background: #f8fafc;
  color: #0f172a;
  padding: 20px;
  border-radius: 14px;
  overflow: auto;
}
.diagram svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
}
.tablewrap {
  overflow-x: auto;
  margin: 20px 0;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.89rem;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
  vertical-align: top;
}
th {
  color: var(--accent);
  font-weight: 600;
}
td {
  color: #cbd5e1;
}
td:first-child {
  font-weight: 550;
}
.bpmnumber {
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 1;
  letter-spacing: -0.055em;
  font-weight: 500;
}
.metrobeats {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}
.beat {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid #3a5278;
  color: var(--muted);
  transition: background 0.05s;
}
.beat.on {
  background: var(--accent);
  color: #07111f;
  border-color: var(--accent);
  box-shadow: 0 0 35px #00b4d830;
}
.beat:first-child {
  border-width: 3px;
}
.center {
  text-align: center;
}
.metrocounter {
  width: 86px;
  text-align: center;
}
.bigcontrol {
  width: min(100%, 440px);
  margin: 25px auto;
}
.tunerread {
  font-size: 7rem;
  line-height: 1.1;
  font-weight: 550;
  letter-spacing: -0.08em;
  min-height: 130px;
}
.tunerread small {
  font-size: 2rem;
  letter-spacing: 0;
}
.tunerstatus {
  min-height: 32px;
  color: var(--muted);
}
.meter {
  position: relative;
  height: 86px;
  max-width: 500px;
  margin: 28px auto 14px;
  border-bottom: 2px solid var(--line);
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent calc(10% - 1px),
    #3a527866 10%
  );
}
.meter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 45%;
  width: 10%;
  height: 100%;
  background: #00b4d820;
  border-left: 1px solid #00b4d850;
  border-right: 1px solid #00b4d850;
}
.needle {
  position: absolute;
  bottom: -6px;
  left: 50%;
  height: 82px;
  width: 3px;
  background: var(--warm);
  transition: left 0.14s;
}
.meterlabels {
  display: flex;
  justify-content: space-between;
  max-width: 500px;
  margin: 0 auto 25px;
  font-size: 0.82rem;
  color: var(--muted);
}
.strings {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.strings button {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 9px 14px;
  min-width: 57px;
  display: grid;
  background: var(--panel2);
}
.strings button b {
  font-size: 1.3rem;
}
.strings button small {
  font-size: 0.73rem;
  color: var(--muted);
}
.strings button.active {
  border-color: var(--accent);
  color: var(--accent);
}
.jamchords {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0;
}
.jamchord {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--muted);
}
.jamchord.active {
  background: var(--accent);
  color: #07111f;
  border-color: var(--accent);
}
.earanswers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.earanswers button {
  min-height: 70px;
}
.rangeheading {
  display: flex;
  justify-content: space-between;
}
.callout {
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--panel2);
  color: #cbd5e1;
  margin: 20px 0;
}
.dangertext {
  color: var(--red);
}
.week {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.week b {
  color: var(--accent);
}
textarea {
  width: 100%;
  min-height: 160px;
  line-height: 1.6;
  resize: vertical;
}
.checks {
  display: grid;
  gap: 12px;
  margin: 20px 0;
}
.checks label {
  display: flex;
  gap: 12px;
}
.checks input {
  accent-color: var(--accent);
  width: 18px;
}
.sessionlog {
  margin-top: 20px;
  max-height: 290px;
  overflow: auto;
}
.logentry {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: 0.88rem;
}
.link {
  color: var(--accent);
  text-underline-offset: 4px;
}
.footertext {
  margin-top: 30px;
  font-size: 0.82rem;
  color: var(--muted);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #07111f;
  padding: 12px 22px;
  border-radius: 10px;
  z-index: 999;
  box-shadow: 0 8px 40px #0006;
  display: none;
  max-width: 90vw;
}
#toast.show {
  display: block;
}
.hidden {
  display: none !important;
}
details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 12px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
.printlink {
  white-space: nowrap;
}
section {
  min-width: 0;
}
audio {
  width: 100%;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
.kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.75rem;
}
.notice {
  border-left: 3px solid var(--warm);
  padding-left: 15px;
  color: var(--muted);
  font-size: 0.9rem;
}
.note.dim {
  opacity: 0.22;
}
.note.playing,
.note.dim.playing {
  opacity: 1;
  background: var(--accent);
  color: #07111f;
  box-shadow: 0 0 0 4px #00b4d850;
  transform: scale(1.18);
  z-index: 2;
}
.tab {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84rem;
  line-height: 1.55;
  overflow-x: auto;
  background: var(--panel2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  border-radius: 12px;
  margin: 10px 0 0;
}
.phrase-card h3 {
  margin-bottom: 2px;
}
#improviso-content .repertoire-player {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
#improviso-content .repertoire-tone {
  flex: 1 1 100%;
  min-width: 0;
}
#improviso-content .repertoire-tone select {
  width: 100%;
  max-width: 100%;
}
.trail-steps {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 10px;
}
.trail-step {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.trail-step.next {
  border-color: var(--accent);
}
.trail-step.done b {
  color: var(--muted);
}
.trail-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel2);
  font-weight: 650;
}
.trail-step.done .trail-num {
  background: var(--accent);
  color: #07111f;
}
.trail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
@media (max-width: 730px) {
  .trail-step {
    grid-template-columns: 30px 1fr;
  }
  .trail-actions {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
  }
}
.suggest {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.suggest-item {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: var(--panel2);
}
.suggest-item:hover {
  border-color: var(--accent);
}
.suggest-item .tag {
  justify-self: start;
}
.quiz-item + .quiz-item {
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.topbrand {
  display: none;
}
.exportnotice {
  margin-bottom: 18px;
}
#toast .btn {
  margin-left: 10px;
  vertical-align: middle;
}
.strum-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
.strum-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  background: var(--panel2);
}
.strum-item.active {
  border-color: var(--accent);
}
.strum-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.strum-slot {
  display: grid;
  place-items: center;
  width: 44px;
  height: 58px;
  border-radius: 10px;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: 1.3rem;
  line-height: 1;
  font-style: normal;
}
.strum-slot i {
  font-style: normal;
}
.strum-slot small {
  font-size: 0.7rem;
  color: var(--muted);
}
.strum-slot.beat {
  border-color: #3a5278;
}
.strum-slot.k-P {
  background: #061020;
}
.strum-slot.k-rest {
  opacity: 0.45;
}
.strum-slot.on {
  background: var(--accent);
  color: #07111f;
  transform: scale(1.08);
  opacity: 1;
}
.strum-slot.on small {
  color: #07111f;
}
.heatmap {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(7, 12px);
  grid-auto-columns: 12px;
  gap: 3px;
  margin-top: 12px;
  overflow-x: auto;
}
.heatmap i {
  display: block;
  border-radius: 3px;
  background: #0f2038;
}
.heatmap .lv1 {
  background: #00b4d840;
}
.heatmap .lv2 {
  background: #00b4d880;
}
.heatmap .lv3 {
  background: #00b4d8c0;
}
.heatmap .lv4 {
  background: var(--accent);
}
.harmony-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.harmony-cell {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel2);
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
}
.harmony-cell b {
  font-size: 1.15rem;
}
@media (min-width: 900px) {
  .fretboard {
    grid-template-rows: 24px repeat(6, 50px);
  }
  .note {
    width: 36px;
    height: 36px;
    font-size: 0.88rem;
  }
}
.take {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.take audio {
  width: 220px;
  height: 34px;
}
@media (max-width: 730px) {
  .take {
    grid-template-columns: 1fr 1fr;
  }
  .take audio {
    width: 100%;
    grid-column: 1 / -1;
  }
}
@media (min-width: 1500px) {
  main {
    padding-top: 44px;
  }
  .grid2 {
    gap: 28px;
  }
  .card {
    padding: 28px;
  }
  .fretcard {
    padding: 28px 0;
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 196px minmax(0, 1fr);
  }
  .sidebar {
    padding: 28px 13px;
  }
  main {
    padding: 30px 25px;
  }
  .topbar {
    padding: 20px 25px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .grid3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .toolcard {
    padding: 18px;
  }
  .toolicon {
    display: none;
  }
}
@media (max-width: 730px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    display: block;
    padding: 20px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 1.5rem;
  }
  .brand small {
    display: none;
  }
  .nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 5px;
    margin-top: 20px;
    padding-bottom: 12px;
    scrollbar-width: thin;
  }
  .nav a {
    white-space: nowrap;
    padding: 9px 12px;
    font-size: 0.87rem;
  }
  .nav svg {
    width: 17px;
  }
  .sidebottom {
    display: none;
  }
  .topbar {
    padding: 13px 18px;
  }
  .topbar .status {
    display: none;
  }
  main {
    padding: 26px 18px 45px;
  }
  .pagehead {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 22px;
  }
  .grid3,
  .equal {
    grid-template-columns: 1fr;
  }
  .grid3 .toolicon {
    display: grid;
  }
  .card {
    padding: 21px;
  }
  .fretcard {
    padding: 22px 0;
  }
  .fretcard .cardhead,
  .fretcard .controls,
  .fretcard .fretfoot {
    margin-left: 20px;
    margin-right: 20px;
  }
  .fretfoot {
    gap: 15px;
  }
  .bpmnumber {
    font-size: 5rem;
  }
  .earanswers {
    grid-template-columns: 1fr 1fr;
  }
  .cardhead {
    align-items: flex-start;
  }
  .reading .lead {
    font-size: 1.1rem;
  }
  .week {
    grid-template-columns: 60px 1fr;
  }
  h1 {
    font-size: 2rem;
  }
  .btn {
    padding: 10px 14px;
  }
  .controls select {
    max-width: 100%;
    font-size: 0.9rem;
  }
  .controls .field {
    min-width: 0;
    max-width: 100%;
  }
  .printlink {
    font-size: 0.82rem;
  }
  .brandmark {
    width: 30px;
    height: 30px;
  }
  .timer {
    font-size: 2.2rem;
  }
  .tunerread {
    font-size: 6rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .btn,
  .controls,
  .quiz,
  .footertext,
  #toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  body {
    background: #fff;
    color: #111;
  }
  main {
    max-width: none;
    padding: 0;
  }
  .card,
  .diagram {
    border: 1px solid #aaa;
    background: #fff;
    color: #111;
    break-inside: avoid;
  }
  .reading p,
  .muted,
  td {
    color: #222;
  }
  h1,
  h2,
  h3,
  th,
  .eyebrow {
    color: #111;
  }
  .pagehead {
    margin: 0 0 20px;
  }
  .reading {
    max-width: none;
  }
  a {
    color: #111;
  }
  .reading .practice {
    border-color: #aaa;
    background: #fafafa;
  }
}

.toolicon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.chordpreview {
  display: flex;
  align-items: center;
  gap: 22px;
}
.chordcurrent {
  width: 180px;
  flex-shrink: 0;
  max-height: 340px;
  overflow: auto;
}
.chordcurrent svg {
  width: 100%;
  display: block;
}
.chordname {
  font-size: 2.4rem;
  margin: 10px 0;
}
.tonebox {
  padding: 18px 0 0;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.tonechoices {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.tonechoices button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 14px;
  font-size: 0.88rem;
}
.tonechoices button.active {
  background: var(--accent);
  color: #07111f;
  border-color: var(--accent);
}
.chordeditorwrap {
  overflow-x: auto;
}
.chordeditor {
  display: grid;
  min-width: 740px;
  gap: 5px;
  align-items: center;
}
.chordeditor .fretno {
  font-family: monospace;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.mute-string {
  min-height: 43px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 0.83rem;
}
.mute-string small {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
}
.buildnote {
  height: 39px;
  border: 1px solid #2a4064;
  border-radius: 7px;
  background: #0f2038;
  color: #a9b6c8;
  font-size: 0.8rem;
}
.buildnote.selected {
  background: var(--accent);
  color: #07111f;
  border-color: var(--accent);
  font-weight: 700;
}
.buildnote:hover {
  border-color: var(--accent);
}
.voicinggrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.voicingcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 18px 12px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.voicingcard:hover {
  border-color: var(--accent);
  background: var(--panel2);
}
.voicingcard svg {
  width: 145px;
  max-width: 100%;
  height: 180px;
}
.savedchords {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.savedchord {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 15px 18px;
  display: grid;
  text-align: left;
  gap: 6px;
}
.savedchord:hover {
  border-color: var(--accent);
}
@media (max-width: 1150px) {
  .voicinggrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 730px) {
  .voicinggrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chordpreview {
    gap: 14px;
    flex-wrap: wrap;
  }
  .chordcurrent {
    width: 145px;
  }
  .chordname {
    font-size: 2rem;
  }
  .tonechoices button {
    flex: 1;
    padding: 10px;
    font-size: 0.85rem;
  }
  .topbar {
    flex-wrap: wrap;
  }
  .sidebar {
    padding-top: 18px;
  }
  .nav a {
    padding: 9px 11px;
  }
}

@media (min-width: 731px) {
  .sidebar {
    overflow-y: auto;
  }
  .nav {
    flex-shrink: 0;
  }
}

/* Repertoire, readable chord diagrams and four primary navigation groups. */
.shell {
  grid-template-columns: 210px minmax(0, 1fr);
}
.sidebar {
  padding-left: 16px;
  padding-right: 16px;
}
.subnav {
  padding: 12px 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.subnav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.88rem;
  color: var(--muted);
  text-decoration: none;
  min-height: 44px;
}
.subnav a.active {
  background: var(--panel2);
  color: var(--accent);
  border-color: var(--line);
}
.subnav a:hover {
  color: var(--text);
  background: var(--panel);
}
.subnav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}
.diagram-line {
  stroke: var(--muted);
}
.diagram-index,
.diagram-string,
.diagram-mute {
  fill: var(--muted);
  font-family: inherit;
  font-size: 14px;
}
.diagram-mute {
  font-size: 18px;
}
.diagram-barre {
  stroke: var(--accent);
  stroke-width: 14;
  stroke-linecap: round;
  opacity: 0.75;
}
.diagram-open {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
}
.diagram-dot {
  fill: var(--accent);
}
.diagram-finger {
  fill: #07111f;
  font-size: 13px;
  font-family: Arial, sans-serif;
  font-weight: 700;
}
.diagram-held {
  stroke: var(--warm);
  stroke-width: 2;
  fill: none;
}
.diagram-fallback {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 3px;
}
.chord-diagram {
  display: block;
  width: 100%;
  height: auto;
}
.chordcurrent {
  width: 200px;
  max-height: none;
  overflow: visible;
}
.voicingcard svg {
  width: 180px;
  height: auto;
  max-width: 100%;
}
.voicingcard {
  padding: 18px 14px;
}
.diagram-settings {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
#repertorio-content {
  container-type: inline-size;
}
.repertoire-head {
  margin-bottom: 20px;
}
.repertoire-head h1 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}
.style-nav {
  margin-bottom: 10px;
}
.style-nav a {
  font-weight: 650;
}
.collection-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.collection-nav a {
  font-size: 0.95rem;
  min-height: 46px;
  display: flex;
  align-items: center;
  padding: 8px 3px;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  color: var(--muted);
}
.collection-nav a.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
.repertoire-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.repertoire-song {
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  text-decoration: none;
  min-width: 0;
}
.repertoire-song.active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 var(--accent);
}
.repertoire-song:hover {
  background: var(--panel2);
}
.repertoire-song h2 {
  font-size: 1.06rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.repertoire-song p {
  font-size: 0.87rem;
  color: var(--muted);
  line-height: 1.4;
}
.repertoire-song .eyebrow {
  font-size: 0.73rem;
  letter-spacing: 0.08em;
}
.song-status {
  margin-top: auto;
  padding-top: 4px;
  font-size: 0.8rem;
  color: var(--accent);
}
.repertoire-workbench {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  min-width: 0;
}
.workbench-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.workbench-heading h2 {
  font-size: 1.5rem;
  margin: 7px 0;
}
.repertoire-source-note {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 880px;
  margin-top: 12px;
}
.repertoire-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 20px 0;
}
.repertoire-controls .field {
  flex: 1;
  min-width: 145px;
}
.repertoire-controls select {
  width: 100%;
  font-size: 1rem;
}
.repertoire-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 0 18px;
  border-bottom: 1px solid var(--line);
}
.sequence-chord {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 2px 9px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 90px;
  padding: 9px 13px;
  color: var(--muted);
  flex: 1;
}
.sequence-chord small {
  grid-row: span 2;
  font-size: 0.78rem;
}
.sequence-chord b {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.sequence-chord span {
  font-size: 0.75rem;
}
.sequence-chord.in-range {
  border-bottom-color: var(--muted);
}
.sequence-chord[aria-pressed='true'] {
  border-color: var(--accent);
  background: #163a52;
  color: var(--accent);
}
.repertoire-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 28px;
  padding: 22px 0 10px;
}
.playing-chord {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.playing-chord .chord-diagram {
  width: 205px;
  max-width: 100%;
}
.stage-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.stage-chordname {
  font-size: 4.3rem;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.055em;
  color: var(--accent);
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.stage-chordname span,
.next-chordname span {
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
}
.next-chord {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  column-gap: 15px;
  align-items: center;
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.next-chord .stage-kicker,
.next-chordname {
  grid-column: 1/-1;
}
.next-chordname {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 4px 0 10px;
}
.next-chord .chord-diagram {
  width: 156px;
  max-width: 100%;
}
.next-chord p {
  font-size: 0.88rem;
  line-height: 1.65;
}
.diagram-legend {
  color: var(--muted);
  font-size: 0.81rem;
  margin: 12px 0 18px;
  max-width: 950px;
}
.repertoire-beatrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.repertoire-beatrow p {
  font-size: 0.88rem;
  color: var(--muted);
}
.repertoire-beats {
  display: flex;
  gap: 8px;
}
.repertoire-beats span {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 33px;
  border-radius: 6px;
  background: var(--panel2);
  color: var(--muted);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}
.repertoire-beats span.on {
  background: var(--accent);
  color: #07111f;
}
.repertoire-player {
  display: grid;
  grid-template-columns: 150px minmax(150px, 1fr) minmax(150px, 1fr) auto;
  align-items: center;
  gap: 18px;
  position: sticky;
  top: 10px;
  z-index: 20;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px;
  margin-top: 20px;
  box-shadow: 0 8px 24px #0003;
}
.repertoire-player > .btn {
  min-height: 48px;
}
.tempo-control {
  min-width: 0;
  display: grid;
  gap: 7px;
}
.tempo-control label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
}
.tempo-control output {
  white-space: nowrap;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.tempo-control input {
  width: 100%;
  accent-color: var(--accent);
  padding: 0;
  min-height: 32px;
}
.repertoire-tone,
.repertoire-loop {
  min-width: 0;
}
.repertoire-tone select {
  width: 100%;
  font-size: 1rem;
}
.repertoire-loop > .small {
  display: block;
  margin-bottom: 5px;
}
.repertoire-loop .row {
  gap: 8px;
  flex-wrap: nowrap;
}
.repertoire-loop .field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.repertoire-loop label {
  font-size: 0.8rem;
}
.repertoire-loop select {
  padding: 7px;
  min-height: 42px;
  min-width: 52px;
}
.repertoire-instructions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
  padding-top: 8px;
}
.repertoire-learning {
  margin-top: 24px;
}
.repertoire-task h3 {
  margin: 20px 0 8px;
}
.repertoire-task p {
  color: var(--muted);
}
.repertoire-learning textarea {
  min-height: 110px;
}
.repertoire-learning input[type='number'] {
  width: 100%;
  max-width: 145px;
}
.repertoire-learning .controls {
  align-items: start;
}
.lesson-chip {
  display: block;
  color: var(--accent);
  font-size: 0.88rem;
  text-underline-offset: 4px;
}
.repertoire-print-atlas {
  display: none;
}
.repertoire-logrow {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.repertoire-logrow:last-child {
  border-bottom: 0;
}
.repertoire-logrow > span {
  white-space: nowrap;
  color: var(--accent);
}
.practice-focus {
  display: block;
  min-height: 100vh;
}
.practice-focus .sidebar,
.practice-focus .topbar,
.practice-focus .subnav,
.practice-focus .repertoire-picker,
.practice-focus .repertoire-learning,
.practice-focus .footertext,
.practice-focus .repertoire-intro {
  display: none;
}
.practice-focus main {
  max-width: 1350px;
  padding: 22px 30px 35px;
}
.practice-focus .repertoire-head {
  margin-bottom: 18px;
}
.practice-focus .stage-chordname {
  font-size: 5.4rem;
}
.practice-focus .playing-chord .chord-diagram {
  width: 240px;
}
.practice-focus .repertoire-player {
  top: 10px;
}
@container (max-width:980px) {
  .repertoire-player {
    grid-template-columns: 150px 1fr 1fr;
  }
  .repertoire-loop {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .repertoire-loop > .small {
    margin-bottom: 0;
  }
  .next-chord {
    grid-template-columns: 1fr;
  }
  .next-chord p {
    max-width: 300px;
  }
  .next-chord .chord-diagram {
    width: 160px;
  }
  .repertoire-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container (max-width:670px) {
  .repertoire-player {
    grid-template-columns: 135px minmax(0, 1fr);
    gap: 12px;
    position: static;
    box-shadow: none;
  }
  .repertoire-tone {
    grid-column: 1/-1;
  }
  .repertoire-loop {
    flex-wrap: wrap;
  }
  .repertoire-stage {
    gap: 16px;
    grid-template-columns: 1fr 1fr;
  }
  .next-chord {
    padding-left: 16px;
  }
  .repertoire-workbench {
    padding: 17px;
  }
  .playing-chord .chord-diagram {
    width: 180px;
  }
  .stage-chordname {
    font-size: 3.5rem;
  }
  .next-chordname {
    font-size: 2.2rem;
  }
  .repertoire-controls .field {
    min-width: 135px;
  }
  .repertoire-source-note {
    font-size: 0.86rem;
  }
}
@container (max-width:450px) {
  .repertoire-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .repertoire-song {
    padding: 14px;
  }
  .repertoire-song p {
    font-size: 0.85rem;
  }
  .repertoire-stage {
    grid-template-columns: 1fr;
  }
  .next-chord {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 18px 0 0;
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .next-chord .chord-diagram {
    width: 140px;
  }
  .next-chord p {
    font-size: 0.85rem;
  }
  .repertoire-player {
    grid-template-columns: 1fr;
  }
  .repertoire-player > * {
    grid-column: 1;
  }
  .repertoire-controls {
    gap: 10px;
  }
  .repertoire-controls .field {
    min-width: 100%;
    width: 100%;
  }
  .sequence-chord {
    min-width: 100px;
  }
  .repertoire-beatrow p {
    font-size: 0.82rem;
  }
  .collection-nav {
    gap: 10px;
  }
  .collection-nav a {
    font-size: 0.86rem;
  }
  .repertoire-logrow {
    flex-wrap: wrap;
  }
}
@media (max-width: 730px) {
  .shell {
    display: block;
  }
  .sidebar {
    padding: 18px 16px 0;
  }
  .sidebar .nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 4px;
    margin-top: 16px;
  }
  .nav a {
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    white-space: normal;
    padding: 9px 4px;
    font-size: 0.82rem;
    text-align: center;
  }
  .nav svg {
    width: 20px;
    height: 20px;
  }
  .subnav {
    padding: 10px 16px;
    gap: 5px;
  }
  .subnav a {
    font-size: 0.84rem;
    padding: 8px 9px;
  }
  .subnav svg {
    width: 16px;
    height: 16px;
  }
  .practice-focus main {
    padding: 18px 14px 30px;
  }
  .practice-focus .stage-chordname {
    font-size: 4.5rem;
  }
  .chordcurrent {
    width: 185px;
  }
  .repertoire-logrow > span {
    white-space: normal;
  }
}
@media print {
  :root {
    --bg: #fff;
    --panel: #fff;
    --panel2: #fff;
    --line: #999;
    --text: #111;
    --muted: #333;
    --accent: #111;
    --warm: #777;
  }
  .subnav,
  .repertoire-picker,
  .repertoire-player,
  .repertoire-controls,
  .repertoire-stage,
  .diagram-legend,
  .repertoire-beatrow,
  .repertoire-learning form,
  .sequence-chord,
  .lesson-chip {
    display: none !important;
  }
  #repertorio-content {
    container-type: normal;
  }
  .repertoire-workbench {
    border: 0;
    padding: 0;
    box-shadow: none;
  }
  .repertoire-source-note {
    font-size: 10pt;
  }
  .repertoire-instructions {
    display: none;
  }
  .repertoire-learning {
    display: block !important;
  }
  .repertoire-learning > .card:nth-child(2) {
    display: none;
  }
  .repertoire-learning > .card {
    padding: 12px 0;
    border: 0;
  }
  .repertoire-task h3 {
    margin-top: 12px;
  }
  .repertoire-learning p {
    font-size: 11pt;
  }
  .repertoire-print-atlas {
    display: block;
    margin-top: 18px;
  }
  .repertoire-print-atlas > div {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
  }
  .repertoire-print-atlas figure {
    margin: 0;
    break-inside: avoid;
  }
  .repertoire-print-atlas svg {
    width: 150px;
    max-width: 100%;
  }
  .diagram-finger {
    fill: #fff;
  }
  .diagram-held {
    display: none;
  }
  .repertoire-sequence {
    display: none;
  }
  .practice-focus main {
    padding: 0;
  }
  .repertoire-head h1 {
    font-size: 20pt;
  }
  .repertoire-workbench h2 {
    font-size: 16pt;
  }
}
/* ——— Mobile: barra de navegação fixa embaixo ——— */
@media (max-width: 730px) {
  .sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    z-index: 50;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: #0a1628;
    display: block;
  }
  .sidebar .brand,
  .sidebottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    margin: 0;
    padding: 0;
    gap: 2px;
    overflow: visible;
  }
  .nav a {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 4px;
    font-size: 0.7rem;
    border-radius: 10px;
    white-space: nowrap;
  }
  .nav svg {
    width: 20px;
    height: 20px;
  }
  .topbrand {
    display: block;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    overflow: hidden;
    margin-right: 10px;
  }
  .topbrand svg {
    display: block;
    width: 100%;
    height: 100%;
  }
  main {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .practice-focus .sidebar {
    display: none;
  }
}
/* Círculo de quintas (Harmonia) */
.harmony-top {
  align-items: center;
}
.wheelwrap {
  display: flex;
  justify-content: center;
}
.wheel {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
}
.wheel-seg path {
  fill: var(--panel2);
  stroke: var(--bg);
  stroke-width: 2;
  transition: fill 0.15s;
}
.wheel-seg text {
  fill: var(--text);
  font-weight: 600;
  pointer-events: none;
}
.wheel-seg {
  cursor: pointer;
  outline: none;
}
.wheel-seg:hover path,
.wheel-seg:focus-visible path {
  fill: #1b3a5e;
}
.wheel-seg.in path {
  fill: #163a52;
}
.wheel-seg.tonic path {
  fill: #1e5f7a;
}
.wheel-seg:focus-visible path {
  stroke: var(--accent);
  stroke-width: 3;
}
.wheel-window {
  transform-origin: 200px 200px;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.wheel-window path {
  fill: #00b4d81a;
  stroke: var(--accent);
  stroke-width: 4;
  stroke-linejoin: round;
}
.wheel-degree {
  fill: var(--accent2);
  font-weight: 700;
  letter-spacing: 0.04em;
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}
.wheel-center-key {
  fill: var(--text);
  font-size: 30px;
  font-weight: 800;
  font-family: Montserrat, Inter, sans-serif;
}
.wheel-center-sub {
  fill: var(--muted);
  font-size: 11px;
}
.harmony-grid {
  align-items: start;
}
.harmony-cell {
  position: relative;
  align-content: start;
  transition: outline-color 0.15s;
  outline: 2px solid transparent;
}
.harmony-cell.on {
  outline-color: var(--accent);
  box-shadow: 0 0 0 4px #00b4d833;
}
.harmony-diagram {
  display: none;
  width: 100%;
  max-width: 150px;
  margin-top: 4px;
}
.harmony-diagram .chord-diagram {
  width: 100%;
  height: auto;
}
.harmony-cell.show .harmony-diagram {
  display: block;
}
@media (hover: hover) {
  .harmony-cell:hover .harmony-diagram {
    display: block;
  }
}
