/* Darker headings retain clear contrast in both themes. */
body.sl-redesign #slTopbar{background:#030b17!important}
body.sl-redesign .table-header-wrapper,body.sl-redesign .data-table th{background:#08172c!important;color:#eff5ff!important}
body.sl-redesign.theme-white #slTopbar{background:#dde8f7!important}
body.sl-redesign.theme-white .table-header-wrapper,body.sl-redesign.theme-white .data-table th{background:#b9cdea!important;color:#142d4b!important}
#shareListViewport thead{background:color-mix(in srgb,var(--share-panel) 84%,#182f50)}
#shareListViewport th{color:var(--share-text)}
#accountModal #songDensitySetting{margin:0!important}
#accountModal #songDensitySetting select{width:100%;min-height:40px}
#accountModal #songDensitySetting p{font-size:12px!important;line-height:1.55!important;margin-top:6px!important}
@media(min-width:821px) and (pointer:fine){
html[data-song-density] body.sl-redesign #tableBody tr{height:var(--song-row-height,36px)}
html[data-song-density] body.sl-redesign #tableBody td{font-size:var(--song-font,13px)!important;line-height:1.25!important;padding:3px 6px!important}
html[data-song-density] body.sl-redesign #tableBody .song-title-link,html[data-song-density] body.sl-redesign #tableBody .artist-filter-button{font-size:var(--song-font,13px)!important;line-height:1.25!important}
html[data-song-density] body.sl-redesign #tableBody button,html[data-song-density] body.sl-redesign #tableBody select{min-height:var(--song-control-height,27px)!important;padding:2px 4px!important;font-size:var(--song-font,13px)!important;line-height:1.2!important}
html[data-song-density] body.sl-redesign .data-table col.col-title{width:var(--song-title-width,30%)!important}
html[data-song-density] body.sl-redesign.my-list-mode .data-table col.col-title{width:calc(var(--song-title-width,30%) - 6%)!important}
html[data-song-density] #shareListViewport tbody tr{height:var(--song-row-height,36px)}
html[data-song-density] #shareListViewport td{font-size:var(--song-font,13px);line-height:1.3;padding:3px 8px}
html[data-song-density] #shareListViewport .song-title{width:var(--song-title-width,30%);max-width:none}
html[data-song-density] #shareListViewport .song-artist{width:23%;max-width:none}
html[data-song-density] #shareListViewport .song-link{min-height:var(--song-control-height,27px);padding:2px 6px}
}
@media(max-width:820px),(pointer:coarse){
html[data-song-density] body.sl-redesign #tableBody td.col-title .song-title-link{font-size:var(--song-font,13px)!important}
html[data-song-density] #shareListViewport td{font-size:var(--song-font,13px)}
}
@media(min-width:601px){#accountModal #profileAvatarSetting{grid-row:2 / span 5!important}#accountModal #songDensitySetting{grid-column:2!important;grid-row:auto}}

#songPageSizeToggle{margin-right:auto;min-height:32px;padding:4px 12px;border:1px solid var(--sl-border);border-radius:7px;background:var(--sl-panel2);color:var(--sl-text);cursor:pointer}body.theme-white #songPageSizeToggle{background:#e7f0fb;color:#183451;border-color:#b9cdea}

@media(min-width:821px) and (pointer:fine){html[data-song-page-size="10"] body.sl-redesign #tableBody tr{height:clamp(42px,calc((100dvh - var(--sl-top) - var(--sl-filter) - 170px)/10),64px)!important}html[data-song-page-size="10"] body.sl-redesign #tableBody td,html[data-song-page-size="10"] body.sl-redesign #tableBody .song-title-link,html[data-song-page-size="10"] body.sl-redesign #tableBody .artist-filter-button{font-size:15px!important;line-height:1.4!important}html[data-song-page-size="10"] body.sl-redesign #tableBody button,html[data-song-page-size="10"] body.sl-redesign #tableBody select{font-size:14px!important;min-height:32px!important}html[data-song-page-size="10"] body.sl-redesign .data-table col.col-title{width:34%!important}html[data-song-page-size="10"] body.sl-redesign .data-table col.col-artist{width:26%!important}html[data-song-page-size="10"] body.sl-redesign .data-table col.col-genre{width:auto!important}}

@media(min-width:821px) and (pointer:fine){html[data-song-page-size] body.sl-redesign #tableBody tr{height:var(--fit-row)!important}html[data-song-page-size] body.sl-redesign #tableBody td{height:var(--fit-row)!important;padding:0 6px!important;box-sizing:border-box!important}html[data-song-page-size] body.sl-redesign #tableBody .fit-cell{height:calc(var(--fit-row) - 1px);max-height:calc(var(--fit-row) - 1px);overflow:hidden;display:flex;flex-direction:column;justify-content:center;min-width:0;font-size:var(--fit-font)!important;line-height:1.2!important}html[data-song-page-size] body.sl-redesign #tableBody .song-title-link,html[data-song-page-size] body.sl-redesign #tableBody .artist-filter-button{white-space:nowrap!important;text-overflow:ellipsis;overflow:hidden;font-size:var(--fit-font)!important;line-height:1.2!important;min-height:0!important}html[data-song-page-size] body.sl-redesign #tableBody button,html[data-song-page-size] body.sl-redesign #tableBody select{min-height:0!important;max-height:calc(var(--fit-row) - 5px)!important;padding:2px 4px!important;font-size:var(--fit-font)!important;line-height:1.2!important}html[data-song-page-size] body.sl-redesign #tableBody .col-genre .fit-cell{display:block;align-content:center;white-space:nowrap;text-overflow:ellipsis}#songPageSizeToggle{order:-1}#songPagination{flex-wrap:nowrap!important}}

/* Keep title and supplementary information on two non-shrinking lines. */
.song-row-meta{display:flex;align-items:center;gap:6px;min-width:0}
.song-row-meta:empty{display:none}
.song-row-meta .room-overlap-tag{flex:none;margin:0;padding:0 4px}
.song-row-meta small,.song-row-meta .room-member-attrs{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2!important;margin:0!important}
@media(min-width:821px) and (pointer:fine){
html[data-song-page-size] body.sl-redesign #tableBody .col-title .fit-cell{justify-content:center;gap:2px}
html[data-song-page-size] body.sl-redesign #tableBody .col-title .song-title-link{flex:0 0 auto;line-height:1.25!important}
html[data-song-page-size] body.sl-redesign #tableBody .song-row-meta{flex:0 0 auto;font-size:10px;line-height:1.2;max-height:14px;overflow:hidden}
html[data-song-page-size] body.sl-redesign #tableBody .song-row-meta small{font-size:10px!important}
}
