/* ==========================================================================
   DESKTOP LAYOUT (Nov 2026) - wide screen + mouse only.
   Everything here sits behind ONE media query; phones, tablets and the
   Capacitor APK never match it, so their layout is untouched. Behaviour
   (keys, rail wheel/drag, modal backdrops) is js/desktop.js, same query.

   Shell: left sidebar (the bottom nav turned sideways: brand, Create,
   Discover, Profile, Settings, credits) + content area + full-width player
   bar (#mini) docked at the bottom. The full player fills the content area
   in two columns (art + controls | lyrics). Create, pricing, lyrics and the
   cover editor become centered modals over a backdrop; bottom sheets
   (menus, queue, pickers) become centered cards. Song rows flow into 2-3
   columns. Same black/white look, 4px corners, display/body font vars.
   ========================================================================== */

@media (min-width: 1024px) and (pointer: fine) {
  :root {
    --side-w: 232px;
    --bar-h: 84px;
    --content-max: 1480px;
  }

  /* ---------- shell ---------- */

  #app {
    max-width: none;
    margin: 0;
    box-shadow: none;
  }

  /* ---------- sign-in ----------
     The phone's full-bleed photo blown up to a wide window cropped her head and
     put the text on her neck. Here: the photo at its own framing on the left,
     melting into black, and a left-aligned column on the side she looks to. */
  .authstage {
    --photo-w: min(60vw, 112vh);
    height: auto;
    min-height: max(100%, 560px);
    flex-direction: row;
    justify-content: flex-start;
    background: #050506;
  }
  .authbg { right: auto; width: var(--photo-w); object-position: 34% 22%; }
  .authscrim {
    right: auto;
    width: calc(var(--photo-w) + 1px);
    background:
      linear-gradient(90deg, rgba(5, 5, 6, 0) 50%, rgba(5, 5, 6, 0.55) 76%, #050506 100%),
      linear-gradient(180deg, rgba(5, 5, 6, 0) 70%, rgba(5, 5, 6, 0.5) 100%);
  }
  .authbrand,
  .authwrap { --pad: clamp(32px, (100vw - var(--photo-w) - 400px) / 2, 340px); }
  .authbrand {
    top: 36px;
    left: calc(var(--photo-w) + var(--pad));
    right: auto;
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 18px;
    letter-spacing: -0.5px;
    text-shadow: none;
  }
  .authbrand .dsk { display: block; }
  .authwrap {
    flex: none;
    justify-content: center;
    width: calc(100vw - var(--photo-w));
    max-width: calc(400px + 2 * var(--pad));
    min-height: 100%;
    margin: 0 0 0 var(--photo-w);
    padding: 96px var(--pad) 88px;
  }
  .authwrap h1 {
    margin-bottom: 18px;
    font-family: var(--font-display);
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 700;
    letter-spacing: -1.8px;
    line-height: 1.1;
    text-align: left;
  }
  .authwrap .sub { margin-bottom: 34px; font-size: 17px; text-align: left; }
  .authwrap .err { text-align: left; font-size: 13.5px; }
  .authwrap .gbtn { cursor: pointer; }
  .gbtnwrap:hover .gbtn { background: #e9e9ec; }
  .gbtnwrap:focus-within .gbtn { outline: 2px solid #fff; outline-offset: 3px; }
  .authfree { display: block; margin: 16px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.82); }
  .authlegal { margin-top: 8px; font-size: 12.5px; text-align: left; }
  .authlinks {
    position: absolute;
    left: var(--pad);
    right: var(--pad);
    bottom: 34px;
    margin: 0;
    justify-content: flex-start;
    font-size: 12.5px;
  }
  .authwrap > *:nth-child(n + 6) { animation-delay: 0.3s; }

  /* ---------- the website's "what is Instant Song" section under sign-in ---------- */
  .about { padding: 96px max(48px, (100% - 1120px) / 2) 44px; }
  .about h2 { margin: 88px 0 26px; font-size: 26px; letter-spacing: -1px; }
  .abhead { max-width: 760px; }
  .about .abhead h2 { margin-top: 0; font-size: 38px; letter-spacing: -1.4px; }
  .abhead p { font-size: 17px; }
  .absteps { grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
  .absteps li { padding: 26px; }
  .absteps h3 { margin: 10px 0 8px; font-size: 18px; }
  .abtiles { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .abtiles img { transition: filter 0.16s ease; }
  .abtiles a:hover img { filter: brightness(1.15); }
  .abtiles span { font-size: 16px; padding: 40px 16px 14px; }
  .abfaq { grid-template-columns: repeat(2, 1fr); gap: 34px 56px; }
  .abfaq dt { font-size: 16.5px; }
  .abfoot { margin-top: 88px; }

  #bottomnav {
    top: 0;
    right: auto;
    bottom: 0;
    width: var(--side-w);
    height: auto;
    padding: 22px 14px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #050506;
    border-top: 0;
    border-right: 1px solid var(--border);
    transition: bottom 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  body.mini-open #bottomnav { bottom: var(--bar-h); }

  #bottomnav .dsk { display: flex; }
  .navbrand {
    order: -2;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    margin-bottom: 20px;
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
  }

  .navbrand img { flex: none; width: 32px; height: 32px; } /* white mark, no tile: the app icon's white square read as a box */
  .navbrand span { white-space: nowrap; }

  /* Create = the primary action: a solid white button on top. */
  .navcreate {
    order: -1;
    flex: none;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    height: 44px;
    margin-bottom: 14px;
    background: #fff;
    color: #000;
    border-radius: 4px;
  }
  .navcreate .disc svg { width: 20px; height: 20px; }
  .navcreate .nlabel { font-size: 14px; font-weight: 600; }
  .navcreate:hover { background: #e9e9ec; }
  .navcreate:active .disc { transform: none; }

  .navslot,
  .navlink {
    display: flex;
    width: 100%;
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 14px;
    height: 44px;
    padding: 0 12px;
    border-radius: 4px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.14s ease, color 0.14s ease;
  }
  .navslot .nlabel,
  .navlink .nlabel { font-size: 14px; font-weight: 500; line-height: 1; }
  .navslot svg,
  .navlink svg { width: 22px; height: 22px; flex-shrink: 0; }
  .navslot:hover,
  .navlink:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
  .navslot.selected,
  .navlink.selected { background: rgba(255, 255, 255, 0.08); color: var(--text); }
  .navslot.selected .nlabel,
  .navlink.selected .nlabel { font-weight: 600; }
  .navslot:active svg,
  .navslot.selected svg { transform: none; animation: none; }
  /* generating dot: after the label instead of over the icon */
  .navslot .badge { display: none; } /* the run card on Profile shows progress */

  /* The user's playlists between the tabs and Settings (scrolls on its own). */
  .navlibs { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
  .nlhead { padding: 0 12px 8px; font-size: 12.5px; font-weight: 600; color: var(--text-2); }
  .nllist { flex: 1; min-height: 0; overflow-y: auto; margin-right: -8px; }
  .nlitem { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 4px; color: var(--text); text-decoration: none; }
  .nlitem:hover { background: rgba(255, 255, 255, 0.06); }
  .nlitem.selected { background: rgba(255, 255, 255, 0.08); }
  .nlart { width: 36px; height: 36px; flex-shrink: 0; border-radius: 4px; overflow: hidden; background: #17171b; display: flex; align-items: center; justify-content: center; color: var(--text-2); }
  .nlart img { width: 100%; height: 100%; object-fit: cover; }
  .nlart i { display: flex; } .nlart svg { width: 18px; height: 18px; }
  .nlart .nlliked { color: #000; background: #fff; width: 100%; height: 100%; align-items: center; justify-content: center; }
  .nltext { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
  .nlname { font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nlsub { font-size: 11.5px; color: var(--text-2); }
  .navfoot {
    margin-top: auto;
    flex-direction: column;
    gap: 2px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }
  .navcredits .nlabel b { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

  #panes,
  #page {
    inset: 0 0 0 var(--side-w);
  }
  body.mini-open #panes,
  body.mini-open #page { bottom: var(--bar-h); }
  body.mini-open .pane,
  body.mini-open #page { padding-bottom: 32px; }
  .pane,
  #page { padding-bottom: 32px; }

  /* Content column: wide, but not endless on huge monitors. */
  .pane > *,
  #page > * {
    max-width: var(--content-max);
    margin-left: auto;
    margin-right: auto;
  }
  #page { transform: translateX(16px); }
  #page.open { transform: none; }

  /* Mouse users get slim scrollbars: ONE 8px dark bar, no arrows or white
     track. Chrome ignores ::-webkit-scrollbar as soon as scrollbar-width or
     scrollbar-color is set, so those two are only for Firefox. */
  .pane, #page, .sheet, .pmodal, .bubblesheet, .buildersheet .pb-pages,
  .fp-scroll, .createsheet .createbody, .nllist {
    scrollbar-width: auto;
    scrollbar-color: auto;
  }
  :is(.pane, #page, .sheet, .pmodal, .bubblesheet, .buildersheet .pb-pages,
    .fp-scroll, .createsheet .createbody, .nllist)::-webkit-scrollbar { width: 8px; background: transparent; }
  :is(.pane, #page, .sheet, .pmodal, .bubblesheet, .buildersheet .pb-pages,
    .fp-scroll, .createsheet .createbody, .nllist)::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.18);
  }
  :is(.pane, #page, .sheet, .pmodal, .bubblesheet, .buildersheet .pb-pages,
    .fp-scroll, .createsheet .createbody, .nllist)::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.32); }
  @supports not selector(::-webkit-scrollbar) {
    .pane, #page, .sheet, .pmodal, .bubblesheet, .buildersheet .pb-pages,
    .fp-scroll, .createsheet .createbody, .nllist {
      scrollbar-width: thin;
      scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
    }
  }
  /* Room for the bar is always kept: content that loads late (lyrics, lists)
     used to bring the bar in and resize the art and waveform (owner). Those
     scrollers take the bar's 8px off their right padding. */
  .pane, #page, .fp-scroll, .createsheet .createbody, .nllist { scrollbar-gutter: stable; }

  /* ---------- hover states ---------- */

  button:hover { opacity: 0.86; }
  .navslot:hover, .navlink:hover, .navcreate:hover, .row:hover button, .gchip:hover { opacity: 1; }
  .row { cursor: pointer; }
  .row:hover { background-color: rgba(255, 255, 255, 0.045); }
  .row .iconbtn:hover { color: var(--text); }
  .iconbtn:hover { background-color: rgba(255, 255, 255, 0.07); }
  .fp-head .iconbtn:hover { background: rgba(40, 40, 46, 0.7); }
  .tcard { cursor: pointer; }
  .tcard .tcover, .tcard .ecollage { transition: filter 0.16s ease; }
  .tcard:hover .tcover, .tcard:hover .ecollage { filter: brightness(1.12); }
  .gchip:not(.on):hover { background: rgba(255, 255, 255, 0.14); }
  .setitem { cursor: pointer; }
  .setitem:hover { background: rgba(255, 255, 255, 0.04); }
  .bubblesheet .bsitem:hover { background: rgba(255, 255, 255, 0.06); }
  .dragscroll, .dragscroll * { cursor: grabbing !important; user-select: none; }
  a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

  /* ---------- Discover: a Spotify-style home ----------
     Promo card on top, then the genre chips, "Good evening" quick picks
     (editorial playlists), single-row shelves (Trending, Best of <genre>)
     and the Popular track table. Shelves show one row that fits the width. */

  .discoverhero { margin: 16px 24px 0; border-radius: 4px; overflow: hidden; }
  .createbanner { min-height: 350px; }
  /* The photo with extra sky on the left (scripts/make-banner-wide.py): the wide strip then
     fits all three faces instead of zooming into them. */
  .cb-photo {
    background-image:
      linear-gradient(180deg, rgba(4, 4, 7, 0.45) 0%, rgba(4, 4, 7, 0) 24%),
      linear-gradient(90deg, rgba(4, 4, 7, 0.45) 0%, rgba(4, 4, 7, 0.12) 45%, rgba(4, 4, 7, 0) 65%),
      url("../img/banner-discover-wide.jpg");
    background-position: 0 0, 0 0, 100% 0;
  }
  .createbanner .cb-copy { padding: 10px 32px 28px; max-width: min(700px, 64%); }
  .createbanner .cb-title { font-size: 28px; max-width: 640px; text-wrap: balance; }
  .createbanner .cb-sub { font-size: 14px; }
  .discover-top { padding-left: 24px; padding-right: 24px; }
  .discover-top h1 { visibility: hidden; } /* the sidebar carries the brand */
  .genreslot { padding: 8px 24px 0; }
  .sechead { padding-left: 24px; padding-right: 24px; align-items: baseline; }
  /* Genre chips = ONE sideways row (owner, Nov 23 2026: wrapped into 4 rows in a narrow
     window and "looked weird"). Wheel and drag scroll it (desktop.js); the edges fade
     only on a side that has more chips (.more-l / .more-r from discover.js). */
  .gchips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-left: 0;
    padding-right: 0;
    --fl: 0px;
    --fr: 0px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fl), #000 calc(100% - var(--fr)), transparent 100%);
  }
  .gchips::-webkit-scrollbar { display: none; }
  .gchips.more-l { --fl: 48px; }
  .gchips.more-r { --fr: 64px; }
  .sechead .sec { font-size: 22px; }
  .discovercontent section { margin-top: 28px; }
  .discovercontent .quickpicks { margin-top: 20px; }

  .quickpicks .sechead .sec { font-size: 26px; }
  .qgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px;
    padding: 4px 24px 0;
  }
  .qpick {
    display: flex;
    align-items: center;
    gap: 14px;
    height: 64px;
    padding-right: 14px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.14s ease;
  }
  .qpick:hover { background: rgba(255, 255, 255, 0.13); }
  .qpick .qcollage { width: 64px; height: 64px; flex-shrink: 0; border-radius: 0; }
  .qpick .qcollage img { width: 100%; height: 100%; object-fit: cover; }
  .qpick .qname { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .discovercontent .dsk:not([hidden]) { display: block; }
  /* Editorial lists live in the quick picks on desktop. */
  .discovercontent.hasquick .editorialsec { display: none; }
  .discovercontent.genreview .quickpicks,
  .discovercontent.genreview .gshelves { display: none; }

  /* Shelves: one row of cards that fits the width (no sideways scrolling). */
  .discovercontent .trail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
    grid-template-rows: auto;
    grid-auto-rows: 0;
    row-gap: 0;
    column-gap: 8px;
    overflow: hidden;
    padding: 0 14px;
    scroll-snap-type: none;
  }
  .discovercontent .tcard {
    width: auto;
    min-width: 0;
    padding: 10px 10px 14px;
    border-radius: 4px;
    transition: background-color 0.16s ease;
  }
  .discovercontent .tcard:hover { background: rgba(255, 255, 255, 0.07); }
  .discovercontent .tart { width: 100%; height: auto; aspect-ratio: 1; }
  .tart .tcover, .tart .ecollage { width: 100%; height: 100%; }
  .discovercontent .ttitle { margin-top: 10px; font-size: 14px; }
  .discovercontent .tsub { font-size: 12.5px; }
  /* Round white play button rises onto the art on hover. */
  .discovercontent .tcard[data-song] .tart::after {
    content: "";
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / 22px no-repeat;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
  }
  .discovercontent .tcard[data-song]:hover .tart::after { opacity: 1; transform: none; }
  .discovercontent .tcard.playing .tart::after { display: none; }
  .showall {
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-2);
  }
  .showall:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; opacity: 1; }

  /* ---------- song rows: a track table (one column, like web players) ----------
     cover | title + creator/mood | genre | length | heart + menu (owner removed the date).
     The cells are .dsk spans from songRowHtml; phones never show them. */

  .rows, .usongs { padding: 0 4px; }
  .row {
    display: grid;
    grid-template-columns: 40px minmax(0, 3fr) minmax(0, 1.2fr) 56px 76px;
    column-gap: 16px;
    height: 56px;
    contain-intrinsic-height: auto 56px;
    padding: 0 8px 0 12px;
  }
  .row.selecting { grid-template-columns: 22px 40px minmax(0, 3fr) minmax(0, 1.2fr) 56px 76px; }
  .row .cover { width: 40px; height: 40px; }
  .row .meta { gap: 3px; }
  .row .title { font-size: 14px; }
  .row .sub { display: none; }
  .row .dsk { display: block; }
  .row .dsub, .row .rcol {
    font-size: 12.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .row .rcol { font-size: 13px; }
  .row .rdur { text-align: right; font-variant-numeric: tabular-nums; }
  .row .actions { justify-content: flex-end; }
  /* Actions appear on hover (a liked heart stays visible, like web players). */
  .row .actions .iconbtn { opacity: 0; transition: opacity 0.12s ease; }
  .row:hover .actions .iconbtn,
  .row .actions .heartbtn.hearted,
  .row .actions .iconbtn:focus-visible { opacity: 1; }
  /* Own playlists: the drag handle is a third action. The whole row drags too. */
  .row:has(.rowhandle) { grid-template-columns: 40px minmax(0, 3fr) minmax(0, 1.2fr) 56px 116px; }
  .rowhandle, .qhandle { cursor: grab; }
  body.listdrag, body.listdrag * { cursor: grabbing !important; user-select: none; }
  .row.dragging { position: relative; }
  .row.dragging .actions .rowhandle { opacity: 1; }
  .row .actions .iconbtn:active { transform: none; }
  /* Play glyph over the cover on hover. */
  .row .rplay {
    position: absolute;
    left: 12px;
    top: 8px;
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
  }
  .row .rplay svg { width: 20px; height: 20px; margin: 10px; fill: currentColor; }
  .row:hover .rplay { opacity: 1; }
  .row.selecting .rplay { display: none; }
  .row.playing .title { color: #fff; font-weight: 600; }
  .row.fresh::after { left: 46px; top: 4px; }
  .row:active { background-color: rgba(255, 255, 255, 0.07); }
  /* Drag-to-reorder lists keep the same table; nothing else changes. */

  /* Trending/editorial card menus: hover only, like web cards. */
  .tcard .tmenu { opacity: 0; transition: opacity 0.12s ease; }
  .tcard:hover .tmenu, .tcard .tmenu:focus-visible { opacity: 1; }

  /* ---------- tabs on pages: compact pills, left aligned ---------- */

  .pane .tabbar,
  #page .tabbar {
    display: inline-flex;
    gap: 8px;
    margin: 24px 0 8px 24px;
    border: 0;
  }
  .pane .tabbar button,
  #page .tabbar button {
    flex: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    transition: background-color 0.14s ease, color 0.14s ease;
  }
  .pane .tabbar button:hover,
  #page .tabbar button:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; }
  .pane .tabbar button.on,
  #page .tabbar button.on { background: #fff; color: #000; }
  .pane .tabbar .tabind,
  #page .tabbar .tabind { display: none; }

  /* ---------- Profile / pushed pages ---------- */

  /* Profile hero: a wide header band - big avatar, big name, stats under it. */
  .hero-xl {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: end;
    column-gap: 28px;
    padding: 56px 32px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0));
  }
  .hero-xl .avbtn { grid-row: 1 / span 2; margin: 0; }
  .hero-xl .avatar,
  .hero-xl .avbtn > :first-child { width: 176px; height: 176px; }
  .hero-xl .edbadge { right: 8px; bottom: 8px; width: 34px; height: 34px; }
  .hero-xl .hx { grid-column: 2; padding: 0; }
  .hero-xl .hname { font-size: 52px; line-height: 1.05; letter-spacing: -1.4px; }
  .hero-xl .hhandle { font-size: 15px; margin-top: 10px; }
  .hero-xl .bio { font-size: 14px; color: var(--text-2); padding-top: 8px; max-width: 640px; }
  .hero-xl .statline { grid-column: 2; margin-top: 16px; }
  .hero-xl .statline button:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
  .hero-xl .topaction,
  .hero-xl .hactions,
  .hero-xl .heromenu { grid-column: 3; grid-row: 1; align-self: start; }

  /* Pushed-page headers: back arrow + left-aligned title, no circle. */
  .screenheader { padding: 20px 24px 8px; gap: 8px; }
  .screenheader h1, .screenheader h1.up { font-size: 26px; text-align: left; }
  .setheader { display: flex; align-items: center; }
  .setheader .backbtn { border: 0; width: 40px; height: 40px; }
  .setheader .backbtn:hover { background: rgba(255, 255, 255, 0.07); }
  /* Settings-like pages read better as one calm column. (#page > * caps
     everything at --content-max; these narrower caps need the same weight.) */
  #page > .setheader,
  #page > .setgroup,
  #page > .acctnote,
  #page > .delwrap,
  #page .followlist { max-width: 720px; margin-left: auto; margin-right: auto; }
  .playall .solidbtn { flex: 0 0 auto; padding-left: 32px; padding-right: 32px; }

  /* ---------- player bar (#mini) ---------- */

  #mini {
    bottom: 0;
    height: var(--bar-h);
    z-index: 30;
    cursor: default;
    border-top: 1px solid var(--border);
  }
  #mini.hidden { transform: translateY(var(--bar-h)); }
  .mini-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, 560px) minmax(220px, 1fr);
    align-items: center;
    gap: 24px;
    padding: 0 20px;
  }
  /* left: cover + title (click opens the full view) */
  .mini-cover {
    grid-column: 1; grid-row: 1;
    width: 52px; height: 52px;
    cursor: pointer;
  }
  .mini-meta {
    grid-column: 1; grid-row: 1;
    margin-left: 66px;
    cursor: pointer;
  }
  .mini-title { font-size: 14px; }
  .mini-sub { font-size: 12px; }
  .mini-meta:hover .mini-title { text-decoration: underline; text-underline-offset: 3px; }
  /* center: transport over a scrubber with times */
  /* Center: shuffle | prev | play | next | repeat, then the scrubber with
     its times - one block with even room above, between and below. */
  .mini-transport {
    grid-column: 2; grid-row: 1;
    justify-self: center;
    align-self: start;
    margin-top: 12px;
    gap: 14px;
  }
  .mini-transport .iconbtn { width: 32px; height: 32px; border-radius: 50%; color: var(--text); }
  .mini-transport .iconbtn svg { width: 18px; height: 18px; }
  .mini-transport .mini-toggle { width: 36px; height: 36px; background: #fff; color: #000; }
  .mini-transport .mini-toggle:hover { background: #e9e9ec; opacity: 1; }
  .mini-transport .mini-toggle svg { width: 20px; height: 20px; }
  .mini-transport .mini-shuffle,
  .mini-transport .mini-repeat { position: relative; color: var(--text-2); }
  .mini-transport .mini-shuffle:hover,
  .mini-transport .mini-repeat:hover { color: var(--text); opacity: 1; }
  .mini-transport .mini-shuffle svg,
  .mini-transport .mini-repeat svg { width: 17px; height: 17px; }
  /* On = white glyph + a small dot under it (repeat-one adds the "1"). */
  .mini-transport .iconbtn.on { color: #fff; }
  .mini-transport .iconbtn.on::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 1px;
    width: 4px;
    height: 4px;
    margin-left: -2px;
    border-radius: 50%;
    background: #fff;
  }
  .mini-transport .mini-repeat .one {
    position: absolute;
    top: 2px;
    right: 1px;
    font-size: 8px;
    font-weight: 800;
    line-height: 1;
    padding: 1px 3px;
    border-radius: 3px;
    background: #fff;
    color: #000;
  }
  /* --mc = scrubber width: the center column minus room for the two times */
  #mini { --mc: min(460px, calc(100% - 640px)); }
  .mini-progress {
    left: calc(50% - var(--mc) / 2);
    right: auto;
    bottom: 12px;
    width: var(--mc);
    height: 16px;
  }
  .mini-progress::before,
  .mini-progress i { bottom: 6px; height: 4px; border-radius: 2px; }
  .mini-progress:hover::before { background: rgba(255, 255, 255, 0.28); }
  .mini-time {
    position: absolute;
    bottom: 15px;
    width: 44px;
    font-size: 11px;
    line-height: 1;
    color: var(--text-2);
    font-variant-numeric: tabular-nums;
    pointer-events: none;
  }
  .mini-time.el { left: calc(50% - var(--mc) / 2 - 54px); justify-content: flex-end; }
  .mini-time.du { left: calc(50% + var(--mc) / 2 + 10px); }
  #mini .dsk { display: flex; }
  /* right: like / queue / open the full view */
  .mini-side {
    grid-column: 3; grid-row: 1;
    justify-self: end;
    align-items: center;
    gap: 4px;
  }
  .mini-side .iconbtn { width: 38px; height: 38px; border-radius: 50%; color: var(--text-2); }
  .mini-side .iconbtn:hover { color: var(--text); }
  .mini-side .iconbtn.on, .mini-side .mini-like.hearted { color: var(--text); }
  .mini-side .iconbtn svg { width: 19px; height: 19px; }

  /* ---------- Now playing: a right-hand panel ----------
     Not a modal: playerui opens it as part of the layout (body.np-open moves
     the content area over), it survives song changes and remembers being
     closed. The bottom bar owns play/pause/skip, so the panel shows art,
     title, the waveform scrubber, the action icons and the lyrics. */

  /* Now playing and Create share ONE right-panel width (--rp-w), resizable by
     dragging the panel's left edge (desktop.js bindPanelResize, remembered). */
  :root { --rp-w: 400px; --np-w: var(--rp-w); }
  body.np-open #panes,
  body.np-open #page { right: var(--np-w); }
  body.np-open #toasts { right: var(--np-w); }

  .fullplayer {
    inset: 0 0 0 auto;
    width: var(--np-w);
    z-index: 29;
    background: #050506;
    border-left: 1px solid var(--border);
    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.18s ease;
  }
  body.mini-open .fullplayer { bottom: var(--bar-h); }
  .fullplayer.open { transform: none; opacity: 1; }
  .fullplayer .dsk { display: block; }
  .fp-head {
    position: static;
    flex: none;
    padding: 12px 12px 4px 20px;
    pointer-events: auto;
  }
  .fp-headlabel { order: -1; margin-right: auto; font-size: 15px; font-weight: 700; }
  .fp-head .iconbtn { width: 34px; height: 34px; background: none; color: var(--text-2); }
  .fp-head .iconbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
  .fp-head .iconbtn svg { width: 19px; height: 19px; }
  .fp-head .fp-menu { order: 1; }
  .fp-head .fp-close { order: 2; }
  .fp-scroll {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding: 8px 12px 20px 20px;
  }
  .fp-artblock {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
    border-radius: 4px;
    overflow: hidden;
  }
  .fp-artblock img, .fp-artblock .fp-artph { width: 100%; height: 100%; object-fit: cover; }
  .fp-artblock::before, .fp-artblock::after, .fp-headtitle { display: none; }
  .fp-meta { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .fp-title { flex-basis: 100%; font-size: 22px; }
  .fp-sub { flex-basis: 100%; font-size: 13px; }
  .fp-meta .fppill { margin-top: 12px; padding: 7px 16px; font-size: 12.5px; }
  .fp-seek { margin-top: 14px; }
  /* The same controls as the bottom bar (owner, Nov 24 2026: a Now playing view
     without play/pause was confusing). */
  /* Five columns in both rows, centred: every icon sits under a control. */
  .fp-transport, .fp-actionsrow { display: grid; grid-template-columns: repeat(5, 1fr); justify-items: center; align-items: center; width: 100%; max-width: 360px; margin: 0 auto; }
  .fp-transport { padding: 10px 0 6px; }
  .fp-toggle.main { width: 52px; height: 52px; cursor: pointer; }
  .fp-toggle.main svg { width: 26px; height: 26px; }
  .fp-toggle.main:hover { opacity: 0.88; }
  .fp-transport .iconbtn { border-radius: 50%; }
  .fp-transport .iconbtn:hover { background: rgba(255, 255, 255, 0.07); }
  .fp-actionsrow { padding: 6px 0 0; }
  .fp-actionsrow .iconbtn { width: 38px; height: 38px; border-radius: 50%; color: var(--text-2); }
  .fp-actionsrow .iconbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
  .fp-actionsrow .fp-like.hearted { color: var(--heart); }
  .fp-actionsrow .iconbtn svg { width: 19px; height: 19px; }
  .fp-extra {
    flex: none;
    margin-top: 18px;
    padding: 16px 18px 20px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    position: relative;
  }
  .fp-extra::before { content: "Lyrics"; display: block; font-size: 15px; font-weight: 700; margin-bottom: 10px; color: var(--text); }
  .fp-lyrics { padding: 0; }
  .lyline { text-align: left; font-size: 17px; font-weight: 600; line-height: 1.4; padding: 4px 0; color: rgba(244, 244, 248, 0.45); }
  .lyline.marker { font-size: 12px; padding-top: 12px; }
  .lyline.active { color: #fff; }
  .fp-empty { padding: 4px 0; font-size: 13.5px; color: var(--text-2); }

  /* ---------- modal backdrop ---------- */

  .dskscrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.2s ease;
  }
  .dskscrim.open { opacity: 1; }

  /* Create sheet + cover editor (.sheet): a drawer docked to the right edge,
     full height, sliding in from the right over a dimmed page. */
  .sheet {
    inset: 0 0 0 auto;
    width: min(520px, calc(100vw - var(--side-w)));
    height: auto;
    margin: 0;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: -30px 0 80px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    opacity: 1;
    transition: transform 0.28s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .sheet.open { transform: none; }
  .sheet.closing { transform: translateX(100%); }

  /* Create: a docked SIDEBAR on the right (owner, Nov 21 2026). Part of the
     layout like Now playing - the page shrinks beside it (body.create-open),
     no backdrop, no back entry (main.js openCreate; Escape and the sidebar's
     Create button close it). One column: tabs, the prompt / lyrics box typed
     into directly, Settings inline (the phone's Advanced sheet body), and
     Generate pinned at the bottom. */
  :root { --cr-w: var(--rp-w); }
  body.create-open #panes,
  body.create-open #page { right: var(--cr-w); }
  body.create-open #toasts { right: var(--cr-w); }
  .sheet.createsheet {
    inset: 0 0 0 auto;
    width: var(--cr-w);
    height: auto;
    margin: 0;
    z-index: 31;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    background: #050506;
    overflow: hidden;
    transform: translateX(24px);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.18s ease;
  }
  body.mini-open .sheet.createsheet { bottom: var(--bar-h); }
  .sheet.createsheet.open { transform: none; opacity: 1; }
  .sheet.createsheet.closing { transform: translateX(24px); opacity: 0; }
  .createsheet .createhead { padding: 12px 16px 8px 20px; min-height: 0; }
  .createsheet .createhead .backbtn { order: 3; margin: 0 -6px 0 4px; width: 34px; height: 34px; color: var(--text-2); }
  .createsheet .createhead .backbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
  .createsheet .createhead .backbtn svg { width: 19px; height: 19px; }
  .createsheet .createhead h1 { font-size: 18px; }
  .createsheet .createbody {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 12px 20px 20px;
  }
  .createsheet .createbody:has(> .createside) { padding-bottom: 0; }
  .createsheet .createtabs { padding-top: 4px; }
  .createsheet .createtabs .tabbar {
    display: inline-flex;
    gap: 8px;
    margin: 0;
    border: 0;
  }
  .createsheet .createtabs .tabbar button {
    flex: none;
    padding: 7px 16px;
    font-size: 13.5px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-radius: 4px;
  }
  .createsheet .createtabs .tabbar button:hover { background: rgba(255, 255, 255, 0.14); opacity: 1; }
  .createsheet .createtabs .tabbar button.on { background: #fff; color: #000; }
  .createsheet .createtabs .tabind { display: none; }
  .createsheet .formarea { flex: none; margin: 0; }
  .createsheet .promptcard { margin-top: 12px; }
  .createsheet .promptta,
  .createsheet .lyricsta { min-height: 150px; cursor: text; font-size: 15px; }
  .createsheet .lyricsta { min-height: 260px; }
  .createsheet .promptta:focus,
  .createsheet .lyricsta:focus { outline: none; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }
  .createsheet .toolrow { justify-content: flex-start; gap: 8px; padding: 0; margin-top: 10px; }
  .createsheet .toolrow .tooldiv { display: none; }
  .createsheet .toolbtn,
  .createsheet .surprisebtn {
    padding: 7px 12px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
  }
  .createsheet .toolbtn:hover,
  .createsheet .surprisebtn:hover { background: rgba(255, 255, 255, 0.13); opacity: 1; }
  .createsheet .advrow.advopen { display: none; } /* Settings are inline below */
  .createside {
    display: flex;
    flex-direction: column;
    margin-top: 22px;
    border-top: 1px solid var(--border);
  }
  .createside .cstitle { padding: 18px 0 0; font-size: 15px; font-weight: 700; }
  .createside .advbody { padding: 0; }
  .createside .advsec { padding: 16px 0 0; }
  .createside .formfoot {
    position: sticky;
    bottom: 0;
    margin: 18px -12px 0 -20px;
    padding: 14px 12px 16px 20px;
    background: #050506;
    border-top: 1px solid var(--border);
  }
  .createside .gogen:hover { background: #e9e9ec; opacity: 1; }
  .createsheet .modelcard { cursor: pointer; }
  .modelcard:hover, .modelcard:active { opacity: 1; } /* beats the global button:hover dim */
  .createsheet .lencard:hover:not(.sel),
  .createsheet .negchip:hover:not(.on) { background: rgba(255, 255, 255, 0.12); opacity: 1; }
  .createsheet .negchips { display: flex; flex-wrap: wrap; overflow: visible; margin: 10px 0 0; padding: 0; }
  .createsheet .negchip { cursor: pointer; }
  .guidwrap { cursor: pointer; }
  /* Lyrics mode: three pills, left aligned. */
  .createsheet .modes { justify-content: flex-start; gap: 8px; padding: 12px 0 2px; }
  .createsheet .modes .pbopt { padding: 7px 12px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); color: var(--text-2); }
  .createsheet .modes .pbopt:not(.on):hover { background: rgba(255, 255, 255, 0.13); color: var(--text); opacity: 1; }
  .createsheet .modes .pbopt.on { background: #fff; color: #000; -webkit-text-stroke: 0; }

  /* Lyrics view: a centered panel. */
  .lyricsview {
    inset: 0;
    margin: auto;
    width: min(640px, calc(100vw - 48px));
    height: min(880px, calc(100vh - 48px));
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    transform: translateY(18px);
    opacity: 0;
    transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.2s ease;
  }
  .lyricsview.open { transform: none; opacity: 1; }
  .lyricsview.closing { transform: translateY(18px); opacity: 0; }

  /* Pricing: a wide two-pane card - the photo with the headline and benefits
     on the left, plans + Subscribe on the right. Fade-only shell (no
     transforms, owner's rule), centered. */
  .pmodal {
    inset: 0;
    margin: auto;
    width: min(980px, calc(100vw - 48px));
    height: min(700px, calc(100vh - 48px));
    padding-top: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7);
    display: block;
    --paysplit: 44%;
  }
  .pmodal .payhero-bg {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--paysplit);
    height: auto;
    background-position: 58% 30%;
  }
  .pmodal .payhero-bg::after {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.35) 55%, rgba(0, 0, 0, 0.92) 100%);
  }
  .pmodal .payhead {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--paysplit);
    padding: 16px 20px;
    z-index: 2;
  }
  .pmodal .payhead .premiumpill { display: none; }
  .pmodal .paywrap {
    position: static;
    margin: 0 0 0 var(--paysplit);
    max-width: none;
    min-height: 100%;
    padding: 40px 48px 32px;
  }
  /* Headline + benefits sit at the bottom of the photo. */
  .pmodal .paylead {
    position: absolute;
    left: 0;
    bottom: 0;
    width: var(--paysplit);
    padding: 0 36px 36px;
    z-index: 2;
  }
  .pmodal .payh1 { font-size: 34px; margin: 0 0 16px; }
  .pmodal .paybenefits li { font-size: 14px; }
  .pmodal .paycards { margin-top: 0; }
  .pmodal .paycard { cursor: pointer; }
  .pmodal .paycard:not(.selected):hover { border-color: rgba(255, 255, 255, 0.4); }
  .pmodal .paygo:hover { opacity: 0.9; }

  /* Browser pricing (`.webpay`): a full page instead of the two-pane card,
     three plans side by side. Still fade-only. */
  .pmodal.webpay {
    inset: 0;
    width: auto;
    height: auto;
    margin: 0;
    border: 0;
    box-shadow: none;
  }
  .pmodal.webpay .payhead { position: static; width: auto; padding: 16px 28px 0; }
  .pmodal.webpay .paywrap {
    min-height: 0;
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 24px 48px;
  }
  .wptitle { margin: -14px 0 10px; font-size: 34px; }
  .wpsub { font-size: 15px; }
  .wptab { cursor: pointer; }
  .wptab:hover { opacity: 1; }
  .wptab:not(.on):hover { color: #fff; }
  .wpcards { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
  .wpcard.popular { order: 0; }
  .wpgo:not(:disabled):hover { opacity: 0.88; }
  .wpgo:disabled { cursor: default; }
  /* Subscriber: plan card in two columns, packs as one row of tiles. */
  .plancard { flex-direction: row; align-items: stretch; gap: 48px; margin-top: 16px; padding: 28px 32px; }
  /* The whole photo in the middle, fading out under the text on both sides. */
  .plancard[data-tier] {
    --tint: linear-gradient(90deg, #100d0b 0 32%, rgba(16, 13, 11, 0.45) 48%, rgba(16, 13, 11, 0.45) 58%, #100d0b 74%);
    background-position: 0 0, 57% 0;
    background-size: 100% 100%, 46.5% auto;
  }
  .plc-main { flex: 1; min-width: 0; }
  .plc-credits { flex: 0 0 300px; display: flex; flex-direction: column; justify-content: center; }
  .plc-name, .plc-num b { font-size: 32px; }
  .plc-btn { cursor: pointer; }
  .plc-btn:not(:disabled):hover { opacity: 0.86; }
  .wpcard.mine { order: 0; }
  .webpay .paypacklist.inline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .paypacklist.inline .paypackrow { flex-direction: column; align-items: flex-start; gap: 14px; margin: 0; padding: 18px 14px 16px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(16, 14, 13, 0.82); cursor: pointer; }
  .paypacklist.inline .paypackrow:not(:disabled):hover { border-color: rgba(255, 255, 255, 0.45); opacity: 1; }
  .paypacklist.inline .pkcoin { display: none; }
  .paypacklist.inline .pkmain { width: 100%; }
  .paypacklist.inline .pks { font-size: 11.5px; letter-spacing: -0.2px; white-space: nowrap; }
  .paypacklist.inline .pkright { flex-direction: row; align-items: baseline; justify-content: space-between; width: 100%; margin-top: auto; }
  .paypacklist.inline .pkbadge { left: 14px; right: auto; }

  /* Bottom sheets (menus, queue, pickers, edit forms) -> centered cards. */
  .bubblesheet {
    inset: 0;
    margin: auto;
    width: min(460px, calc(100vw - 48px));
    height: fit-content;
    max-height: min(80vh, 760px);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding-bottom: 14px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
    transform: translateY(14px);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.18s ease;
  }
  .bubblesheet.open { transform: none; opacity: 1; }
  .bubblesheet .grab { display: none; }
  .bubblesheet.advsheet { height: min(720px, 80vh); }
  .queuesheet { width: min(560px, calc(100vw - 48px)); }

  /* Prompt builder / lyrics draft: open IN the Create sidebar - same column,
     full height, covering the form (Done / Escape / clicking outside return). */
  .buildersheet {
    top: 0;
    left: auto;
    right: 0;
    bottom: 0;
    margin: 0;
    width: var(--cr-w);
    height: auto;
    padding-top: 12px;
    border: 0;
    border-left: 1px solid var(--border);
    border-radius: 0;
    background: #050506;
    box-shadow: none;
    /* Fade only: the tab strip's sliding highlight measures positions on open,
       and a sideways slide-in shifted it by the slide distance. */
    transform: none;
    opacity: 0;
    transition: opacity 0.18s ease;
  }
  body.mini-open .buildersheet { bottom: var(--bar-h); }
  .buildersheet.open { transform: none; opacity: 1; }
  .buildersheet .grab { display: none; }
  .buildersheet .pbhead { padding: 4px 20px 10px; gap: 6px; }
  .buildersheet .pbhead .dsk { display: inline-flex; }
  /* Tiles: no hover dimming (the global button:hover opacity made a tile you
     just picked look grey until the mouse left it) - a lighter fill instead. */
  .buildersheet .tagchip,
  .buildersheet .pbpill,
  .buildersheet .pbclear,
  .buildersheet .ds-done { cursor: pointer; }
  .buildersheet button:hover { opacity: 1; }
  .buildersheet .tagchip:not(.on):hover { background: #26262c; }
  .buildersheet .pbpill:not(.on):hover { color: var(--text); }
  .buildersheet .pbclear:hover { color: var(--text); }
  /* PROMPT BUILDER + LYRICS DRAFT = one centered window over a dim page (owner,
     Nov 23 2026), like the full-screen editor - no longer squeezed into the
     Create sidebar. Tiles run three across. Still fade-only (see above).
     `body` prefix beats the mini-open bottom rule. */
  body .buildersheet {
    inset: 0;
    margin: auto;
    width: min(680px, calc(100vw - 64px));
    height: min(580px, calc(100vh - 64px));
    padding-top: 16px;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6), 0 30px 90px rgba(0, 0, 0, 0.7);
  }
  /* Plain fill only without the blurred-background setting: a background here
     outranked `html.blurbg .buildersheet` (generator.css, same weight, loaded
     earlier) and the window lost the blur. */
  html:not(.blurbg) body .buildersheet { background: #101013; }
  /* Compose mode ("Your idea") keeps the window: generator.css grows the phone
     sheet to the full screen with `.draftsheet.editing` (two classes), which
     outranks `body .buildersheet` - the window shot to the full page height. */
  body .draftsheet.editing { height: min(580px, calc(100vh - 64px)); border-radius: 4px; }
  body .draftsheet.editing .ds-idea-edit { margin: 4px 16px 10px; }
  .buildersheet.pbtiles .tgchips { grid-template-columns: repeat(3, 1fr); }
  /* The draft brings its own scrim (it closes on an outside click); the
     window's shadow already dims the whole screen, so the scrim stays clear. */
  #overlays:has(> .draftsheet) > .scrim { background: transparent; }

  /* Full-screen text editor (prompt / lyrics expand): a centered window. */
  .fsedit {
    inset: 0;
    margin: auto;
    width: min(760px, calc(100vw - 64px));
    height: min(600px, calc(100vh - 64px));
    padding-top: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.6), 0 30px 90px rgba(0, 0, 0, 0.7);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1), opacity 0.18s ease;
  }
  .fsedit.open { transform: none; opacity: 1; }
  .fshead { padding: 14px 16px 8px 12px; }
  .fsta { margin: 4px 20px 20px; padding: 16px; font-size: 16px; }

  /* Drag handle on the left edge of the right panels. */
  .rpgrip {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -4px;
    width: 8px;
    z-index: 10;
    cursor: col-resize;
  }
  .rpgrip::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 3px;
    width: 2px;
    background: transparent;
    transition: background-color 0.15s ease;
  }
  .rpgrip:hover::after,
  body.rp-resizing .rpgrip::after { background: rgba(255, 255, 255, 0.35); }
  body.rp-resizing { cursor: col-resize; user-select: none; }
  body.rp-resizing .fullplayer,
  body.rp-resizing .sheet.createsheet { transition: none; }

  /* Toasts: under the top edge of the content area, not the sidebar */
  #toasts { left: var(--side-w); }
}

/* Now playing: copy-lyrics button on the Lyrics card (Nov 22 2026). */
@media (min-width: 1024px) and (pointer: fine) {
  .fullplayer .iconbtn.dsk { display: flex; }
  .fp-copylyr { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; color: var(--text-2); }
  .fp-copylyr:hover { color: var(--text); background: rgba(255, 255, 255, 0.07); }
  .fp-copylyr svg { width: 17px; height: 17px; }
}

/* Playlist rows (Profile > Library, playlist lists) line up with the song track
   table: same 56px height, 40px art at the same x (Nov 22 2026, owner: "not aligned"). */
@media (min-width: 1024px) and (pointer: fine) {
  .pane .playlistitem, #page .playlistitem { height: 56px; padding: 0 8px 0 12px; gap: 16px; }
  .pane .playlistitem .collage, #page .playlistitem .collage { width: 40px; height: 40px; }
  .pane .playlistitem .pname, #page .playlistitem .pname { font-size: 14px; }
}
