@font-face {
  font-family: "Nunito Sans";
  src: url("vendor/nunito-sans-variable.ttf") format("truetype");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #283e4c;
  --muted: #718694;
  --line: #dceaf0;
  --sage: #718694;
  --cream: #eef7fa;
  --font: "Nunito Sans", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 14px;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
}
button:disabled {
  opacity: 0.45;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
em {
  font-family: var(--font);
  font-weight: 400;
  color: #718694;
}
[hidden] {
  display: none !important;
}
.eyebrow {
  font-size: 7px;
  letter-spacing: 1.8px;
  color: #718694;
  font-weight: 500;
}
h1 {
  font-size: 43px;
  font-weight: 500;
  letter-spacing: -1.8px;
  margin: 13px 0 12px;
}
h1 em {
  font-size: 46px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  height: 42px;
  padding: 0 22px;
  font-size: 11px;
  font-weight: 500;
}
.primary {
  background: #283e4c;
  color: #eef7fa;
  box-shadow: 0 3px 6px #283e4c0d;
}
.primary:hover {
  background: #3c5262;
}
.text-button {
  font-size: 10px;
  color: #506b7d;
  padding: 5px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.subtle-button {
  border: 1px solid #dceaf0;
  border-radius: 5px;
  background: #fff9;
  padding: 8px 12px;
  color: #506b7d;
  font-size: 10px;
}
.subtle-button:hover {
  background: #eef7fa;
}
.demo-badge {
  padding: 4px 6px;
  background: #eef7fa;
  color: #718694;
  border-radius: 3px;
  font-size: 6px;
  letter-spacing: 0.5px;
}
.workspace {
  border: 1px solid #dceaf0;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 6px 25px #3c526205;
}
.workspace-toolbar {
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 22px;
  gap: 18px;
  border-bottom: 1px solid #dceaf0;
}
.view-tabs {
  height: 100%;
  display: flex;
  gap: 26px;
  align-items: stretch;
  flex: 1;
}
.view-tab {
  font-size: 10px;
  color: #718694;
  padding: 0;
  border-bottom: 2px solid transparent;
}
.view-tab.active {
  color: #506b7d;
  border-color: #718694;
}
.part-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9px;
  color: #718694;
}
select {
  border: 1px solid #dceaf0;
  background: #fbfdfe;
  border-radius: 4px;
  padding: 5px 6px;
  font-size: 10px;
  max-width: 200px;
}
.workspace-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  min-height: 375px;
}
.visualizer-wrap {
  height: 375px;
  background: #283e4c;
  position: relative;
  overflow: hidden;
}
.visualizer-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
.visualizer-top {
  position: absolute;
  top: 20px;
  left: 23px;
  right: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 1;
}
.hand-legend {
  display: flex;
  gap: 17px;
  color: #718694;
  font-size: 8px;
}
.hand-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hand-legend i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
}
.peach {
  background: #f4d372;
}
.sage {
  background: #718694;
}
.live-label {
  font-size: 6px;
  letter-spacing: 1px;
  color: #506b7d;
}
.visualizer-hint {
  position: absolute;
  top: 49px;
  left: 20px;
  right: 20px;
  text-align: center;
  font-size: 9px;
  color: #718694;
  pointer-events: none;
  z-index: 1;
}
.key-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.key-label {
  position: absolute;
  font-size: 8px;
  transform: translate(-50%, -50%);
  color: #506b7d;
  white-space: nowrap;
}
.sheet-preview {
  padding: 25px 19px 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  background: #fbfdfe;
  overflow: hidden;
}
.sheet-preview > .eyebrow {
  font-size: 6px;
  letter-spacing: 1.2px;
}
.sheet-preview h3 {
  font-family: var(--font);
  font-size: 23px;
  font-weight: 400;
  margin-top: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.score-subtitle {
  font-size: 8px;
  color: #718694;
  margin: 7px 0 6px;
}
#score-preview-render {
  height: 230px;
  overflow: auto;
  margin: 8px -10px 12px;
  scrollbar-width: thin;
}
#score-preview-render svg {
  width: 100%;
}
.sheet-preview > .text-button {
  margin-top: auto;
}
.full-sheet-view {
  height: 460px;
  overflow: auto;
  padding: 24px;
  background: #fbfdfe;
}
.player {
  display: flex;
  align-items: center;
  padding: 14px 19px;
  gap: 15px;
  border-top: 1px solid #dceaf0;
  background: white;
}
.icon-button {
  font-size: 20px;
  color: #718694;
  width: 28px;
  height: 30px;
  display: grid;
  place-items: center;
}
.icon-button.on {
  background: #eef7fa;
  border-radius: 4px;
  color: #506b7d;
}
.play-button {
  background: #3c5262;
  color: #eef7fa;
  border-radius: 30px;
  padding: 10px 15px;
  font-size: 10px;
  min-width: 91px;
}
.timeline {
  flex: 1;
  min-width: 50px;
}
.timeline input {
  width: 100%;
}
.timeline-labels {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: #718694;
  margin-top: 4px;
}
input[type="range"] {
  accent-color: #506b7d;
  height: 4px;
  cursor: pointer;
}
.speed-label {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 8px;
  color: #718694;
}
.speed-label input {
  width: 49px;
  font-size: 11px;
  border: 1px solid #dceaf0;
  border-radius: 4px;
  background: #fbfdfe;
  padding: 5px;
}
.practice-panel {
  border: 1px solid #dceaf0;
  border-radius: 9px;
  margin-top: 16px;
  padding: 19px 21px;
  display: flex;
  gap: 28px;
  align-items: center;
  background: #eef7fa;
}
.control-label {
  font-size: 7px;
  color: #718694;
  letter-spacing: 1px;
  margin-bottom: 9px;
}
.segmented {
  display: flex;
  background: #dceaf0;
  border-radius: 5px;
  padding: 3px;
  gap: 2px;
}
.segmented button {
  font-size: 10px;
  padding: 8px 13px;
  color: #718694;
  border-radius: 3px;
  white-space: nowrap;
}
.segmented button.selected {
  background: #fff;
  color: #506b7d;
  box-shadow: 0 1px 4px #3c526220;
}
.practice-start {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.practice-start small {
  font-size: 8px;
  color: #718694;
}
.practice-start .button {
  height: 37px;
  font-size: 10px;
}
.practice-status {
  margin-top: 13px;
  border: 1px solid #bbd8e1;
  background: #fbfdfe;
  padding: 20px 23px;
  border-radius: 9px;
}
.step-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.step-heading h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: #506b7d;
}
.step-heading p:last-child {
  font-size: 11px;
  color: #718694;
  margin-top: 7px;
}
.step-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.input-settings {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  border-top: 1px solid #dceaf0;
  padding-top: 15px;
}
.input-settings label {
  font-size: 9px;
  color: #718694;
  display: flex;
  gap: 7px;
  align-items: center;
}
.input-settings select {
  max-width: 200px;
}
.signal-track {
  width: 62px;
  height: 4px;
  border-radius: 5px;
  background: #dceaf0;
  overflow: hidden;
}
.signal-track i {
  display: block;
  height: 100%;
  background: #718694;
  width: 0;
  transition: width 0.1s;
}
#mic-status {
  font-size: 9px;
  color: #718694;
  flex: 1;
}
.check-label {
  white-space: nowrap;
}
.check-label input {
  accent-color: #506b7d;
}
.mic-help {
  font-size: 8px;
  color: #718694;
  line-height: 1.8;
  margin-top: 13px;
}
.import-notices {
  font-size: 10px;
  color: #718694;
  margin: 15px 0;
  background: #eef7fa;
  border-radius: 5px;
  padding: 11px 15px;
}
.import-notices summary {
  cursor: pointer;
}
.import-notices li {
  margin: 8px 0;
  line-height: 1.6;
}
dialog {
  color: var(--ink);
  background: #fbfdfe;
  border: 1px solid #dceaf0;
  border-radius: 15px;
  padding: 26px 30px 30px;
  max-width: 570px;
  width: calc(100% - 30px);
  max-height: 88vh;
  overflow: auto;
  box-shadow: 0 25px 100px #283e4c30;
}
dialog::backdrop {
  background: #283e4c65;
  backdrop-filter: blur(5px);
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
dialog h2 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.8px;
  margin-bottom: 13px;
}
dialog > p,
dialog li p {
  font-size: 12px;
  line-height: 1.8;
  color: #718694;
}
dialog small {
  font-size: 10px;
  color: #718694;
  line-height: 1.8;
}
dialog > .button {
  margin-top: 22px;
}
.processing-art {
  height: 80px;
  display: grid;
  place-items: center;
  font-size: 45px;
  color: #718694;
}
.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 5px;
  background: #eef7fa;
  margin: 10px 0 15px;
}
.import-progress-labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 26px;
  color: #718694;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.import-cancel {
  display: block;
  margin-top: 23px;
}
.progress-track i {
  display: block;
  width: 25%;
  height: 100%;
  background: #718694;
  animation: reading 2s infinite ease-in-out;
}
.progress-track.determinate i {
  animation: none;
  transform: none;
  width: var(--progress, 0%);
  border-radius: inherit;
  transition: width 0.35s ease;
}
.progress-track.error i {
  background: #c99b45;
  animation: none;
  width: 100%;
}
.review-dialog {
  max-width: 850px;
}
.review-toolbar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 23px 0 15px;
  flex-wrap: wrap;
}
.review-toolbar label {
  font-size: 10px;
  color: #718694;
  display: flex;
  align-items: center;
  gap: 8px;
}
.note-table-wrap {
  max-height: 340px;
  overflow: auto;
}
.note-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.note-table th {
  text-align: left;
  font-weight: 400;
  color: #718694;
  font-size: 9px;
  padding: 10px 8px;
  background: #eef7fa;
  position: sticky;
  top: 0;
}
.note-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #eef7fa;
}
.note-table input {
  width: 80px;
  background: white;
  border: 1px solid #dceaf0;
  border-radius: 4px;
  padding: 6px;
  font-size: 11px;
}
.note-table select {
  max-width: 100px;
}
.dialog-note {
  font-size: 10px !important;
  padding: 12px 15px;
  background: #eef7fa;
  border-radius: 6px;
  margin-top: 16px;
}
.guide-steps {
  padding-left: 22px;
  display: grid;
  gap: 22px;
  margin: 25px 0;
}
.guide-steps strong {
  font-size: 13px;
  font-weight: 500;
}
.guide-steps li::marker {
  color: #718694;
}
.guide-steps p {
  margin-top: 6px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 100px);
  transform: translateX(-50%);
  background: #3c5262;
  color: #eef7fa;
  font-size: 11px;
  padding: 13px 20px;
  border: 1px solid #506b7d;
  border-radius: 7px;
  z-index: 100;
  box-shadow: 0 5px 20px #283e4c26;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  max-width: calc(100vw - 35px);
}
.toast.show {
  opacity: 1;
}
.toast.error {
  background: #705d32;
  border-color: #c99b45;
}
#piano-fallback {
  position: absolute;
  inset: 100px 20px 40px;
  color: #bbd8e1;
  text-align: center;
}
#piano-fallback button {
  background: #eef7fa;
  color: #3c5262;
  padding: 20px 10px;
  border: 1px solid #283e4c;
}
.source-viewer {
  width: 100%;
  height: 65vh;
  border: 0;
}
.changed {
  color: #c99b45;
}
@keyframes reading {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(500%);
  }
}
@media (min-width: 1600px) {
  .visualizer-wrap {
    height: 450px;
  }
  .workspace-content {
    min-height: 450px;
  }
  #score-preview-render {
    height: 305px;
  }
}
@media (max-width: 1250px) {
  .workspace-content {
    grid-template-columns: minmax(0, 1fr) 230px;
  }
  .practice-panel {
    gap: 17px;
    padding: 17px;
  }
  .segmented button {
    font-size: 9px;
    padding: 8px 10px;
  }
}
@media (max-width: 1000px) {
  .practice-panel {
    gap: 12px;
  }
  .segmented button {
    padding: 8px;
  }
  .live-label {
    display: none;
  }
  .toast {
    left: calc(50% + 35px);
  }
  h1 {
    font-size: 39px;
  }
  h1 em {
    font-size: 42px;
  }
  .practice-start small {
    max-width: 150px;
  }
  .practice-start .button {
    padding: 0 13px;
  }
  .input-settings {
    gap: 10px;
  }
  .input-settings .check-label {
    flex-basis: 100%;
  }
}
@media (max-width: 760px) {
  h1 {
    font-size: 33px;
  }
  h1 em {
    font-size: 36px;
  }
  .workspace-content {
    grid-template-columns: 1fr;
  }
  .sheet-preview {
    display: none;
  }
  .visualizer-wrap {
    height: 355px;
  }
  .workspace-toolbar {
    padding: 0 14px;
    gap: 10px;
  }
  .view-tabs {
    gap: 17px;
  }
  .view-tab {
    font-size: 9px;
  }
  .part-picker {
    font-size: 0;
    gap: 0;
  }
  .part-picker select {
    max-width: 100px;
    font-size: 9px;
  }
  .player {
    gap: 9px;
    padding: 13px;
  }
  .player .icon-button {
    width: 18px;
    font-size: 18px;
  }
  .play-button {
    min-width: 75px;
    font-size: 9px;
    padding: 10px;
  }
  .speed-label {
    font-size: 7px;
    gap: 3px;
  }
  .speed-label input {
    width: 43px;
    font-size: 10px;
  }
  .practice-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .practice-start {
    grid-column: 1/-1;
    flex-direction: row;
    align-items: center;
    margin: 0;
    justify-content: space-between;
  }
  .practice-start .button {
    padding: 0 18px;
  }
  .practice-start small {
    max-width: none;
    text-align: right;
  }
  .segmented button {
    flex: 1;
    font-size: 9px;
    padding: 8px 6px;
  }
  .control-label {
    font-size: 6px;
  }
  .step-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .step-actions {
    flex-wrap: wrap;
  }
  .practice-status {
    padding: 18px;
  }
  .input-settings label {
    font-size: 8px;
  }
  .input-settings select {
    max-width: 150px;
  }
  .signal-track {
    width: 40px;
  }
  .full-sheet-view {
    padding: 13px;
  }
  .review-dialog {
    padding: 22px 16px;
  }
  .note-table td {
    padding: 7px 4px;
  }
  .note-table input {
    width: 64px;
  }
  .note-table th {
    padding: 8px 4px;
    font-size: 8px;
  }
  .note-table select {
    font-size: 9px;
    width: 75px;
  }
  .dialog-note {
    font-size: 9px !important;
  }
}
@media (max-width: 440px) {
  h1 {
    font-size: 28px;
    letter-spacing: -1px;
  }
  h1 em {
    font-size: 30px;
  }
  .eyebrow {
    font-size: 5px;
  }
  .workspace-toolbar {
    gap: 8px;
  }
  .workspace-toolbar > .text-button {
    font-size: 7px;
  }
  .visualizer-wrap {
    height: 320px;
  }
  .visualizer-top {
    left: 14px;
    right: 14px;
  }
  .visualizer-hint {
    font-size: 8px;
  }
  .hand-legend {
    font-size: 7px;
  }
  .player {
    gap: 7px;
    padding: 11px;
  }
  .speed-label {
    font-size: 0;
    gap: 0;
  }
  .speed-label input {
    font-size: 9px;
  }
  .timeline-labels {
    font-size: 6px;
  }
  .play-button {
    min-width: 65px;
    font-size: 8px;
  }
  .practice-panel {
    gap: 14px 9px;
    padding: 14px 11px;
  }
  .segmented button {
    font-size: 8px;
    padding: 8px 4px;
  }
  .practice-start small {
    font-size: 7px;
    max-width: 120px;
  }
  .practice-start .button {
    font-size: 9px;
    padding: 0 12px;
  }
  .toast {
    left: calc(50% + 27px);
  }
  .note-table input {
    width: 55px;
  }
  .note-table select {
    width: 65px;
  }
  .note-table .icon-button {
    width: 20px;
  }
  .review-toolbar {
    gap: 10px;
  }
  .review-toolbar .text-button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* The hand guide uses a rigged skin mesh; labels remain legible as the camera moves. */
.visualizer-wrap {
  height: 460px;
}
.workspace-content {
  min-height: 460px;
}
.camera-controls {
  position: absolute;
  bottom: 13px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  pointer-events: auto;
}
.camera-controls button,
.camera-controls label {
  background: #283e4cdb;
  border: 1px solid #506b7d44;
  color: #718694;
  border-radius: 5px;
  font-size: 8px;
  padding: 7px 9px;
  backdrop-filter: blur(6px);
}
.camera-controls button.selected {
  background: #dceaf0;
  color: #283e4c;
  border-color: #dceaf0;
}
.camera-controls label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: 5px;
}
.camera-controls input {
  accent-color: #718694;
  width: 10px;
  height: 10px;
  margin: 0;
}
.hands-status {
  position: absolute;
  top: 65px;
  left: 18px;
  right: 18px;
  text-align: center;
  color: #718694;
  font-size: 8px;
  pointer-events: none;
}
.visualizer-hint {
  top: 45px;
  font-size: 8px;
}
.finger-guide {
  font-size: 10px !important;
  color: #506b7d !important;
  max-width: 480px;
  line-height: 1.8;
}
.reference-notes {
  display: flex;
  gap: 15px;
  margin: 20px 0;
}
.reference-notes label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #718694;
  font-size: 10px;
  flex: 1;
}
.reference-notes select {
  max-width: none;
  width: 100%;
}
.calibration-step {
  font-size: 9px !important;
  letter-spacing: 1px;
  color: #506b7d !important;
  margin-top: 25px;
}
.calibration-progress {
  height: 5px;
  background: #dceaf0;
  border-radius: 5px;
  margin: 13px 0 18px;
  overflow: hidden;
}
.calibration-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: #718694;
  transition: width 0.1s;
}
#calibration-feedback {
  font-size: 11px;
  color: #718694;
  line-height: 1.8;
  min-height: 42px;
}
#reset-calibration {
  margin-left: 16px;
}
.note-table select[aria-label="Finger number"] {
  max-width: 80px;
}
.full-sheet-view {
  height: 460px;
}
.sheet-preview #score-preview-render {
  height: 315px;
}
@media (max-width: 760px) {
  .visualizer-wrap {
    height: 430px;
  }
  .workspace-content {
    min-height: 430px;
  }
  .camera-controls button,
  .camera-controls label {
    font-size: 7px;
    padding: 6px;
  }
  .hand-legend {
    font-size: 7px;
  }
  .note-table td {
    padding: 7px 3px;
  }
  .note-table input {
    width: 50px;
  }
  .note-table select {
    width: 61px;
  }
  .note-table select[aria-label="Finger number"] {
    width: 52px;
  }
  .live-label {
    display: none;
  }
  .reference-notes {
    gap: 10px;
  }
}
/* The note sequence shares the piano's right rail with the sheet preview. */
.workspace-content {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.practice-rail {
  height: 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fbfdfe;
  border-left: 1px solid #dceaf0;
  overflow: hidden;
}
.rail-tabs {
  display: flex;
  gap: 5px;
  padding: 12px 15px;
  border-bottom: 1px solid #dceaf0;
}
.rail-tabs button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 11px;
  color: #718694;
}
.rail-tabs button[aria-selected="true"] {
  background: #eef7fa;
  color: #3c5262;
  font-weight: 500;
}
.practice-rail .sheet-preview {
  display: flex;
  padding: 18px 16px 12px;
  min-height: 0;
  flex: 1;
}
.practice-rail .sheet-preview[hidden],
.letter-panel[hidden] {
  display: none;
}
.practice-rail #score-preview-render {
  height: auto;
  flex: 1;
  min-height: 0;
}
.letter-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}
.guide-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 18px 14px;
  color: #718694;
  font-size: 8px;
  letter-spacing: 1.25px;
}
.guide-count {
  font-size: 10px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #718694;
}
.guide-hands,
.guide-chord {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}
.one-hand .guide-hands,
.one-hand .guide-chord {
  grid-template-columns: minmax(0, 1fr);
}
.guide-hands {
  padding: 0 27px 10px;
  font-size: 10px;
  color: #718694;
}
.guide-hands span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 6px 2px 0;
  border-radius: 50%;
  background: #718694;
}
.guide-hands .left::before {
  background: #f4d372;
}
.guide-scroll {
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #bbd8e1 transparent;
  min-height: 0;
  flex: 1;
  padding: 4px 12px 24px;
  border-top: 1px solid #eef7fa;
  border-bottom: 1px solid #eef7fa;
}
.guide-scroll:focus-visible {
  outline: 2px solid #718694;
  outline-offset: -3px;
}
.guide-step {
  padding: 12px;
  margin: 6px 0;
  border: 1px solid #dceaf0;
  border-radius: 8px;
  background: #eef7fa;
}
.guide-position {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: #718694;
  margin-bottom: 9px;
}
.guide-now {
  visibility: hidden;
  font-size: 7px;
  letter-spacing: 1px;
  color: #506b7d;
  font-weight: 600;
}
.guide-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  align-content: flex-start;
}
.guide-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 39px;
  min-height: 32px;
  padding: 5px 6px;
  border: 1px solid #dceaf0;
  border-radius: 5px;
  color: #506b7d;
  background: #fbfdfe;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}
.guide-rest {
  color: #718694;
  padding: 6px;
}
.guide-step.current {
  border-color: #718694;
  background: #eef7fa;
  box-shadow: inset 3px 0 #718694;
}
.guide-step.current .guide-now {
  visibility: visible;
}
.guide-step.current .guide-note {
  background: #dceaf0;
  border-color: #bbd8e1;
  color: #3c5262;
}
.guide-step.current .left .guide-note {
  background: #fff0bf;
  border-color: #f4d372;
  color: #705d32;
}
.guide-step.played {
  opacity: 0.45;
}
.guide-empty {
  padding: 20px 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #718694;
}
.guide-footer {
  padding: 11px 15px 12px;
}
.guide-follow {
  display: block;
  width: 100%;
  padding: 9px;
  border: 1px solid #dceaf0;
  border-radius: 6px;
  background: #eef7fa;
  color: #506b7d;
  font-size: 10px;
}
.guide-follow[aria-pressed="false"] {
  background: #283e4c;
  color: #eef7fa;
  border-color: #283e4c;
}
.guide-footer p {
  margin: 9px 0 0;
  text-align: center;
  font-size: 8px;
  color: #718694;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .workspace-content {
    grid-template-columns: minmax(0, 1fr);
  }
  .practice-rail {
    height: 375px;
    border-left: 0;
    border-top: 1px solid #dceaf0;
  }
  .guide-heading {
    padding-top: 12px;
    padding-bottom: 10px;
  }
}
/* Cadence palette: turquoise,
slate,
cool white and a warm hand accent. */
:root {
  --ink: #2d4352;
  --muted: #728592;
  --line: #dfe9ef;
  --sage: #32c5da;
  --cream: #f6f9fc;
  --accent: #32c5da;
  --slate: #3d5363;
}
em {
  font-style: normal;
  font-weight: 750;
  color: #087d95;
}
h1,
.sheet-preview h3,
dialog h2,
.step-heading h3 {
  font-weight: 750;
}
h1 em {
  font-size: inherit;
}
.eyebrow,
.control-label {
  color: #728895;
}
.button.primary,
.play-button {
  background: var(--accent);
  color: #153e4c;
  border-color: var(--accent);
  font-weight: 750;
}
.button.primary:hover,
.play-button:hover {
  background: #25b6ce;
}
.segmented .selected,
.rail-tabs button[aria-selected="true"] {
  background: #ddf7fb;
  color: #216178;
}
.view-tab.active {
  color: #087d95;
  border-color: var(--accent);
}
.subtle-button {
  background: #fff;
  border-color: #dce7ed;
  color: #536d7d;
}
.subtle-button:hover {
  background: #eef9fc;
}
.progress-track i,
.calibration-progress i,
#signal-meter {
  background: var(--accent);
}
.progress-track.error i {
  background: #d9888b;
}
.processing-art {
  color: var(--accent);
}
.guide-step.current {
  background: #eefbfe;
  border-color: #86d7e5;
  box-shadow: inset 3px 0 var(--accent);
}
.guide-step.current .guide-note {
  background: #d8f6fc;
  border-color: #b0e9f3;
  color: #21677b;
}
.guide-step.current .left .guide-note {
  background: #fff0bf;
  border-color: #efd890;
  color: #6c5830;
}
.guide-hands .left::before,
.peach {
  background: #efca70;
}
.guide-hands .right::before,
.sage {
  background: var(--accent);
}
.guide-follow[aria-pressed="false"] {
  background: var(--slate);
  border-color: var(--slate);
  color: #fff;
}
.camera-controls button.selected {
  background: #c7f2fa;
  color: #1d5365;
  border-color: #a3e6f2;
}
.phrase-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  padding: 15px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  background: #fff;
}
.phrase-settings label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #607b8b;
}
.phrase-settings select {
  max-width: 150px;
}
.phrase-stages {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
}
.phrase-stages span {
  padding: 7px 12px;
  background: #edf3f7;
  border-radius: 6px;
  font-size: 11px;
  color: #8b9ba6;
}
.phrase-stages span.active {
  background: #d9f5fb;
  color: #16677e;
}
.phrase-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.phrase-heading h3 {
  font-size: 24px;
  font-weight: 750;
  margin: 8px 0;
}
#phrase-feedback {
  color: #748b99;
  font-size: 12px;
  line-height: 1.7;
}
.phrase-pulse {
  display: flex;
  gap: 7px;
}
.phrase-pulse span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #edf3f7;
  color: #91a2ad;
  font-size: 13px;
  font-weight: 700;
}
.phrase-pulse span.active {
  background: var(--accent);
  color: #184857;
  box-shadow: 0 0 0 4px #31c4db18;
}
.phrase-track {
  height: 5px;
  border-radius: 5px;
  background: #e8f0f5;
  overflow: hidden;
  margin: 20px 0;
}
.phrase-track i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}
.phrase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.phrase-actions .button {
  height: 36px;
  padding: 0 16px;
  font-size: 11px;
}
#phrase-results {
  margin-top: 18px;
  max-height: 230px;
  overflow: auto;
}
.phrase-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 20px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.phrase-result small {
  grid-column: 1/-1;
  color: #8b9ba4;
  font-size: 10px;
}
.phrase-result.on-beat > span:nth-child(2) {
  color: #13829b;
}
.phrase-result.early > span:nth-child(2),
.phrase-result.late > span:nth-child(2) {
  color: #a78137;
}
.phrase-result.missed > span:nth-child(2) {
  color: #bc747c;
}
@media (max-width: 760px) {
  .phrase-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .phrase-settings {
    padding: 14px;
    gap: 12px;
  }
  .phrase-stages span {
    padding: 6px 8px;
    font-size: 10px;
  }
}

/* Studio shell. The piano workspace and practice controls retain their layout. */
.app-header {
  display: flex;
  align-items: center;
  gap: 42px;
  height: 72px;
  padding: 0 40px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -1px;
  white-space: nowrap;
}
.brand-dot {
  color: var(--accent);
  margin-left: -6px;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-right: 5px;
}
.brand-mark i {
  width: 4px;
  height: 19px;
  background: var(--accent);
  border-radius: 2px;
}
.brand-mark i:nth-child(2) {
  height: 27px;
}
.brand-mark i:nth-child(3) {
  height: 14px;
}
.app-nav {
  display: flex;
  align-self: stretch;
  gap: 24px;
}
.app-nav button {
  padding: 0 3px;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  font-weight: 650;
  color: var(--muted);
}
.app-nav button.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.app-nav button:hover {
  color: #087d95;
}
.local-indicator {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
}
.local-indicator i,
.local-label i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.local-indicator > span {
  margin-left: 5px;
}
main {
  margin: 0;
}
.main-content {
  max-width: 1440px;
  margin: auto;
  padding: 30px 40px 0;
}
.studio-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.studio-heading h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.7px;
}
.studio-heading-copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.studio-heading.dragging {
  outline: 2px dashed var(--accent);
  outline-offset: 10px;
  background: #e6f8fc;
}
.capture-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.score-file-actions {
  display: flex;
  gap: 10px;
}
.score-file-actions .button {
  height: 40px;
  font-size: 12px;
  padding: 0 17px;
}
.score-file-actions .subtle-button {
  height: 40px;
  font-size: 12px;
  padding: 0 16px;
}
.capture-actions small {
  color: var(--muted);
  font-size: 10px;
}
.song-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.song-heading-left {
  min-width: 0;
}
.song-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.song-title-row h2 {
  font-size: 23px;
  line-height: 1.25;
  font-weight: 750;
  letter-spacing: -0.5px;
  overflow-wrap: anywhere;
}
.song-title-row .demo-badge {
  font-size: 8px;
  padding: 4px 7px;
  background: #eaf1f6;
  color: #607887;
  letter-spacing: 0.4px;
}
.song-heading-left p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.song-actions {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}
.song-actions .subtle-button {
  font-size: 11px;
  padding: 8px 12px;
}
.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding: 20px 0 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.studio-footer a:hover {
  color: #087d95;
  text-decoration: underline;
}
.local-label {
  font-size: 11px;
}
.toast {
  left: 50%;
}
@media (max-width: 900px) {
  .app-header {
    gap: 32px;
    padding: 0 24px;
  }
  .main-content {
    padding: 26px 24px 0;
  }
  .local-indicator > span {
    display: none;
  }
  .studio-heading {
    align-items: flex-start;
  }
  .studio-heading-copy p {
    max-width: 260px;
  }
}
@media (max-width: 760px) {
  .app-header {
    height: 64px;
    padding: 0 16px;
    gap: 24px;
  }
  .brand {
    font-size: 24px;
  }
  .app-nav {
    margin-left: auto;
    gap: 20px;
  }
  .local-indicator {
    display: none;
  }
  .main-content {
    padding: 22px 16px 0;
  }
  .studio-heading {
    flex-direction: column;
    gap: 18px;
    padding-bottom: 22px;
    margin-bottom: 20px;
  }
  .studio-heading h1 {
    font-size: 26px;
  }
  .studio-heading-copy p {
    max-width: none;
    font-size: 12px;
  }
  .capture-actions {
    align-items: flex-start;
  }
  .song-heading {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }
  .song-title-row h2 {
    font-size: 22px;
  }
  .song-title-row {
    gap: 7px;
  }
  .song-heading-left p {
    font-size: 10px;
  }
  .song-actions .subtle-button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .studio-footer,
  .local-label {
    font-size: 10px;
  }
}
@media (max-width: 440px) {
  .main-content {
    padding-left: 12px;
    padding-right: 12px;
  }
}

.key-label {
  font-weight: 650;
}
.key-label.pressed {
  color: #fff;
  font-weight: 850;
  text-shadow: 0 1px 2px #173b4f66;
}
.practice-speed-control {
  display: grid;
  grid-template-columns: auto minmax(100px, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.slow-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  cursor: pointer;
}
.slow-toggle input {
  appearance: none;
  margin: 0;
  width: 34px;
  height: 20px;
  border-radius: 20px;
  background: #dce7ed;
  cursor: pointer;
  padding: 3px;
  transition: background 0.15s;
}
.slow-toggle input::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px #203c4d26;
  transition: transform 0.15s;
}
.slow-toggle input:checked {
  background: #087d95;
}
.slow-toggle input:checked::before {
  transform: translateX(14px);
}
#practice-speed {
  width: 100%;
  accent-color: #087d95;
}
#practice-speed:disabled {
  opacity: 0.35;
  cursor: default;
}
#speed-readout {
  min-width: 120px;
  font-size: 12px;
  font-weight: 700;
  text-align: right;
  color: #405c6d;
}
@media (max-width: 760px) {
  .practice-speed-control {
    grid-template-columns: 1fr auto;
    gap: 15px;
    padding: 14px;
  }
  #practice-speed {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  #speed-readout {
    grid-row: 1;
    grid-column: 2;
    font-size: 11px;
  }
}
