/* INSTANT PRACTICE, REBUILT ON THE REAL PLAYER (Phil, 2026-11-12) -- pg-instant-practice-v2.php.
   The page: one drop zone and three short lines. In the player: one quiet note in the part
   card's wave box (as a member's drop has), and the trial offer under it. */

.pgip2 { display: grid; gap: 14px; font-family: inherit; color: #16202b; }
.pgip2__drop { display: grid; justify-items: center; gap: 6px; padding: 34px 20px; border: 2px dashed #c9d6e2; border-radius: 16px; background: #f6f8fa; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.pgip2__drop:hover, .pgip2__drop.is-over { border-color: #53A96B; background: #eef7f1; }
.pgip2__drop:focus-within { outline: 2px solid #53A96B; outline-offset: 2px; }
.pgip2__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #e4edf5; color: #1E4F75; }
.pgip2__main { font-size: 18px; font-weight: 700; color: #16202b; }
.pgip2__sub { font-size: 14px; color: #5b6672; }
.pgip2__msg { margin: 0; font-size: 14.5px; color: #1E4F75; text-align: center; }
.pgip2__msg.is-err { color: #b42318; }
.pgip2__msg[hidden], .pgip2__again[hidden] { display: none !important; }
.pgip2__again { margin: -4px 0 0; text-align: center; }
.pgip2__how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pgip2__how div { padding: 12px 14px; border: 1px solid #e3e8ed; border-radius: 12px; font-size: 14px; line-height: 1.45; color: #5b6672; }
.pgip2__how b { display: block; margin-bottom: 2px; font-size: 14.5px; color: #16202b; }
/* The card for what the visitor searched for leads (pg_ip2_markup $lead). */
.pgip2__how div.is-lead { border-color: #1E4F75; }
@media (max-width: 700px) {
  .pgip2__drop { padding: 26px 16px; }
  .pgip2__how { grid-template-columns: minmax(0, 1fr); }
}

.pgip2-btn, .pgip2-btn:visited { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 18px; border-radius: 999px; border: 1.5px solid #c9d9e8; background: #fff; color: #1E4F75; font: 700 14.5px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; text-decoration: none; white-space: nowrap; cursor: pointer; }
.pgip2-btn:hover { border-color: #1E4F75; color: #1E4F75; text-decoration: none; }
.pgip2-btn--go, .pgip2-btn--go:visited { background: #53A96B; border-color: #53A96B; color: #fff; }
.pgip2-btn--go:hover { background: #468a58; border-color: #468a58; color: #fff; }

/* In the player: one line above the part cards, in the flow. */
.pgip2-fb { display: flex; flex-direction: column; gap: 10px; margin: 0 0 12px; padding: 12px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e3e8ee; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #16202b; text-align: left; pointer-events: auto; }
.pgip2-fb[hidden] { display: none !important; }
.pgip2-fb__msg, .pgip2-fb__done, .pgip2-fb__note { display: flex; align-items: center; gap: 10px; font-size: 14.5px; line-height: 1.35; }
.pgip2-fb__msg { color: #1E4F75; }
.pgip2-fb__done { color: #2f7d4a; }
.pgip2-fb__note { color: #44566a; }
.pgip2-fb__track { height: 6px; border-radius: 3px; background: #e9eef3; overflow: hidden; }
.pgip2-fb__track i { display: block; height: 100%; border-radius: 3px; background: #53A96B; transition: width .8s ease; }
.pgip2-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b9cde0; border-top-color: #1E4F75; flex: none; }
@media (prefers-reduced-motion: no-preference) { .pgip2-spin { animation: pgip2spin 1s linear infinite; } }
@keyframes pgip2spin { to { transform: rotate(360deg); } }
.pgip2-tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #53A96B; color: #fff; font-size: 13px; font-weight: 700; flex: none; }
.pgip2-offer { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px 14px; border-radius: 10px; background: #eef7f1; border: 1px solid #cfe7d8; }
.pgip2-offer__txt { flex: 1 1 280px; min-width: 0; display: grid; gap: 2px; }
.pgip2-offer__txt b { font-size: 15px; color: #16202b; }
.pgip2-offer__txt span { font-size: 13.5px; line-height: 1.4; color: #5b6672; }
.pgip2-offer__btns { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .pgip2-fb { margin-bottom: 8px; padding: 10px 12px; gap: 8px; }
  .pgip2-fb__msg, .pgip2-fb__done, .pgip2-fb__note { font-size: 13.5px; }
  .pgip2-offer { padding: 10px 12px; }
  .pgip2-offer__txt span { display: none; }
  .pgip2-offer__btns { width: 100%; }
  .pgip2-offer__btns .pgip2-btn { flex: 1 1 0; height: 38px; padding: 0 12px; font-size: 13.5px; }
}

/* A visitor's own file in the player (data-pg-local, set by ip2.js): it has no words or chart,
   so Real Band is the one mode, and the words pane says how to add them. */
#pg-practice-shell[data-pg-local] .pgtb__mode--sing,
#pg-practice-shell[data-pg-local] .pgtb__mode--backing,
#pg-practice-shell[data-pg-local] .pgtb__mode--drill { display: none !important; }
#pg-practice-shell[data-pg-local] .pgch__lyrics:empty::before { display: block; padding: 24px 16px; text-align: center; font-size: 15px; line-height: 1.5; color: #5b6672; }
#pg-practice-shell[data-pg-local="trial"] .pgch__lyrics:empty::before { content: "Your recording has no words or chords here yet. Start your free trial to add them."; }
#pg-practice-shell[data-pg-local="join"] .pgch__lyrics:empty::before { content: "Your recording has no words or chords here yet. Join to add them."; }

/* ── THE HARMONY SPLITTER (/separate-harmony-vocals/, Phil 11-13) ──────────────
   On the page: how many singers, asked after the drop. In the player: the Singers panel
   where the chart would be (ip2.js renderPanel), one row per singer with Solo and Sing it. */
.pgip2__count { display: grid; justify-items: center; gap: 10px; padding: 18px 16px; border: 1px solid #c9d9e8; border-radius: 14px; background: #fff; text-align: center; }
.pgip2__count[hidden] { display: none !important; }
.pgip2__count b { font-size: 16px; color: #16202b; }
.pgip2__nums { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pgip2__nums button { min-width: 52px; height: 44px; padding: 0 14px; border: 1.5px solid #c9d9e8; border-radius: 12px; background: #fff; color: #1E4F75; font: 700 16px/1 inherit; cursor: pointer; }
.pgip2__nums button:hover { border-color: #1E4F75; background: #E8F0F7; }
.pgip2__nums button.is-ns { font-weight: 600; font-size: 14.5px; color: #44566a; }
.pgip2__count-sub { font-size: 13.5px; color: #5b6672; }

/* The player: the pane holds only the Singers panel. */
#pg-practice-shell[data-pg-harmony] .pg-practice__chord > *:not(.pghs) { display: none !important; }
.pghs { display: grid; gap: 12px; align-content: start; padding: 18px 18px 22px; overflow-y: auto; max-height: 100%; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #16202b; }
#pg-practice-shell:not([data-pg-harmony]) .pghs { display: none; }
/* On a phone (no chart pane): a card above the part cards. */
.pghs.is-inline { margin: 0 0 12px; padding: 14px 12px; max-height: none; overflow: visible; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e3e8ee; }
.pghs__h { margin: 0; font-size: 19px; font-weight: 700; color: #16202b; }
.pghs__how, .pghs__note { margin: 0; font-size: 14.5px; line-height: 1.45; color: #5b6672; }
.pghs__wait { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #e3e8ee; }
.pghs__rows { display: grid; gap: 8px; }
.pghs__r { display: grid; grid-template-columns: auto 40px minmax(84px, 128px) minmax(60px, 1fr); align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid #e3e8ed; border-radius: 12px; background: #fff; }
.pghs__let { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--c); color: var(--c); font-weight: 800; font-size: 15px; }
.pghs__nm { display: grid; font-weight: 700; font-size: 15px; line-height: 1.2; color: #16202b; }
.pghs__nm small { font-weight: 500; font-size: 12.5px; color: #6b7682; }
.pghs__r input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; margin: 0;
  background: linear-gradient(to right, var(--c) 0 var(--fill, 100%), #e3e8ed var(--fill, 100%) 100%); cursor: pointer; }
.pghs__r input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--c); }
.pghs__r input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid var(--c); }
.pghs__bt { display: flex; gap: 6px; }
.pghs__b { height: 32px; padding: 0 12px; border: 1px solid #d5dee7; border-radius: 999px; background: #fff; color: #16202b; font: 600 13px/1 inherit; cursor: pointer; white-space: nowrap; }
.pghs__b:hover { border-color: #1E4F75; }
.pghs__b.is-on { background: #E8F0F7; border-color: #9fbbd2; color: #1E4F75; }
.pghs__r.is-off .pghs__let, .pghs__r.is-off .pghs__nm { opacity: .45; }
.pghs__r.is-me { border-color: var(--c); background: #f7f9fb; }
.pghs__r.is-me .pghs__let, .pghs__r.is-me .pghs__nm { opacity: 1; }
.pghs__r.is-me .pghs__nm small { color: var(--c); font-weight: 700; }
.pghs__r.is-solo { border-color: var(--c); }
.pghs__pitch { display: grid; gap: 8px; margin-top: 4px; padding: 14px 16px; border-radius: 12px; background: #eef7f1; border: 1px solid #cfe7d8; }
.pghs__pitch b { font-size: 16px; color: #16202b; }
.pghs__pitch > span { font-size: 14px; line-height: 1.45; color: #44566a; }
.pghs__pitch-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.pghs__mail, .pghs__mail:visited { font-size: 13.5px; color: #1E4F75; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 700px) {
  .pghs { padding: 12px; }
  .pghs__r { grid-template-columns: auto 34px minmax(0, 1fr); gap: 8px 10px; }
  .pghs__r input[type=range] { grid-column: 1 / -1; grid-row: 2; }
  .pghs__let { width: 32px; height: 32px; font-size: 13px; }
}

/* The caveat (Phil 11-13), on the page and under the singers. */
.pgip2__caveat { margin: -4px 0 0; font-size: 13.5px; line-height: 1.45; color: #5b6672; text-align: center; }
.pghs__caveat { margin: 0; font-size: 13px; line-height: 1.45; color: #6b7682; }

/* A CLEAN PLAYER on these pages (Phil 11-13: "this should be a clean page that just does the
   things they came for"; "no tuner"). With a visitor's own file open: play, Key, tempo, Speed up,
   the loop, the singer and the band (and the singers), master volume. Everything that would take
   them elsewhere, needs an account, or has nothing to work on here goes. */
#pg-practice-shell[data-pg-local] .pgtb__modepicker,
#pg-practice-shell[data-pg-local] .pgtb__modes,
#pg-practice-shell[data-pg-local] .pgtb__search,
#pg-practice-shell[data-pg-local] .pgtb__tuner-btn,
#pg-practice-shell[data-pg-local] .pgtb__explorer-btn,
#pg-practice-shell[data-pg-local] .pgtb__night-btn,
#pg-practice-shell[data-pg-local] .pgtb__hl,
#pg-practice-shell[data-pg-local] .pgtb__kbd-btn,
#pg-practice-shell[data-pg-local] .pg-demo-tour-reopen,
#pg-practice-shell[data-pg-local] .pg-practice__sidebar-toggle,
#pg-practice-shell[data-pg-local]:not([data-pg-km]) .pgpt__console-capo,
#pg-practice-shell[data-pg-local] .pgl-timer,
#pg-practice-shell[data-pg-local] .pgrec { display: none !important; }   /* EQ stays (Phil 11-13) */
/* The title is just the title: no arrow, and a click doesn't open the song search. */
#pg-practice-shell[data-pg-local] .pgrb2__title { pointer-events: none; cursor: default; }
#pg-practice-shell[data-pg-local] .pgrb2__title::after { display: none !important; }
/* No tempo read off the file: the % alone, not "— BPM". */
#pg-practice-shell[data-pg-local].pgip2-nobpm .pgpt__fader-bpm { display: none !important; }
/* The same on a phone, where the player is laid out differently: the playlist button, the
   title's song search and arrow, the Capo chip (rb2.css forces it on in the play row), the
   Wave | Lyrics & chords switch (no words here: the wave stays, ip2.js) and its gear. */
#pg-practice-shell[data-pg-local] .pgtb__playlist-btn,
#pg-practice-shell[data-pg-local]:not([data-pg-km]) .pgrb2p2__vs,
#pg-practice-shell[data-pg-local]:not([data-pg-km]) .pgrb2__singgear,
#pg-practice-shell.pgrb2-p2[data-mode][data-pg-local]:not([data-pg-km]) .pgpt__console-capo.pgpt__console-key { display: none !important; }
#pg-practice-shell[data-pg-local] .pgtb__title-line { pointer-events: none; cursor: default; }
#pg-practice-shell[data-pg-local] .pgtb__title::after { display: none !important; }

/* Split again (Phil 11-13). */
.pghs__again { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; border-radius: 12px; background: #f6f8fa; font-size: 13.5px; color: #44566a; }
.pghs__again .pghs__b[disabled] { background: #E8F0F7; border-color: #9fbbd2; color: #1E4F75; cursor: default; }
.pghs__err { flex-basis: 100%; color: #b42318; font-size: 13px; }

/* The countdown under the bar (Phil 11-13). */
.pghs__eta { justify-self: end; font-size: 13px; font-weight: 600; color: #1E4F75; font-variant-numeric: tabular-nums; }

/* ── THE KARAOKE MAKER (/karaoke-maker/, Phil 11-13; mockup karaoke-maker-mockup.html) ──────────
   The page: the recording (picked, it shows its name and length), the words box, a lyric sheet
   row, Make my karaoke. The player keeps its Key and Capo here (the chords are the point), and
   Karaoke gets a line under the words: the amber chords, then the pitch. */
.pgip2--km { gap: 12px; }
.pgip2--km .pgip2__drop { padding: 22px 20px; }
.pgip2__drop[hidden], .pgip2__picked[hidden], .pgip2__sheet-msg[hidden] { display: none !important; }
.pgip2__picked { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; border: 2px solid #53A96B; border-radius: 16px; background: #eef7f1; }
.pgip2__picked-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #2f8a4c; }
.pgip2__picked-t { display: grid; min-width: 0; }
.pgip2__picked-t b { font-size: 15.5px; color: #16202b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pgip2__picked-t small { font-size: 12.5px; color: #5b6672; }
.pgip2__link { padding: 0; border: 0; background: none; color: #1E4F75; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pgip2__words { display: grid; gap: 6px; }
.pgip2__words label { font-weight: 700; font-size: 14.5px; color: #16202b; }
.pgip2__words label span { font-weight: 400; color: #5b6672; }
.pgip2__words textarea { width: 100%; box-sizing: border-box; min-height: 168px; resize: vertical; border: 1.5px solid #c9d6e2; border-radius: 12px; padding: 12px 14px; font: 14px/1.55 ui-monospace, Menlo, monospace; color: #16202b; background: #fff; }
.pgip2__words textarea:focus { outline: none; border-color: #1E4F75; }
.pgip2__sheet { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1.5px dashed #c9d6e2; border-radius: 10px; background: #f6f8fa; font-size: 13px; line-height: 1.4; color: #5b6672; }
.pgip2__sheet.is-over { border-color: #53A96B; background: #eef7f1; }
.pgip2__sheet-ic { flex: none; display: grid; color: #1E4F75; }
.pgip2__sheet-msg { font-size: 13px; font-weight: 600; color: #1E4F75; }
.pgip2__hint { font-size: 12.5px; color: #5b6672; }
.pgip2__make { justify-self: start; height: 42px; padding: 0 20px; font-size: 15px; }
.pgip2__make[disabled] { opacity: .6; cursor: default; }
.pgip2__caveat--left { text-align: left; margin: 0; font-size: 12.5px; }
.pgip2--km .pgip2__msg { text-align: left; }
.pgip2--km .pgip2__again { text-align: left; }

/* The parts whose chords were heard in the recording: amber, as the player shows chords to check. */
#pg-practice-shell[data-pg-km] .pgsg__section.is-heard .pgsg__line-text .pg-chord-inline,
#pg-practice-shell[data-pg-km] .pgch__lyrics .pg-cm-section.is-heard .pg-chord-inline { color: hsl(36, 95%, 40%); }
#pg-practice-shell[data-pg-km] .pgsg__section.is-heard .pgsg__line-text .pg-chord-inline::before,
#pg-practice-shell[data-pg-km] .pgsg__section.is-heard .pgsg__line-text .pg-chord-inline::after,
#pg-practice-shell[data-pg-km] .pgch__lyrics .pg-cm-section.is-heard .pg-chord-inline::before,
#pg-practice-shell[data-pg-km] .pgch__lyrics .pg-cm-section.is-heard .pg-chord-inline::after { color: hsla(36, 95%, 40%, .55); }
/* Karaoke's line under the words: it stays in view at the bottom of the scroll. */
.pgkm-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 10px; margin: 16px 0 0; padding: 12px 16px; border-top: 1px solid #e3e8ed; background: #f6f8fa; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 14px; line-height: 1.45; color: #44566a; }
.pgkm-foot[hidden] { display: none !important; }
.pgkm-foot p { margin: 0; }
.pgkm-foot__wait { display: flex; align-items: center; gap: 10px; color: #1E4F75; }
.pgkm-sing { height: 32px; padding: 0 14px; margin-left: 6px; font-size: 13.5px; }
#pg-practice-shell:not([data-pg-km]) .pgkm-foot { display: none !important; }
@media (max-width: 700px) {
  .pgip2__make { justify-self: stretch; }
  .pgkm-foot { padding: 10px 12px; font-size: 13.5px; }
}
