@font-face {
  font-family: Bravura;
  src: url("./assets/Bravura.otf") format("opentype");
  font-display: block;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: #f6f5ef;
  color: #203932;
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
button,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.65;
}
button:focus-visible,
select:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 3px solid #8060c7;
  outline-offset: 4px;
}
button {
  transition:
    background 0.15s,
    transform 0.15s;
}
button:hover:not(:disabled) {
  filter: brightness(0.97);
}
.shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  min-height: 100vh;
}
.sidebar {
  background: #173c36;
  color: #fff;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  font-size: 25px;
  font-weight: 760;
  letter-spacing: -1px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brandmark {
  color: #d4ed9d;
  font-size: 36px;
}
.brand small {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  color: #b8d0c8;
  font-weight: 500;
}
.sideintro {
  font-size: 14px;
  color: #c5d5cc;
  margin: 27px 0 22px;
}
.nav {
  display: grid;
  gap: 9px;
}
.nav button {
  color: #d7e3dc;
  text-align: left;
  border: 1px solid transparent;
  background: none;
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav button.active {
  background: #d4ed9d;
  color: #193d36;
}
.nav button .num {
  font-size: 13px;
  border: 1px solid #738e82;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.nav button.active .num {
  border-color: #839b59;
}
.nav .navname {
  font-weight: 600;
}
.sidebottom {
  margin-top: auto;
  padding-top: 24px;
  color: #bed2c8;
  font-size: 13px;
}
.tinybar {
  height: 5px;
  background: #31544a;
  border-radius: 5px;
  margin: 10px 0;
}
.tinybar span {
  display: block;
  height: 100%;
  background: #d4ed9d;
  border-radius: 5px;
}
.sidebottom button {
  background: none;
  border: 0;
  color: #bed2c8;
  padding: 4px 0;
  text-decoration: underline;
  font-size: 13px;
}
.main {
  max-width: 1200px;
  width: 100%;
  padding: 24px 44px 36px;
  margin: auto;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
  color: #6b796c;
}
.langs {
  background: #e9eae1;
  padding: 4px;
  border-radius: 10px;
  display: flex;
  gap: 3px;
}
.langs button {
  border: 0;
  border-radius: 7px;
  padding: 6px 13px;
  background: none;
  font-size: 14px;
  color: #4a5f55;
}
.langs button.active {
  background: #fff;
  box-shadow: 0 1px 4px #223b3215;
  color: #193d36;
  font-weight: 700;
}
.intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 23px;
}
h1 {
  font-size: clamp(29px, 3vw, 42px);
  letter-spacing: -1.5px;
  line-height: 1.12;
  margin: 8px 0 12px;
  font-weight: 730;
}
.intro p {
  color: #617163;
  margin: 0;
  font-size: 16px;
  max-width: 660px;
}
.lesson-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #50694e;
}
.lesson-tag::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  background: #769947;
  border-radius: 50%;
}
.duration {
  white-space: nowrap;
  border: 1px solid #d9dfcf;
  padding: 7px 12px;
  border-radius: 22px;
  font-size: 13px;
  color: #66715c;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(270px, 1fr);
  gap: 20px;
  align-items: start;
}
.panel {
  background: #fff;
  border: 1px solid #dfe4d8;
  border-radius: 20px;
  overflow: hidden;
}
.panelhead {
  padding: 21px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.panelhead h2 {
  font-size: 17px;
  margin: 0;
}
.pill {
  font-size: 12px;
  background: #eef2e6;
  color: #59734b;
  padding: 4px 9px;
  border-radius: 7px;
  font-weight: 600;
}
.learnbody {
  padding: 16px 24px 22px;
}
.explanation {
  margin: 0 0 12px;
  font-size: 16px;
}
.translation {
  margin: 12px 0;
  font-size: 14px;
  color: #59695d;
}
.translation summary {
  cursor: pointer;
  color: #53614e;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.translation p {
  margin: 10px 0;
  padding: 10px 12px;
  border-left: 3px solid #c5d4aa;
  background: #f5f7ef;
}
.fr {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #655876;
  margin: 14px 0;
}
.fr b {
  font-size: 11px;
  letter-spacing: 1px;
  background: #efeaf6;
  padding: 3px 6px;
  border-radius: 4px;
}
.score {
  background: #fafbf7;
  border: 1px solid #e9ecdf;
  border-radius: 13px;
  overflow: hidden;
  margin-top: 18px;
}
.score svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 182px;
  color: #243d35;
}
.music {
  font-family: Bravura;
  font-size: 40px;
  fill: currentColor;
}
.musicline {
  stroke: #a3b0a0;
  stroke-width: 1;
}
.notegroup.on {
  color: #7650b4;
}
.beatrow {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  padding: 0 15px 14px;
  min-height: 49px;
}
.beat {
  border: 1px solid #dce2d1;
  background: #fff;
  color: #5c715b;
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}
.beat.on {
  background: #d4ed9d;
  border-color: #829c55;
  color: #173c36;
  box-shadow: 0 0 0 3px #d4ed9d55;
}
.beat.strong {
  border-width: 2px;
  font-weight: 800;
}
.playbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}
.primary {
  background: #173c36;
  border: 1px solid #173c36;
  color: white;
  padding: 10px 17px;
  border-radius: 10px;
  font-weight: 600;
}
.secondary {
  background: #f4f5ed;
  border: 1px solid #dfe4d6;
  color: #365142;
  padding: 9px 13px;
  border-radius: 10px;
}
.playbar select {
  border: 1px solid #dfe4d6;
  border-radius: 9px;
  padding: 9px;
  background: white;
  color: #486044;
  font-size: 14px;
}
.checklabel {
  font-size: 13px;
  display: flex;
  gap: 6px;
  align-items: center;
  color: #66725e;
  margin: 12px 0 0;
}
.checklabel input {
  accent-color: #254939;
  width: 17px;
  height: 17px;
}
.caption {
  font-size: 13px;
  color: #707c6b;
  margin: 10px 0 0;
}
.values {
  display: flex;
  gap: 6px;
  margin-top: 16px;
}
.valuecard {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid #dce2d1;
  border-radius: 10px;
  padding: 3px 1px 8px;
  color: #344e3b;
  font-size: 12px;
}
.valuecard svg {
  width: 100%;
  height: 62px;
  display: block;
}
.valuecard.active {
  background: #f0f5e4;
  border-color: #a0b773;
}
.valuecard b {
  font-size: 14px;
  font-weight: 650;
}
.switches {
  display: flex;
  gap: 7px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.switches button {
  border: 1px solid #dddfe7;
  background: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  color: #625578;
  font-size: 14px;
}
.switches button.active {
  background: #efeaf7;
  border-color: #b6a5cc;
}
.formula {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  background: #f1edf7;
  padding: 13px;
  border-radius: 10px;
  margin-top: 14px;
  font-size: 21px;
  font-weight: 700;
  color: #624786;
}
.formula small {
  font-size: 12px;
  font-weight: 500;
  display: block;
}
.formula .extra {
  border-bottom: 3px solid #ad8aca;
}
.practice {
  padding: 20px;
}
.practice h2 {
  margin: 10px 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.3px;
}
.qtop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #758070;
}
.qtop b {
  color: #66527b;
  background: #f0ebf6;
  padding: 4px 8px;
  border-radius: 6px;
}
.question-score svg {
  height: 115px;
  width: 100%;
}
.answers {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.answer {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid #dde2d4;
  border-radius: 11px;
  padding: 12px;
  font-size: 15px;
  color: #2f4938;
  min-height: 49px;
}
.answer .letter {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #f1f3e9;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #748467;
}
.answer svg {
  width: 88px;
  height: 66px;
}
.answer.correct {
  background: #eff6e7;
  border-color: #8ca761;
}
.answer.incorrect {
  background: #fff4e9;
  border-color: #dbb78b;
}
.answer.unknown {
  border-style: dashed;
  color: #6d7666;
  background: #fafbf7;
  font-size: 14px;
}
.feedback {
  padding: 14px;
  border-radius: 11px;
  margin-top: 14px;
  background: #f5f0e7;
  color: #675233;
  font-size: 14px;
}
.feedback.good {
  background: #edf5e7;
  color: #3e5b2e;
}
.feedback strong {
  display: block;
  margin-bottom: 5px;
}
.feedback p {
  margin: 0;
}
.feedback .translation {
  margin-bottom: 0;
}
.nextrow {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nextrow button {
  font-size: 14px;
  flex: 1;
}
.quiet {
  border: 0;
  background: none;
  color: #627154;
  text-decoration: underline;
  padding: 7px;
  font-size: 14px;
}
.notebox {
  background: #eeeae0;
  padding: 14px 18px;
  border-radius: 12px;
  margin-top: 18px;
  font-size: 14px;
  color: #615e4a;
}
.notebox strong {
  color: #424c37;
}
.bar-status {
  font-size: 14px;
  margin: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.bar-status b {
  color: #725095;
}
.palette {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.palette button {
  width: calc(20% - 4px);
  border: 1px solid #dde3d3;
  border-radius: 8px;
  background: #fff;
  padding: 1px 0 5px;
  min-width: 42px;
}
.palette svg {
  width: 100%;
  height: 53px;
}
.palette span {
  font-size: 12px;
  color: #68765e;
}
.meter {
  height: 9px;
  background: #e8ecdf;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 12px;
}
.meter span {
  display: block;
  height: 100%;
  background: #bcd589;
  max-width: 100%;
  transition: width 0.2s;
}
.meter.over span {
  background: #d8aa7b;
}
.sourcefooter {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 24px;
  font-size: 12px;
  color: #78816f;
}
.sourcefooter details {
  max-width: 700px;
}
.sourcefooter a {
  color: inherit;
}
.sourcefooter summary {
  cursor: pointer;
}
.fullwidth {
  grid-column: 1/-1;
}
.results {
  padding: 30px;
}
.results h2 {
  font-size: 29px;
  margin: 0 0 12px;
}
.resultgrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.resultcell {
  padding: 17px;
  background: #f3f5ed;
  border-radius: 12px;
}
.resultcell b {
  display: block;
  font-size: 26px;
}
.resultcell span {
  font-size: 14px;
}
.hidden {
  display: none !important;
}
.audio-status {
  font-size: 13px;
  color: #59684d;
  min-height: 20px;
  margin-top: 8px;
}
.notice {
  padding: 12px;
  border: 1px solid #d8c7a9;
  border-radius: 10px;
  margin-top: 10px;
  font-size: 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1100px) {
  .main {
    padding: 24px;
  }
  .shell {
    grid-template-columns: 205px 1fr;
  }
  .sidebar {
    padding: 25px 15px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .practice {
    padding: 24px;
  }
  .answers {
    grid-template-columns: 1fr 1fr;
  }
  .question-score {
    max-width: 360px;
    margin: auto;
  }
  .resultgrid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px 17px;
  }
  .brand {
    font-size: 21px;
  }
  .brand small,
  .sideintro,
  .sidebottom {
    display: none;
  }
  .nav {
    display: flex;
    gap: 5px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .nav button {
    padding: 8px;
    white-space: nowrap;
    gap: 6px;
    border-radius: 9px;
    font-size: 12px;
  }
  .nav .num {
    width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }
  .navname {
    font-size: 12px;
  }
  .main {
    padding: 20px 16px;
  }
  .topbar {
    margin-bottom: 18px;
  }
  .eyebrow {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .intro {
    margin-bottom: 18px;
  }
  .intro p {
    font-size: 15px;
  }
  .duration {
    display: none;
  }
  .workspace {
    gap: 14px;
  }
  .panelhead {
    padding: 18px 18px 0;
  }
  .learnbody,
  .practice {
    padding: 16px 18px 20px;
  }
  .answers {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 34px;
  }
  .sourcefooter {
    display: block;
  }
  .sourcefooter > span {
    display: block;
    margin-top: 12px;
  }
  .resultgrid {
    grid-template-columns: 1fr 1fr;
  }
  .palette span {
    font-size: 11px;
  }
  .valuecard b {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.reference {
  border-top: 1px solid #e6e9dd;
  margin-top: 20px;
  padding-top: 15px;
  font-size: 14px;
}
.reference summary {
  cursor: pointer;
  font-weight: 650;
}
.refrow {
  display: grid;
  grid-template-columns: 50px 1fr 42px 1.2fr;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid #eff0e8;
  padding: 6px 0;
}
.refrow svg {
  width: 44px;
  height: 53px;
  vertical-align: middle;
}
.refrow b {
  font-size: 12px;
  display: block;
  text-align: center;
}
.refrow strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.refrow small {
  font-size: 12px;
  color: #77688a;
  display: block;
}
.feedback:focus {
  outline: 2px solid #b2be9f;
  outline-offset: 3px;
}
.note-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}
.sublesson {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e3e8d9;
}
.sublesson h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
.sublesson p {
  font-size: 14px;
}
.notation-answers {
  grid-template-columns: 1fr;
}
.notation-answers .answer {
  padding: 6px 10px;
}
.notation-answers .score {
  margin: 0;
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
}
.notation-answers .score svg {
  width: 100%;
  height: 95px;
  max-height: none;
}
.notation-answers .letter {
  flex-shrink: 0;
}
.sign-icon {
  height: 105px;
  width: 95px;
  display: block;
}
.question-sign {
  display: flex;
  justify-content: center;
}
.sign-guide {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sign-guide > div {
  text-align: center;
  font-size: 12px;
}
.sign-guide svg {
  width: 100%;
  height: 70px;
}
.cut-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 13px 0;
}
.cut-controls button {
  font-size: 13px;
  padding: 7px 9px;
}
.cut-controls .chosen {
  background: #d4ed9d;
  border-color: #8ca65e;
}
.check-cuts {
  margin-top: 2px;
}
.solution-score {
  margin-top: 16px;
}
.solution-score button {
  margin-top: 9px;
  font-size: 14px;
}
.langs button {
  padding: 6px 10px;
}
.sideintro {
  margin: 17px 0;
}
.nav {
  gap: 6px;
}
.nav button {
  padding: 10px 8px;
}
.resultgrid {
  grid-template-columns: repeat(3, 1fr);
}
.sourcefooter {
  flex-wrap: wrap;
}
.fr b {
  flex-shrink: 0;
}
@media (max-width: 680px) {
  .topbar {
    flex-wrap: wrap;
  }
  .langs {
    margin-left: auto;
  }
  .navname {
    font-size: 12px;
  }
  .resultgrid {
    grid-template-columns: 1fr 1fr;
  }
  .sign-guide {
    grid-template-columns: 1fr 1fr;
  }
  .notation-answers .score svg {
    height: 90px;
  }
  .refrow {
    grid-template-columns: 36px 1fr 32px 1.1fr;
  }
  .refrow svg {
    width: 32px;
  }
  .refrow strong,
  .refrow small {
    font-size: 12px;
  }
  .cut-controls button {
    font-size: 12px;
  }
  .sideintro {
    display: none;
  }
}
