/* Desktop-only polish. Phone/tablet styles below the existing 960px sidebar breakpoint are untouched. */
@media (min-width:960px) {
 :root { --sa-logo-hdr-w:144px; --sa-pill-fs:1.12rem; --sa-soft-fs:1rem; --sa-desktop-art-height:660px; }
 /* Explicit rows: shared banner, title/back, content, player, footer. */
 html body .app:has(>nav.tabs) { grid-template-columns:220px minmax(0,1fr); grid-template-rows:auto auto minmax(0,1fr) auto auto; }
 html body .app:has(>nav.tabs) > header.status { grid-column:1 / -1; grid-row:1; }
 html body .app:has(>nav.tabs) > header:not(.status),html body .app:has(>nav.tabs) > .hdr:not(.status) { grid-column:1 / -1; grid-row:2; }
 html body .app:has(>nav.tabs) > main { grid-column:2; grid-row:3; width:100%; max-width:none; min-width:0; box-sizing:border-box; padding:20px 24px 32px; justify-self:stretch; }
 html body .app:has(>nav.tabs) > nav.tabs { grid-column:1; grid-row:3 / span 3; min-height:0; height:auto; }
 html body .app:has(>nav.tabs) > .miniplayer { grid-column:2; grid-row:4; width:auto; min-width:0; max-width:none; box-sizing:border-box; margin:12px 24px; justify-self:stretch; }
 html body .app:has(>nav.tabs) > footer { grid-column:2; grid-row:5; box-sizing:border-box; padding-inline:24px; }
 html body .app:not(:has(>nav.tabs)) { width:100%; max-width:900px; box-sizing:border-box; }
 html body .app:not(:has(>nav.tabs)) > main { width:100%; max-width:800px; box-sizing:border-box; margin-inline:auto; padding-inline:24px; }
 /* Equal side tracks truly center the image, independent of credit/status chip width. */
 html:root body .app > header.status.r10hdr.r10hdr { display:grid!important; grid-template-columns:minmax(0,1fr) 144px minmax(0,1fr)!important; height:160px; min-height:160px; padding:12px 24px; box-sizing:border-box; gap:12px; align-items:start; align-content:start; }
 html:root body .app > header.status.r10hdr .r10-logo { grid-column:2!important; grid-row:1!important; justify-self:center!important; width:144px!important; height:auto!important; margin:0!important; }
 html:root body .app > header.status.r10hdr > .chip { grid-row:1; max-width:240px; align-self:start; }
 html:root body .app > header.status.r10hdr > .chip:first-of-type { grid-column:1; justify-self:start; }
 html:root body .app > header.status.r10hdr > .chip:last-of-type { grid-column:3; justify-self:end; }
 html:root body.tg-me .app > .status.r10hdr { display:grid!important; }
 html:root body .r11-brand { justify-content:center; }
 html:root body.r11web header.site > .wrap { display:grid; grid-template-columns:minmax(0,1fr) 144px minmax(0,1fr); min-height:160px; align-items:center; gap:16px; }
 html:root body.r11web header.site .r11-brand { grid-column:2; grid-row:1; justify-self:center; }
 html:root body.r11web header.site nav { grid-column:3; grid-row:1; display:flex; flex-wrap:wrap; justify-content:flex-end; gap:10px; font-size:.9rem; }
 html:root body .app > .hdr,html:root body .app > header:not(.status) { min-height:64px; padding:10px 20px; box-sizing:border-box; align-items:center; }
 html:root body .app > .hdr .back,html:root body .app > header:not(.status) .back { width:44px; height:44px; min-width:44px; border-radius:50%; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; border:1px solid #FCD56D!important; }
 html:root body .app > header:not(.status) h1 { margin:0; font-size:1.25rem; line-height:1.3; }
 html:root body.thm-slimpage .app > header:first-of-type + *,html:root body.thm-slimpage .app > header.status + header { margin-top:0; }
 /* Proportionate controls; preserve forms, text and the existing design. */
 html:root body .app.app.app main :is(a,button).btn { min-height:42px!important; padding:9px 16px!important; font-size:1rem!important; line-height:1.3!important; box-sizing:border-box; }
 html:root body .app main > :is(a,button).btn { width:100%; max-width:460px; align-self:center; margin-inline:auto; }
 html:root body .app main > form { width:100%; max-width:760px; margin-inline:auto; box-sizing:border-box; }
 html:root body .app main > .paper,html:root body .app main > .panel { box-sizing:border-box; max-width:100%; }
 html:root body .app main.sa-cols { max-width:none; }
 html:root body .app.app.app main .lf-play-row .btn { min-height:36px!important; padding:6px 10px!important; font-size:.95rem!important; }
 html:root body .app #lf-song-tools { max-width:760px; width:100%; margin-inline:auto; }
 html:root body .app #lf-song-tools > .btn { display:flex; justify-content:center; max-width:560px; width:100%; margin:12px auto 0; font-size:.95rem!important; }
 html:root body.tg-me .app main { max-width:none; justify-self:stretch; }
 html:root body.tg-me .tg-group { padding:8px 12px; }
 html:root body .app .tg-plan-pill { max-width:640px; align-self:center; min-height:36px; font-size:.95rem; }
 html:root body .app .tg-link-stack { width:100%; max-width:560px; margin-inline:auto; }
 html:root body.r11web .wrap { width:100%; max-width:1120px; padding-inline:24px; margin-inline:auto; box-sizing:border-box; }
 html:root body.r11web main.wrap { max-width:960px; }
 html:root body.r11web .actions .btn { min-height:42px; font-size:1rem; max-width:460px; }
 /* Full square recent-song artwork, never the 92px panorama crop. */
 html body.thm-homepage .songs .cover,html body .app .songs .cover { height:auto!important; aspect-ratio:1 / 1; }
 html body .app .songs .cover img { object-fit:contain!important; width:100%; height:100%; }
 /* Taller art window; keep the original painting/FX coordinate system, uniformly scaled and vertically centered. */
 html body.thm-homepage .thm-band { height:var(--sa-desktop-art-height); }
 html body.thm-homepage .thm-scene { inset:auto 0; top:50%; height:auto; aspect-ratio:780 / 660; transform:translateY(-50%); }
 html body.thm-homepage .thm-img { background-size:100% auto; background-position:center top; }
 html body.thm-homepage .app:has(>nav.tabs) > main { padding-top:calc(var(--sa-desktop-art-height) - 160px + 24px); }
 html:root body .app.app.app main .r9-forgebtn.r9-forgebtn { margin-top:0!important; width:100%!important; max-width:420px!important; min-height:48px!important; height:auto!important; font-size:1.12rem!important; align-self:center; margin-inline:auto; }
 html:root body .app .r9-forgebtn svg { width:24px; height:24px; }
 html:root body.thm-homepage .app main > :is(.paper,.panel) { max-width:620px; width:100%; margin-inline:auto; padding:16px; }
 html:root body.thm-homepage .app main > .r9-bal,html:root body.thm-homepage .app main > .r9-balance { max-width:620px; margin-inline:auto; }
 html:root body .app main > .r9-soft { width:100%; max-width:620px; min-height:76px; padding:12px 18px; margin-inline:auto; box-sizing:border-box; font-size:1rem; }
 html:root body.thm-homepage .app main > section { width:100%; max-width:680px; margin-inline:auto; }
 html:root body.thm-homepage .app main > footer .r11-ctl { font-size:.9em; padding:3px 8px; }
 html:root body.thm-homepage .app .song { padding:8px; }
 html:root body.thm-homepage .app footer .r11-ctl { font-size:.9em; padding:3px 8px; }
 /* Shared gift art/motion is unchanged; reserve only desktop composition space. */
 html body .app .gf-reveal,html body .app .ec-wrap { max-width:760px; margin-inline:auto; }
}
