/* WATCHER on phones (8 Nov 2026). Loaded last; everything is inside the phone breakpoint, so desktop is untouched.
   Principles: one calm surface (paper, ink, one orange), a 16px gutter, 44px taps, songs as quiet two-line rows that
   play on one tap, filters as one swipeable chip row, menus as bottom sheets, nothing floating over the list.
   The art stays: banners keep their skyline, the curtain/wipes/stamps are untouched. */
@media (max-width: 760px) {
  :root {
    --m-g: 16px; --m-paper: var(--bc-paper, #f6eedb); --m-card: var(--bc-card, #fbf6ea); --m-ink: var(--bc-ink, #0e0e0c);
    --m-mute: #6f6a5d; --m-line: rgba(14, 14, 12, .1); --m-o: var(--bc-o, #ff5b1c); --m-chip: 36px; --m-r: 10px;
    --m-tabs: 62px; --m-mini: 58px; --m-bottom: calc(var(--m-tabs) + var(--m-mini) + env(safe-area-inset-bottom, 0px));
  }
  html body { -webkit-tap-highlight-color: transparent; background: var(--m-paper); }
  html body button, html body a, html body select { touch-action: manipulation; }

  /* ---------- header: the existing phone grid stays; only the LOG IN label grows to a readable size ---------- */
  html body .hdr > #sc-login::after { font-size: 11px !important; letter-spacing: .04em; }
  html body .hdr > #sc-login { padding: 0 10px !important; }
  /* logo, search, chest, LOG IN and profile used to add up to 402px on a 390px phone: the profile key fell off the edge */
  html body .hdr #logo .logo-wordmark { width: 112px !important; height: auto !important; }
  html body .hdr #logo { flex-shrink: 1 !important; min-width: 0 !important; }

  /* ---------- page banners: keep the skyline art, make the title readable, drop the tiny lore ---------- */
  html body .scene { min-height: 0 !important; }
  html body :is(#archive-scene, #people-scene, #blend-scene, #lurklist-scene, .scene-host) :is(.dlg-line, .lore, .lore-sub, .scene-lore) { display: none !important; }

  /* ---------- the log-in bar repeats the header's LOG IN on every page; phones keep only the header one
     (lurk-only mode keeps the bar: there it's the main way back to your own likes) ---------- */
  html body:not(.lurk-only) #sc-login-bar#sc-login-bar { display: none !important; }

  /* ---------- Likes / Free downloads / Dig: a segmented control ---------- */
  html body #archive-tools#archive-tools:not(.hidden) { display: flex !important; gap: 4px !important; margin: 8px var(--m-g) 6px !important; padding: 3px !important; background: rgba(14, 14, 12, .06); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
  html body #archive-tools#archive-tools::-webkit-scrollbar { display: none; }
  html body #archive-tools#archive-tools > .btn { flex: 1 0 auto; min-height: 36px !important; height: 36px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--m-ink) !important; font: 600 12px var(--body) !important; letter-spacing: .02em; border-radius: 9px !important; padding: 0 12px !important; }
  html body #archive-tools#archive-tools > .btn.solid { background: var(--m-card) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .14) !important; }
  html body #archive-tools#archive-tools > #likes-check { flex: 0 0 40px; font-size: 0 !important; }
  html body #archive-tools#archive-tools > #likes-check::before { content: "⟳"; font-size: 17px; }

  /* ---------- filters: one swipeable row of chips, then the view row ---------- */
  html body :is(#shell#shell, #more-modal#more-modal) .view .panel.index2 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 0 !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .view .panel.index2::before, html body :is(#shell#shell, #more-modal#more-modal) .view .panel.index2::after { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .view .panel.index2 > :not(.mobile-filterbar) { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px !important; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px var(--m-g) 10px !important; margin: 0 !important; background: transparent !important; border: 0 !important; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar::-webkit-scrollbar { display: none; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar > label { flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; font-size: 0 !important; display: block !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar > label select,
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortbtn,
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .filter-dice,
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .pick-control > *,
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .shufbtn,
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .m-chip {
    height: var(--m-chip) !important; min-height: var(--m-chip) !important; width: auto !important; max-width: 220px; margin: 0 !important;
    padding: 0 30px 0 14px !important; border: 1px solid var(--m-line) !important; border-radius: 999px !important; box-shadow: none !important;
    background-color: var(--m-card) !important; color: var(--m-ink) !important; font: 600 13px/1 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; white-space: nowrap;
  }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar > label select[data-el=mobilegenre] { max-width: 136px !important; text-overflow: ellipsis; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar > label select[data-el=mobileyear] { max-width: 112px !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar > label select { background-position: calc(100% - 15px) 50%, calc(100% - 11px) 50% !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar > label select:not([value=""]):has(option:checked:not([value=""])) { background-color: var(--m-ink) !important; color: #fff !important; border-color: var(--m-ink) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortwrap { display: contents !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortwrap > * { flex: 0 0 auto !important; order: 4; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortwrap > .sortbtn { order: 1; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortwrap > .pick-control { order: 2; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortwrap > .filter-dice { order: 3; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .shufbtn, html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .m-chip { padding: 0 14px !important; display: inline-flex !important; align-items: center; gap: 6px; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .shufbtn { width: var(--m-chip) !important; padding: 0 !important; justify-content: center; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .filter-dice { padding: 0 14px !important; display: inline-flex !important; align-items: center; gap: 6px; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .pick-control { display: flex !important; gap: 8px; flex: 0 0 auto; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .pick-control > * { padding: 0 14px !important; display: inline-flex !important; align-items: center; gap: 6px; background: var(--m-o) !important; color: #fff !important; border-color: var(--m-o) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .pick-control small, html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar kbd { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .sortbtn { padding-right: 14px !important; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .ic { width: 15px !important; height: 15px !important; }

  /* the list's own row: view (List/Grid/Tree), kind tabs, reset */
  html body :is(#shell#shell, #more-modal#more-modal) .panel.listpanel { margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .panel.listpanel::before, html body :is(#shell#shell, #more-modal#more-modal) .panel.listpanel::after { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .panel.listpanel > .tabsbar { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px !important; padding: 0 var(--m-g) 6px !important; margin: 0 !important; min-height: 0 !important; border: 0 !important; overflow-x: auto; scrollbar-width: none; background: transparent !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .panel.listpanel > .tabsbar::-webkit-scrollbar { display: none; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar .music-view-mode { flex: 0 0 auto; height: 32px !important; min-height: 32px !important; width: auto !important; border: 1px solid var(--m-line) !important; border-radius: 8px !important; box-shadow: none !important; font: 600 12px var(--body) !important; padding: 0 26px 0 10px !important; background-color: transparent !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar .tabs { display: flex !important; flex: 0 0 auto; gap: 2px !important; border: 0 !important; background: transparent !important; width: auto !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar .tabs button { height: 32px !important; min-height: 32px !important; padding: 0 10px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--m-mute) !important; font: 600 12px var(--body) !important; box-shadow: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar .tabs button.on { color: var(--m-ink) !important; background: rgba(14, 14, 12, .07) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar .tabs button .ic { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar > .btn { flex: 0 0 auto; height: 32px !important; min-height: 32px !important; border-radius: 8px !important; box-shadow: none !important; font: 600 12px var(--body) !important; padding: 0 10px !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .tabsbar :is(.list-count, .count, .tb-count) { display: none !important; }


  /* ---------- song rows: art, two lines, ♥, ⋯. The whole row plays. ---------- */
  html body :is(#shell#shell, #more-modal#more-modal) .rows:not(.grid) { padding: 0 !important; margin: 0 !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)),
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)).compact {
    display: grid !important; grid-template-columns: 52px minmax(0, 1fr) 40px 40px !important;
    grid-template-areas: "art body heart more" !important; grid-template-rows: auto !important;
    align-items: center !important; column-gap: 8px !important; row-gap: 0 !important;
    min-height: 68px !important; height: auto !important; padding: 8px 2px 8px 12px !important; margin: 0 !important;
    border: 0 !important; border-bottom: 1px solid var(--m-line) !important; border-radius: 0 !important; box-shadow: none !important; background: transparent !important;
    cursor: pointer; position: relative;
  }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)):active { background: rgba(14, 14, 12, .04) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)).current { background: rgba(255, 91, 28, .07) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > :is(.r-num, .r-play, .r-likeit, .r-crate, .tn) { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-art { grid-area: art !important; width: 52px !important; height: 52px !important; margin: 0 !important; border-radius: 6px; overflow: hidden; position: relative; box-shadow: none !important; border: 0 !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-art img { width: 100% !important; height: 100% !important; object-fit: cover; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-art .kind { font-size: 8px !important; }
  /* playing / paused marker on the art of the current song */
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)).current > .r-art::after { content: ""; position: absolute; inset: 0; background: rgba(14, 14, 12, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M3 2h2v8H3zM7 2h2v8H7z'/%3E%3C/svg%3E") center / 20px no-repeat; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)).current:not(.playing) > .r-art::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff' d='M3 2h2v8H3zM5 3h2v6H5zM7 4h2v4H7z'/%3E%3C/svg%3E"); }

  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-body {
    grid-area: body !important; display: grid !important; grid-template-columns: minmax(0, auto) minmax(0, 1fr) !important;
    grid-template-areas: "title title" "artist artist" !important; align-items: baseline; column-gap: 8px; row-gap: 3px; min-width: 0; margin: 0 !important; padding: 0 !important;
  }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-titleline { display: contents !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-title { grid-area: title; min-width: 0; margin: 0 !important; font: 600 15px/1.25 var(--body) !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--m-ink) !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-title .track-link { color: inherit !important; text-decoration: none !important; pointer-events: auto; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-title .track-cloud { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-artist { grid-area: artist; min-width: 0; max-width: 100%; margin: 0 !important; font: 400 13px/1.3 var(--body) !important; color: var(--m-mute) !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-artist :is(.blend-reason, .track-download-slot:empty) { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-artist .track-download { font-size: 10px !important; padding: 1px 5px !important; margin-left: 6px; vertical-align: 1px; }
  /* phones show title and artist only (as SoundCloud does); the genre is one tap away in the chip row */
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta-unused { grid-area: meta; min-width: 0; display: flex !important; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; margin: 0 !important; justify-content: flex-start; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta::before { content: "·"; color: var(--m-mute); }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta .tag { all: unset; display: inline !important; height: auto !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; font: 400 13px/1.3 var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--m-mute) !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta .tag::before, html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta .tag::after { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-tmeta :is(.kchip, .r-tdate) { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-body > :is(.r-av, .track-date-pair) { display: none !important; }
  /* the waveform only for the song that's playing: full width under the row, drag to scrub */
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-body > .r-wave { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)).current > .r-body > .r-wave { display: block !important; grid-column: 1 / -1; grid-row: 3; height: 30px !important; min-height: 30px !important; max-height: none !important; margin: 6px 0 0 !important; touch-action: none; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)).current > .r-body > .r-wave .r-time { font-size: 10px !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-side { grid-area: heart !important; display: flex !important; justify-content: center; margin: 0 !important; padding: 0 !important; min-width: 0; width: auto !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-side > :not(.r-stats) { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-stats { display: flex !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; border: 0 !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-stats > :not(.r-heart) { display: none !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-heart { width: 40px !important; min-width: 40px !important; max-width: none !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--m-mute) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-heart .ic { width: 18px !important; height: 18px !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-heart .n { font: 500 10px/1 var(--body) !important; color: var(--m-mute) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) .r-heart[aria-pressed="true"] { color: var(--m-o) !important; }
  html body :is(#shell#shell, #more-modal#more-modal) :is(.rows:not(.grid) > .row, #w-feed .row:not(.card)) > .r-more { grid-area: more !important; width: 40px !important; min-width: 40px !important; max-width: none !important; height: 44px !important; min-height: 44px !important; padding: 0 !important; margin: 0 !important; border: 0 !important; box-shadow: none !important; background: transparent !important; color: var(--m-ink) !important; display: inline-flex !important; align-items: center; justify-content: center; }
  /* Lurklist rows: duration and genre tag sit on the row itself (hidden), the ♥ group too, and "who liked it" gets a line on top */
  html body #shell#shell #w-feed .row.compact:not(.card) { grid-template-areas: "who who who who" "art body heart more" !important; }
  html body #shell#shell #w-feed .row.compact:not(.card) > :is(.c-dur, .tag, span:empty) { display: none !important; }
  html body #shell#shell #w-feed .row.compact:not(.card) .r-titleline .feed-genre { display: none !important; }
  html body #shell#shell #w-feed .row.compact:not(.card) > .r-stats { grid-area: heart !important; justify-content: center; }
  html body #shell#shell #w-feed .row.compact:not(.card) > .r-who { grid-area: who !important; margin: 0 0 6px !important; font: 400 12px/1.3 var(--body) !important; color: var(--m-mute) !important; display: flex !important; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  html body #shell#shell #w-feed .row.compact:not(.card) > .r-who img { width: 20px !important; height: 20px !important; border-radius: 50%; }
  html body #shell#shell #w-feed .row.compact:not(.card) > .r-who .ic { width: 12px !important; height: 12px !important; }

  /* grid cards: two columns, square art, two lines */
  html body :is(#shell#shell, #more-modal#more-modal) .rows.grid { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 16px 12px !important; padding: 4px var(--m-g) 16px !important; }
  html body :is(#shell#shell, #more-modal#more-modal) .rows.grid > .card { margin: 0 !important; box-shadow: none !important; border: 0 !important; background: transparent !important; padding: 0 !important; }

  /* list ends above the player and tabs */
  html body #shell { padding-bottom: calc(var(--m-bottom) + 16px) !important; }

  /* ---------- menus become bottom sheets ---------- */
  html body #pop#pop:not(.hidden) {
    position: fixed !important; left: 0 !important; right: 0 !important; top: auto !important; bottom: 0 !important; width: auto !important; max-width: none !important;
    max-height: min(78vh, 640px); overflow-y: auto; overscroll-behavior: contain; z-index: 1300 !important;
    padding: 8px 8px calc(12px + env(safe-area-inset-bottom, 0px)) !important; border: 0 !important; border-radius: 16px 16px 0 0 !important;
    background: var(--m-card) !important; box-shadow: 0 -8px 40px rgba(0, 0, 0, .28) !important; animation: m-sheet-up .18s ease-out;
  }
  html body #pop#pop:not(.hidden)::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: rgba(14, 14, 12, .2); margin: 2px auto 8px; }
  html body #pop#pop:not(.hidden) > button, html body #pop#pop:not(.hidden) > a { display: flex !important; align-items: center; gap: 14px; width: 100% !important; min-height: 48px !important; padding: 0 12px !important; border: 0 !important; border-radius: 10px !important; background: transparent !important; box-shadow: none !important; font: 500 15px var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--m-ink) !important; text-align: left; }
  html body #pop#pop:not(.hidden) > button:active { background: rgba(14, 14, 12, .06) !important; }
  html body #pop#pop:not(.hidden) > hr { margin: 6px 12px !important; border: 0 !important; border-top: 1px solid var(--m-line) !important; }
  html body #pop#pop .pop-head { display: flex !important; }
  html body:has(#pop:not(.hidden))::after { content: ""; position: fixed; inset: 0; z-index: 1299; background: rgba(14, 14, 12, .35); animation: m-fade .18s ease-out; }
  @keyframes m-sheet-up { from { transform: translateY(24px); opacity: .6; } }
  @keyframes m-fade { from { opacity: 0; } }

  /* the Lurklist's own toolbar stays hidden until someone is saved */
  html body.lurklist-none #shell#shell #view-watcher .panel.listpanel > .tabsbar,
  html body.lurklist-none #shell#shell #view-watcher :is(.wtop, .mobile-filterbar) { display: none !important; }

  /* ---------- Lurklist: the same chip rows as Likes ---------- */
  html body #shell#shell #view-watcher .wtop { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 8px !important; overflow-x: auto; scrollbar-width: none; padding: 4px var(--m-g) 8px !important; margin: 0 !important; grid-template-columns: none !important; background: none !important; border: 0 !important; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  html body #shell#shell #view-watcher .wtop::-webkit-scrollbar { display: none; }
  html body #shell#shell #view-watcher .wtop > .panel:not([hidden]) { display: block !important; flex: 0 0 auto !important; width: auto !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html body #shell#shell #view-watcher .wtop > .panel::before, html body #shell#shell #view-watcher .wtop > .panel::after { display: none !important; }
  html body #shell#shell #view-watcher .wtop :is(.ph, .erabar, .mobile-lurk-year > span, .genre-select > .ic) { display: none !important; }
  html body #shell#shell #view-watcher .wtop :is(.genre-select, .mobile-lurk-year) { display: block !important; margin: 0 !important; padding: 0 !important; width: auto !important; border: 0 !important; background: none !important; box-shadow: none !important; }
  html body #shell#shell #view-watcher .wtop :is(#w-genre, #w-year-mobile) { display: block !important; height: var(--m-chip) !important; min-height: var(--m-chip) !important; width: auto !important; max-width: 150px; margin: 0 !important; padding: 0 30px 0 14px !important; border: 1px solid var(--m-line) !important; border-radius: 999px !important; box-shadow: none !important; background-color: var(--m-card) !important; color: var(--m-ink) !important; font: 600 13px/1 var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; text-overflow: ellipsis; }
  html body #shell#shell #view-watcher .wtop #w-mode { display: flex !important; gap: 2px !important; padding: 2px !important; margin: 0 !important; border: 1px solid var(--m-line) !important; border-radius: 999px !important; background: var(--m-card) !important; box-shadow: none !important; }
  html body #shell#shell #view-watcher .wtop #w-mode button { height: 30px !important; min-height: 30px !important; padding: 0 12px !important; border: 0 !important; border-radius: 999px !important; background: transparent !important; box-shadow: none !important; color: var(--m-mute) !important; font: 600 12px var(--body) !important; text-transform: none !important; }
  html body #shell#shell #view-watcher .wtop #w-mode button.on { background: var(--m-ink) !important; color: #fff !important; }
  html body #shell#shell #view-watcher .wtop #w-mode .ic { display: none !important; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar :is(.feed-mark, .feed-title, .feed-sub) { display: none !important; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar { justify-content: flex-start !important; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar .sortwrap { display: flex !important; flex-wrap: nowrap !important; justify-content: flex-start !important; flex: 0 0 auto !important; width: max-content !important; max-width: none !important; gap: 8px !important; margin: 0 !important; padding: 0 !important; position: static !important; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar .sortwrap > :is(.shufbtn, .sortbtn), html body #shell#shell #view-watcher .feedpanel > .tabsbar .pick-control > button { flex: 0 0 auto !important; height: var(--m-chip) !important; min-height: var(--m-chip) !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--m-line) !important; border-radius: 999px !important; box-shadow: none !important; background: var(--m-card) !important; color: var(--m-ink) !important; font: 600 13px/1 var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; display: inline-flex !important; align-items: center; gap: 6px; white-space: nowrap; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar .pick-control { display: flex !important; margin: 0 !important; order: -1; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar .pick-control > button { background: var(--m-o) !important; color: #fff !important; border-color: var(--m-o) !important; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar :is(.pick-control small, kbd) { display: none !important; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar .shufbtn { width: var(--m-chip) !important; padding: 0 !important; justify-content: center; }
  html body #shell#shell #view-watcher .feedpanel > .tabsbar .sortbtn { max-width: 210px; overflow: hidden; text-overflow: ellipsis; }

  /* ---------- someone's page: compact header, one swipeable row of actions ---------- */
  html body #person-head#person-head { padding-bottom: 8px !important; }
  html body #person-head#person-head .ph-stats { gap: 18px !important; margin: 6px 0 !important; }
  html body #person-head#person-head .ph-acts { display: flex !important; flex-wrap: nowrap !important; gap: 8px !important; overflow-x: auto; scrollbar-width: none; padding: 4px 0 8px !important; margin: 0 !important; grid-column: 1 / -1; -webkit-mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  html body #person-head#person-head .ph-acts::-webkit-scrollbar { display: none; }
  html body #person-head#person-head .ph-acts > :is(.btn, a, button) { flex: 0 0 auto !important; height: 40px !important; min-height: 40px !important; width: auto !important; margin: 0 !important; padding: 0 14px !important; border: 1px solid var(--m-line) !important; border-radius: 999px !important; box-shadow: none !important; background: var(--m-card) !important; color: var(--m-ink) !important; font: 600 12px var(--body) !important; display: inline-flex !important; align-items: center; gap: 6px; }
  html body #person-head#person-head .ph-acts > .ph-blend { background: var(--m-o) !important; border-color: var(--m-o) !important; color: #fff !important; order: -1; }

  /* ---------- Blend: candidates with small icon actions beside them, no second row of buttons ---------- */
  html body #shell#shell .roster-entry { display: grid !important; grid-template-columns: minmax(0, 1fr) auto !important; align-items: center !important; gap: 8px !important; margin: 0 0 8px !important; }
  html body #shell#shell .roster-entry > .roster-acts { display: flex !important; flex-direction: row !important; gap: 6px !important; margin: 0 !important; width: auto !important; }
  html body #shell#shell .roster-entry > .roster-acts > .btn { width: 40px !important; min-width: 40px !important; height: 40px !important; min-height: 40px !important; padding: 0 !important; font-size: 0 !important; letter-spacing: 0 !important; border-radius: 10px !important; box-shadow: none !important; display: inline-flex !important; align-items: center; justify-content: center; }
  html body #shell#shell .roster-entry > .roster-acts > .btn .ic { width: 18px !important; height: 18px !important; margin: 0 !important; }
  html body #shell#shell .roster-entry > .roster-acts > .btn::before, html body #shell#shell .roster-entry > .roster-acts > .btn::after { font-size: 16px; }
  html body #blend-arena .arena-rules { display: none !important; }

  /* ---------- dialogs (people around a track, Similar, taste map, stats, keys): sheets from the bottom ---------- */
  html body .modal:not(.hidden) { align-items: flex-end !important; justify-content: stretch !important; padding: 0 !important; }
  html body .modal:not(.hidden) > .modal-card {
    width: 100% !important; max-width: none !important; height: auto !important; max-height: calc(100dvh - 48px) !important; margin: 0 !important; overflow-y: auto; overscroll-behavior: contain;
    border: 0 !important; border-radius: 16px 16px 0 0 !important; box-shadow: 0 -8px 40px rgba(0, 0, 0, .3) !important; padding-bottom: env(safe-area-inset-bottom, 0px) !important; animation: m-sheet-up .2s ease-out;
  }
  html body .modal:not(.hidden) > .modal-card::after { display: none !important; }
  html body .modal:not(.hidden) .modal-head { position: sticky; top: 0; z-index: 2; background: inherit; padding-top: 14px !important; }
  html body .modal:not(.hidden) .modal-head :is(.icon-btn, [id$=-close]) { width: 44px !important; height: 44px !important; }

  /* ---------- nothing floats over the list: the dock's keys live in the chip row and the profile sheet ---------- */
  html body .game-dock { display: none !important; }
  html body .quest.quest-dock { display: none !important; }

  /* ---------- mini player: a thin progress line along its top edge ---------- */
  html body #player#player::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: calc(var(--pp, 0) * 100%); background: var(--m-o); pointer-events: none; z-index: 3; }
  html body :is(#shell#shell, #more-modal#more-modal) .mobile-filterbar .m-map { order: 5; display: inline-flex !important; }
  html body .mobile-filterbar .m-map .ic { width: 14px !important; height: 14px !important; }

  /* ---------- notices: one small card above the player ---------- */
  html body #toast#toast { left: 12px !important; right: 12px !important; width: auto !important; max-width: none !important; bottom: calc(var(--m-bottom) + 10px) !important; transform: none !important; }
  html body #toast#toast > * { font: 500 13px/1.35 var(--body) !important; border-radius: 12px !important; box-shadow: 0 6px 24px rgba(0, 0, 0, .22) !important; }

  /* ---------- the arcade: a sheet above the player you can drop, never a wall ---------- */
  html body #loading-arcade#loading-arcade:not(.hidden):not(.minimized) {
    position: fixed !important; left: 8px !important; right: 8px !important; top: auto !important; bottom: calc(var(--m-bottom) + 8px) !important;
    width: auto !important; height: auto !important; max-height: 52vh !important; transform: none !important; border-radius: 14px !important; overflow: hidden;
  }
  html body #loading-arcade#loading-arcade canvas { max-width: 100% !important; height: auto !important; max-height: 34vh !important; }
}

/* phone-only pieces: the ⋯ sheet's song header and the chip row's Taste map key */
.pop-head, .m-map { display: none; }
@media (max-width: 760px) {
  html body #pop#pop .pop-head { align-items: center; gap: 12px; padding: 4px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--m-line); }
  html body #pop#pop .pop-head img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: 0 0 auto; }
  html body #pop#pop .pop-head b { display: block; font: 600 15px/1.25 var(--body); color: var(--m-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  html body #pop#pop .pop-head small { display: block; font: 400 13px var(--body); color: var(--m-mute); }
  html body #pop#pop .pop-head > span { min-width: 0; }
}
