/* MusicXML practice page — site-native controls, not the old app chrome */
.practice-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}
.practice-shell .v-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.practice-shell .quick-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.practice-wrap {
  width: calc(100% - 40px);
  max-width: none;
}
.practice-shell .ctl-row {
  justify-content: center;
  margin: 0 0 12px;
  gap: 12px;
}
.practice-shell .p-mode {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--accent-soft);
  border-radius: 999px;
}
.practice-shell .p-mode .fchip {
  border-color: transparent;
  background: transparent;
  padding: 6px 10px;
}
.practice-shell .p-mode .fchip.is-on {
  background: var(--paper);
  border-color: var(--line);
  color: var(--accent);
}
.practice-shell .fchip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 11px;
  font: 650 12px/1 inherit;
  cursor: pointer;
  white-space: nowrap;
}
.practice-shell .fchip:hover {
  background: var(--accent-soft);
  border-color: #c7d2fe;
  color: var(--accent);
}
.practice-shell .fchip.is-on {
  background: var(--accent-soft);
  border-color: #c7d2fe;
  color: var(--accent);
}
.practice-shell .bpm-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 4px 6px 4px 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.practice-shell .bpm-step button {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--accent);
  font: 700 14px/1 inherit;
  cursor: pointer;
}
.practice-shell .bpm-step.is-disabled {
  opacity: .5;
  pointer-events: none;
}
.practice-shell .v-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 9px;
  padding: 7px 12px;
  font: 700 12px/1 inherit;
  cursor: pointer;
}
.practice-shell .v-btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.practice-shell .v-btn--ghost {
  background: transparent;
}
.practice-shell .v-btn--danger {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}
.practice-shell .v-btn--sm {
  min-height: 32px;
}
.practice-shell .staff-wrap {
  position: relative;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-top: 4px;
  padding: 10px;
}
.practice-shell .osmd-stage {
  position: relative;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.practice-shell .osmd-host {
  width: 100%;
  display: flex;
  justify-content: center;
}
.practice-shell .osmd-host svg {
  display: block;
  width: 100%;
  height: auto;
}
.practice-shell .osmd-labels {
  pointer-events: none;
}
.practice-shell .notice {
  border-radius: 10px;
  padding: 12px;
  font-size: 13px;
}
.practice-shell .notice--warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: var(--warm);
}
.practice-shell .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.practice-shell .row:last-child { border-bottom: 0; }
.practice-shell .row-ico {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
}
.practice-shell .row-main { flex: 1; min-width: 0; }
.practice-shell .row-title { font-size: 13px; font-weight: 700; }
.practice-shell .row-sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.practice-shell .v-chip {
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
}
.practice-shell .stat-big {
  font: 700 32px/1 Georgia, serif;
  color: var(--ink);
}
.practice-shell .stat-lb { font-size: 12px; color: var(--muted); margin-top: 4px; }
.practice-shell .v-scroll { overflow: auto; }
.practice-shell .center { text-align: center; }
.practice-shell .mt8 { margin-top: 8px; }

.practice-score-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0 0 12px;
}
.practice-score-list button {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 12px;
  font: 650 12px/1 inherit;
  cursor: pointer;
}
.practice-score-list button:hover {
  border-color: #c7d2fe;
  background: var(--accent-soft);
}
.practice-score-list button.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.practice-loading,
.practice-error {
  margin: 0;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}
.practice-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  background: var(--ink);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: .2s;
  z-index: 100;
  max-width: 86vw;
  text-align: center;
}
.practice-toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.practice-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .practice-shell { padding: 10px; }
  .practice-shell .staff-wrap { padding: 8px; }
  .practice-shell .ctl-row { gap: 6px; }
  .practice-shell .fchip { padding: 6px 8px; font-size: 11px; }
  .practice-shell .v-btn { padding: 6px 9px; font-size: 11px; }
}

/* Count-in overlay */
.practice-shell { position: relative; }
.practice-countin {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(246, 242, 234, .72);
  backdrop-filter: blur(2px);
  border-radius: var(--radius);
  pointer-events: none;
}
.practice-countin[hidden] { display: none; }
.practice-countin span {
  font: 700 clamp(76px, 12vw, 148px)/1 Georgia, serif;
  color: var(--accent);
  letter-spacing: -.04em;
  text-shadow: 0 10px 30px rgba(79, 70, 229, .18);
}
.practice-countin.is-pop span {
  animation: practiceCountPop .42s ease-out both;
}
@keyframes practiceCountPop {
  from { opacity: .2; transform: scale(.72); }
  to { opacity: 1; transform: scale(1); }
}

.practice-keys {
  list-style: none;
  padding: 0;
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.practice-keys li {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--paper);
}
.practice-keys strong { display: inline-block; font-size: 15px; margin-right: 8px; }
.practice-keys span { font-size: 12px; color: var(--accent); font-weight: 650; }
.practice-keys p { margin: 5px 0 0; font-size: 13px; color: var(--muted); line-height: 1.6; }
.practice-links { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 18px; font-size: 13px; }
.practice-links a { color: var(--accent); font-weight: 650; text-decoration: none; }
.practice-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.practice-faq { display: grid; gap: 8px; margin-top: 16px; }
.practice-faq-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  padding: 11px 14px;
}
.practice-faq-item summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}
.practice-faq-item p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 700px) {
  .practice-keys { grid-template-columns: 1fr; }
}

.practice-keys h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  color: var(--ink);
}
.practice-facts {
  list-style: none;
  padding: 12px 14px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--accent-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  font-size: 13px;
  color: var(--ink2);
}
.practice-facts li { display: flex; gap: 7px; }
.practice-facts li::before { content: "·"; color: var(--accent); font-weight: 800; }
.practice-quote {
  margin: 16px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
}
.practice-quote p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--ink2); }
.practice-quote cite { display: block; margin-top: 7px; font-size: 12px; color: var(--muted); font-style: normal; }
.practice-refs {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.practice-refs a { color: var(--accent); font-weight: 600; text-decoration: none; }
.practice-refs a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) {
  .practice-facts { grid-template-columns: 1fr; }
}
