/* Graphite panels, monospace labels, square controls; turquoise marks what is active or playing. */

/* Atkinson Hyperlegible Next and Mono (SIL Open Font License, see fonts/OFL.txt) */
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/atkinson-hyperlegible-next-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Atkinson Hyperlegible Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/atkinson-hyperlegible-mono-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
    color-scheme: dark;
    --bg: #1a1b1a;
    --side: #151615;
    --panel: #212321;
    --panel-2: #282b28;
    --inset: #121312;
    --lcd: #0e100f;
    --rule: #2b2e2b;
    --rule-2: #3a3e3a;
    --ink: #e4e6e2;
    --dim: #a2a7a1;
    --muted: #6f756e;
    --accent: #1ed2a4;
    --accent-hover: #44e0b8;
    --accent-ink: #06130e;
    --accent-soft: rgba(30, 210, 164, .1);
    --danger: #ef8b74;
    --danger-soft: rgba(239, 139, 116, .12);
    --success: #74d49c;
    --success-soft: rgba(116, 212, 156, .12);
    --warning: #e2b44c;
    --shadow: 0 10px 28px rgba(0, 0, 0, .45);
    --side-width: 14.5rem;
    --player-height: 4.25rem;
    --sans: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: "Atkinson Hyperlegible Mono", ui-monospace, "SF Mono", Consolas, monospace;
    accent-color: var(--accent);
}

html, body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 14px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    scrollbar-width: thin;
    scrollbar-color: var(--rule-2) transparent;
}

::selection {
    background: rgba(30, 210, 164, .3);
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

h1, h2, h3 {
    margin: 0 0 .75rem;
    line-height: 1.25;
}

h1 {
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: -.01em;
}

h1:focus {
    outline: none;
}

h2 {
    font-size: 1.05rem;
    font-weight: 600;
}

h3 {
    margin-top: 1.25rem;
    font-size: .95rem;
    font-weight: 600;
}

p {
    margin: .5rem 0;
}

:focus-visible {
    outline: 1px solid var(--accent);
    outline-offset: 1px;
}

/* Monospace: labels, numbers and anything machine-like. */
th, code, pre, .badge, .tabs a, .nav-group, .song-count, .time, td.stars, .job-state, .tag-diff-title, .version-info code {
    font-family: var(--mono);
}

.ic {
    width: 1.1em;
    height: 1.1em;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -.2em;
}

.ic.filled, .star.on .ic, .rating .on .ic, .play-toggle .ic {
    fill: currentColor;
}

.spacer {
    flex: 1;
}

/* Navigation: a sidebar on wide screens, a bar with a drawer on phones. */

nav {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 4;
    width: var(--side-width);
    display: flex;
    flex-direction: column;
    padding: 1.1rem .75rem .75rem;
    background: var(--side);
    border-right: 1px solid var(--rule);
    overflow-y: auto;
}

nav ~ main {
    margin-left: var(--side-width);
}

.brand {
    display: block;
    width: fit-content;
    margin: 0 .5rem .75rem;
    order: 0;
}

.brand img {
    display: block;
    height: 24px;
}

.nav-links {
    display: contents;
}

.nav-group {
    order: 1;
    padding: 1rem .55rem .35rem;
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.nav-links > a {
    order: 1;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .42rem .55rem;
    color: var(--dim);
    white-space: nowrap;
    text-decoration: none;
}

.nav-links > a:hover {
    background: var(--panel);
    color: var(--ink);
}

.nav-links > a.active {
    background: var(--panel);
    color: var(--ink);
    box-shadow: inset 2px 0 var(--accent);
}

.nav-badge {
    margin-left: auto;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .75rem;
}

nav > .spacer {
    order: 2;
    min-height: 1rem;
}

nav > .jobs {
    order: 3;
}

/* Songs of followed users (ListeningNow): a menu like Activity, above it. */
nav > .listening {
    margin-bottom: .4rem;
}

.listening > button.live {
    border-color: var(--accent);
    color: var(--accent);
}

.listening-entry {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: .75rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--rule);
}

.listening-entry:last-of-type {
    padding-bottom: 0;
    border-bottom: 0;
}

.listening-entry .cover {
    width: 4rem;
    height: 4rem;
    object-fit: cover;
    background: var(--inset);
}

.listening-text {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    min-width: 0;
}

.listening-text > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listening-text .title {
    font-weight: 600;
}

.listening-text .muted {
    font-size: .85rem;
}

.listening-text .listener {
    color: var(--accent);
    font-size: .78rem;
}

.listening-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .4rem;
}

/* A list of checkboxes, e.g. users. */
.checklist {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1.25rem;
    margin-bottom: 1rem;
}

.checklist label {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* A rule above the account link, in its margin, so the link keeps the same padding as the others. */
.nav-links > a.nav-account {
    order: 4;
    margin-top: 1.1rem;
    position: relative;
}

.nav-links > a.nav-account::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -.55rem;
    border-top: 1px solid var(--rule);
}

.nav-logout {
    order: 5;
    margin: 0;
}

.nav-logout button {
    width: 100%;
    justify-content: flex-start;
    gap: .55rem;
    padding: 0 .55rem;
    background: transparent;
    border-color: transparent;
    color: var(--muted);
    font-weight: 400;
}

.nav-logout button:hover {
    background: var(--panel);
    border-color: transparent;
    color: var(--ink);
}

.nav-toggle, .nav-title, .nav-backdrop {
    display: none;
}

main {
    min-width: 0;
    padding: 1.6rem 2rem calc(var(--player-height) + 2.5rem);
}

/* Player bar */

footer.player {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    height: var(--player-height);
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0 1.25rem 0 .75rem;
    background: var(--side);
    border-top: 1px solid var(--rule-2);
}

nav ~ footer.player {
    left: var(--side-width);
}

footer.player .cover {
    flex: none;
    display: block;
    width: 44px;
    height: 44px;
    object-fit: cover;
    background: var(--panel-2);
}

.now {
    display: flex;
    flex-direction: column;
    width: 16rem;
    min-width: 0;
}

.now > span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.now-title {
    font-weight: 500;
}

.now-sub {
    color: var(--muted);
    font-size: .82rem;
}

.transport {
    display: flex;
    align-items: center;
    gap: .2rem;
}

footer.player button.icon {
    min-width: 2.25rem;
    height: 2.25rem;
    background: transparent;
    border-color: transparent;
    color: var(--dim);
}

footer.player button.icon:hover {
    background: var(--panel);
    color: var(--ink);
}

footer.player button.play-toggle {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--accent);
    color: var(--accent-ink);
}

footer.player button.play-toggle:hover {
    background: var(--accent-hover);
    color: var(--accent-ink);
}

/* player.js sets data-playing and data-muted. */
footer.player:not([data-playing=true]) .when-playing,
footer.player[data-playing=true] .when-paused,
footer.player:not([data-muted=true]) .when-muted,
footer.player[data-muted=true] .when-unmuted {
    display: none;
}

.progress {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: .8rem;
    height: 2.5rem;
    padding: 0 .9rem;
    background: var(--lcd);
    border: 1px solid #050605;
    color: var(--accent);
    font-size: .78rem;
}

.progress .time {
    min-width: 2.6rem;
    font-variant-numeric: tabular-nums;
}

.progress .time:last-child {
    text-align: right;
}

.extra {
    display: flex;
    align-items: center;
    gap: .35rem;
}

input[type=range].volume {
    width: 5.5rem;
}

footer.player .lyrics-toggle {
    background: transparent;
    border-color: transparent;
    color: var(--dim);
}

footer.player .lyrics-toggle:hover {
    background: var(--panel);
    color: var(--ink);
}

footer.player .lyrics-toggle.active {
    border-color: var(--accent);
    color: var(--accent);
}

/* Range inputs (player position and volume); player.js keeps --fill up to date. */

input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    flex: 1;
    min-width: 0;
    height: 1rem;
    margin: 0;
    background: transparent;
    cursor: pointer;
}

input[type=range]:disabled {
    cursor: default;
}

input[type=range]::-webkit-slider-runnable-track {
    height: 2px;
    background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--rule-2) var(--fill, 0%));
}

input[type=range]::-moz-range-track {
    height: 2px;
    background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--rule-2) var(--fill, 0%));
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
}

input[type=range]::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
}

.progress input[type=range]::-webkit-slider-runnable-track {
    background: linear-gradient(to right, var(--accent) var(--fill, 0%), #1d2a25 var(--fill, 0%));
}

.progress input[type=range]::-moz-range-track {
    background: linear-gradient(to right, var(--accent) var(--fill, 0%), #1d2a25 var(--fill, 0%));
}

.progress input[type=range]::-webkit-slider-thumb {
    background: var(--accent);
}

.progress input[type=range]::-moz-range-thumb {
    background: var(--accent);
}

input[type=range]:disabled::-webkit-slider-thumb {
    visibility: hidden;
}

input[type=range]:disabled::-moz-range-thumb {
    visibility: hidden;
}

/* Lyrics */

.lyrics-panel {
    position: fixed;
    right: 1.25rem;
    bottom: calc(var(--player-height) + 1rem);
    z-index: 2;
    width: min(28rem, calc(100vw - 2.5rem));
    max-height: 60vh;
    overflow-y: auto;
    padding: 1.1rem 1.4rem;
    background: var(--panel);
    border: 1px solid var(--rule-2);
    box-shadow: var(--shadow);
}

.lyrics-panel p, .lyrics-check-lines p {
    margin: .4rem 0;
    color: var(--muted);
}

:is(.lyrics-panel, .lyrics-check-lines)[data-synced="true"] p {
    cursor: pointer;
}

:is(.lyrics-panel, .lyrics-check-lines)[data-synced="true"] p:hover {
    color: var(--dim);
}

/* Synced lines next to the player for lyrics being edited or reviewed; it scrolls itself, like the lyrics panel. */
.lyrics-check-lines {
    position: relative;
    max-height: 20rem;
    overflow-y: auto;
    padding: .4rem 1rem;
    border: 1px solid var(--rule);
}

.lyrics-check-lines p.current, .lyrics-panel p.current {
    color: var(--ink);
    box-shadow: -1.4rem 0 0 -1.25rem var(--accent);
}

textarea.lyrics-text {
    width: 100%;
    min-height: 20rem;
    font-family: var(--mono);
    font-size: .85rem;
}

pre.lyrics-preview {
    max-height: 20rem;
    overflow-y: auto;
    margin: .5rem 0;
    padding: .75rem .9rem;
    background: var(--inset);
    border: 1px solid var(--rule);
    font-size: .85rem;
    white-space: pre-wrap;
}

/* Controls
   Buttons, links styled as buttons, inputs and selects share one height. Buttons are raised panels, inputs are inset;
   inside table rows they are compact, and icon buttons there are transparent until hovered. */

button, .button, :where(input:not([type=checkbox], [type=radio], [type=range])), select, textarea {
    padding: 0 .75rem;
    border: 1px solid var(--rule-2);
    border-radius: 0;
    color: inherit;
    font: inherit;
    font-size: .92rem;
}

button, .button, :where(input:not([type=checkbox], [type=radio], [type=range])), select {
    height: 2.15rem;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    flex-shrink: 0;
    background: var(--panel);
    color: var(--ink);
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

a.button:hover {
    text-decoration: none;
}

button:hover, .button:hover {
    background: var(--panel-2);
    border-color: #4a4f4a;
}

button.icon, .button.icon {
    min-width: 2.15rem;
    padding: 0 .5rem;
}

button.primary, .auth button[type=submit] {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

button.primary:hover, .auth button[type=submit]:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

button.active {
    border-color: var(--accent);
    color: var(--accent);
}

button.danger {
    color: var(--danger);
}

button.danger:hover {
    background: var(--danger-soft);
    border-color: var(--danger);
}

button:disabled, .button.disabled {
    opacity: .4;
    pointer-events: none;
}

:where(input:not([type=checkbox], [type=radio], [type=range])), select, textarea {
    background-color: var(--inset);
}

:where(input:not([type=checkbox], [type=radio], [type=range])):focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
}

input::placeholder, textarea::placeholder {
    color: var(--muted);
    opacity: 1;
}

input[type=search] {
    -webkit-appearance: none;
    appearance: none;
    min-width: 14rem;
    padding-left: 2.1rem;
    background: var(--inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236f756e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E") no-repeat .7rem center;
}

input[type=search]::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2rem;
    background: var(--inset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a2a7a1' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .65rem center;
    cursor: pointer;
}

select option {
    background: var(--panel);
    color: var(--ink);
}

textarea {
    display: block;
    min-height: 8rem;
    padding: .55rem .75rem;
    line-height: 1.45;
    resize: vertical;
}

input[type=file] {
    height: auto;
    padding: .4rem;
}

input[type=file]::file-selector-button {
    margin-right: .75rem;
    padding: .35rem .75rem;
    border: 1px solid var(--rule-2);
    background: var(--panel);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
}

input[type=checkbox], input[type=radio] {
    -webkit-appearance: none;
    appearance: none;
    flex: none;
    display: inline-grid;
    place-content: center;
    width: 15px;
    height: 15px;
    margin: 0;
    background: var(--inset);
    border: 1px solid #4a4f4a;
    vertical-align: -3px;
    cursor: pointer;
}

input[type=radio] {
    border-radius: 50%;
}

input[type=checkbox]:checked {
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%2306130e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") no-repeat center;
    border-color: var(--accent);
}

input[type=radio]:checked {
    border-color: var(--accent);
}

input[type=radio]:checked::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

input[type=checkbox]:disabled, input[type=radio]:disabled {
    opacity: .4;
    cursor: default;
}

label:has(> input[type=checkbox], > input[type=radio]) {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
}

progress {
    -webkit-appearance: none;
    appearance: none;
    height: 3px;
    border: none;
    background: var(--rule-2);
}

progress::-webkit-progress-bar {
    background: var(--rule-2);
}

progress::-webkit-progress-value {
    background: var(--accent);
}

progress::-moz-progress-bar {
    background: var(--accent);
}

.status, .muted {
    color: var(--muted);
}

.error, .text-danger {
    color: var(--danger);
}

/* Status and error lines are rendered up front and filled in later; until then they shouldn't take up space. */
.status:empty, .error:empty {
    display: none;
}

.quality-warning, .length-diff, .quality-issue {
    color: var(--warning);
}

.quality-warning {
    margin-left: .35rem;
    cursor: help;
}

.length-diff {
    font-weight: 500;
}

.length-diff .ic, .quality-issue .ic {
    margin-right: .35rem;
}

.quality-issue {
    font-size: .9em;
}

code {
    padding: .1rem .35rem;
    background: var(--inset);
    border: 1px solid var(--rule);
    font-size: .85em;
    user-select: all;
    overflow-wrap: anywhere;
}

summary {
    color: var(--dim);
    cursor: pointer;
}

hr {
    border: 0;
    border-top: 1px solid var(--rule);
}

/* Page structure */

.toolbar, .row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin-bottom: 1rem;
}

.toolbar {
    gap: .75rem;
    margin-bottom: 1.1rem;
}

/* Children of a row are centered on each other, so their own vertical margins would offset them. */
:is(.toolbar, .row) > :is(h1, h2, h3) {
    margin: 0 .25rem 0 0;
}

:is(.toolbar, .row) > :is(.toolbar, .row, p) {
    margin: 0;
}

.song-count {
    color: var(--muted);
    font-size: .78rem;
}

.toolbar.filters {
    gap: .5rem;
    color: var(--dim);
}

.toolbar.filters > label, .toolbar > label, .row > label {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

section {
    max-width: 44rem;
    margin: 0 0 2rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--rule);
}

h1 + section, .toolbar + section {
    margin-top: .5rem;
}

section > h2:first-child, section > .row:first-child h2, section:not(.duplicate-category) > .toolbar:first-child h2 {
    color: var(--dim);
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

section > .row:first-child h2, section > .toolbar:first-child h2 {
    margin: 0 .25rem 0 0;
}

.row > input.wide {
    flex: 1 1 16rem;
    width: auto;
}

.row > input.country {
    width: 9rem;
}

.row > input.postcode {
    width: 7rem;
}

:is(section, .settings-panel) > form {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    max-width: 22rem;
}

:is(section, .settings-panel) > form.row {
    flex-direction: row;
    max-width: none;
}

/* The form's gap already spaces its children. */
:is(section, .settings-panel) > form > :is(.row, p) {
    margin: 0;
}

section.wide-section {
    max-width: none;
}

/* A bordered block per item of a settings section (a service, a library rule), like the import search's panels. */
.settings-panel {
    margin-top: 1rem;
    padding: .2rem 1rem .9rem;
    border: 1px solid var(--rule);
    background: var(--panel);
}

.settings-panel > h3 {
    margin: 0 -1rem .9rem;
    padding: .65rem 1rem;
    border-bottom: 1px solid var(--rule);
}

.settings-panel > :last-child {
    margin-bottom: 0;
}

/* Foldable panels with a summary line, e.g. one per service in the import search. */
/* The padding holds the results; the summary reaches over it to the border. */
details.foldable-panel {
    margin-top: 1.25rem;
    padding: 0 .9rem .6rem;
    border: 1px solid var(--rule);
    background: var(--panel);
}

details.foldable-panel:not([open]) {
    padding-bottom: 0;
}

details.foldable-panel > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    margin: 0 -.9rem;
    padding: .65rem .9rem;
    color: var(--ink);
    list-style: none;
}

details.foldable-panel > summary::-webkit-details-marker {
    display: none;
}

details.foldable-panel > summary > button {
    margin-left: auto;
}

details.foldable-panel .disclosure {
    color: var(--dim);
    transition: transform .15s;
}

details.foldable-panel[open] .disclosure {
    transform: rotate(90deg);
}

details.foldable-panel[open] > summary {
    border-bottom: 1px solid var(--rule);
}

h3.panel-part {
    margin-top: .9rem;
    margin-bottom: .3rem;
    color: var(--dim);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.columns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.columns label {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    flex: 1;
    min-width: 14rem;
    color: var(--dim);
    font-size: .85rem;
}

input.wide {
    width: 100%;
    max-width: 40rem;
}

.notice {
    padding: .75rem 1rem;
    border: 1px solid var(--accent);
    background: var(--accent-soft);
    overflow-wrap: anywhere;
}

.badge {
    display: inline-block;
    padding: .1rem .45rem;
    border: 1px solid var(--rule-2);
    color: var(--dim);
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge.applied {
    border-color: var(--success);
    color: var(--success);
}

button.link, button.link:hover {
    display: inline;
    height: auto;
    padding: 0 .25rem;
    border: none;
    background: none;
    color: var(--accent);
    font-size: inherit;
    text-decoration: underline;
}

.source-line {
    font-size: .8rem;
}

.badge.new {
    border-color: var(--accent);
    color: var(--accent);
}

.badge.failed, .badge.rejected, .badge.missing {
    border-color: var(--danger);
    color: var(--danger);
}

.badge.missing {
    margin-left: .45rem;
    padding: 0 .35rem;
    font-size: .64rem;
    vertical-align: 1px;
}

/* Auth pages */

.auth {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 22rem;
    max-width: calc(100% - 2rem);
    margin: 14vh auto 2rem;
    padding: 1.75rem;
    background: var(--panel);
    border: 1px solid var(--rule-2);
}

.auth::before {
    content: "";
    width: 36px;
    height: 32px;
    background: url("logo.svg") left center / contain no-repeat;
}

.auth h1 {
    margin: 0;
}

.auth form {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

/* Share menu: tabs for other users and a public link */

/* In song rows it sits in td.actions, whose nowrap would keep the notes on one line, wider than the menu. */
.share-menu {
    width: 20rem;
    max-width: calc(100vw - 2rem);
    max-height: 28rem;
    white-space: normal;
}

.share-tabs {
    display: flex;
    margin-bottom: .25rem;
    border: 1px solid var(--rule-2);
}

.menu .share-tabs button {
    flex: 1;
    justify-content: center;
    height: 1.9rem;
    color: var(--dim);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.menu .share-tabs button + button {
    border-left: 1px solid var(--rule-2);
}

.menu .share-tabs button.active {
    background: var(--ink);
    color: var(--bg);
}

.share-link {
    display: flex;
    gap: .4rem;
    align-items: center;
    margin-top: .25rem;
}

.menu .share-link button.primary {
    margin-top: 0;
}

.share-link input {
    flex: 1;
    min-width: 0;
    font-family: var(--mono);
    font-size: .85em;
}


/* Share link page (public) */

.share-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 40rem;
    max-width: calc(100% - 2rem);
    margin: 8vh auto 2rem;
}

.share-page header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.share-page header .cover {
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border: 1px solid var(--rule-2);
}

.share-page h1 {
    margin: 0 0 .3rem;
}

.share-player {
    width: 100%;
}

/* Plays the song next to lyrics being reviewed or edited, to check them against it. */
.lyrics-check-player {
    display: block;
    width: 100%;
}

section.proposal .lyrics-check-player, section.proposal .lyrics-shift {
    margin: .5rem 0;
}

.lyrics-shift button {
    font-variant-numeric: tabular-nums;
}

.share-tracks {
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--rule);
}

/* Song entries are buttons; unlike other buttons they take two lines and wrap long titles. */
.share-tracks button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: start;
    column-gap: 1rem;
    row-gap: .15rem;
    width: 100%;
    height: auto;
    padding: .55rem .4rem;
    line-height: 1.35;
    white-space: normal;
    text-align: left;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
    cursor: pointer;
}

.share-tracks button .title,
.share-tracks button .muted {
    grid-column: 1;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.share-tracks button .muted {
    font-size: .85em;
    font-weight: 400;
}

.share-tracks button .time {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    color: var(--dim);
    font-family: var(--mono);
}

.share-tracks button:hover,
.share-tracks button.playing {
    background: var(--accent-soft);
}

.share-tracks button.playing .title {
    color: var(--accent);
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: .4rem .6rem;
    text-align: left;
    border-bottom: 1px solid var(--rule);
}

th {
    padding-top: .55rem;
    padding-bottom: .55rem;
    border-bottom-color: var(--rule-2);
    color: var(--muted);
    font-size: .68rem;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    color: var(--dim);
}

td.title, td:has(> strong), td.name {
    color: var(--ink);
}

td a {
    color: inherit;
}

td a:hover {
    color: var(--ink);
}

tbody tr:hover {
    background: rgba(255, 255, 255, .02);
}

td.actions {
    white-space: nowrap;
    text-align: right;
}

th.actions {
    text-align: right;
}

/* A remark like "No preview found", right before a song's actions. */
td.note {
    max-width: 24rem;
    font-size: .85rem;
    text-align: right;
}

.no-preview {
    white-space: nowrap;
}

tr.playing {
    background: var(--accent-soft);
}

tr.playing:hover {
    background: rgba(30, 210, 164, .14);
}

tr.playing td.title, tr.playing td.play button {
    color: var(--accent);
}

tr.selected {
    background: rgba(255, 255, 255, .045);
}

tr.missing td:not(.actions):not(.select) {
    opacity: .5;
}

td.stars {
    color: var(--dim);
    font-size: .78rem;
    letter-spacing: .06em;
    white-space: nowrap;
}

td button, td .button, td select {
    height: 1.9rem;
    padding: 0 .6rem;
    font-size: .85rem;
    vertical-align: middle;
}

td button.icon, td .button.icon, th button.icon {
    min-width: 1.9rem;
    height: 1.9rem;
    padding: 0 .4rem;
    background: transparent;
    border-color: transparent;
    color: var(--dim);
}

td button.icon:hover, td .button.icon:hover, th button.icon:hover {
    background: var(--panel-2);
    border-color: transparent;
    color: var(--ink);
}

td button.icon.active, th button.icon.active {
    background: var(--panel-2);
    color: var(--accent);
}

td button.icon.in-playlist, button.star.on {
    color: var(--accent);
}

td button.icon.accept:hover {
    color: var(--success);
}

td button.icon.decline:hover {
    color: var(--danger);
}

td.actions > * + * {
    margin-left: .15rem;
}

/* Phone cells break text anywhere; a short note like "No preview found" must not be squeezed into a column of letters. */
td.actions > .muted {
    font-size: .85rem;
    vertical-align: middle;
    white-space: nowrap;
    overflow-wrap: normal;
}

th.sortable {
    cursor: pointer;
    user-select: none;
}

th.sortable:hover {
    color: var(--dim);
}

th.sorted {
    color: var(--ink);
}

th .sort-indicator {
    margin-left: .25rem;
    color: var(--accent);
    vertical-align: -.15em;
}

th.select, td.select {
    width: 1.75rem;
    padding-right: 0;
}

/* Fixed widths: these columns hold the same thing in every row, so the browser should not hand them spare width.
   Only the rendered rows of a virtualized list are measured, so auto widths would shift while scrolling. */
@media (min-width: 701px) {
    :is(th, td).play {
        width: 2.2rem;
        padding-right: 0;
    }

    :is(th, td).cover {
        width: 44px;
        padding-right: .25rem;
    }
}

img.cover {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: cover;
    background: var(--panel-2);
}

.blazor-error-boundary {
    padding: 1rem 1.25rem;
    border: 1px solid var(--danger);
    background: var(--danger-soft);
    color: var(--danger);
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}

/* Activity / jobs */

.jobs {
    position: relative;
}

.jobs > button {
    width: 100%;
    justify-content: flex-start;
}

.jobs > button.busy {
    border-color: var(--accent);
    color: var(--accent);
}

/* Fixed next to the sidebar, which scrolls and would clip it. */
.jobs-panel {
    position: fixed;
    left: calc(var(--side-width) + .75rem);
    bottom: .75rem;
    z-index: 5;
    width: 23rem;
    max-height: 70vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: .9rem;
    background: var(--panel);
    border: 1px solid var(--rule-2);
    box-shadow: var(--shadow);
}

.jobs-panel p {
    margin: 0;
}

.job {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--rule);
}

.job:last-of-type {
    padding-bottom: 0;
    border-bottom: none;
}

.job-head {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.job-head button.icon {
    height: 1.8rem;
    min-width: 1.8rem;
    padding: 0;
    background: transparent;
    border-color: transparent;
}

.job-title {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job progress {
    width: 100%;
}

.job-state {
    color: var(--muted);
    font-size: .76rem;
}

.job-state.failed {
    color: var(--danger);
}

.job-state.completed {
    color: var(--success);
}

/* Tabs */

.tabs {
    display: inline-flex;
    border: 1px solid var(--rule-2);
}

.tabs a {
    padding: .4rem .9rem;
    color: var(--dim);
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
}

.tabs a + a {
    border-left: 1px solid var(--rule-2);
}

.tabs a:hover {
    background: var(--panel);
    color: var(--ink);
}

.tabs a.active {
    background: var(--ink);
    color: var(--bg);
}

/* Filters */

.year-range {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: var(--muted);
}

input.year {
    width: 6.5rem;
}

button.filtered, select.filtered {
    border-color: var(--accent);
    color: var(--accent);
}

/* Ratings and favorites */

.rating {
    display: inline-flex;
    vertical-align: middle;
}

span.rating button {
    height: 1.9rem;
    min-width: 0;
    padding: 0 .08rem;
    background: none;
    border: none;
    color: #4a4f4a;
    font-size: .8rem;
}

span.rating button:hover, span.rating:hover button.on {
    background: none;
    color: var(--ink);
}

span.rating button.on {
    color: var(--dim);
}

span.rating:has(button:hover) button:hover ~ button {
    color: #4a4f4a;
}

/* Unset stars in song rows only show on the hovered row. */
@media (hover: hover) {
    tbody tr:not(:hover) span.rating button:not(.on) {
        visibility: hidden;
    }
}

/* Popup menus */

.menu-anchor {
    position: relative;
    display: inline-block;
    vertical-align: middle;
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 4;
}

.menu {
    position: absolute;
    right: 0;
    top: calc(100% + 2px);
    z-index: 5;
    display: flex;
    flex-direction: column;
    min-width: 12rem;
    max-height: 20rem;
    overflow-y: auto;
    padding: .25rem;
    background: var(--panel);
    border: 1px solid var(--rule-2);
    box-shadow: var(--shadow);
}

.menu button {
    justify-content: flex-start;
    height: 2rem;
    padding: 0 .6rem;
    background: transparent;
    border-color: transparent;
    font-size: .88rem;
    font-weight: 400;
    text-align: left;
}

.menu button:hover {
    background: var(--panel-2);
    border-color: transparent;
}

.menu button.muted {
    color: var(--muted);
}

.menu button.primary {
    justify-content: center;
    margin-top: .25rem;
    background: var(--accent);
    color: var(--accent-ink);
    font-weight: 600;
}

.menu button.primary:hover {
    background: var(--accent-hover);
}

.menu label {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .4rem .6rem;
    white-space: nowrap;
}

.menu label:hover {
    background: var(--panel-2);
}

.menu label.disabled {
    color: var(--muted);
    cursor: default;
}

.menu label.disabled:hover {
    background: transparent;
}

.menu label .muted {
    margin-left: auto;
    padding-left: .75rem;
    font-size: .8rem;
}

.menu input[type=search] {
    margin: .2rem .2rem .3rem;
    min-width: 0;
}

.menu-note {
    padding: .4rem .6rem;
    font-size: .85rem;
}

th .menu, .toolbar .menu {
    color: var(--ink);
    font-family: var(--sans);
    font-size: .88rem;
    font-weight: 400;
    letter-spacing: normal;
    text-align: left;
    text-transform: none;
}

.genre-menu {
    left: 0;
    right: auto;
    max-height: 22rem;
}

/* Selection and bulk editing */

/* Sticks to the top of the page; on phones below the navigation bar, whose height player.js keeps in --nav-height. */
.selection-bar {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1rem;
    padding: .5rem;
    background: var(--panel);
    border: 1px solid var(--rule-2);
}

.selection-bar > strong {
    padding: 0 .4rem;
    color: var(--accent);
    font-family: var(--mono);
    font-size: .8rem;
    font-weight: 500;
}

.selection-bar .divider {
    width: 1px;
    align-self: stretch;
    background: var(--rule-2);
}

.selection-bar button.icon {
    background: transparent;
    border-color: transparent;
}

table.bulk-songs td {
    padding: .3rem .35rem;
}

table.bulk-songs input {
    width: 100%;
    min-width: 0;
    height: 1.9rem;
}

table.bulk-songs input.changed {
    border-color: var(--accent);
}

table.bulk-songs .number {
    width: 5.5rem;
}

table.bulk-songs td.path {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--mono);
    font-size: .76rem;
}

/* Duplicates */

.duplicate-category {
    max-width: none;
    margin-top: 1.5rem;
}

.duplicate-category > .toolbar {
    margin-bottom: .25rem;
}

.duplicate-category > .toolbar h2 {
    margin: 0 .25rem 0 0;
}

.duplicate-versions {
    margin: .75rem 0;
    border: 1px solid var(--rule);
}

.duplicate-version {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .6rem .7rem;
    border-top: 1px solid var(--rule);
}

.duplicate-version:first-child {
    border-top: 0;
}

.duplicate-version.kept {
    background: var(--accent-soft);
    box-shadow: inset 2px 0 var(--accent);
}

.duplicate-version label {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    flex: 1;
    min-width: 0;
    cursor: pointer;
}

.duplicate-version input[type=radio] {
    margin-top: .2rem;
}

.duplicate-version button.icon {
    background: transparent;
    border-color: transparent;
}

.version-info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    min-width: 0;
}

.version-info code {
    align-self: flex-start;
    font-size: .78rem;
}

/* Track editor */

input.title-input {
    min-width: 16rem;
    height: 2.6rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.track-editor {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 30rem);
    gap: 1.75rem;
    align-items: start;
}

@media (max-width: 1150px) {
    .track-editor {
        grid-template-columns: minmax(0, 1fr);
    }
}

.tag-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.tag-form-top {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.tag-form-top .field-grid {
    flex: 1;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .85rem 1rem;
    min-width: 0;
}

.field {
    grid-column: span 6;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    min-width: 0;
}

.field.half {
    grid-column: span 3;
}

.field.third {
    grid-column: span 2;
}

@media (max-width: 700px) {
    .tag-form-top {
        flex-direction: column;
    }

    .field.half {
        grid-column: span 6;
    }
}

.field > span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .7rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.field.changed > span {
    color: var(--accent);
}

.field.changed > span::after {
    content: " · changed";
}

html[lang=de] .field.changed > span::after {
    content: " · geändert";
}

.field input, .field textarea {
    width: 100%;
    min-width: 0;
}

.field.changed input, .field.changed textarea {
    border-color: var(--accent);
}

.field textarea {
    min-height: 4.5rem;
}

.field-note {
    color: var(--muted);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

details.field-group {
    padding: .7rem 1rem;
    border: 1px solid var(--rule);
}

details.field-group[open] > summary {
    margin-bottom: .9rem;
}

.editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
}

/* List fields in the bulk editor: one chip per value, dashed when only some songs have it. */
.chip-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
}

.chip-list .chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding-left: .6rem;
    background: var(--panel-2);
    border: 1px solid var(--rule-2);
    font-size: .86rem;
}

.chip-list .chip.partial {
    background: transparent;
    border-style: dashed;
}

.chip-list .chip small {
    color: var(--muted);
    font-family: var(--mono);
    font-size: .72rem;
}

.chip-list .chip button {
    height: 1.85rem;
    min-width: 1.85rem;
    padding: 0;
    background: transparent;
    border-color: transparent;
    color: var(--dim);
}

.chip-list .chip button:hover {
    color: var(--ink);
}

.field .chip-list input.chip-add {
    flex: 1 1 10rem;
    width: auto;
}

.field.changed .chip-list input.chip-add {
    border-color: var(--rule-2);
}

.side-panels {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 0;
}

.side-panel {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1rem 1.1rem;
    background: var(--panel);
    border: 1px solid var(--rule);
}

.side-panel .row {
    margin-bottom: 0;
}

.side-panel p {
    margin: 0;
}

.side-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.side-panel-head h2 {
    margin: 0;
    color: var(--dim);
    font-family: var(--mono);
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.side-panel textarea.lyrics-text {
    min-height: 16rem;
}

.side-panel .tag-diff {
    margin: 0;
}

.panel-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
}

.panel-form input {
    width: 100%;
    min-width: 0;
}

.panel-form .wide {
    grid-column: span 2;
}

.result-list {
    max-height: 20rem;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--rule);
}

.result-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .65rem;
    border-bottom: 1px solid var(--rule);
}

.result-list li:last-child {
    border-bottom: none;
}

.result-text {
    flex: 1;
    min-width: 0;
}

.result-text > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-text .muted {
    font-size: .8rem;
}

.cover-panel {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    width: 11rem;
    flex-shrink: 0;
}

.cover-panel img, .cover-panel .no-cover {
    width: 11rem;
    height: 11rem;
    object-fit: cover;
    border: 1px solid var(--rule-2);
}

.cover-panel .changed {
    border-color: var(--accent);
}

.cover-panel .no-cover {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--panel);
    color: var(--muted);
}

.cover-panel .row {
    margin-bottom: 0;
}

/* Tag diffs and proposals */

.tag-diff {
    margin: .5rem 0 1rem;
}

.tag-diff-title {
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: .8rem;
    overflow-wrap: anywhere;
}

.tag-diff table {
    width: auto;
}

.tag-diff th {
    padding-right: 1rem;
    border-bottom-color: var(--rule);
    color: var(--muted);
    font-size: .8rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.tag-diff td.old {
    color: var(--danger);
    text-decoration: line-through;
}

.tag-diff td.new {
    color: var(--success);
}

img.proposal-cover {
    width: 8rem;
    height: 8rem;
    margin: .5rem 0;
    object-fit: cover;
    border: 1px solid var(--rule-2);
}

section.proposal {
    max-width: none;
    margin-bottom: 1rem;
    padding: 1rem 1.2rem;
    background: var(--panel);
    border: 1px solid var(--rule);
}

/* Recognition */

section.recognized {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    max-width: none;
    padding: 1.25rem;
    background: var(--panel);
    border: 1px solid var(--rule);
    box-shadow: inset 2px 0 var(--accent);
}

section.recognized img {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
}

section.recognized h2 {
    margin: 0 0 .25rem;
    font-size: 1.4rem;
}

section.recognized p {
    margin: .25rem 0;
}

.visualizer {
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--lcd);
    border: 1px solid #050605;
}

.visualizer canvas {
    display: block;
    width: 100%;
    height: 7rem;
}

/* Artist / album details */

.detail-header {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--rule);
}

.detail-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .45rem;
}

.detail-info h2 {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -.015em;
}

.detail-info .row {
    margin: .35rem 0 0;
}

img.detail-cover {
    width: 12rem;
    height: 12rem;
    object-fit: cover;
    border: 1px solid var(--rule-2);
}

/* Sharing */

.share-status.accepted {
    color: var(--success);
}

.share-status.declined {
    color: var(--danger);
}

input.genre-id {
    width: 9rem;
}

/* Year in review */

.year-stats {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.year-stat, .year-highlights > div {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .9rem 1rem;
    border: 1px solid var(--rule);
    background: var(--panel);
}

.year-stat.lead {
    grid-column: span 2;
    border-color: var(--accent);
    background: var(--accent-soft);
}

.year-stat .value {
    font-family: var(--mono);
    font-size: 1.6rem;
    font-weight: 500;
    line-height: 1.15;
}

.year-stat.lead .value {
    color: var(--accent);
    font-size: 2.4rem;
}

.year-stat .label, .year-highlights .label {
    color: var(--dim);
    font-family: var(--mono);
    font-size: .74rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.year-stat .sub, .year-highlights .sub, .year-list .sub {
    color: var(--muted);
    font-size: .85rem;
}

.year-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
    gap: 0 2rem;
}

.year-grid > section {
    max-width: none;
}

.year-list {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: rank;
}

.year-list > li {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.25rem;
    counter-increment: rank;
}

.year-list > li::before {
    content: counter(rank);
    width: 1.5rem;
    flex: none;
    color: var(--muted);
    font-family: var(--mono);
    text-align: right;
}

.year-list > li:first-child::before {
    color: var(--accent);
}

.year-list .cover {
    width: 32px;
    height: 32px;
    flex: none;
    background: var(--panel-2);
}

.year-list .name {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.year-list .name > button.link {
    padding: 0;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
}

.year-list .name > button.link:hover {
    color: var(--accent);
}

.year-list .count {
    flex: none;
    color: var(--dim);
    font-family: var(--mono);
    font-size: .8rem;
}

.year-list .share {
    display: block;
    height: 4px;
    margin-top: .3rem;
    background: var(--rule);
}

.year-list .share > span {
    display: block;
    height: 100%;
    background: var(--accent);
}

.year-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr));
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.year-highlights .value {
    font-size: 1.05rem;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.year-bars {
    display: flex;
    align-items: stretch;
    gap: 3px;
    height: 9rem;
    max-width: 52rem;
    margin-bottom: .4rem;
    padding-bottom: 1.25rem;
}

/* The bars are buttons: tapping one shows its numbers in the readout below. */
.year-bars .bar {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    min-width: 0;
    height: auto;
    padding: 0;
    border: 0;
    background: var(--inset);
}

.year-bars .fill {
    display: block;
    background: var(--accent);
}

.year-bars .bar.selected {
    background: var(--panel-2);
}

.year-bars .bar.selected .fill {
    background: var(--accent-hover);
    box-shadow: 0 0 0 1px var(--ink);
}

@media (hover: hover) {
    .year-bars .bar:hover .fill {
        background: var(--accent-hover);
    }
}

.year-bars .tick {
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: .25rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
    font-weight: 400;
    white-space: nowrap;
}

.year-bars.months .tick {
    right: 0;
    overflow: hidden;
    text-align: center;
    text-overflow: clip;
}

.bar-readout {
    min-height: 1.45em;
    margin: 0 0 1.5rem;
    color: var(--dim);
}

.bar-readout strong {
    color: var(--ink);
    font-weight: 500;
}

.bar-readout a {
    margin-left: .5rem;
}

/* Activity grid: every element is placed by --w (week, 1 = labels) and --d (weekday, 1 = labels). For a year on wide
   screens weeks are columns, like GitHub's; on phones and for a month (calendar) they are rows. */

.activity {
    display: grid;
    gap: 3px;
    max-width: 60rem;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
    line-height: 1;
}

.activity > * {
    grid-column: var(--w);
    grid-row: var(--d);
}

.activity.year {
    grid-template-columns: max-content repeat(var(--weeks), minmax(0, 1fr));
}

.activity .day, .activity-legend .day {
    background: var(--inset);
}

.activity .day {
    min-width: 0;
    aspect-ratio: 1;
    cursor: pointer;
}

.activity .day.l1, .activity-legend .day.l1 {
    background: rgba(30, 210, 164, .22);
}

.activity .day.l2, .activity-legend .day.l2 {
    background: rgba(30, 210, 164, .45);
}

.activity .day.l3, .activity-legend .day.l3 {
    background: rgba(30, 210, 164, .7);
}

.activity .day.l4, .activity-legend .day.l4 {
    background: var(--accent);
}

.activity .day.selected {
    outline: 1px solid var(--ink);
    outline-offset: 1px;
}

.activity .weekday {
    align-self: center;
    padding-right: .4rem;
}

/* Overflows into the following weeks instead of widening its own. */
.activity.year .month {
    width: 0;
    padding-bottom: .2rem;
    white-space: nowrap;
}

.activity.calendar {
    grid-template-columns: max-content repeat(7, minmax(0, 1fr));
    max-width: 30rem;
}

.activity.calendar > * {
    grid-column: var(--d);
    grid-row: var(--w);
}

.activity.calendar .weekday {
    padding: 0 0 .2rem;
    text-align: center;
}

.activity.calendar .day {
    display: flex;
    justify-content: flex-end;
    height: 2.4rem;
    padding: .25rem .3rem;
    aspect-ratio: auto;
    color: var(--dim);
}

.activity.calendar .day.l3, .activity.calendar .day.l4 {
    color: var(--accent-ink);
}

.activity-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .5rem 1.5rem;
    max-width: 60rem;
    margin-top: .75rem;
}

.activity-footer .bar-readout {
    margin: 0;
}

.activity-legend {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
}

.activity-legend .day {
    width: 10px;
    height: 10px;
}

/* A shared year in review (/s/{token}) needs the room of the owner's page. */
.share-page:has(.share-review) {
    width: 64rem;
    margin-top: 4vh;
}

.share-review > header {
    margin-bottom: 1rem;
}

.share-review-periods {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: 1.25rem;
}

.share-review-periods > a {
    padding: .3rem .6rem;
    border: 1px solid var(--rule-2);
    color: var(--dim);
    font-family: var(--mono);
    font-size: .78rem;
}

.share-review-periods > a.active {
    border-color: var(--accent);
    background: var(--accent-soft);
    color: var(--accent);
}

.share-review-periods > a:hover {
    text-decoration: none;
    border-color: var(--accent);
}

/* The selected day's plays, in order. */
.day-history {
    max-width: 44rem;
    margin-top: 1.5rem;
}

.day-history h3:focus {
    outline: none;
}

.history-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.history-list > li {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.6rem;
    padding: .3rem 0;
    border-bottom: 1px solid var(--rule);
}

.history-list time {
    width: 4.5rem;
    flex: none;
    color: var(--dim);
    font-family: var(--mono);
    font-size: .8rem;
}

.history-list .cover {
    width: 32px;
    height: 32px;
    flex: none;
    background: var(--panel-2);
}

.history-list .name {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
    overflow-wrap: anywhere;
}

.history-list .name > button.link {
    padding: 0;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
}

.history-list .name > button.link:hover {
    color: var(--accent);
}

.history-list .sub {
    color: var(--muted);
    font-size: .85rem;
}

.history-list .sources {
    flex: none;
    color: var(--muted);
    font-family: var(--mono);
    font-size: .68rem;
    text-align: right;
}

@media (max-width: 700px) {
    .history-list time {
        width: auto;
        min-width: 3rem;
    }

    /* Below the song instead of beside it. */
    .history-list > li {
        flex-wrap: wrap;
    }

    .history-list .sources {
        width: 100%;
        padding-left: calc(3rem + 32px + 1.3rem);
        text-align: left;
    }

    .activity.year {
        grid-template-columns: max-content repeat(7, minmax(0, 1fr));
    }

    .activity.year > * {
        grid-column: var(--d);
        grid-row: var(--w);
    }

    .activity.year .day {
        height: 1rem;
        aspect-ratio: auto;
    }

    .activity.year .weekday {
        padding: 0 0 .2rem;
        text-align: center;
    }

    .activity.year .month {
        width: auto;
        padding: 0 .4rem 0 0;
    }
}

/* Navigation menu and compact song rows: hidden on wide screens, used by the phone layout below. */

td.actions > button.more, td.title > .sub, td.title > .phone-lines, .phone-only {
    display: none;
}

/* Phones */

@media (max-width: 700px) {
    :root {
        --player-height: 7.25rem;
    }

    main, nav ~ main {
        margin-left: 0;
        padding: 1rem .9rem calc(var(--player-height) + 2rem);
    }

    h1, h2 {
        overflow-wrap: anywhere;
    }

    select {
        max-width: 100%;
    }

    input[type=search] {
        min-width: 0;
        flex: 1 1 12rem;
    }

    input.title-input {
        min-width: 0;
        width: 100%;
    }

    /* Navigation: menu button and page title; the links open as a drawer from the left. */

    nav {
        position: sticky;
        bottom: auto;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: .5rem;
        padding: .4rem .6rem;
        border-right: 0;
        border-bottom: 1px solid var(--rule);
        overflow: visible;
    }

    .brand {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
        position: relative;
        background: transparent;
        border-color: transparent;
    }

    nav:has(.nav-badge) .nav-toggle::after {
        content: "";
        position: absolute;
        top: .35rem;
        right: .35rem;
        width: .45rem;
        height: .45rem;
        border-radius: 50%;
        background: var(--accent);
    }

    .nav-title {
        display: block;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-weight: 600;
    }

    nav > .spacer {
        min-height: 0;
    }

    .nav-links {
        display: none;
    }

    /* Above the backdrop, which is outside the bar; the drawer can't leave the bar's stacking context. */
    nav.open {
        z-index: 6;
    }

    nav.open .nav-links {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 6;
        width: min(17rem, 85vw);
        display: flex;
        flex-direction: column;
        padding: .75rem;
        overflow-y: auto;
        background: var(--side);
        border-right: 1px solid var(--rule-2);
    }

    nav.open .nav-links > a {
        padding: .65rem .6rem;
        font-size: 1rem;
    }

    .nav-links > a.nav-account {
        margin-top: auto;
    }

    .nav-logout button {
        height: 2.6rem;
        font-size: 1rem;
    }

    /* Within the open nav: above the bar and its menu panels, below the drawer. */
    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 5;
        background: rgba(0, 0, 0, .55);
    }

    nav > .jobs > button {
        width: auto;
    }

    /* Side by side in the bar, which has its own gap; the sidebar's spacing would lift the button. */
    nav > .listening {
        margin-bottom: 0;
    }

    /* Panels anchored to the bar instead of to their button. */
    .jobs {
        position: static;
    }

    /* Below the drawer's backdrop (z-index 5), so tapping it closes the drawer even where a panel is open. */
    .jobs-panel {
        position: absolute;
        left: .6rem;
        right: .6rem;
        bottom: auto;
        top: calc(100% + .25rem);
        z-index: 4;
        width: auto;
    }

    .selection-bar {
        top: var(--nav-height, 0px);
    }

    /* Popup menus open as a sheet at the bottom of the screen. */

    .menu, .genre-menu {
        position: fixed;
        top: auto;
        left: .6rem;
        right: .6rem;
        bottom: .6rem;
        z-index: 6;
        min-width: 0;
        max-height: 70vh;
        padding: .4rem;
    }

    .menu-backdrop {
        z-index: 5;
        background: rgba(0, 0, 0, .55);
    }

    .menu label, .menu button {
        min-height: 2.6rem;
        white-space: normal;
    }

    /* Player: song and controls on the first line, position below. */

    footer.player, nav ~ footer.player {
        left: 0;
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) auto auto;
        grid-template-areas: "cover now transport extra" "progress progress progress progress";
        align-content: center;
        gap: .5rem .65rem;
        padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom));
        height: auto;
        min-height: var(--player-height);
    }

    footer.player .cover {
        grid-area: cover;
    }

    .now {
        grid-area: now;
        width: auto;
    }

    .transport {
        grid-area: transport;
    }

    .extra {
        grid-area: extra;
    }

    .progress {
        grid-area: progress;
        height: 2.2rem;
    }

    footer.player [data-audio=mute], input[type=range].volume, footer.player .lyrics-toggle > span {
        display: none;
    }

    .lyrics-panel {
        right: .6rem;
        width: calc(100vw - 1.2rem);
    }

    /* Tables: each row wraps its cells; actions move to the right or onto their own line.
       Sortable headers stay as a row of buttons. Tables marked "scroll" scroll sideways on their own instead. */

    table:where(:not(.scroll)), table:where(:not(.scroll)) > thead, table:where(:not(.scroll)) > tbody {
        display: block;
    }

    table:where(:not(.scroll)) > thead:not(:has(.sortable)) {
        display: none;
    }

    table:where(:not(.scroll)) tr {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .35rem .75rem;
        padding: .6rem .15rem;
        border-bottom: 1px solid var(--rule);
    }

    /* Virtualize spacers keep their exact height. */
    table:where(:not(.scroll)) tr:not(:has(td, th)) {
        padding: 0;
        border: none;
    }

    table:where(:not(.scroll)) > thead tr {
        gap: .3rem;
        padding: 0 0 .5rem;
    }

    table:where(:not(.scroll)) :is(th, td) {
        padding: 0;
        border: none;
        min-width: 0;
        overflow-wrap: anywhere;
    }

    table:where(:not(.scroll)) :is(th, td):empty {
        display: none;
    }

    table:where(:not(.scroll)) th.sortable {
        padding: .3rem .55rem;
        border: 1px solid var(--rule-2);
    }

    table:where(:not(.scroll)) td.actions {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        align-items: center;
        gap: .2rem;
        margin-left: auto;
        white-space: normal;
    }

    td.actions > * + * {
        margin-left: 0;
    }

    table.scroll {
        display: block;
        overflow-x: auto;
    }

    table.scroll :is(th, td) {
        white-space: nowrap;
    }

    table.scroll code {
        overflow-wrap: normal;
    }

    table.bulk-songs input {
        min-width: 8rem;
    }

    table.bulk-songs .number input {
        min-width: 4rem;
    }

    /* Song, album and artist lists: cover, title with details below, and actions on the right.
       Song rows play when the cover is tapped and show only the favorite button plus ⋯ for the other actions. */

    table.compact-list th.actions {
        display: none;
    }

    table.compact-list > tbody > tr:has(td) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: .65rem;
        padding: .45rem .15rem;
    }

    table.compact-list > tbody > tr:has(td.cover) {
        grid-template-columns: 2.6rem minmax(0, 1fr) auto;
    }

    table.compact-list > tbody > tr:has(td.select) {
        grid-template-columns: auto 2.6rem minmax(0, 1fr) auto;
    }

    table.compact-list > tbody td:not(.select, .cover, .title, .actions) {
        display: none;
    }

    table.compact-list td.cover {
        display: block;
        position: relative;
        width: 2.6rem;
        height: 2.6rem;
        background: var(--panel-2);
    }

    table.compact-list td.cover img.cover {
        width: 100%;
        height: 100%;
    }

    table.compact-list td.title > * {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        overflow-wrap: normal;
    }

    table.compact-list td.title > .sub {
        color: var(--muted);
        font-size: .82rem;
    }

    /* Song tables outside the library keep their play button, as their covers don't play. */
    table.song-table > tbody > tr:has(td.play) {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    table.song-table > tbody > tr:has(td.play):has(td.cover) {
        grid-template-columns: auto 2.6rem minmax(0, 1fr) auto;
    }

    table.song-table > tbody td.play, table.song-table td.cover:empty {
        display: block;
    }

    /* Remarks get a line of their own at the very left, below the play button, where they are easy to spot. */
    table.song-table > tbody td.note:has(*) {
        display: block;
        grid-row: 2;
        grid-column: 1 / -1;
        padding-top: .3rem;
        text-align: left;
    }

    section.recognized .row > .no-preview {
        order: 1;
        flex-basis: 100%;
    }

    /* Song rows: the lines each user picked in the ⋯ menu instead of title and subtitle. */
    table:is(.track-table, .song-table) td.title > :is(.name, .sub), .wide-only {
        display: none;
    }

    .phone-only {
        display: block;
    }

    table:is(.track-table, .song-table) td.title > .phone-lines > .line {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--muted);
        font-size: .82rem;
    }

    table:is(.track-table, .song-table) td.title > .phone-lines > .line.primary {
        color: var(--ink);
        font-size: inherit;
    }

    table:is(.track-table, .song-table) td.title > .phone-lines .name {
        color: var(--ink);
    }

    table.track-table tr.playing td.title .name {
        color: var(--accent);
    }

    table:is(.track-table, .song-table) th.actions {
        display: block;
        margin-left: auto;
    }

    .column-menu {
        right: 0;
        width: min(22rem, calc(100vw - 2rem));
        max-height: 70vh;
    }

    .line-editor {
        display: flex;
        flex-direction: column;
        gap: .5rem;
    }

    .line-row {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: .3rem;
        padding-bottom: .5rem;
        border-bottom: 1px solid var(--rule);
    }

    .line-row .chip {
        display: inline-flex;
        align-items: center;
        gap: .15rem;
        padding-left: .55rem;
        background: var(--panel-2);
        border: 1px solid var(--rule-2);
        font-size: .85rem;
    }

    .line-row .chip button {
        height: 1.8rem;
        min-width: 1.8rem;
        padding: 0;
        background: transparent;
        border-color: transparent;
    }

    .line-row select {
        width: auto;
        height: 1.8rem;
    }

    .line-moves {
        display: inline-flex;
        margin-left: auto;
    }

    .line-buttons {
        display: flex;
        gap: .5rem;
    }

    table.compact-list td.actions {
        flex-wrap: nowrap;
        gap: 0;
    }

    table.track-table td.cover {
        cursor: pointer;
    }

    table.track-table td.cover::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, .3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M6 4l14 8-14 8z'/%3E%3C/svg%3E") no-repeat center;
    }

    table.track-table tr.playing td.cover::after {
        background: rgba(0, 0, 0, .45) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='%231ed2a4'%3E%3Crect x='4' y='9' width='3' height='6'/%3E%3Crect x='10.5' y='5' width='3' height='14'/%3E%3Crect x='17' y='8' width='3' height='8'/%3E%3C/svg%3E") no-repeat center;
    }

    table:is(.track-table, .song-table) tr:not(.expanded) td.actions > :not(.star, .keep, .more) {
        display: none;
    }

    table:is(.track-table, .song-table) td.actions > button.more {
        display: inline-flex;
    }

    table:is(.track-table, .song-table) tr:not(:has(td.actions > :not(.star, .keep, .more))) button.more {
        display: none;
    }

    table:is(.track-table, .song-table) tr.expanded td.actions {
        grid-column: 1 / -1;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: .2rem;
        padding-top: .4rem;
    }

    table:is(.track-table, .song-table) tr.expanded td.actions > button.more {
        margin-left: auto;
    }

    /* Other page parts */

    .auth {
        margin-top: 2rem;
        padding: 1.4rem;
    }

    section.recognized {
        flex-direction: column;
    }

    section.recognized img {
        width: 8rem;
        height: 8rem;
    }

    .detail-header {
        gap: 1rem;
    }

    img.detail-cover {
        width: 9rem;
        height: 9rem;
    }

    .detail-info h2 {
        font-size: 1.45rem;
    }
}
