/* BML Metronome (2026-11-23) - the site's own blue, ink and soft cards. */
.met-page { background: var(--bg, #f7fbff); padding-block: 40px 64px; }
.met-hero { text-align: center; max-width: 680px; }
.met-hero h1 { margin: 0 0 10px; font-size: clamp(34px, 6vw, 52px); letter-spacing: -0.02em; color: var(--ink, #071735); text-wrap: balance; }
.met-lede { margin: 0 auto; max-width: 560px; color: var(--muted, #526174); font-size: 17px; line-height: 1.55; }

.met-tool { display: flex; justify-content: center; margin-top: 28px; }
.met-panel {
  width: 100%; max-width: 560px; background: var(--card, #fff); border-radius: 24px;
  box-shadow: var(--shadow, 0 22px 60px rgba(7, 23, 53, .11)); padding: 28px 24px 22px;
  display: flex; flex-direction: column; gap: 18px;
}

.met-tempo { display: flex; align-items: center; justify-content: center; gap: 18px; }
.met-step {
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line, #dfe7f2);
  background: #fff; color: var(--ink, #071735); font-size: 26px; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; line-height: 1;
}
.met-step:hover { border-color: var(--blue, #0b55ff); color: var(--blue, #0b55ff); }
.met-readout { display: flex; flex-direction: column; align-items: center; min-width: 150px; }
.met-bpm { font-size: 76px; font-weight: 800; line-height: 1; color: var(--ink, #071735); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.met-unit { margin-top: 6px; color: var(--muted, #526174); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.met-slider, .met-field input[type="range"] { width: 100%; accent-color: var(--blue, #0b55ff); }

.met-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; min-height: 26px; transition: opacity .2s; }
.met-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft, #eef5ff); border: 2px solid var(--line, #dfe7f2); transition: transform .06s, background .06s; }
.met-dot.is-accent { border-color: var(--blue, #0b55ff); }
.met-dot.is-on { background: var(--blue, #0b55ff); border-color: var(--blue, #0b55ff); transform: scale(1.18); }
.met-dots.is-silent .met-dot { opacity: .35; }
.met-status { margin: -6px 0 0; min-height: 20px; text-align: center; color: var(--muted, #526174); font-size: 14px; font-weight: 600; }

.met-actions { display: flex; gap: 12px; }
.met-start {
  flex: 2; height: 56px; border: 0; border-radius: 14px; background: var(--blue, #0b55ff); color: #fff;
  font-size: 19px; font-weight: 800; cursor: pointer;
}
.met-start:hover { background: var(--blue-2, #0647df); }
.met-start.is-running { background: var(--ink, #071735); }
.met-tap {
  flex: 1; height: 56px; border-radius: 14px; border: 1px solid var(--line, #dfe7f2); background: #fff;
  color: var(--ink, #071735); font-size: 16px; font-weight: 700; cursor: pointer;
}
.met-tap:active { background: var(--blue-soft, #eef5ff); }

.met-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; padding-top: 4px; border-top: 1px solid var(--line, #dfe7f2); padding-top: 18px; }
.met-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.met-field > span { font-size: 12px; font-weight: 700; color: var(--muted, #526174); text-transform: uppercase; letter-spacing: .05em; }
.met-field select {
  height: 42px; border-radius: 10px; border: 1px solid var(--line, #dfe7f2); background: #fff; padding: 0 10px;
  font: inherit; font-size: 15px; color: var(--ink, #071735);
}
.met-check { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink, #071735); cursor: pointer; align-self: end; min-height: 42px; }
.met-check input { width: 18px; height: 18px; accent-color: var(--blue, #0b55ff); flex: none; }

.met-gap { background: var(--blue-soft, #eef5ff); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.met-gap-toggle { align-self: stretch; min-height: 0; line-height: 1.4; }
.met-gap-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.met-keys { margin: 0; text-align: center; color: var(--muted, #526174); font-size: 12px; }

.met-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin-top: 48px; }
.met-notes h2 { margin: 0 0 8px; font-size: 20px; color: var(--ink, #071735); }
.met-notes p { margin: 0; color: var(--muted, #526174); line-height: 1.6; }
.met-notes a { color: var(--blue, #0b55ff); font-weight: 700; text-decoration: none; }

@media (max-width: 640px) {
  .met-page { padding-block: 24px 48px; }
  .met-panel { padding: 22px 16px 18px; border-radius: 20px; }
  .met-bpm { font-size: 64px; }
  .met-settings, .met-notes { grid-template-columns: 1fr; }
  .met-notes { gap: 24px; margin-top: 36px; }
  .met-keys { display: none; }
}

/* Practice Tools toolbar (2026-11-23): one tool open at a time. */
.pt-toolbar {
  display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 22px; padding: 5px;
  background: var(--card, #fff); border-radius: 999px; box-shadow: 0 6px 20px rgba(7, 23, 53, .08); max-width: 100%;
}
.pt-tab {
  height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted, #526174); white-space: nowrap;
}
.pt-tab:hover { color: var(--ink, #071735); }
.pt-tab[aria-selected="true"] { background: var(--blue, #0b55ff); color: #fff; }
.pt-tool[hidden] { display: none !important; }

/* Practice Timer. */
.pt-timer-face { display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.pt-timer-time { font-size: 84px; font-weight: 800; line-height: 1; color: var(--ink, #071735); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.pt-timer-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.pt-timer-presets button {
  height: 40px; border-radius: 10px; border: 1px solid var(--line, #dfe7f2); background: #fff; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--ink, #071735);
}
.pt-timer-presets button.is-picked { border-color: var(--blue, #0b55ff); background: var(--blue-soft, #eef5ff); color: var(--blue, #0b55ff); }
@media (max-width: 640px) {
  .pt-timer-time { font-size: 68px; }
  .pt-timer-presets { grid-template-columns: repeat(3, 1fr); }
  .pt-tab { padding: 0 14px; font-size: 14px; }
}
/* Time Signature groups: a smaller accent dot, and a gap before each group. */
.met-dot.is-group { border-color: #7aa2ff; }
.met-dot.is-group-start { margin-left: 10px; }

/* Tuner (2026-11-23). In tune is BML blue - green is only for money. */
.tuner-face { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 4px; }
.tuner-dial { position: relative; width: 100%; max-width: 320px; height: 120px; border-radius: 160px 160px 0 0; background: var(--blue-soft, #eef5ff); overflow: hidden; }
.tuner-dial::after { content: ""; position: absolute; left: 50%; top: 18px; width: 2px; height: 22px; margin-left: -1px; background: var(--blue, #0b55ff); opacity: .45; }
.tuner-tick { position: absolute; bottom: 8px; font-size: 11px; font-weight: 700; color: var(--muted, #526174); }
.tuner-tick.is-flat { left: 14px; } .tuner-tick.is-center { left: 50%; transform: translateX(-50%); top: 44px; bottom: auto; } .tuner-tick.is-sharp { right: 14px; }
.tuner-needle { position: absolute; left: 50%; bottom: 0; width: 4px; height: 104px; border-radius: 4px; background: var(--ink, #071735); transform-origin: 50% 100%; transform: translateX(-50%) rotate(0deg); transition: transform .12s ease-out; }
.tuner-face.is-in-tune .tuner-needle { background: var(--blue, #0b55ff); }
.tuner-face.is-far .tuner-needle { opacity: .4; }
.tuner-readout { display: flex; align-items: flex-start; gap: 2px; margin-top: 6px; }
.tuner-note { font-size: 72px; font-weight: 800; line-height: 1; color: var(--ink, #071735); }
.tuner-octave { font-size: 24px; font-weight: 800; color: var(--muted, #526174); margin-top: 6px; }
.tuner-cents { margin: 4px 0 0; font-size: 15px; font-weight: 700; color: var(--ink, #071735); min-height: 22px; }
.tuner-hz { margin: 0; font-size: 13px; color: var(--muted, #526174); font-variant-numeric: tabular-nums; min-height: 18px; }
.tuner-strings { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.tuner-strings[hidden] { display: none; }
.tuner-string { min-width: 52px; height: 52px; border-radius: 12px; border: 1px solid var(--line, #dfe7f2); background: #fff; cursor: pointer; font: inherit; font-size: 18px; font-weight: 800; color: var(--ink, #071735); }
.tuner-string small { font-size: 11px; color: var(--muted, #526174); margin-left: 1px; }
.tuner-string.is-on { border-color: var(--blue, #0b55ff); background: var(--blue-soft, #eef5ff); color: var(--blue, #0b55ff); }
.tuner-a4 { width: 56px; height: 26px; border: 1px solid var(--line, #dfe7f2); border-radius: 6px; text-align: center; font: inherit; font-size: 12px; }
/* Beat dots are buttons: tap to accent (2026-11-23). */
.met-dot { padding: 0; cursor: pointer; }
.met-dot.is-accent { width: 26px; height: 26px; border-width: 3px; }
.met-dots { align-items: center; }
.met-dots-hint { margin: -10px 0 0; text-align: center; font-size: 12px; color: var(--muted, #526174); }
.met-settings > .met-field:nth-child(3) { grid-column: 1 / -1; }
.met-gap-fields[hidden] { display: none; }
/* Tuner colors (founder, 2026-11-23): in tune BML blue, flat light red,
   sharp yellow - on the dial and on the needle, note and cents. */
/* Only the needle takes the color, plus the blue in-tune slice (founder, 2026-11-23). */
.tuner-dial { background: conic-gradient(from -90deg at 50% 100%, #f1f4f9 0deg 83deg, #3aa0ff 83deg 97deg, #f1f4f9 97deg 180deg, transparent 180deg); }
.tuner-tick.is-center { display: none; }
.tuner-face.is-flat .tuner-needle { background: #e05a5a; }
.tuner-face.is-sharp .tuner-needle { background: #e3a90b; }

/* Note Reading (2026-11-23). */
.nr-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; color: var(--ink, #071735); }
.nr-score { font-size: 18px; font-variant-numeric: tabular-nums; }
.nr-streak { font-size: 13px; color: var(--muted, #526174); text-transform: uppercase; letter-spacing: .05em; }
.nr-staff { width: 100%; max-width: 520px; height: auto; align-self: center; border-radius: 14px; background: #fff; transition: background .2s; }
.nr-staff.is-right { background: var(--blue-soft, #eef5ff); }
.nr-line { stroke: var(--ink, #071735); stroke-width: 1.4; }
.nr-clef { font-family: "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif; font-size: 64px; fill: var(--ink, #071735); }
.nr-clef-bass { font-size: 76px; }
.nr-note-head { fill: var(--ink, #071735); }
.nr-note-hole { fill: #fff; }
.nr-staff.is-right .nr-note-head { fill: var(--blue, #0b55ff); }
.nr-staff.is-right .nr-note-hole { fill: var(--blue-soft, #eef5ff); }
.nr-accidental { font-family: "Noto Music", "Apple Symbols", "Segoe UI Symbol", serif; font-size: 64px; fill: var(--ink, #071735); }
.nr-feedback { min-height: 22px; margin: -6px 0 0; color: var(--blue, #0b55ff); }
.nr-answers { display: flex; flex-direction: column; gap: 8px; }
.nr-answer-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.nr-answer {
  height: 50px; border-radius: 12px; border: 1px solid var(--line, #dfe7f2); background: #fff; cursor: pointer;
  font: inherit; font-size: 18px; font-weight: 800; color: var(--ink, #071735); min-width: 0; padding: 0;
}
.nr-answer:hover { border-color: var(--blue, #0b55ff); }
.nr-answer.is-right { background: var(--blue, #0b55ff); border-color: var(--blue, #0b55ff); color: #fff; }
.nr-answer.is-wrong { background: #fde2e2; border-color: #e05a5a; animation: nr-shake .3s; }
@keyframes nr-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.nr-options { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; border-top: 1px solid var(--line, #dfe7f2); padding-top: 12px; }
.nr-options .met-check { min-height: 36px; }
.nr-reset { align-self: center; flex: none; height: 42px; padding: 0 20px; }
@media (max-width: 640px) { .nr-answer { height: 46px; font-size: 16px; } .pt-toolbar { border-radius: 18px; } }
@media (prefers-reduced-motion: reduce) { .nr-answer.is-wrong { animation: none; } }
/* Tuner: tuning picker, reference sound (2026-11-23). */
.tuner-pickers { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.tuner-pickers > .met-field[hidden] { display: none; }
.tuner-pickers:has(> .met-field[hidden]) { grid-template-columns: 1fr; }
.tuner-reference { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 14px; font-size: 14px; }
.tuner-reference[hidden] { display: none; }
.tuner-reference .met-check { min-height: 32px; font-size: 14px; }
.tuner-reference-label { width: 100%; text-align: center; font-size: 12px; font-weight: 700; color: var(--muted, #526174); text-transform: uppercase; letter-spacing: .05em; }
.tuner-sound-stop { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--ink, #071735); background: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tuner-sound-stop[hidden] { display: none; }
.tuner-string.is-ringing { background: var(--blue, #0b55ff); border-color: var(--blue, #0b55ff); color: #fff; }
.tuner-string.is-ringing small { color: #dbe7ff; }
@media (max-width: 640px) { .tuner-pickers { grid-template-columns: 1fr; } }
.nr-brace { fill: none; stroke: var(--ink, #071735); stroke-width: 3.2; stroke-linecap: round; }

/* Inside Manage My Lessons (?embed=1): the tools only - the studio's
   families never see BookMyLesson's header, footer, chat or sales copy. */
.pt-embed .topbar, .pt-embed .site-footer, .pt-embed .met-notes, .pt-embed .met-hero h1, .pt-embed .met-lede,
.pt-embed .bml-site-chat-button, .pt-embed .bml-site-chat-panel, .pt-embed .bml-site-chat-toast { display: none !important; }
.pt-embed body, html.pt-embed { background: #fff; }
.pt-embed .met-page { background: #fff; padding-block: 12px 24px; }
.pt-embed .pt-toolbar { margin-top: 0; box-shadow: none; background: var(--blue-soft, #eef5ff); }
.pt-embed .met-tool { margin-top: 14px; }
.pt-embed .met-panel { box-shadow: none; padding: 8px 4px 0; }
/* "Hearing you" level bar (2026-11-24): is the mic hearing the instrument? */
.tuner-level { width: min(220px, 70%); height: 6px; margin-top: 8px; border-radius: 99px; background: #eef1f6; overflow: hidden; }
.tuner-level span { display: block; height: 100%; background: var(--blue, #0b55ff); transform-origin: left center; transform: scaleX(0); transition: transform .08s linear; }
/* Dead center is green (founder, 2026-11-24: "make it green when they hit
   the exact middle") - the tuner's in-tune is the one deliberate exception
   to "green only for money": the needle and the middle slice turn green. */
.tuner-face.is-in-tune .tuner-needle { background: #16a34a; }
.tuner-face.is-in-tune .tuner-dial { background: conic-gradient(from -90deg at 50% 100%, #f1f4f9 0deg 83deg, #34c46a 83deg 97deg, #f1f4f9 97deg 180deg, transparent 180deg); }
