/* Chord Engine on a phone in The Player's shape (ce-phone.js). Only under #pg-practice-shell.pgce-phone. */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3__row { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgce-meta { display: flex; align-items: center; gap: 6px; margin: 0; min-width: 0; flex: 0 1 auto; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3__bpm { margin-left: auto; flex: none; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3__row2 { display: flex; align-items: center; gap: 6px; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgce-keb { margin-left: auto; flex: none; }
/* The views row: the views on the left, the gear on the right, as in The Player. */
#pg-practice-shell.pgce-phone .pgbk2p2__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
/* Key and Capo at The Player's size, so the tempo keeps its room on a narrow phone. */
#pg-practice-shell.pgce-phone .pgce-meta .pgbk2__field { height: 32px; padding-left: 8px; font-size: 13px; }
#pg-practice-shell.pgce-phone .pgce-meta .pgbk2__lbl { font-size: 11.5px; }
#pg-practice-shell.pgce-phone .pgce-meta .pgbk2__sel { font-size: 13.5px; padding-right: 18px; max-width: 62px; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3__row:not(.pgp3__row2) { gap: 4px; }
#pg-practice-shell.pgce-phone .pgce-meta { gap: 4px; }
#pg-practice-shell.pgce-phone .pgce-meta .pgbk2__field { padding-left: 7px; }
#pg-practice-shell.pgce-phone .pgce-meta .pgbk2__sel { padding-right: 14px; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3__bpm { padding-left: 8px; padding-right: 8px; }

/* The switcher row (Chart | Lyrics, Key, Capo, display) at the top, as on the song's screen (Phil 11-23: 'the switcher
   row is under play row'). */
#pg-practice-shell.pgce-phone .pgbk2 > .pgbk2p2__top { order: -1; }

/* Count in in the play row, Drop out on the chart, the ⋮ as Levels (Phil 11-23, as on a computer). */
#pg-practice-shell.pgce-phone .pgce-cin { flex: none; height: 30px; padding: 0 10px; border: 1px solid #e3e8ee; border-radius: 999px; background: #fff;
    font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #4b5563; white-space: nowrap; }
#pg-practice-shell.pgce-phone .pgce-cin.is-on { background: #eaf5ee; border-color: #b9dcc4; color: #2c6b40; }
#pg-practice-shell.pgce-phone .pgce-lvl { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #e3e8ee; border-radius: 10px; background: #fff; color: #374151; }
/* Levels holds the levels and Bass runs: Count in and Drop out have their own places now. */
#pg-practice-shell.pgce-phone .pgp3__card.is-menu .pgp3__srow:has([data-p3-sw="countin-on"]),
#pg-practice-shell.pgce-phone .pgp3__card.is-menu .pgp3__srow:has([data-p3-sw="countin-on"]) + .pgp3__srow.is-sub,
#pg-practice-shell.pgce-phone .pgp3__card.is-menu .pgp3__srow:has([data-p3-sw="drop-on"]) { display: none !important; }
#pg-practice-shell.pgce-phone .pgce-drop { position: sticky; top: 0; z-index: 3; display: flex; justify-content: flex-end; align-items: center; gap: 2px; height: 0; overflow: visible; }
#pg-practice-shell.pgce-phone .pgce-drop > button { position: relative; top: 4px; height: 28px; border: 1px solid #e3e8ee; background: #fff; color: #4b5563;
    font: 600 12.5px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; box-shadow: 0 1px 4px rgba(16, 24, 40, .08); }
#pg-practice-shell.pgce-phone .pgce-drop__b { padding: 0 10px; border-radius: 999px 0 0 999px; }
#pg-practice-shell.pgce-phone .pgce-drop__set { width: 26px; padding: 0; border-radius: 0 999px 999px 0; margin-right: 6px; }
#pg-practice-shell.pgce-phone .pgce-drop__b.is-on { background: #eaf5ee; border-color: #b9dcc4; color: #2c6b40; }
#pg-practice-shell.pgce-phone .pgce-drop__pop { position: absolute; top: 38px; right: 6px; z-index: 4; min-width: 230px; padding: 10px; background: #fff; border: 1px solid #e3e8ee;
    border-radius: 12px; box-shadow: 0 10px 28px rgba(16, 24, 40, .18); }
#pg-practice-shell.pgce-phone .pgce-drop__pop[hidden] { display: none; }
#pg-practice-shell.pgce-phone .pgce-drop__pop > .pgp3__srow.is-sub { display: flex !important; }
/* Capo no wider than it needs (Phil 11-23): its value is 'Off' or a number. */
#pg-practice-shell.pgce-phone .pgbk2__meta .pgbk2__field + .pgbk2__field .pgbk2__sel { min-width: 0; width: auto; padding-right: 17px; }

/* As clean as the computer's (Phil 11-23: 'don't look anything like the clean versions on desk'): Count in, Levels and
   Drop out are the computer's plain buttons -- white, a 1px #e5e7eb line, 9px corners, 600 13px #374151, 30px tall.
   Drop out gets its own line at the chart's top right, so nothing clips it. Capo's caret gets its room back. */
#pg-practice-shell.pgce-phone .pgce-cin,
#pg-practice-shell.pgce-phone .pgce-lvl,
#pg-practice-shell.pgce-phone .pgce-drop > button {
    height: 30px !important; width: auto !important; padding: 0 10px !important; border: 1px solid #e5e7eb !important; border-radius: 9px !important;
    background: #fff !important; color: #374151 !important; box-shadow: none !important; display: inline-flex !important; align-items: center; justify-content: center;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; white-space: nowrap; position: static !important; top: auto !important; }
#pg-practice-shell.pgce-phone .pgce-cin.is-on,
#pg-practice-shell.pgce-phone .pgce-drop__b.is-on { background: #eef4f9 !important; border-color: #cdd9e5 !important; color: #1E4F75 !important; }
#pg-practice-shell.pgce-phone .pgce-drop { position: sticky; top: 0; height: auto; display: flex; justify-content: flex-end; align-items: center; gap: 0; padding: 6px 8px 4px; overflow: visible; }
#pg-practice-shell.pgce-phone .pgce-drop__b { border-radius: 9px 0 0 9px !important; }
#pg-practice-shell.pgce-phone .pgce-drop__set { width: 28px !important; padding: 0 !important; margin: 0 !important; border-left: 0 !important; border-radius: 0 9px 9px 0 !important; font-size: 11px !important; }
#pg-practice-shell.pgce-phone .pgce-drop__pop { top: 40px; right: 8px; }
#pg-practice-shell.pgce-phone .pgbk2__meta .pgbk2__field + .pgbk2__field .pgbk2__sel { padding-right: 22px; }

/* Drop out: one plain button at the chart's right, level with the first section's heading (Phil 11-23); its settings
   open under it when it's turned on. */
#pg-practice-shell.pgce-phone .pgce-drop { position: sticky; top: 0; height: 0 !important; padding: 0 !important; display: block; z-index: 3; }
#pg-practice-shell.pgce-phone .pgce-drop > .pgce-drop__b { position: absolute !important; top: var(--pgce-drop-y, 4px) !important; right: 8px; height: 26px !important; border-radius: 9px !important; }
#pg-practice-shell.pgce-phone .pgce-drop__pop { top: calc(var(--pgce-drop-y, 4px) + 32px); right: 8px; }

/* Count in under ↺, the computer's small word (band.css .pgp3__cin-b): grey 11px, a green pill when on (Phil 11-23). */
#pg-practice-shell.pgce-phone .pgce-rsw { display: inline-flex; flex-direction: column; align-items: center; flex: none; gap: 0; }
#pg-practice-shell.pgce-phone .pgce-rsw > [data-qb="restart"] { height: 30px !important; }
#pg-practice-shell.pgce-phone .pgce-rsw > .pgce-cin { height: auto !important; margin: -2px 0 0 !important; padding: 3px 5px !important; border: 0 !important; border-radius: 5px !important;
    background: none !important; box-shadow: none !important; color: #8b939d !important; font: 600 11px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; }
#pg-practice-shell.pgce-phone .pgce-rsw > .pgce-cin.is-on { background: #e3f4e8 !important; color: #0a7a36 !important; box-shadow: inset 0 0 0 1px #9fd4b0 !important; }

/* Drop out on a phone (Phil 11-23: 'it's a mess'): a switch only, the same small word as Count in, green when on; no
   menu, and no second 'Drop out ×' tag in the sections row pushing it down. */
#pg-practice-shell.pgce-phone .pgce-drop__pop, #pg-practice-shell.pgce-phone .pgp3__droptag, #pg-practice-shell.pgce-phone .pgp3__x { display: none !important; }
#pg-practice-shell.pgce-phone .pgce-drop > .pgce-drop__b { height: auto !important; padding: 3px 6px !important; border: 0 !important; border-radius: 5px !important;
    background: none !important; box-shadow: none !important; color: #8b939d !important; font: 600 11.5px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; }
#pg-practice-shell.pgce-phone .pgce-drop > .pgce-drop__b.is-on { background: #e3f4e8 !important; color: #0a7a36 !important; box-shadow: inset 0 0 0 1px #9fd4b0 !important; }

/* JUST AS ON A COMPUTER (Phil 11-23). No Levels button; the sections in the play row. */
#pg-practice-shell.pgce-phone .pgp3__keb.pgce-gone { display: none !important; }
#pg-practice-shell.pgce-phone .pgce-secs { display: inline-flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
#pg-practice-shell.pgce-phone .pgce-secs::-webkit-scrollbar { display: none; }
#pg-practice-shell.pgce-phone .pgce-secs > * { flex: none; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2:not(:has(> :not(.pgp3__keb):not([hidden]))) { display: none !important; }
/* Drop out: band.css draws it (.pgp3__drop-b, .pgp3__k, .pgp3__hpop); only its place and the card's opening are ours. */
#pg-practice-shell.pgce-phone .pgce-drop > .pgp3--pin { position: absolute; top: var(--pgce-drop-y, 4px); right: 6px; padding: 0; margin: 0; background: none; border: 0; box-shadow: none; }
#pg-practice-shell.pgce-phone .pgce-drop .pgp3__drop-b { display: inline-flex; align-items: center; height: auto; border: 0; background: none; cursor: pointer; white-space: nowrap;
    font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; padding: 5px 8px; border-radius: 7px; color: #6b7280; }
#pg-practice-shell.pgce-phone .pgce-drop .pgp3__drop-b.is-on { color: #0a9d44; }
#pg-practice-shell.pgce-phone .pgce-drop .pgp3__mw { position: relative; display: inline-flex; }
#pg-practice-shell.pgce-phone .pgce-drop .pgp3__mw.is-open > .pgp3__hpop { display: block !important; left: auto; right: 0; transform: none; }
#pg-practice-shell.pgce-phone .pgce-drop .pgp3__hpop { display: none; top: calc(100% + 6px); width: 240px; min-width: 0; padding: 10px 12px 12px; }
#pg-practice-shell.pgce-phone .pgce-dp__seg { display: grid; grid-template-columns: 1fr 1fr; padding: 2px; margin-bottom: 10px; border-radius: 9px; background: #f1f3f6; }
#pg-practice-shell.pgce-phone .pgce-dp__seg button { height: 30px; border: 0; border-radius: 7px; background: none; font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #6b7280; }
#pg-practice-shell.pgce-phone .pgce-dp__seg button.is-on { background: #fff; color: #1E4F75; box-shadow: 0 1px 3px rgba(16, 24, 40, .14); }
#pg-practice-shell.pgce-phone .pgce-dp__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font: 600 13px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #374151; }
#pg-practice-shell.pgce-phone .pgce-dp__stp { display: inline-flex; align-items: center; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
#pg-practice-shell.pgce-phone .pgce-dp__stp button { width: 30px; height: 28px; border: 0; background: #fff; font: 600 16px/1 -apple-system, sans-serif; color: #374151; }
#pg-practice-shell.pgce-phone .pgce-dp__stp b { min-width: 24px; text-align: center; font-weight: 700; color: #111; }
/* The sections in the play row (Phil 11-23): their row sits over the play row's empty middle. */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3.pgce-r2band { position: relative; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up { position: absolute !important; top: var(--pgce-r2y, 12px); left: 122px; right: 78px; height: 32px; margin: 0 !important;
    display: flex !important; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 0 !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up::-webkit-scrollbar { display: none; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__form { flex-wrap: nowrap; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2:not(:has(> :not(.pgp3__keb):not([hidden]))) { display: flex !important; }

/* ONE DISPLAY MENU (Phil 11-23: 'on desktop the display menu is good, in chord engine it's bad ... They should be the
   same right?'): Chord Engine's and The Player's Display menus take the song page's (#pg-cm-pop-settings) -- a grey
   DISPLAY head, 36px rows, the name 13px dark, the value 12px grey bold. Everywhere, not only on a phone. */
#pg-practice-shell :is(.pgbk__display-pop, .pgch__display-pop) { min-width: 240px; padding: 0 0 4px !important; gap: 0 !important; overflow: hidden;
    border: 1px solid #e5e7eb !important; border-radius: 10px !important; background: #fff !important; box-shadow: 0 10px 28px rgba(16, 24, 40, .14) !important; }
#pg-practice-shell :is(.pgbk__display-pop, .pgch__display-pop)::before { content: "Display"; display: block; margin-bottom: 4px; padding: 8px 12px;
    background: #f8f9fb; border-bottom: 1px solid #e5e7eb;
    font: 700 11px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; text-transform: uppercase; letter-spacing: .6px; color: #6b7280; }
#pg-practice-shell :is(.pgbk__display-pop, .pgch__display-pop) .pgbk__display-row { min-height: 36px; margin: 0 4px; padding: 7px 10px !important; border-radius: 6px;
    font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; color: #1a2733 !important; }
#pg-practice-shell :is(.pgbk__display-pop, .pgch__display-pop) .pgbk__display-row-lbl { font-weight: 500 !important; font-size: 13px !important; color: #1a2733 !important; }
#pg-practice-shell :is(.pgbk__display-pop, .pgch__display-pop) .pgbk__display-row-val { font-size: 12px !important; font-weight: 600 !important; color: #6b7280 !important; }
#pg-practice-shell :is(.pgbk__display-pop, .pgch__display-pop) .pgbk__display-row:hover { background: #f3f5f8; }
/* Turning Drop out on mustn't push the chart down (Phil 11-23): the strip that held its tag stays hidden unless a loop's
   Stop shows in it. */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__cap:not(:has(> .pgp3__unloop:not([hidden]))) { display: none !important; }
/* A loop's name gives way so its Stop × always shows (Phil 11-23: 'I made a loop and I can't get rid of it' -- the ×
   sat past the screen's edge). */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__form { width: 100% !important; max-width: 100% !important; min-width: 0 !important; display: flex !important; align-items: center; gap: 4px; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__seg.is-loopseg { flex: 1 1 auto !important; min-width: 0 !important; max-width: none !important; overflow: hidden; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__seg.is-loopseg span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__unloop.is-form { flex: none !important; position: static !important; display: inline-grid !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up { overflow: hidden !important; }
/* A little less room under the play row (Phil 11-23). */
#pg-practice-shell.pgce-phone .pgbk2__band.pg-band--inline { padding-bottom: 4px !important; }

/* ...organised as the song page's (Phil 11-23: 'The organized one can actually be better'): Chords | Notation (Density) |
   Echo, Time, Style, a line between the groups; and its button the song page's -- white, 32px, a 1px line, 9px corners,
   500 13px, a caret, light blue while open. */
#pg-practice-shell .pgbk__display-pop > [data-btchords] { order: 1; }
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row:nth-child(2) { order: 2; }
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row:nth-child(4) { order: 3; }
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row:nth-child(5) { order: 5; }
#pg-practice-shell .pgbk__display-pop > .pg-meter-row { order: 6; }
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row:nth-child(6) { order: 7; }
#pg-practice-shell .pgbk__display-pop > [data-pgbk-chartfit] { order: 8; }
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row--size { order: 9; }
#pg-practice-shell .pgbk__display-pop > .pg-look-row { order: 10; }
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row:nth-child(2),
#pg-practice-shell .pgbk__display-pop > .pgbk__display-row:nth-child(5) { margin-top: 5px !important; border-top: 1px solid #e5e7eb !important; border-radius: 0 !important; padding-top: 11px !important; }
#pg-practice-shell .pgbk__display-btn { height: 32px; padding: 0 12px !important; gap: 7px; border: 1px solid #e5e7eb !important; border-radius: 9px !important; background: #fff !important;
    font: 500 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important; color: #374151 !important; box-shadow: none !important; }
#pg-practice-shell .pgbk__display-btn[aria-expanded="true"] { background: #eef4f9 !important; border-color: #cdd9e5 !important; }

/* Band settings in the switcher row, left of the ⋮ (Phil 11-23): 'Band ▾', the computer's plain button. */
#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset { display: inline-flex !important; align-items: center; margin-left: auto; flex: none; }
#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset + .pgbk__display { margin-left: 6px !important; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcseg { display: inline-flex !important; align-items: center; height: 32px; border: 1px solid #e5e7eb; border-radius: 9px; background: #fff; overflow: hidden; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcpick { height: 30px; padding: 0 4px 0 10px; border: 0; background: none; font: 600 13px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #374151; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcseg:not(.is-on) .pgbk2__srcpick { color: #9aa3ad; text-decoration: line-through; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcset { width: 26px; height: 30px; padding: 0; border: 0; background: none; color: #6b7280; display: inline-grid; place-items: center; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcset svg { width: 14px; height: 14px; }
/* ...as a square sliders button (the row has no room for words), the Band mix under it. */
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcpick { display: none !important; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcseg { width: 34px; justify-content: center; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcset { width: 32px; color: #374151; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcset svg { display: none; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcset::before { content: ""; width: 18px; height: 18px; background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 12h4M12 12h8M4 17h12'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 7h10M18 7h2M4 12h4M12 12h8M4 17h12'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='17' r='2'/%3E%3C/svg%3E") center / contain no-repeat; }
/* Band settings pinned to the ⋮ (Phil 11-23), and the ⋮ centred in its box (it kept the computer button's side padding). */
#pg-practice-shell.pgce-phone .pgbk2p2__top { justify-content: flex-start !important; }
#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset { margin-left: auto !important; }
#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset + * { margin-left: 6px !important; }
#pg-practice-shell .pgbk__display-btn[data-v3aa="1"] { padding: 0 !important; width: 34px !important; display: inline-grid !important; place-items: center !important; }
/* Band settings and the ⋮ the same box (Phil 11-23): 34 × 34, a 1px #e5e7eb line, 10px corners, white. */
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcseg,
#pg-practice-shell.pgce-phone .pgbk2p2__top .pgbk__display-btn {
    box-sizing: border-box !important; width: 34px !important; height: 34px !important; min-width: 34px !important; padding: 0 !important;
    border: 1px solid #e5e7eb !important; border-radius: 10px !important; background: #fff !important; box-shadow: none !important; }
#pg-practice-shell.pgce-phone .pgce-bandset .pgbk2__srcset { width: 32px !important; height: 32px !important; }
/* ...6px apart: the row's own 8px gap, less 2 (my 6px margin came on top of it, 14 in all). */
#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset + * { margin-left: -2px !important; }

/* The views as icons (Phil 11-24). */
#pg-practice-shell.pgce-phone [data-pgbk2-view] > button[data-pgce-ic] { display: inline-grid; place-items: center; width: 38px; padding: 0 !important; }
#pg-practice-shell.pgce-phone [data-pgbk2-view] > button[data-pgce-ic][hidden] { display: none !important; }
#pg-practice-shell.pgce-phone [data-pgbk2-view] > button[data-pgce-ic] svg { display: block; }

/* Lyrics view (Phil 11-24): Band settings sits right beside the ⋮ there too -- Lyrics swaps in its own ⋮ (the lyrics
   gear), which the rules above didn't reach, so the two split the row's free space. */
#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset ~ .pgbk2-lyrhead__gearwrap { margin-left: -2px !important; }
/* Drop out is the chart's: not over the words or the melody (Phil 11-24). */
#pg-practice-shell.pgce-phone .pgbk__chart-wrap:is(.is-split, .is-split-mel, .is-split-tab) > .pgce-drop { display: none !important; }

/* THE CHART SIZED AS ON THE SONG'S SCREEN (Phil 11-24: 'chord engine is supposed to replicate song page more or less
   exact'): on a phone, 44px measure boxes and 24px chords at 100% (the app's .pg-app__charts and the phone site's
   .pg-cm-mob-chart), not modal.css's narrow 42px / 20px (18px under 380px). --pgbk-chart-zoom is the Fit / Size, which
   on a phone follows the song screen's rule too (backing-canvas.js autoFitChart). The ID outranks modal.css's
   container steps. Lines 4px apart, 22px labels and 8px between parts are modal.css's already. */
#pg-practice-shell.pgce-phone .pgbk__chart.pg-chart .pg-rt-chart {
    --pgc-chord: calc(24px * var(--pgbk-chart-zoom, 1));
    --pgc-slot-h: calc(44px * var(--pgbk-chart-zoom, 1));
}
/* The view in use shows its name with room either side (Phil 11-24: 'the switch also needs some left and right padding');
   with Lyrics or Melody open, Chart (always on) stays an icon. */
#pg-practice-shell.pgce-phone [data-pgbk2-view] > button[data-pgce-ic][aria-pressed="true"] { width: auto !important; padding: 0 11px !important; }
#pg-practice-shell.pgce-phone [data-pgbk2-view]:has(> button[data-view="lyrics"][aria-pressed="true"], > button[data-view="melody"][aria-pressed="true"]) > button[data-view="chart"] { width: 34px !important; padding: 0 !important; }
/* The lyrics start right under the controls (Phil 11-24: 'extra padding at top of lyrics') -- 44px was kept for a header
   bar that now rides the top row. */
#pg-practice-shell.pgce-phone .pgbk__lyrics-body { padding-top: 8px !important; }


/* NO FIT WHEN IT CAN'T HELP, ON THE PHONE SITE (Phil 11-24, one sizing rule; backing-lyrics.js marks it data-moot): the
   chart's Fit row in the ⋮ (it fits at 100%, or not even at 15px chords) and the words' Fit row in the Lyrics ⋮ (it
   would change nothing). The app hides its own (app-v3.css). */
html.pg-one-phone body:not(.pg-app-v3) #pg-practice-shell.pgce-phone [data-pgbk-chartfit][data-moot],
html.pg-one-phone body:not(.pg-app-v3) #pg-practice-shell.pgce-phone .pgbk2-lyrhead__row:has(> [data-lyr="fit"][data-moot]) { display: none !important; }

/* CHORD ENGINE'S LOOP AS ONE PILL (Phil 11-24: "ugly as two separate buttons", "meant to look like a section"): the name and
   its x joined, sized to the name, in the middle of the section chips' place; "⟲ Verse" on one line; a tap anywhere on it
   ends the loop (band.js). */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__form:has(> .is-loopseg) { justify-content: center !important; gap: 0 !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__seg.is-loopseg { flex: 0 1 auto !important; border-radius: 9px 0 0 9px !important; padding: 0 6px 0 12px !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__seg.is-loopseg span { display: inline-flex !important; align-items: center; gap: 5px; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__seg.is-loopseg span svg { flex: none; display: block; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__unloop.is-form { border-radius: 0 9px 9px 0 !important; margin: 0 !important; height: auto !important; align-self: stretch; padding: 0 10px 0 4px !important; width: auto !important; border: 0 !important; box-shadow: none !important; }

/* ...and the same pill where the section chips keep their own row (an instrumental with a melody, whose Band / Melody
   buttons fill the play row's middle): it was still two yellow buttons at the left there (Phil 11-24: "still seeing the
   ugly yellow loop button"). Centred in its row. */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__form:has(> .is-loopseg) { display: flex !important; justify-content: center !important; align-items: center !important; gap: 0 !important; width: 100% !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__seg.is-loopseg { flex: 0 1 auto !important; min-width: 0 !important; max-width: none !important; border-radius: 9px 0 0 9px !important; padding: 0 6px 0 12px !important; overflow: hidden; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__seg.is-loopseg span { display: inline-flex !important; align-items: center; gap: 5px; white-space: nowrap; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__seg.is-loopseg span svg { flex: none; display: block; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__unloop.is-form { position: static !important; display: inline-grid !important; flex: none !important; border-radius: 0 9px 9px 0 !important; margin: 0 !important; height: auto !important; align-self: stretch; padding: 0 10px 0 4px !important; width: auto !important; border: 0 !important; box-shadow: none !important; }
/* The loop pill sits at the left, not centred, and its x is centred top to bottom (Phil 11-24). */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__form:has(> .is-loopseg) { justify-content: flex-start !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2 .pgp3__unloop.is-form { display: inline-flex !important; align-items: center !important; justify-content: center !important; line-height: 1 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up .pgp3__form:has(> .is-loopseg) { justify-content: flex-start !important; }

/* THE LOOP PILL WHEREVER THE READOUT SITS (Phil 11-24, with a screenshot: a dragged loop's "Measures 1-15" and its x
   were still two pieces). On a wider phone the loop readout moves into the play row itself (.pgp3__row), which the rules
   above (row 2 only) never reached. One pill, at the left, its x centred. */
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form:has(> .is-loopseg) { display: flex !important; justify-content: flex-start !important; align-items: center !important; gap: 0 !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form > .pgp3__seg.is-loopseg { flex: 0 1 auto !important; min-width: 0 !important; max-width: none !important; margin: 0 !important; border-radius: 9px 0 0 9px !important; padding: 0 6px 0 12px !important; overflow: hidden; }
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form > .pgp3__seg.is-loopseg span { display: inline-flex !important; align-items: center; gap: 5px; white-space: nowrap; }
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form > .pgp3__seg.is-loopseg span svg { flex: none; display: block; }
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form > .pgp3__unloop.is-form { position: static !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; flex: none !important; border-radius: 0 9px 9px 0 !important; margin: 0 !important; align-self: stretch !important; height: auto !important; width: auto !important; padding: 0 10px 0 4px !important; line-height: 1 !important; border: 0 !important; box-shadow: none !important; }
/* THE BROKEN x (Phil 11-24): row 2 lies over the play row (.pgce-r2up); when the loop readout sits in the play row itself,
   row 2's empty space caught every tap on the pill and its x. Taps pass through row 2 except on what it holds. */
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up { pointer-events: none !important; }
#pg-practice-shell.pgce-phone .pgbk2__band .pgp3 > .pgp3__row2.pgce-r2up > * { pointer-events: auto !important; }

/* The loop pill's x drawn, not typed (Phil 11-24: "x is not vertically centered"): the x character sits on the text's
   baseline; an icon centres exactly. */
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form > .pgp3__unloop.is-form { font-size: 0 !important; color: transparent !important; width: 28px !important; padding: 0 !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone .pgp3 .pgp3__form > .pgp3__unloop.is-form::before { content: ""; width: 11px; height: 11px; background: #3d3200; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 6l12 12M18 6 6 18' stroke='black' stroke-width='3' stroke-linecap='round'/></svg>") center / contain no-repeat; }


/* CHORD ENGINE ON A PHONE ON ITS SIDE (Phil 11-25, mockup MYhvoP6j v2). Row 1: the title and its line on the left; the
   switcher, Key, Capo and one ⋮ on the right. Row 2: the play row (play, Count in, the mutes, levels -- ce-phone.js moves
   them in -- the sections, the tempo). Then the two halves. Overrides app-v3.css's first sideways try. */
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead .pgbk2 { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; column-gap: 12px !important; row-gap: 0 !important; align-items: center !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead .pgbk2 > * { grid-column: 1 / -1 !important; grid-row: auto !important; min-width: 0; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead .pgbk2 > .pgbk2__head { grid-column: 1 !important; grid-row: 1 !important; max-width: none !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead .pgbk2 > [data-pgbk2-top] { grid-column: 2 !important; grid-row: 1 !important; width: auto !important; justify-content: flex-end !important; margin: 0 !important; border: 0 !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead .pgbk2 > .pgbk2__band { grid-column: 1 / -1 !important; grid-row: 2 !important; width: auto !important; margin: 0 !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead .pgbk2__band .pgp3__row > .pgce-bandset { flex: none; margin: 0 4px; }
/* One ⋮: with the lyrics open beside the chart it is the lyrics ⋮ (display-menu.js adds the chart's rows to it); else the chart's. */
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-side [data-pgbk2-top][data-view="lyrics"] > .pgbk2__gear { display: none !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-side [data-pgbk2-top]:not([data-view="lyrics"]) > .pgbk2-lyrhead__gearwrap { display: none !important; }
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-side [data-pgbk2-top][data-view="lyrics"] > .pgbk2-lyrhead__gearwrap { display: flex !important; }
/* Its menu stops above the bottom bar and scrolls. */
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-sidehead :is(.pgbk__display-pop, .pgbk2-lyrhead__pop) { max-height: calc(100vh - 150px) !important; max-height: calc(100dvh - 150px) !important; overflow-y: auto !important; overscroll-behavior: contain; }
/* Every view on screen is lit: side by side, Chart is lit beside Lyrics or Melody. */
#pg-practice-shell#pg-practice-shell.pgce-phone.pgbk2-side [data-pgbk2-view] > button[data-view="chart"][aria-pressed="true"] { background: #3a7ab3 !important; color: #fff !important; }
/* NARROW PHONES (11-27): at 320-379px the top row (Chart|Aa, Key, Disp., Band settings, ⋮) ran out of room and the
   Band settings button sat on top of the Disp. pill. Tighter gaps and padding there; the Key / Disp. pills never shrink. */
@media (max-width: 379px) {
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top { gap: 3px !important; }
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgbk2__view button { padding: 0 5px !important; }
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgbk2__meta { flex: none !important; gap: 3px !important; }
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top .pgbk2__field { padding-left: 6px !important; }
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top .pgbk2__field.pg-dispf--key { padding-right: 4px !important; }
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset { margin-left: auto !important; }
    #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top > .pgce-bandset + * { margin-left: 0 !important; }
}
@media (max-width: 339px) {
    html body #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top { padding-left: 6px !important; padding-right: 6px !important; }
    html body #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top .pgce-bandset .pgbk2__srcseg { width: 30px !important; min-width: 0 !important; }
    html body #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top .pgce-bandset .pgbk2__srcset { width: 28px !important; }
    html body #pg-practice-shell#pg-practice-shell.pgce-phone .pgbk2p2__top :is(.pgbk__display, .pgbk__display-btn) { width: 30px !important; min-width: 0 !important; }
}

/* FOUR VIEWS ON A PHONE (Harmony added, Phil 11-29): the picked view shows its icon, not its word, so Key and Display key
   keep room (with "Harmony" spelled out the Display key read only its arrow). */
#pg-practice-shell.pgce-phone [data-pgbk2-view]:has(> [data-view="harmony"]:not([hidden])) .pg-vlbl { display: none !important; }
#pg-practice-shell.pgce-phone [data-pgbk2-view]:has(> [data-view="harmony"]:not([hidden])) > button > svg { display: inline-block !important; }
