/* MeshMelo v47 — mobile palette, queue and shared surfaces.
   All rules are bounded by the site's existing mobile breakpoint. */
@media (max-width:767px) {
  :root {
    --mm-mobile-bg:var(--mm-site-bg,#f5f6f8);
    --mm-mobile-surface:var(--mm-site-surface,#fff);
    --mm-mobile-soft:var(--mm-site-queue,#f0edf8);
    --mm-mobile-selected:var(--mm-site-queue,#ebe5fb);
    --mm-mobile-text:var(--mm-site-text,#1f222b);
    --mm-mobile-muted:var(--mm-site-muted,#656c7a);
    --mm-mobile-accent:var(--mm-site-accent,#6546d7);
    --mm-mobile-on-accent:#fff;
    --mm-mobile-link:var(--mm-site-text,#5135b0);
    --mm-mobile-danger:var(--mm-site-text,#a92d47);
    --mm-mobile-border:var(--mm-site-line,#d9dce3);
    --mm-mobile-control-border:var(--mm-site-muted,#7e8490);
    --mm-mobile-scheme:normal;
  }
  body.mm-shell-v19 {
    --mm-shell-ink:var(--mm-mobile-text);
    --mm-shell-muted:var(--mm-mobile-muted);
    --mm-shell-line:var(--mm-mobile-border);
    --mm-shell-blue:var(--mm-mobile-link);
    --mm-shell-hover:var(--mm-mobile-selected);
    color:var(--mm-mobile-text)!important;
    background:var(--mm-mobile-bg)!important;
    color-scheme:var(--mm-mobile-scheme);
  }
  body.mm-shell-v19 main#container.mm-site-main {
    color:var(--mm-mobile-text)!important;
    background:var(--mm-mobile-bg)!important;
  }
  /* Menus and account controls remain in the same layout and follow the current page. */
  body.mm-shell-v19 :is(#mmGlobalHeader,#mmSidebar,.mm-side-bottom,#mmGenrePanel,.mm-footer) {
    background:var(--mm-mobile-surface)!important;
    color:var(--mm-mobile-text)!important;
    border-color:var(--mm-mobile-border)!important;
  }
  body.mm-shell-v19 :is(.mm-mobile-brand,.mm-mobile-account,.mm-side-brand,.mm-side-link,.mm-side-member,.mm-shell-icon,.mm-side-account-links a,.mm-side-utilities a,.mm-all-genres-grid a) {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 :is(.mm-side-label,.mm-side-invite,.mm-side-join,.mm-side-member small,.mm-footer-copy,.mm-footer-links a) {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 .mm-footer-links > button.mm-ad-pref-link[data-mm-ad-prefs] {color:var(--mm-mobile-muted)!important;-webkit-text-fill-color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 #mmGlobalHeader .mm-nav-link {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 #mmGlobalHeader .mm-nav-link:is(.is-current,:hover),
  body.mm-shell-v19 .mm-side-link:is(.is-current,:hover),
  body.mm-shell-v19 .mm-all-genres-grid a:is(.is-current,:hover) {background:var(--mm-mobile-selected)!important;color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 :is(.mm-side-search,.mm-side-avatar,.mm-side-queue-count) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 .mm-side-search input {background:transparent!important;color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 .mm-side-search input::placeholder {color:var(--mm-mobile-muted);opacity:1}
  body.mm-shell-v19 :is(.mm-mobile-bar,.mm-side-rule) {border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 :is(.mm-side-login,.mm-side-mark) {background:var(--mm-mobile-accent)!important;color:var(--mm-mobile-on-accent)!important}

  /* Queue: explicit roles beat the old IDs, inline personal theme, and late CSS. */
  body.mm-shell-v19 aside#mmQueueDrawer {
    box-sizing:border-box;background:var(--mm-mobile-surface)!important;
    color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important;
    border-radius:20px 20px 0 0;box-shadow:0 -8px 32px rgba(0,0,0,.18);
    overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--mm-mobile-muted) var(--mm-mobile-surface);
  }
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-head {
    display:grid;grid-template-columns:minmax(0,1fr) 44px;
    grid-template-areas:'title close' 'tabs tabs' 'growth growth';
    align-items:center;gap:8px;padding:12px 16px;
    border-color:var(--mm-mobile-border)!important;
  }
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-head h2 {grid-area:title;font-size:18px!important;line-height:1.4;white-space:normal}
  body.mm-shell-v19 #mmQueueDrawer #mmQueueClose {grid-area:close;width:44px;height:44px;justify-self:end;font-size:27px;opacity:1}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistTabs {grid-area:tabs;grid-template-columns:repeat(5,minmax(0,1fr));grid-template-rows:repeat(2,36px);gap:6px}
  body.mm-shell-v19 #mmQueueDrawer #mmGrowthSummary {grid-area:growth;margin:0;font-size:12px;line-height:1.5}
  body.mm-shell-v19 #mmQueueDrawer :is(h2,h3,strong,.mm-queue-title-link,.mm-queue-item-title) {color:var(--mm-mobile-text)!important;-webkit-text-fill-color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #mmQueueDrawer :is(small,.mm-queue-artist-link,.mm-queue-item-artist,.mm-queue-state,#mmGrowthSummary,#mmPlaylistStatus,.mm-queue-empty,.mm-playlist-guest p,#mmMeloPublishHint) {color:var(--mm-mobile-muted)!important;opacity:1}
  body.mm-shell-v19 #mmQueueDrawer :is(#mmPlaylistTabs button,#mmHistoryTab,#mmPlaylistCurrent,.mm-history-add,#mmHistoryMore,#mmPlaylistRename,#mmPlaylistNameForm button,#mmPlaylistImport,#mmPlaylistImportButton,.mm28-publish-box) {
    background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;
    border:1px solid var(--mm-mobile-border)!important;box-shadow:none!important;
  }
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistTabs button {border-radius:9px;font-size:13px}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistTabs button[aria-pressed=true],
  body.mm-shell-v19 #mmQueueDrawer #mmHistoryTab[aria-pressed=true] {
    background:var(--mm-mobile-selected)!important;color:var(--mm-mobile-text)!important;
    border-color:var(--mm-mobile-control-border)!important;box-shadow:inset 0 -2px 0 var(--mm-mobile-link)!important;
  }
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistTabs button.is-locked {
    opacity:1!important;filter:none;background:var(--mm-mobile-surface)!important;
    color:var(--mm-mobile-muted)!important;border-style:dashed!important;
  }
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistTabs button.is-locked::after {right:3px;top:2px;font-size:8px}
  body.mm-shell-v19 #mmQueueDrawer #mmHistoryTab {margin:4px 14px 8px;min-height:44px;border-radius:12px}
  body.mm-shell-v19 #mmQueueDrawer #mmHistoryCount {background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;font-size:12px;border-radius:6px}
  body.mm-shell-v19 #mmQueueDrawer .mm-playlist-toolbar {padding:0 14px 6px;min-height:44px}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistName {font-size:15px}
  body.mm-shell-v19 #mmQueueDrawer :is(#mmQueueClose,#mmQueueClear,.mm-queue-remove,.mm-queue-grip) {
    background:transparent!important;color:var(--mm-mobile-muted)!important;
    border:0!important;box-shadow:none!important;opacity:1;
  }
  body.mm-shell-v19 #mmQueueDrawer #mmQueueClear {min-height:44px;padding:0 8px;font-size:12px!important}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistRename {width:36px;height:36px;flex-basis:36px}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistCurrent {margin:0 14px 8px;padding:12px;border-radius:12px;gap:10px}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistCurrent small {font-size:11px}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistCurrent strong {font-size:13px;line-height:1.5}
  body.mm-shell-v19 #mmQueueDrawer #mmQueueAddCurrent {
    min-height:44px;padding:10px;font-size:12px;border-radius:10px;
    background:var(--mm-mobile-accent)!important;color:var(--mm-mobile-on-accent)!important;border:0!important;
  }
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistStatus {font-size:12px;line-height:1.5}
  body.mm-shell-v19 #mmQueueDrawer :is(#mmPlaylistRetry,.mm-playlist-guest a,.mm28-publish-box a) {color:var(--mm-mobile-link)!important}
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistNameInput {
    background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;
    border-color:var(--mm-mobile-control-border)!important;height:44px;font-size:16px;
  }
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistNameForm button {min-height:44px;font-size:12px}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-list {padding-inline:10px;scroll-padding-block:8px;scrollbar-color:var(--mm-mobile-muted) var(--mm-mobile-surface)}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-item {
    min-height:76px;padding:10px 6px;margin:0;border-radius:12px;
    background:var(--mm-mobile-surface)!important;border-color:var(--mm-mobile-border)!important;
    color:var(--mm-mobile-text)!important;box-shadow:none!important;
  }
  body.mm-shell-v19 #mmQueueDrawer.mm-show-history .mm-queue-item {grid-template-columns:minmax(0,1fr) 44px 32px;gap:6px}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-item:is(.is-current,:focus-within,:hover) {background:var(--mm-mobile-selected)!important;box-shadow:inset 3px 0 0 var(--mm-mobile-link)!important}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-item:is(.is-private,.is-deleted) {opacity:1}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-title-link {font-size:14px;line-height:1.45;font-weight:700}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-artist-link {font-size:12px;line-height:1.5;margin-top:3px}
  body.mm-shell-v19 #mmQueueDrawer a.mm-queue-artist-link[href]:hover {color:var(--mm-mobile-link)!important}
  body.mm-shell-v19 #mmQueueDrawer .mm-history-add {width:44px;min-height:44px;flex-basis:44px;border-color:var(--mm-mobile-control-border)!important;font-size:27px;border-radius:11px}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-remove {width:32px;min-height:44px;font-size:22px}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-art-button {flex-basis:44px}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-cover-play {background:rgba(0,0,0,.48)!important;color:#fff!important;border:0!important}
  body.mm-shell-v19 #mmQueueDrawer .mm-playlist-guest {background:var(--mm-mobile-soft)!important;border-color:var(--mm-mobile-border)!important;padding:12px 14px;font-size:11px;line-height:1.65}
  body.mm-shell-v19 #mmQueueDrawer .mm-playlist-guest strong {font-size:12px}
  body.mm-shell-v19 #mmQueueDrawer .mm-playlist-guest a {font-size:12px;line-height:28px}
  body.mm-shell-v19 #mmQueueDrawer :is(#mmPlaylistStatus.is-error,#mmPickerError) {color:var(--mm-mobile-danger)!important}
  body.mm-shell-v19 #mmQueueDrawer :is(.mm-history-add,#mmQueueAddCurrent,#mmHistoryMore):disabled {background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-muted)!important;opacity:1!important;cursor:not-allowed;border-style:dashed!important}

  /* Native dialogs are sometimes moved out of the drawer. Style by their own IDs. */
  body.mm-shell-v19 :is(dialog#mmPlaylistPicker,dialog#mmAdPreferences,dialog.mm28-import-dialog,.mm-ab-access-card,.mm-owner-modal) {
    box-sizing:border-box;background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;
    border:1px solid var(--mm-mobile-border)!important;border-radius:20px;
    max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;
  }
  body.mm-shell-v19 #mmPlaylistPicker {padding:18px}
  body.mm-shell-v19 #mmPlaylistPicker :is(h2,b,small,#mmPickerTrackTitle) {color:var(--mm-mobile-text)!important;-webkit-text-fill-color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #mmPlaylistPicker :is(#mmPickerDescription,.mm-picker-count) {color:var(--mm-mobile-muted)!important;font-size:12px}
  body.mm-shell-v19 #mmPlaylistPicker #mmPickerClose {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;min-width:44px;min-height:44px}
  body.mm-shell-v19 #mmPlaylistPicker .mm-picker-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.mm-shell-v19 #mmPlaylistPicker [data-picker-slot] {
    background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;
    border:1px solid var(--mm-mobile-control-border)!important;border-radius:12px;
    min-height:80px;padding:10px 8px;box-shadow:none!important;
  }
  body.mm-shell-v19 #mmPlaylistPicker [data-picker-slot]:hover {background:var(--mm-mobile-selected)!important;transform:none!important}
  body.mm-shell-v19 #mmPlaylistPicker [data-picker-slot] b {font-size:22px}
  body.mm-shell-v19 #mmPlaylistPicker [data-picker-slot] small {font-size:12px}
  body.mm-shell-v19 #mmPlaylistPicker [data-picker-slot]:disabled {opacity:1;border-style:dashed!important;color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 #mmPlaylistPicker #mmPickerError {color:var(--mm-mobile-danger)!important;font-size:12px}
  body.mm-shell-v19 :is(#mmPlaylistPicker,#mmAdPreferences,.mm28-import-dialog)::backdrop {background:rgba(0,0,0,.6)}

  /* Full-screen mobile playback, including the formerly white title bar. */
  body.mm-shell-v19 section#mmNowScreen {background:var(--mm-mobile-bg)!important;color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #mmNowScreen .mm-now-music {background:var(--mm-mobile-bg)!important}
  body.mm-shell-v19 #mmNowScreen :is(.mm-now-top,.mm-now-times,.mm-now-status,#mmNowArtist) {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 #mmNowScreen #mmNowTitle {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #mmNowScreen :is(.mm-now-top button,.mm-now-buttons button,#mmNowAdd) {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #mmNowScreen #mmNowAdd {background:var(--mm-mobile-soft)!important;border-color:var(--mm-mobile-control-border)!important}
  body.mm-shell-v19 #mmNowScreen .mm-now-buttons .mm-now-play {background:var(--mm-mobile-accent)!important;color:var(--mm-mobile-on-accent)!important}
  body.mm-shell-v19 #mmNowScreen .mm-now-art img {background:var(--mm-mobile-soft)!important}
  body.mm-shell-v19 #mmNowScreen #mmNowSeek {accent-color:var(--mm-mobile-link)}
  body.mm-shell-v19 #mmNowScreen #mmNowSeek::-webkit-slider-runnable-track {background:var(--mm-mobile-border)}
  body.mm-shell-v19 #mmNowScreen #mmNowSeek::-webkit-slider-thumb {background:var(--mm-mobile-link)}
  body.mm-shell-v19 #mmNowScreen #mmNowSeek::-moz-range-track {background:var(--mm-mobile-border)}
  body.mm-shell-v19 #mmNowScreen #mmNowSeek::-moz-range-thumb {background:var(--mm-mobile-link)}
  /* Keep v45's translucent player fill, blur, and layers intact. */
  body.mm-shell-v19 #mmGlobalPlayer.mm-global-player,
  body.mm-shell-v19 #mmGlobalPlayer .mm-player-title {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #mmGlobalPlayer :is(.mm-player-artist,.mm-player-time) {color:var(--mm-mobile-muted)!important;opacity:1}

  /* Product icon and ancillary dialogs use the same palette, without changing ad behavior. */
  body.mm-shell-v19.mm-mobile-ad-compact #mmMobileProductIcon {background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 #mmMobileProductIcon .mm-product-icon {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-link)!important}
  body.mm-shell-v19 #mmMobileProductIcon .mm-product-label {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 :is(#mmMobileAd,#mmSidebarAd) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 :is(#mmMobileAd,#mmSidebarAd) .mm-ad-card {background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 :is(#mmMobileAd,#mmSidebarAd) .mm-ad-card-text strong {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 :is(#mmMobileAd,#mmSidebarAd) :is(.mm-ad-card-text p,.mm-ad-slot-head,.mm-ad-disclosure,.mm-ad-pref-link) {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 :is(#mmMobileAd,#mmSidebarAd) .mm-ad-card-cta {color:var(--mm-mobile-link)!important}
  body.mm-shell-v19 :is(#mmAdPreferences,.mm-ab-access-card,.mm28-import-dialog) :is(h2,strong,span,label) {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 :is(#mmAdPreferences,.mm-ab-access-card,.mm28-import-dialog) :is(p,small,.mm-ad-reset) {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 :is(.mm-ad-pref-detail,.mm-ad-pref-current,.mm-ab-access-note,.mm-ab-access-status,.mm28-import-grid button) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 :is(.mm-ad-pref-actions button,.mm-ad-pref-head button,.mm-ab-access-close,.mm-ab-access-actions button) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-control-border)!important}
  body.mm-shell-v19 .mm-ab-access-actions a {background:var(--mm-mobile-accent)!important;color:var(--mm-mobile-on-accent)!important;border-color:var(--mm-mobile-accent)!important}

  /* Artist layouts, albums, song pages, member playlists and community cards. */
  body.mm-shell-v19 #container .mm-artist-skin {
    --sk-page:var(--mm-mobile-bg)!important;--sk-surface:var(--mm-mobile-surface)!important;
    --sk-surface2:var(--mm-mobile-soft)!important;--sk-text:var(--mm-mobile-text)!important;
    --sk-muted:var(--mm-mobile-muted)!important;--sk-accent:var(--mm-mobile-link)!important;
    --sk-line:var(--mm-mobile-border)!important;
  }
  body.mm-shell-v19 #container :is(.mm-skin-hero.no-banner,.mm-skin-section,.mm-av-top,.mm-player-page,.mm-lyrics,.mm28-listcard,.mm28-feature-card,.mm28-form,.mm28-help-panel,.mm30-growth-card,.mm33-theme-panel,.mm-board-card,.mm-view-article,.mm-comment-box,.mm-comment-form,.mm-write-form,.mm-panel) {
    background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-border)!important;
  }
  body.mm-shell-v19 #container :is(.mm-skin-hero.no-banner .mm-skin-name,.mm-skin-hero.no-banner .mm-skin-bio,.mm28-shell,.mm28-home,.mm28-form-shell,.mm-track,.mm-av,.mm-board,.mm-view,.mm-comment,.mm-write,.mm-wrap) {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #container .mm-skin-hero:not(.no-banner) .mm-skin-identity {background:linear-gradient(transparent,rgba(0,0,0,.86));padding-top:40px}
  body.mm-shell-v19 #container .mm-skin-hero:not(.no-banner) :is(.mm-skin-name,.mm-skin-bio) {color:#fff!important;text-shadow:0 1px 4px #000}
  body.mm-shell-v19 #container :is(.mm-skin-track-title,.mm34-album-name,.mm-av-title,.mm-av-name,.mm-av-artist,.mm-track h1,.mm-lyrics h2,.mm-txt-mobile,.mm28-song-title,.mm28-list-heading h3,.mm28-cover-link strong,.mm-board-subject a,.mm28-section-head h2) {color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #container :is(.mm-skin-track-meta,.mm34-album-count,.mm-av-meta,.mm-av-sub,.mm-av-num,.mm28-song-artist,.mm28-subtle,.mm28-help,.mm-help,.mm30-growth-card p,.mm-board-head p,.mm-board-num,.mm-board-author,.mm-view-meta,.mm-comment-meta,#mmOwnerLyricsNote) {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 #container :is(.mm34-album-genre,.mm-av-genre,.mm28-more,.mm28-back,.mm28-kicker,.mm30-growth-card>strong) {color:var(--mm-mobile-link)!important}
  body.mm-shell-v19 #container :is(.mm-skin-track-card,.mm-skin-track,.mm-av-row,.mm28-song,.mm-board-row) {border-color:var(--mm-mobile-border)!important}
  body.mm-shell-v19 #container :is(.mm-skin-track-card,.mm-skin-track,.mm-av-row,.mm28-song,.mm-board-row):is(:hover,:focus-within) {background:var(--mm-mobile-selected)!important}
  body.mm-shell-v19 #container :is(.mm28-pill,.mm28-button.secondary,.mm28-song-add,.mm-btn.alt,.mm33-theme-card,.mm-board-btn,.mm28-page-nav a,.mm-owner-edit,.mm-owner-actions .soft) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-control-border)!important}
  body.mm-shell-v19 #container :is(.mm28-button:not(.secondary),.mm-board-btn.primary,.mm-skin-youtube,.mm-lyrics-btn,.mm-owner-actions .save) {background:var(--mm-mobile-accent)!important;color:var(--mm-mobile-on-accent)!important;border-color:var(--mm-mobile-accent)!important}
  body.mm-shell-v19 #container :is(.mm28-form,.mm-write-form,.mm-comment-form,.mm-owner-modal) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea),
  body.mm-shell-v19 #container :is(.mm-input,.mm-text,.mm-file) {background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-control-border)!important;font-size:16px}
  body.mm-shell-v19 #container :is(input,textarea)::placeholder {color:var(--mm-mobile-muted);opacity:1}
  body.mm-shell-v19 #container :is(.mm28-notice,.mm28-guide pre,.mm28-guide code,.mm28-help-panel,.mm28-slot) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-text)!important}
  body.mm-shell-v19 #container :is(.mm28-alert,.mm28-error,.mm28-modal-status) {background:var(--mm-mobile-soft)!important;color:var(--mm-mobile-danger)!important}
  body.mm-shell-v19 #container :is(.mm-board-empty,.mm-board-subject small,.mm-board-date,.mm-board-hit,.mm-comment-date) {color:var(--mm-mobile-muted)!important}
  body.mm-shell-v19 #container :is(.mm-board-search input,.mm-board-search select,.mm-board-paging .pg_page) {background:var(--mm-mobile-surface)!important;color:var(--mm-mobile-text)!important;border-color:var(--mm-mobile-control-border)!important;font-size:16px}
  body.mm-shell-v19 #container .mm-board-paging .pg_current {background:var(--mm-mobile-accent)!important;color:var(--mm-mobile-on-accent)!important;border-color:var(--mm-mobile-accent)!important}
  body.mm-shell-v19 :is(#mmQueueDrawer,#mmPlaylistPicker,#mmNowScreen,#mmSidebar,#mmAdPreferences,#container) :is(a,button,input,select,textarea):focus-visible {outline:2px solid var(--mm-mobile-link)!important;outline-offset:2px}
  body.mm-shell-v19 #container .mm-skin-nav {max-width:100%;overflow-x:auto}
  body.mm-shell-v19 #container .mm-skin-track-grid {grid-template-columns:1fr}
  body.mm-shell-v19 #container .mm-owner-modal textarea {min-height:160px;max-height:45dvh}
}

@media (max-width:767px) and (max-height:700px) {
  /* One scroll surface on short phones/landscape; every footer and control stays reachable. */
  body.mm-shell-v19 #mmQueueDrawer {overflow-y:auto;overscroll-behavior:contain}
  body.mm-shell-v19 #mmQueueDrawer .mm-queue-list {flex:0 0 auto;overflow-y:visible;min-height:0}
  body.mm-shell-v19 #mmQueueDrawer .mm-playlist-guest {margin-top:8px}
}
@media (max-width:360px) {
  body.mm-shell-v19 #mmQueueDrawer #mmPlaylistCurrent {flex-wrap:wrap}
  body.mm-shell-v19 #mmQueueDrawer #mmQueueAddCurrent {width:100%}
  body.mm-shell-v19 #mmPlaylistPicker {padding:14px}
}
@media (max-width:767px) and (prefers-reduced-motion:reduce) {
  body.mm-shell-v19 :is(#mmQueueDrawer,#mmPlaylistPicker,#container) :is(button,a,.mm-queue-item) {transition:none!important}
}
