@font-face {
  font-family: Inter;
  src: url("/vendor/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #101218;
  --sidebar: #151820;
  --field: #1a1e28;
  --line: #282e3b;
  --text: #edf1fa;
  --muted: #a1acc1;
  --blue: #a5c7ff;
  --blue-ink: #101e35;
  --active: #222f48;
  --sidebar-width: 190px;
  --gutter: 26px;
  font: 13px/1.45 Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, p { margin: 0; }
[hidden] { display: none !important; }
button, select, input { color: inherit; font: inherit; }
button { border: 0; background: none; cursor: pointer; }
button:disabled { cursor: default; opacity: .52; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
svg { width: 17px; height: 17px; flex: none; stroke-width: 1.7; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin: 0 0 30px 9px;
  font-size: 22px;
  font-weight: 760;
  letter-spacing: -1px;
  line-height: 1.25;
}
.brand-mark { display: flex; align-items: center; gap: 2.5px; color: #79afff; }
.brand-mark b { display: block; width: 3px; height: 8px; background: currentColor; border-radius: 3px; }
.brand-mark b:nth-child(2), .brand-mark b:nth-child(4) { height: 15px; }
.brand-mark b:nth-child(3) { height: 23px; }
.site-logo { object-fit: contain; }
.navigation { display: grid; gap: 3px; margin-bottom: 23px; }
.nav-label { margin: 0 9px 4px; color: var(--muted); font-size: 11px; font-weight: 550; }
.navigation a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  min-height: 37px;
  border-radius: 7px;
  text-align: left;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.navigation a:hover { color: var(--text); background: var(--field); }
.navigation a[aria-current="page"],
.shell:has(#account:not([hidden])) .navigation a[data-view="account"] { background: var(--active); color: var(--blue); font-weight: 620; }

.workspace { min-width: 0; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner, .catalog, .account { max-width: 1450px; margin: 0 auto; padding-inline: var(--gutter); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 57px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; min-width: 0; }
.account-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #273753;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}
.account-avatar:hover, .account-avatar[aria-current="page"] { background: #344b71; }
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(100%, 448px);
  height: 36px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.playback-tools, .offscreen-playback { display: flex; align-items: center; gap: 4px; min-width: 0; }
.playback-tools { flex: 0 1 auto; }
.offscreen-playback { margin-right: 4px; }
#playing-title { min-width: 0; max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
#volume { width: 64px; }
.search-field:focus-within { border-color: #83aaf0; }
.search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  color: var(--text);
  background: transparent;
}
.search-field input:focus-visible { outline: none; }
.search-field input::placeholder { color: var(--muted); }
kbd { padding: 1px 5px; border: 1px solid #3a4252; border-radius: 4px; font-size: 11px; }
.catalog, .account { padding-top: 19px; padding-bottom: 26px; }
.section-head, .title-group, .filters { display: flex; align-items: center; }
.section-head { justify-content: space-between; flex-wrap: wrap; gap: 10px 18px; margin-bottom: 13px; }
.title-group { gap: 10px; }
h1 { font-size: 25px; font-weight: 720; letter-spacing: -.8px; line-height: 1.15; }
#result-count { color: var(--muted); white-space: nowrap; font-size: 12px; }
.filters { flex-wrap: wrap; gap: 6px; }
.icon-button.table-search-toggle {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  background: var(--field);
}
.table-search-toggle[aria-expanded="true"] { background: var(--active); border-color: #415678; color: var(--blue); }
.table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 0 7px 0 10px;
  margin: -3px 0 8px;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  animation: filter-enter .15s ease-out;
}
.table-search:focus-within { border-color: #83aaf0; }
.table-search input {
  flex: 1;
  min-width: 0;
  padding: 5px 0;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
}
.table-search input:focus-visible { outline: none; }
.table-search input::placeholder { color: var(--muted); }
.table-search input::-webkit-search-cancel-button { appearance: none; }
.table-search .icon-button { width: 27px; height: 27px; }
.table-search .icon-button svg { width: 14px; height: 14px; }
.playlist-controls, .playlist-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.playlist-actions .icon-button { width: 31px; }
#delete-playlist:hover { color: #ffb5bf; background: #3b2732; }
#playlist-picker-field .filter-trigger span { max-width: min(200px, 55vw); overflow: hidden; text-overflow: ellipsis; }
.playlist-order-note { margin: -2px 0 9px; color: var(--muted); font-size: 12px; }
.select-field { position: relative; }
.filter-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  min-height: 33px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  padding: 5px 8px 5px 9px;
  max-width: 170px;
  font-size: 12px;
  white-space: nowrap;
}
.filter-trigger span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.filter-trigger svg { width: 13px; height: 13px; color: var(--muted); transition: transform .15s ease; }
.filter-trigger:hover, .filter-trigger[aria-expanded="true"] { background: #222838; border-color: #414d65; }
.filter-trigger.has-value { background: var(--active); color: var(--blue); border-color: #3b4c6b; }
.filter-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.filter-menu {
  position: absolute;
  z-index: 3;
  top: calc(100% + 5px);
  left: var(--menu-shift, 0px);
  min-width: max(100%, 144px);
  max-width: calc(100vw - 16px);
  max-height: var(--menu-height, 220px);
  padding: 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  background: #1a1f2a;
  border: 1px solid #39445a;
  border-radius: 8px;
  box-shadow: 0 10px 28px #070a14a6;
  animation: filter-enter .15s ease-out;
}
.filter-menu.opens-up { top: auto; bottom: calc(100% + 5px); }
.filter-menu:focus-visible { outline: 1px solid #7188b4; outline-offset: 2px; }
.filter-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  padding: 5px 8px;
  color: var(--text);
  font-size: 12px;
  border-radius: 5px;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.filter-option[aria-selected="true"] { color: var(--blue); }
.filter-option.is-highlighted { background: #29354d; }
.filter-option svg { width: 14px; height: 14px; }
@keyframes filter-enter {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}
.text-button { color: var(--blue); min-height: 32px; padding: 4px 7px; border-radius: 5px; }
.text-button:hover { background: var(--field); }
.track-list { border: 1px solid var(--line); border-radius: 10px; }
.track-grid {
  --bpm-width: 46px;
  display: grid;
  grid-template-columns: minmax(180px, 1.1fr) minmax(90px, .6fr) minmax(110px, .68fr)
    minmax(120px, 1.15fr) var(--bpm-width) 69px 106px;
  gap: 10px;
  align-items: center;
}
#catalog[data-show-bpm="false"] .track-grid { --bpm-width: ; }
.list-head {
  padding: 8px 11px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  background: #171b24;
  border-bottom: 1px solid var(--line);
  border-radius: 9px 9px 0 0;
}
.bpm-heading, .length-heading, .number { text-align: center; }
.column-sort {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 2px 3px;
  border-radius: 4px;
  color: inherit;
  white-space: nowrap;
}
.column-sort:hover, [aria-sort] .column-sort { color: var(--blue); }
.column-sort svg { width: 11px; height: 11px; }
.actions-heading { text-align: right; padding-right: 6px; }
.track-row { min-height: 54px; padding: 5px 11px; border-bottom: 1px solid var(--line); }
.track-row:last-child { border-bottom: 0; border-radius: 0 0 9px 9px; }
.track-row:hover { background: #191e29; }
.track-row.is-playing { background: #1c283f; box-shadow: inset 2px 0 #86b1fa; }
.track-info { display: flex; align-items: center; gap: 9px; min-width: 0; }
.track-text { min-width: 0; }
.track-text h2, .track-text p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-text h2 { font-size: 13px; font-weight: 660; }
.track-text p { margin-top: 2px; font-size: 11px; color: var(--muted); }
.taxonomy-values { display: contents; }
.taxonomy-cell { min-width: 0; }
.taxonomy-value, .taxonomy-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.taxonomy-value { padding: 2px 4px; margin-left: -4px; border-radius: 4px; color: #b7c6de; text-align: left; }
.taxonomy-value:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.taxonomy-value[aria-pressed="true"] { color: var(--blue); background: #283a57; }
.taxonomy-label { color: var(--muted); }
.icon-button, .track-play {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 7px;
}
.track-play { width: 34px; height: 34px; background: #25334b; color: var(--blue); }
.track-play:hover { background: #354968; }
.track-row.is-playing .track-play { background: var(--blue); color: var(--blue-ink); }
.row-actions { display: flex; justify-content: flex-end; gap: 3px; }
.drag-handle { display: grid; place-items: center; width: 29px; height: 32px; color: var(--muted); cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { pointer-events: none; }
.track-row[data-drop-edge="top"] { box-shadow: inset 0 2px var(--blue); }
.track-row[data-drop-edge="bottom"] { box-shadow: inset 0 -2px var(--blue); }
.icon-button { width: 32px; height: 32px; color: var(--muted); }
.icon-button:hover { color: var(--text); background: #303b51; }
.icon-button[aria-pressed="true"], .icon-button.is-saved, .download-action { color: var(--blue); }
.icon-button[aria-pressed="true"] svg { fill: #8ab8fa35; }
.number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.track-time { white-space: nowrap; }
.track-elapsed { color: var(--blue); }
.track-elapsed::after { content: ' / '; color: var(--muted); }
.waveform {
  position: relative;
  width: 100%;
  max-width: 432px;
  height: 32px;
  min-width: 0;
}
.waveform-bars {
  display: flex;
  align-items: center;
  gap: clamp(1px, .16vw, 2px);
  height: 100%;
  pointer-events: none;
}
.waveform b { flex: 1 1 1px; min-width: 0; height: var(--bar); border-radius: 2px; background: #54647f; }
.waveform .played { background: var(--blue); }
.waveform:hover .waveform-bars { opacity: .88; }
.waveform-bars.has-no-peaks::before { content: ''; width: 100%; height: 2px; border-radius: 2px; background: currentColor; opacity: .28; }
input.waveform-seek {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
  border-radius: 4px;
  cursor: ew-resize;
}
.waveform-seek::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.waveform-seek::-moz-range-track { height: 2px; background: transparent; }
.waveform-seek::-webkit-slider-thumb {
  appearance: none;
  width: 2px;
  height: 28px;
  margin-top: -13px;
  border-radius: 2px;
  background: var(--blue);
}
.waveform-seek::-moz-range-thumb { width: 2px; height: 28px; border: 0; border-radius: 2px; background: var(--blue); }
.empty-state { display: flex; align-items: center; gap: 9px; padding: 23px 11px; color: var(--muted); }
.notice { margin-top: 9px; color: var(--muted); font-size: 12px; }
#volume { accent-color: var(--blue); margin: 0; min-width: 0; cursor: pointer; }

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: 28px;
  max-width: 1000px;
  padding-top: 5px;
}
.account-section { padding-block: 13px 18px; }
.account-section + .account-section { border-top: 1px solid var(--line); }
.account-section h2 { margin-bottom: 12px; font-size: 15px; font-weight: 680; }
.account-summary { padding-left: 22px; border-left: 1px solid var(--line); }
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  max-width: 1000px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.account-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 35px;
  padding: 4px 6px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.account-nav a:hover { color: var(--text); }
.account-nav a[aria-current="page"] { border-color: var(--blue); color: var(--blue); font-weight: 620; }
.account-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.account-links a, .plan-offer a, .commerce-content .primary { text-decoration: none; }
.commerce-content { max-width: 1000px; }
.commerce-note { margin: 14px 0 11px; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan-offer { min-width: 0; padding: 12px; background: var(--field); border: 1px solid var(--line); border-radius: 8px; }
.plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 5px; flex-wrap: wrap; }
.plan-heading h2 { font-size: 15px; }
.plan-price { margin-top: 8px; font-size: 17px; font-weight: 680; font-variant-numeric: tabular-nums; }
.plan-offer .account-note { margin-top: 4px; }
.plan-offer .primary { margin-top: 10px; }
.plan-state { padding: 2px 6px; border-radius: 5px; color: var(--blue); background: var(--active); font-size: 11px; white-space: nowrap; }
.allowance-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.allowance-summary > div { padding: 7px 0; border-top: 1px solid var(--line); }
.allowance-summary dt { color: var(--muted); font-size: 12px; }
.allowance-summary dd { margin: 3px 0 0; font-weight: 650; }
.purchase-summary, .purchase-history { max-width: 455px; }
.purchase-total { margin-top: 4px; border-top: 1px solid var(--line); font-weight: 680; }
.purchase-history a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 5px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
}
.purchase-history a:hover { background: var(--field); }
.purchase-history strong, .purchase-history small { display: block; }
.purchase-history small { margin-top: 2px; color: var(--muted); }
.commerce-usage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.usage-subscription { padding-left: 20px; border-left: 1px solid var(--line); }
.usage-plan-name { font-size: 15px; font-weight: 650; }
.usage-list { margin-top: 9px; }
.usage-row { padding-block: 9px; border-bottom: 1px solid var(--line); }
.usage-row:last-child { border-bottom: 0; }
.usage-row > div { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 8px; }
.usage-row > div > span, .usage-row small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.usage-row progress { appearance: none; display: block; width: 100%; height: 6px; margin: 6px 0 4px; overflow: hidden; border: 0; border-radius: 3px; background: #283449; accent-color: var(--blue); }
.usage-row progress::-webkit-progress-bar { background: #283449; border-radius: 3px; }
.usage-row progress::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
.usage-row progress::-moz-progress-bar { background: var(--blue); border-radius: 3px; }
#download-usage-link { display: inline-block; margin-top: 5px; color: var(--blue); font-size: 12px; }
.profile-identity { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; min-width: 0; }
.profile-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #273753;
  color: var(--blue);
  font-size: 15px;
  font-weight: 720;
}
.profile-identity > div { min-width: 0; }
.profile-identity strong, .profile-identity div > span { display: block; overflow-wrap: anywhere; }
.profile-identity strong { font-weight: 680; }
.profile-identity div > span { margin-top: 2px; color: var(--muted); font-size: 12px; }
.profile-form { display: grid; gap: 6px; max-width: 390px; }
.profile-form label, .format-preferences legend { color: var(--muted); font-size: 12px; }
.profile-edit { display: flex; gap: 7px; align-items: center; }
.profile-edit input, #playlist-name, #sign-in-mobile, #sign-in-code {
  width: 100%;
  min-width: 0;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 5px 8px;
  background: var(--field);
}
.account-settings-link { margin-inline-start: 8px; }
#sign-in-dialog form { margin-top: 12px; }
#telegram-link { display: flex; align-items: center; gap: 8px; }
#catalog-more { margin-top: 12px; }
.account-note { margin-top: 8px; color: var(--muted); font-size: 12px; }
.account-note:empty { display: none; }
.format-preferences { margin: 0; padding: 0; border: 0; min-width: 0; }
.format-preferences legend { margin-bottom: 7px; padding: 0; }
.format-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.format-choices label {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
  font-size: 12px;
  cursor: pointer;
}
.format-choices label:hover { border-color: #54627f; }
.format-choices label:has(input:checked) { background: var(--active); border-color: #465a7d; color: var(--blue); }
.format-choices input { margin: 0; accent-color: var(--blue); }
.account-access { margin: 0; }
.account-access > div { display: flex; justify-content: space-between; gap: 12px; padding-block: 6px; }
.account-access dt { color: var(--muted); }
.account-access dd { margin: 0; text-align: right; }
.activity-list { display: grid; }
.activity-list a {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr) auto 15px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  color: var(--text);
  text-decoration: none;
}
.activity-list a:last-child { border-bottom: 0; }
.activity-list a:hover { background: var(--field); }
.activity-list a svg, .activity-count { color: var(--muted); }
.activity-count { font-size: 12px; font-variant-numeric: tabular-nums; }

dialog {
  width: min(425px, calc(100% - 28px));
  max-height: calc(100dvh - 32px);
  padding: 15px;
  border: 1px solid #3b465c;
  border-radius: 12px;
  color: var(--text);
  background: #1a1f2a;
  box-shadow: 0 20px 70px #040813cc;
  opacity: 0;
  transform: translateY(8px) scale(.985);
  transition:
    opacity .22s ease,
    transform .25s cubic-bezier(.22, .65, .26, 1),
    display .25s allow-discrete,
    overlay .25s allow-discrete;
}
dialog[open] { opacity: 1; transform: none; }
dialog::backdrop {
  background: #080b12ac;
  opacity: 0;
  transition: opacity .24s ease, display .25s allow-discrete, overlay .25s allow-discrete;
}
dialog[open]::backdrop { opacity: 1; }
@starting-style {
  dialog[open] { opacity: 0; transform: translateY(8px) scale(.985); }
  dialog[open]::backdrop { opacity: 0; }
}
.dialog-head, .dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head h2 { font-size: 17px; letter-spacing: -.3px; }
.dialog-track { color: var(--muted); margin: 1px 0 12px; }
.download-modes { display: flex; gap: 5px; margin-bottom: 10px; }
.download-modes button {
  border-radius: 7px;
  border: 1px solid var(--line);
  padding: 6px 12px;
  min-height: 32px;
}
.download-modes button[aria-pressed="true"] { color: var(--blue); background: var(--active); }
.file-options { display: grid; gap: 6px; margin: 0 0 13px; padding: 0; border: 0; min-width: 0; }
.file-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: #171c27;
  padding: 7px 8px;
  min-height: 40px;
  border-radius: 7px;
  cursor: pointer;
}
.file-option:has(input:checked) { border-color: #506486; }
.file-option input { margin: 0; accent-color: var(--blue); }
.file-option small { margin-left: auto; color: var(--muted); text-align: right; }
.playlist-option-name { min-width: 0; overflow-wrap: anywhere; }
#playlist-options { max-height: min(230px, 48vh); overflow-y: auto; scrollbar-width: thin; }
#playlist-create .dialog-footer { margin-top: 5px; }
#create-playlist { margin-left: auto; }
.file-total { color: var(--muted); font-size: 12px; }
.primary, .secondary, .danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 35px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--blue);
  color: var(--blue-ink);
  font-weight: 680;
  white-space: nowrap;
}
.primary:not(:disabled):hover { background: #c3d9ff; }
.secondary { background: var(--field); color: var(--text); border: 1px solid var(--line); font-weight: 550; }
.secondary:not(:disabled):hover, .secondary[aria-pressed="true"] { background: var(--active); border-color: #415678; }
.danger { background: #4a2632; color: #ffc5ce; border: 1px solid #6d3548; }
.danger:hover { background: #623044; }
#playlist-delete-confirm .dialog-footer { margin-top: 15px; justify-content: flex-end; }
.toast {
  position: fixed;
  pointer-events: none;
  z-index: 5;
  right: var(--gutter);
  top: 66px;
  max-width: calc(100% - 28px);
  padding: 8px 11px;
  background: #26344c;
  border: 1px solid #485d7e;
  border-radius: 7px;
}

@media (max-width: 1180px) {
  .track-grid {
    --bpm-width: 37px;
    grid-template-columns: minmax(140px, 1fr) minmax(73px, .53fr) minmax(86px, .6fr)
      minmax(82px, .8fr) var(--bpm-width) 60px 98px;
    gap: 6px;
  }
  .taxonomy-value, .taxonomy-label { font-size: 11px; }
}
@media (max-width: 970px) {
  :root { --sidebar-width: 164px; --gutter: 15px; }
}
@media (max-width: 840px) {
  .track-grid { --bpm-width: 47px; grid-template-columns: minmax(150px, 1fr) minmax(96px, .85fr) var(--bpm-width) 69px 101px; gap: 7px; }
  .taxonomy-heading { display: none; }
  .taxonomy-values { display: flex; grid-row: 2; grid-column: 1 / -1; flex-wrap: wrap; gap: 4px 8px; padding-left: 39px; }
  .taxonomy-cell { max-width: 100%; }
  .taxonomy-cell[data-empty] { display: none; }
  .taxonomy-value { padding: 2px 6px; margin-left: 0; background: var(--field); }
}
@media (max-width: 740px) {
  :root { --sidebar-width: 51px; --gutter: 10px; }
  .track-grid { --bpm-width: 40px; grid-template-columns: minmax(126px, 1fr) minmax(75px, .85fr) var(--bpm-width) 60px 96px; gap: 6px; }
  .sidebar { padding: 16px 5px; }
  .brand { margin: 0 auto 22px; font-size: 0; gap: 0; }
  .nav-label, .navigation a span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
  .navigation a { justify-content: center; padding: 6px; }
  #volume { display: none; }
  .account-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .account-summary { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .commerce-usage { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .usage-subscription { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 555px) {
  .track-grid { grid-template-columns: minmax(0, 1fr) 42px 96px; gap: 4px; }
  .waveform, .wave-heading, .bpm, .bpm-heading { display: none; }
  .track-row.is-current .waveform { display: block; grid-row: 3; grid-column: 1 / -1; max-width: none; }
  .track-row.is-current .track-duration, .track-elapsed::after { display: none; }
  .column-sort { gap: 1px; padding-inline: 0; font-size: 10px; }
  .column-sort svg { width: 8px; height: 8px; }
  .track-row, .list-head { padding-inline: 5px; }
  .icon-button { width: 30px; }
  .row-actions { gap: 1px; }
  .track-info { gap: 5px; }
  .track-play { width: 30px; height: 32px; }
  .taxonomy-values { padding-left: 35px; }
  #playing-title { display: none; }
  .topbar-actions { gap: 4px; }
  .account-nav { gap: 6px; }
  .plan-grid { grid-template-columns: minmax(0, 1fr); }
  .allowance-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  kbd { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  dialog, dialog::backdrop, .filter-trigger svg { transition: none; }
  .filter-menu, .table-search { animation: none; }
}
