@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Black.otf") format("opentype");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-BlackItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-BoldItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Italic.otf") format("opentype");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Light.otf") format("opentype");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-LightItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Medium.otf") format("opentype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-MediumItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-Thin.otf") format("opentype");
  font-style: normal;
  font-weight: 100;
  font-display: swap;
}

@font-face {
  font-family: "FK Grotesk Neue";
  src: url("./fonts/FKGroteskNeueTrial-ThinItalic.otf") format("opentype");
  font-style: italic;
  font-weight: 100;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #141414;
  --muted: #777;
  --line: #dedede;
  --accent: #ff0155;
  --accent-soft: #ffe6ee;
  --dark: #141414;
  --sidebar: 222px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    13px/1.4 "FK Grotesk Neue",
    -apple-system,
    BlinkMacSystemFont,
    "Helvetica Neue",
    Arial,
    sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
  color: inherit;
}

button:disabled {
  opacity: 0.35;
  cursor: default;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentcolor;
  fill: none;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

button,
input,
select {
  touch-action: manipulation;
}

/* Quiet navigation, with one unmistakable accent. */
.sidebar {
  position: fixed;
  inset: 0 auto 84px 0;
  width: var(--sidebar);
  background: var(--theme-surface, #ececec);
  display: flex;
  flex-direction: column;
  padding: 29px 16px 0;
  border-right: 1px solid var(--theme-line, #e0e0e0);
  z-index: 30;
}

.brand {
  font-size: 38px;
  font-weight: 650;
  letter-spacing: -2.4px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
  line-height: 1;
}

.brand-dot {
  color: var(--accent);
  margin-left: -7px;
}

.brand-record {
  width: 26px;
  height: 26px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  position: relative;
  box-shadow:
    inset 0 0 0 5px #ececec,
    inset 0 0 0 6px #aaa;
}

.brand-record::after {
  content: "";
  position: absolute;
  inset: 9px;
  background: var(--accent);
  border-radius: 50%;
}

.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 30px 10px;
  color: var(--theme-text, #282828);
  font-size: 11px;
}

.avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--theme-raised, #dadada);
  color: var(--theme-text, #333);
  font-size: 9px;
  font-weight: 600;
}

.workspace small,
.sidebar-foot small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  color: var(--theme-muted, #888);
  font-weight: 400;
}

.local-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-left: auto;
}

.nav-label {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1.6px;
  color: var(--theme-muted, #8b8b8b);
  padding: 0 12px;
  margin: 8px 0 12px;
}

.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--theme-muted, #686868);
  text-align: left;
  font-size: 11px;
  transition: background 0.15s;
}

.nav-item.active {
  background: var(--dark);
  color: white;
}

.nav-item:hover {
  background: var(--theme-raised, #e2e2e2);
}

.nav-item.active:hover {
  background: #252525;
}

.nav-item svg {
  width: 16px;
  height: 16px;
}

.nav-count {
  margin-left: auto;
  font-size: 9px;
  color: var(--theme-muted, #999);
}

.nav-item.active .nav-count {
  color: var(--theme-muted, #c9c9c9);
}

.sets-label {
  margin-top: 29px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.set-dot {
  width: 6px;
  height: 6px;
  border-radius: 0;
  flex-shrink: 0;
  margin: 0 5px;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 7px;
  font-size: 19px;
  line-height: 1;
  color: inherit;
}

.icon-button:hover {
  background: #00000007;
}

.sidebar-bottom {
  margin: auto 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--theme-line, #d7d7d7);
}

.storage-icon {
  margin-bottom: 15px;
  color: var(--theme-muted, #777);
}

.sidebar-bottom strong {
  font-size: 11px;
  font-weight: 500;
}

.sidebar-bottom p {
  font-size: 10px;
  color: var(--theme-muted, #8b8b8b);
  line-height: 1.7;
  margin: 9px 0;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  font-weight: 500;
  border: 0;
  background: none;
  padding: 6px 0;
}

.text-button span {
  font-size: 15px;
}

.sidebar-bottom .text-button {
  color: var(--theme-text, #444);
  font-size: 9px;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--theme-line, #d7d7d7);
  padding: 16px 5px;
  font-size: 10px;
}

.sidebar-foot .icon-button {
  margin-left: auto;
  color: var(--theme-muted, #888);
}

.avatar.small {
  height: 28px;
  width: 28px;
}

.app-shell {
  margin-left: var(--sidebar);
  padding-bottom: 84px;
}

.topbar {
  height: 70px;
  padding: 0 38px;
  border-bottom: 1px solid var(--theme-line, #e0e0e0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--paper);
  font-size: 10px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--theme-muted, #929292);
}

.breadcrumb span {
  color: var(--theme-muted, #b5b5b5);
}

.breadcrumb strong {
  font-weight: 400;
  color: var(--theme-text, #4c4c4c);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 23px;
  color: var(--theme-muted, #848484);
}

.top-avatar {
  height: 29px;
  width: 29px;
  background: var(--theme-raised, #dedede);
  color: var(--theme-text, #333);
}

.device-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}

.device-status i {
  height: 4px;
  width: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.top-wordmark,
.mobile-menu {
  display: none;
}

main {
  max-width: 1440px;
  margin: auto;
  padding: 32px 38px 25px;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 27px;
}

.eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
  color: var(--theme-muted, #888);
  margin-bottom: 9px;
}

h1 {
  font-size: 41px;
  line-height: 1.05;
  font-weight: 450;
  letter-spacing: -2px;
  margin: 0;
}

h1 > span {
  color: var(--theme-muted, #929292);
  margin-left: 9px;
  font-weight: 400;
}

.page-heading p {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: var(--theme-muted, #888);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 17px;
  font-size: 11px;
  font-weight: 500;
  background: none;
  border: 1px solid transparent;
  border-radius: 0;
  white-space: nowrap;
  transition: background 0.18s var(--ease);
}

.primary {
  background: var(--dark);
  color: #fff;
}

.primary:hover {
  background: #353535;
}

.primary svg {
  width: 15px;
  height: 15px;
}

.secondary {
  background: var(--theme-surface, #f5f5f5);
  border-color: var(--theme-line, #dcdcdc);
  color: var(--theme-text, #5d5d5d);
}

.secondary:hover {
  background: var(--theme-raised, #e5e5e5);
}

.small-button {
  font-size: 9px;
  padding: 8px 11px;
  gap: 6px;
}

.small-button svg {
  width: 13px;
  height: 13px;
}

.danger {
  color: #c40043;
  border-color: var(--theme-line, #e8b6c6);
}

.chevron {
  font-size: 13px;
  margin-left: 5px;
}

/* Real collection data, in a graphic dashboard inspired by the reference. */
.collection-overview {
  display: grid;
  grid-template-columns: 1.8fr 1.15fr 1fr;
  grid-template-rows: 104px 104px;
  gap: 6px;
  margin-bottom: 25px;
}

.panel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  letter-spacing: 0.7px;
  font-weight: 400;
}

.panel-topline > span:last-child {
  font-size: 13px;
}

.collection-panel {
  grid-row: span 2;
  background: var(--accent);
  padding: 18px 20px 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.collection-panel .panel-topline {
  color: #51001b;
}

.collection-panel .panel-symbol {
  font-size: 20px;
  color: #440016;
}

.collection-number {
  display: flex;
  align-items: flex-end;
  gap: 15px;
  z-index: 1;
  margin: 18px 0 0;
}

.collection-number > strong {
  font-size: 73px;
  line-height: 0.9;
  font-weight: 350;
  letter-spacing: -5px;
  color: white;
}

.collection-number > span {
  font-size: 12px;
  line-height: 1.4;
  color: #57001e;
  margin-bottom: 2px;
}

.duration-spark {
  position: absolute;
  inset: 73px 18px 44px auto;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 42%;
  gap: 3px;
  opacity: 0.45;
  transform: skewY(-8deg);
  border-bottom: 1px solid #ffb5cd;
}

.duration-spark i {
  display: block;
  flex: 1;
  max-width: 7px;
  min-width: 1px;
  background: #ffb9cf;
}

.panel-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  line-height: 1.4;
}

.collection-panel > .panel-bottomline {
  margin-top: auto;
  color: #52001b;
}

.collection-panel > .panel-bottomline > span:last-child {
  font-size: 7px;
  letter-spacing: 1px;
}

.health-panel {
  grid-row: span 2;
  background: var(--theme-raised, #e7e7e7);
  padding: 18px 17px 14px;
  border: 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: background 0.15s;
}

.health-panel:hover {
  background: var(--theme-raised, #dedede);
}

.health-panel .panel-topline {
  color: var(--theme-text, #555);
}

.health-graphic {
  position: relative;
  align-self: center;
  width: 131px;
  height: 131px;
  margin: 1px 0;
}

.health-graphic svg {
  height: 100%;
  width: 100%;
  stroke-linecap: butt;
  transform: rotate(137deg);
  stroke-width: 1.8;
  overflow: visible;
}

.health-track {
  stroke: #c9c9c9;
}

.health-arc {
  stroke: var(--accent);
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  transition: stroke-dashoffset 0.6s var(--ease);
}

.health-graphic > strong {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  letter-spacing: -2px;
  font-weight: 350;
}

.health-graphic > strong span {
  font-size: 10px;
  letter-spacing: 0;
  margin: 14px 0 0 3px;
  color: var(--theme-muted, #777);
}

.health-panel > .panel-bottomline {
  color: var(--theme-muted, #666);
  margin-top: auto;
  font-size: 8px;
}

.health-panel > .panel-bottomline span:last-child {
  color: var(--theme-muted, #999);
}

.sets-metric,
.storage-metric {
  background: var(--theme-raised, #e7e7e7);
  border: 0;
  text-align: left;
  padding: 13px 17px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  transition: background 0.15s;
}

.sets-metric:hover,
.storage-metric:hover {
  background: var(--theme-raised, #ddd);
}

.sets-metric > strong {
  font-size: 37px;
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -1.7px;
  margin-top: 6px;
}

.metric-caption {
  font-size: 8px;
  color: var(--theme-muted, #777);
  margin-top: auto;
}

.storage-metric > div:nth-child(2) {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
}

.storage-metric strong {
  font-size: 32px;
  font-weight: 350;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.storage-metric > div:nth-child(2) > span {
  font-size: 9px;
  color: var(--theme-muted, #888);
}

.view-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--theme-line, #dadada);
  margin-bottom: 25px;
  padding-bottom: 6px;
}

.view-tab {
  padding: 10px 19px;
  border: 0;
  border-radius: 0;
  background: var(--theme-raised, #e7e7e7);
  font-size: 10px;
  color: var(--theme-muted, #777);
  min-height: 35px;
}

.view-tab:hover {
  background: var(--theme-raised, #ddd);
}

.view-tab.active:hover {
  background: #252525;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

h2 {
  font-size: 16px;
  letter-spacing: -0.4px;
  font-weight: 450;
  margin: 0;
}

h2 > span {
  font-size: 9px;
  letter-spacing: 0;
  color: var(--theme-muted, #929292);
  background: none;
  display: inline-block;
  margin-left: 7px;
  vertical-align: middle;
}

.section-heading .text-button {
  font-size: 10px;
  color: var(--theme-muted, #777);
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.set-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: var(--theme-raised, #e7e7e7);
  border: 0;
  border-radius: 0;
  text-align: left;
  position: relative;
  overflow: hidden;
  min-height: 100px;
  transition: background 0.15s;
}

.set-card:hover {
  background: var(--theme-raised, #dedede);
}

.set-art {
  width: 74px;
  height: 74px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  background: #222;
  border-radius: 0;
}

.art-0 {
  background: linear-gradient(135deg, #2b2b2b, #141414);
}

.art-0::before {
  content: "";
  position: absolute;
  inset: 4px -21px -27px 5px;
  background: repeating-radial-gradient(
    circle at center,
    #626262 0 1px,
    #272727 2px 5px
  );
  border-radius: 50%;
}

.art-0::after {
  content: "";
  position: absolute;
  height: 14px;
  width: 14px;
  background: var(--accent);
  border: 4px solid #000;
  border-radius: 50%;
  left: 43px;
  top: 40px;
}

.art-1 {
  background: #cdcdcd;
}

.art-1::before {
  content: "";
  position: absolute;
  inset: -9px;
  background: repeating-linear-gradient(
    135deg,
    #353535 0 2px,
    transparent 2px 6px
  );
  transform: rotate(10deg);
}

.art-1::after {
  content: "";
  position: absolute;
  inset: 15px;
  background: var(--accent);
  border-radius: 50%;
}

.art-2 {
  background: #1a1a1a;
}

.art-2::before {
  content: "";
  position: absolute;
  inset: -25px -9px;
  background: repeating-linear-gradient(
    60deg,
    #b0b0b0 0 1px,
    transparent 1px 5px
  );
  transform: rotate(18deg);
}

.art-2::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid var(--accent);
  background: #121212;
  transform: rotate(45deg);
}

.set-info {
  min-width: 0;
}

.set-info strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  max-width: 200px;
  padding-right: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.set-info p {
  font-size: 9px;
  color: var(--theme-muted, #888);
  margin: 6px 0 10px;
}

.set-pill {
  display: inline-block;
  font-size: 6px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  background: var(--theme-raised, #dcdcdc);
  color: var(--theme-muted, #777);
  padding: 3px 5px;
  line-height: 1;
}

.set-arrow {
  position: absolute;
  top: 11px;
  right: 11px;
  color: var(--theme-muted, #777);
  font-size: 12px;
}

.library-section {
  margin-top: 29px;
}

.library-heading {
  margin-bottom: 14px;
}

.table-actions {
  display: flex;
  gap: 6px;
}

.studio-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0 13px;
  border-bottom: 1px solid var(--theme-line, #dedede);
  margin-bottom: 8px;
}

.studio-entry > .button {
  background: none;
  border: 0;
  padding: 0;
  min-height: 27px;
  font-size: 11px;
  color: var(--theme-text, #333);
}

.studio-entry > .button svg {
  color: var(--accent);
  width: 15px;
  height: 15px;
}

.studio-new {
  font-size: 6px;
  letter-spacing: 1px;
  color: #b5003b;
  background: var(--theme-raised, #ffe1eb);
  padding: 4px 6px;
  margin-left: 1px;
}

.studio-entry > span {
  font-size: 9px;
  color: var(--theme-muted, #888);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--theme-muted, #999);
  min-width: 120px;
}

.search-wrap svg {
  width: 15px;
  height: 15px;
}

.search-wrap input {
  background: none;
  border: 0;
  width: 100%;
  font-size: 10px;
  padding: 12px 0;
  color: var(--theme-text, #222);
  min-width: 0;
}

.search-wrap input::placeholder {
  color: var(--theme-muted, #999);
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group select {
  font-size: 9px;
  padding: 7px 20px 7px 7px;
  background: var(--theme-raised, #e8e8e8);
  color: var(--theme-muted, #777);
  border: 0;
  border-radius: 0;
  max-width: 145px;
  min-height: 28px;
}

.filter-group .icon-button {
  color: var(--theme-muted, #777);
}

.filter-group .icon-button svg {
  width: 14px;
  height: 14px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
  text-align: left;
}

th {
  height: 34px;
  border-top: 1px solid var(--theme-line, #ddd);
  border-bottom: 1px solid var(--theme-line, #ddd);
  font-size: 7px;
  letter-spacing: 0.9px;
  font-weight: 400;
  color: var(--theme-muted, #999);
  padding: 0 11px;
}

th svg {
  width: 12px;
  height: 12px;
}

td {
  height: 65px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--theme-line, #e2e2e2);
  font-size: 10px;
  color: var(--theme-muted, #888);
}

tr:hover td {
  background: var(--theme-raised, #eaeaea);
}

tr.selected td {
  background: var(--theme-raised, #ffe4ed);
}

tr.playing td {
  background: var(--theme-raised, #e8e8e8);
}

.check-cell {
  width: 25px;
  padding-left: 0;
  padding-right: 8px;
}

.number-cell {
  width: 26px;
  padding-left: 0;
  font-size: 9px;
  color: var(--theme-muted, #aaa);
}

input[type="checkbox"] {
  appearance: none;
  display: inline-grid;
  place-items: center;
  vertical-align: middle;
  width: 13px;
  height: 13px;
  border: 1px solid var(--theme-line, #bfbfbf);
  border-radius: 0;
  cursor: pointer;
  margin: 0;
  background: none;
}

input[type="checkbox"]:checked {
  background: var(--dark);
  border-color: var(--dark);
}

input[type="checkbox"]:checked::after {
  content: "✓";
  font-size: 9px;
  color: #fff;
}

.track-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 185px;
}

.track-play {
  display: block;
  background: none;
  border: 0;
  padding: 0;
  flex-shrink: 0;
}

.cover {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: var(--theme-raised, #ddd);
  color: var(--theme-muted, #999);
}

.cover::before {
  content: "";
  position: absolute;
  width: 29px;
  height: 29px;
  border: 1px solid #fff6;
  border-radius: 50%;
  left: 13px;
  top: 12px;
}

.cover-0 {
  background: linear-gradient(135deg, #fa709b, #a90039);
}

.cover-1 {
  background: linear-gradient(145deg, #c4c4c4, #585858);
}

.cover-2 {
  background: linear-gradient(75deg, #141414, #858585);
}

.cover-3 {
  background: linear-gradient(135deg, #7c7c7c, #181818);
}

.cover-4 {
  background: linear-gradient(40deg, #c6879e, #efe0e5);
}

.cover-5 {
  background: linear-gradient(140deg, #222, #888);
}

.track-play .cover svg {
  display: none;
  width: 15px;
  height: 15px;
  position: relative;
  z-index: 1;
  color: white;
}

.track-play:hover .cover svg,
tr.playing .cover svg {
  display: block;
}

.track-text {
  min-width: 0;
  cursor: pointer;
}

.track-text strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  max-width: 260px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  color: var(--theme-text, #333);
}

.track-text small {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--theme-muted, #8b8b8b);
  margin-top: 5px;
}

.format-badge {
  font-size: 5.5px;
  color: var(--theme-muted, #7b7b7b);
  letter-spacing: 0.3px;
  line-height: 1;
  flex-shrink: 0;
}

.album-col,
.genre-col {
  font-size: 9px;
}

.key-badge {
  font-size: 8px;
  display: inline-block;
  min-width: 25px;
  text-align: center;
  padding: 3px 5px;
  border: 1px solid var(--theme-line, #d3d3d3);
  color: var(--theme-muted, #777);
  background: var(--theme-raised, #e7e7e7);
}

.time-col {
  font-variant-numeric: tabular-nums;
  font-size: 9px;
}

.end-col {
  width: 63px;
  text-align: right;
  padding-right: 0;
}

.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
}

.row-actions .icon-button {
  color: var(--theme-muted, #aaa);
  padding: 5px;
}

.row-actions svg {
  width: 13px;
  height: 13px;
}

.row-actions .liked {
  color: var(--accent);
}

.row-actions .liked svg {
  fill: var(--accent);
}

.row-actions .more-button {
  font-size: 17px;
}

.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  font-size: 8px;
  line-height: 1.7;
  color: var(--theme-muted, #999);
}

.table-footer i {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 5px;
}

.selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #161616;
  color: white;
  padding: 9px 12px;
  font-size: 10px;
}

.selection-bar > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.selection-bar .text-button {
  font-size: 10px;
}

.selection-bar .icon-button {
  font-size: 17px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  font-size: 9px;
  color: var(--theme-muted, #999);
}

.empty-state {
  text-align: center;
  padding: 42px 20px;
  color: var(--theme-muted, #999);
}

.empty-state > span {
  display: inline-block;
  color: var(--accent);
}

.empty-state svg {
  width: 29px;
  height: 29px;
}

.empty-state h3 {
  font-weight: 450;
  font-size: 16px;
  color: var(--theme-text, #333);
}

.empty-state p {
  font-size: 11px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.backup-card {
  display: flex;
  align-items: center;
  gap: 15px;
  text-align: left;
  width: 100%;
  padding: 18px;
  background: var(--theme-raised, #e5e5e5);
  border: 0;
  border-radius: 0;
  margin-top: 10px;
  color: var(--theme-muted, #666);
}

.backup-card:hover {
  background: var(--theme-raised, #ddd);
}

.backup-card-icon {
  padding: 10px;
  border: 1px solid var(--theme-line, #ccc);
  color: var(--accent);
}

.backup-card strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--theme-text, #333);
}

.backup-card small {
  display: block;
  font-size: 9px;
  color: var(--theme-muted, #888);
  margin-top: 5px;
}

.backup-card > span:last-child {
  margin-left: auto;
}

.backup-card > span:last-child svg {
  width: 15px;
  height: 15px;
}

.bottom-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 4px;
  color: var(--theme-muted, #999);
  font-size: 7px;
  letter-spacing: 1px;
}

.bottom-note svg {
  width: 11px;
  height: 11px;
  color: var(--accent);
}

/* Compact transport stays above the phone's main navigation. */
.player {
  position: fixed;
  inset: auto 0 0;
  height: 84px;
  background: var(--theme-surface, #ebebeb);
  border-top: 1px solid var(--theme-line, #d9d9d9);
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  align-items: center;
  gap: 30px;
  padding: 0 25px;
  z-index: 40;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.player-cover {
  height: 40px;
  width: 40px;
  background: var(--theme-raised, #d6d6d6);
  color: var(--theme-muted, #777);
}

.now-playing > div:nth-child(2) {
  min-width: 0;
}

.now-playing strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--theme-text, #333);
}

.now-playing span {
  display: block;
  font-size: 8px;
  color: var(--theme-muted, #888);
  margin-top: 5px;
}

.now-playing .icon-button {
  margin-left: 8px;
  color: var(--accent);
}

.player-center {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.playback-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--theme-muted, #777);
  margin-bottom: 7px;
}

.playback-buttons .icon-button svg {
  width: 12px;
  height: 12px;
}

.play-button {
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  width: 27px;
  height: 27px;
  padding: 6px;
  background: var(--dark);
  color: white;
}

.play-button svg {
  width: 12px;
  height: 12px;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 7px;
  color: var(--theme-muted, #999);
}

.progress-row span {
  min-width: 23px;
}

.progress-row input {
  flex: 1;
}

input[type="range"] {
  appearance: none;
  height: 2px;
  background: var(--theme-raised, #d2d2d2);
  accent-color: var(--accent);
  border-radius: 0;
  cursor: pointer;
  min-width: 0;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
  color: var(--theme-muted, #999);
}

.player-right input {
  width: 60px;
}

.player-right svg {
  width: 14px;
  height: 14px;
}

.player-tag {
  font-size: 6px;
  letter-spacing: 1px;
  margin-right: 10px;
  color: var(--theme-muted, #999);
}

.mobile-tabs {
  display: none;
}

/* Tools use the same flat surfaces and measured spacing. */
dialog {
  border: 0;
  border-radius: 5px;
  background: var(--theme-surface, #f6f6f6);
  color: var(--theme-text, #222);
  padding: 27px;
  width: 480px;
  max-width: calc(100% - 30px);
  max-height: 90vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 30px 100px #0002;
}

dialog::backdrop {
  background: #1118;
  backdrop-filter: blur(5px);
}

.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.modal-heading h2 {
  font-size: 23px;
  font-weight: 450;
  letter-spacing: -0.8px;
}

.modal-heading .icon-button {
  font-size: 23px;
  min-width: 32px;
  min-height: 32px;
}

.modal-copy {
  font-size: 11px;
  line-height: 1.85;
  color: var(--theme-muted, #888);
  margin: 0 0 19px;
}

.form-label {
  display: block;
  font-size: 10px;
  color: var(--theme-muted, #777);
  margin: 16px 0 7px;
}

.form-input {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--theme-line, #d6d6d6);
  border-radius: 0;
  background: var(--theme-surface, #eee);
  color: var(--theme-text, #333);
  font-size: 12px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 23px;
}

.option-button {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 14px 12px;
  background: var(--theme-surface, #ededed);
  border: 0;
  border-bottom: 1px solid var(--theme-line, #ddd);
  border-radius: 0;
  text-align: left;
  margin: 5px 0;
  color: var(--theme-text, #333);
}

.option-button:hover {
  background: var(--theme-raised, #e5e5e5);
}

.option-button > span:first-child {
  display: block;
  color: var(--theme-muted, #666);
  padding: 8px;
  background: var(--theme-raised, #e2e2e2);
  border-radius: 0;
}

.option-button strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
}

.option-button small {
  font-size: 9px;
  color: var(--theme-muted, #8d8d8d);
  display: block;
  line-height: 1.65;
  margin-top: 5px;
}

.option-button > span:last-child {
  margin-left: auto;
  color: var(--theme-muted, #888);
  font-size: 15px;
}

.notice {
  padding: 13px;
  background: var(--theme-raised, #e9e9e9);
  border-left: 2px solid var(--accent);
  font-size: 9px;
  line-height: 1.9;
  color: var(--theme-muted, #777);
  margin-top: 18px;
}

.check-option {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: var(--theme-muted, #666);
  margin: 13px 0;
}

.color-options {
  display: flex;
  gap: 11px;
}

.color-option {
  width: 25px;
  height: 25px;
  border-radius: 0;
  border: 2px solid transparent;
}

.color-option.active {
  outline: 1px solid var(--theme-line, #222);
  outline-offset: 3px;
}

.settings-stat {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--theme-line, #ddd);
  font-size: 11px;
  color: var(--theme-muted, #999);
}

.settings-stat strong {
  font-weight: 450;
  color: var(--theme-text, #333);
}

.set-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--theme-line, #ddd);
  background: none;
  padding: 15px 10px;
  width: 100%;
  text-align: left;
  font-size: 11px;
}

.set-picker-item:hover {
  background: var(--theme-surface, #eee);
}

.set-picker-item small {
  margin-left: auto;
  color: var(--theme-muted, #999);
  font-size: 9px;
}

.reorder-list {
  overflow: visible;
}

.reorder-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--theme-line, #ddd);
  font-size: 11px;
}

.reorder-row > span:nth-child(2) {
  flex: 1;
}

.reorder-row .icon-button {
  font-size: 16px;
}

.studio-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-top: 1px solid var(--theme-line, #ddd);
  border-bottom: 1px solid var(--theme-line, #ddd);
  padding: 17px 0;
  margin-bottom: 13px;
}

.studio-stats strong {
  display: block;
  color: var(--theme-text, #222);
  font-size: 26px;
  line-height: 1;
  font-weight: 350;
  letter-spacing: -1px;
}

.studio-stats span {
  display: block;
  font-size: 8px;
  color: var(--theme-muted, #999);
  margin-top: 8px;
}

.studio-options {
  overflow: visible;
}

.studio-options .option-button {
  padding: 10px 11px;
  gap: 10px;
}

.studio-options .option-button > span:first-child {
  color: var(--accent);
}

.patch-list,
.genre-review {
  overflow: visible;
}

.patch-track {
  padding: 13px 0;
  border-bottom: 1px solid var(--theme-line, #ddd);
}

.patch-track > strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}

.patch-track > small {
  display: block;
  font-size: 9px;
  color: var(--theme-muted, #999);
  margin-top: 5px;
}

.patch-field {
  display: grid;
  grid-template-columns: 48px 1fr 12px 1fr;
  gap: 8px;
  margin-top: 10px;
  font-size: 10px;
  align-items: start;
  overflow-wrap: anywhere;
}

.patch-field > span {
  color: var(--theme-muted, #999);
  text-transform: capitalize;
}

.patch-field del {
  color: var(--theme-muted, #aaa);
}

.patch-field ins {
  color: #b9003d;
  text-decoration: none;
}

.patch-field b {
  font-weight: 400;
  color: var(--theme-muted, #aaa);
}

.bulk-field {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
}

.bulk-field .check-option {
  margin: 0;
}

.job-progress {
  height: 5px;
  width: 100%;
  accent-color: var(--accent);
}

.genre-item {
  padding: 15px 0;
  border-bottom: 1px solid var(--theme-line, #ddd);
}

.genre-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.genre-title strong {
  font-weight: 500;
}

.genre-title .check-option {
  margin: 0;
}

.genre-item > small {
  display: block;
  font-size: 9px;
  color: var(--theme-muted, #999);
  line-height: 1.9;
  margin-top: 5px;
}

.genre-item p {
  font-size: 11px;
  color: var(--theme-muted, #888);
  line-height: 1.8;
  margin: 10px 0;
}

.genre-item p b {
  font-weight: 500;
  color: #b9003d;
}

#toast {
  position: fixed;
  bottom: 104px;
  left: calc(50% + 70px);
  transform: translate(-50%, 8px);
  max-width: min(510px, 90vw);
  padding: 14px 19px;
  background: #171717;
  color: #fff;
  font-size: 11px;
  border-left: 3px solid var(--accent);
  box-shadow: 0 10px 35px #0002;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.2s,
    opacity 0.2s;
  z-index: 100;
}

#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

#drop-overlay {
  position: fixed;
  inset: 12px;
  z-index: 80;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--theme-glass, #fff3f7f5);
  border: 2px dashed var(--accent);
  color: #b5003c;
  pointer-events: none;
}

#drop-overlay span {
  display: inline-block;
}

#drop-overlay svg {
  width: 45px;
  height: 45px;
}

#drop-overlay h2 {
  font-size: 30px;
  margin-top: 20px;
}

@media (width >= 1500px) {
  main {
    padding-top: 42px;
  }

  .page-heading {
    margin-bottom: 35px;
  }

  h1 {
    font-size: 48px;
  }

  .collection-overview {
    grid-template-rows: 120px 120px;
  }

  .collection-number > strong {
    font-size: 88px;
  }

  .collection-number {
    margin-top: 24px;
  }

  .health-graphic {
    height: 154px;
    width: 154px;
  }

  .health-graphic > strong {
    font-size: 47px;
  }

  .sets-metric > strong {
    font-size: 47px;
  }

  .storage-metric strong {
    font-size: 41px;
  }

  .set-card {
    min-height: 112px;
  }

  .set-art {
    width: 85px;
    height: 85px;
  }

  td {
    height: 70px;
  }
}

@media (width <= 1200px) {
  :root {
    --sidebar: 196px;
  }

  .topbar {
    padding: 0 28px;
  }

  main {
    padding: 28px;
  }

  .collection-overview {
    grid-template-columns: 1.6fr 1.05fr 0.9fr;
    grid-template-rows: 98px 98px;
  }

  .collection-panel {
    padding: 15px;
  }

  .collection-number > strong {
    font-size: 65px;
  }

  .collection-number > span {
    font-size: 10px;
  }

  .collection-panel > .panel-bottomline > span:last-child {
    display: none;
  }

  .health-panel {
    padding: 15px;
  }

  .health-graphic {
    height: 119px;
    width: 119px;
  }

  .health-panel > .panel-bottomline {
    font-size: 7px;
    gap: 5px;
  }

  .health-panel > .panel-bottomline span:last-child {
    display: none;
  }

  .sets-metric,
  .storage-metric {
    padding: 12px;
  }

  .album-col {
    display: none;
  }

  .set-art {
    width: 60px;
    height: 68px;
  }

  .set-card {
    gap: 10px;
    padding: 10px;
  }

  .set-info strong {
    font-size: 10px;
  }

  .set-info p {
    font-size: 8px;
  }

  .set-arrow {
    display: none;
  }

  .player-tag {
    display: none;
  }

  .toolbar {
    gap: 12px;
  }

  .filter-group select {
    max-width: 115px;
    font-size: 8px;
  }

  .track-text strong {
    max-width: 220px;
  }

  h1 {
    font-size: 35px;
  }

  .page-heading p {
    font-size: 9px;
  }
}

@media (width <= 900px) {
  :root {
    --sidebar: 174px;
  }

  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }

  .brand {
    font-size: 32px;
  }

  .brand-record {
    width: 22px;
    height: 22px;
  }

  .brand-record::after {
    inset: 7px;
  }

  .workspace {
    gap: 7px;
    padding-left: 7px;
    font-size: 10px;
  }

  .workspace .avatar {
    height: 27px;
    width: 27px;
  }

  .workspace small {
    font-size: 8px;
  }

  .sidebar-bottom {
    margin-left: 8px;
    margin-right: 8px;
  }

  .nav-item {
    font-size: 10px;
    padding: 10px;
  }

  .nav-label {
    font-size: 8px;
  }

  .topbar {
    height: 60px;
    padding: 0 23px;
  }

  .topbar-right {
    gap: 13px;
  }

  .device-status {
    display: none;
  }

  main {
    padding: 27px 23px;
  }

  .page-heading {
    gap: 14px;
  }

  .page-heading h1 {
    font-size: 32px;
  }

  .page-heading h1 span {
    display: block;
    margin: 2px 0 0;
  }

  .collection-overview {
    grid-template-columns: 1.45fr 1.05fr;
    grid-template-rows: 177px 76px;
    gap: 5px;
  }

  .collection-panel {
    grid-row: 1;
    grid-column: 1;
  }

  .collection-number > strong {
    font-size: 60px;
  }

  .collection-number {
    margin-top: 20px;
    gap: 11px;
  }

  .collection-number > span {
    font-size: 9px;
  }

  .duration-spark {
    width: 36%;
    inset: 64px 12px 44px auto;
    opacity: 0.25;
  }

  .health-panel {
    grid-column: 2;
    grid-row: 1;
    padding: 13px;
  }

  .health-graphic {
    height: 116px;
    width: 116px;
  }

  .sets-metric {
    grid-column: 1;
    grid-row: 2;
    position: relative;
  }

  .sets-metric > strong {
    font-size: 28px;
    position: absolute;
    top: 30px;
    left: 12px;
    margin: 0;
  }

  .sets-metric .metric-caption {
    margin-left: 45px;
    text-align: right;
  }

  .storage-metric {
    grid-column: 2;
    grid-row: 2;
    position: relative;
  }

  .storage-metric strong {
    font-size: 27px;
  }

  .storage-metric .metric-caption {
    display: none;
  }

  .storage-metric > div:nth-child(2) {
    margin-top: 8px;
  }

  .set-grid {
    gap: 5px;
  }

  .set-card {
    display: block;
    padding: 9px;
  }

  .set-art {
    width: 100%;
    height: 67px;
    margin-bottom: 11px;
  }

  .set-info strong {
    font-size: 10px;
    padding: 0;
  }

  .set-info p {
    margin: 6px 0 8px;
  }

  .set-pill {
    font-size: 6px;
  }

  .genre-col {
    display: none;
  }

  .key-col {
    display: none;
  }

  .track-main {
    min-width: 155px;
    gap: 9px;
  }

  .track-text strong {
    max-width: 165px;
    font-size: 10px;
  }

  .toolbar {
    flex-wrap: wrap;
    gap: 0;
  }

  .search-wrap {
    flex-basis: 100%;
    border-bottom: 1px solid var(--theme-line, #e0e0e0);
  }

  .search-wrap input {
    padding: 13px 0;
    font-size: 10px;
  }

  .filter-group {
    width: 100%;
    justify-content: flex-end;
    margin-top: 8px;
    margin-bottom: 6px;
  }

  .filter-group select {
    max-width: 150px;
    flex: 1;
  }

  .player {
    grid-template-columns: 1fr 1fr;
    padding: 0 20px;
    gap: 25px;
  }

  .player-right {
    display: none;
  }

  .studio-entry > span {
    font-size: 8px;
    max-width: 130px;
  }

  .table-footer #demo-note {
    max-width: 185px;
    text-align: right;
  }

  .breadcrumb {
    font-size: 9px;
    gap: 10px;
  }
}

@media (width <= 620px) {
  :root {
    --sidebar: 220px;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.22s var(--ease);
    bottom: calc(122px + env(safe-area-inset-bottom));
    box-shadow: 10px 0 50px #0001;
    padding-top: 25px;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .sidebar .brand {
    font-size: 37px;
  }

  .app-shell {
    margin-left: 0;
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
  }

  .topbar {
    height: 54px;
    padding: 0 19px;
    position: sticky;
    top: 0;
    background: var(--theme-glass, #fffe);
    backdrop-filter: blur(15px);
    z-index: 20;
    border-bottom: 1px solid var(--theme-line, #ddd);
  }

  .mobile-menu {
    display: inline-flex;
    padding: 7px;
    margin-left: -7px;
  }

  .mobile-menu svg {
    height: 17px;
    width: 17px;
  }

  .top-wordmark {
    display: block;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .top-wordmark > span {
    display: inline-block;
    vertical-align: top;
    font-size: 7px;
    letter-spacing: 0;
    margin: 3px 0 0 3px;
    color: var(--accent);
  }

  .breadcrumb {
    display: none;
  }

  .topbar-right {
    gap: 0;
  }

  .topbar-right .icon-button {
    display: none;
  }

  .top-avatar {
    height: 27px;
    width: 27px;
    font-size: 8px;
    background: var(--theme-raised, #dcdcdc);
  }

  main {
    padding: 25px 15px 15px;
  }

  .page-heading {
    margin: 0 3px 21px;
    gap: 8px;
    align-items: flex-end;
  }

  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.5px;
    margin-bottom: 9px;
  }

  .page-heading h1 {
    font-size: 32px;
    letter-spacing: -1.7px;
    line-height: 1.05;
  }

  .page-heading h1 > span {
    display: block;
    color: var(--theme-muted, #8c8c8c);
    margin: 2px 0 0;
  }

  .page-heading p {
    font-size: 9px;
    margin: 9px 0 0;
  }

  .page-heading .button {
    font-size: 9px;
    gap: 6px;
    min-height: 39px;
    padding: 10px 12px;
    margin-bottom: 1px;
  }

  .page-heading .button svg {
    height: 13px;
    width: 13px;
  }

  .collection-overview {
    grid-template-columns: 1.3fr 1fr;
    grid-template-rows: 165px 73px;
    gap: 5px;
    margin-bottom: 20px;
  }

  .collection-panel {
    padding: 15px 16px;
  }

  .collection-number {
    margin-top: 20px;
  }

  .collection-number > strong {
    font-size: 66px;
    letter-spacing: -4px;
  }

  .collection-number > span {
    font-size: 10px;
    line-height: 1.4;
  }

  .collection-panel .panel-topline {
    font-size: 7px;
    letter-spacing: 0.5px;
  }

  .collection-panel .panel-symbol {
    font-size: 16px;
  }

  .collection-panel .panel-bottomline {
    font-size: 7px;
    max-width: 160px;
  }

  .duration-spark {
    width: 31%;
    right: 12px;
    bottom: 41px;
    top: 60px;
    opacity: 0.3;
    gap: 2px;
  }

  .health-panel {
    padding: 14px 12px 12px;
  }

  .health-panel .panel-topline {
    font-size: 7px;
  }

  .health-graphic {
    height: 108px;
    width: 108px;
    margin: 0;
  }

  .health-graphic > strong {
    font-size: 35px;
  }

  .health-panel .panel-bottomline {
    font-size: 7px;
  }

  .sets-metric,
  .storage-metric {
    padding: 11px 13px;
  }

  .sets-metric .panel-topline,
  .storage-metric .panel-topline {
    font-size: 7px;
  }

  .sets-metric > strong {
    top: 32px;
    left: 13px;
    font-size: 28px;
  }

  .sets-metric .metric-caption {
    font-size: 7px;
    margin-left: 40px;
    max-width: 100px;
    align-self: flex-end;
  }

  .storage-metric > div:nth-child(2) {
    margin-top: 5px;
  }

  .storage-metric strong {
    font-size: 28px;
  }

  .storage-metric > div:nth-child(2) > span {
    font-size: 8px;
  }

  .view-tabs {
    margin-bottom: 23px;
    gap: 4px;
    padding-bottom: 5px;
  }

  .view-tab {
    font-size: 9px;
    flex: 1;
    padding: 10px 8px;
    min-height: 36px;
  }

  .section-heading {
    margin: 0 2px 11px;
  }

  h2 {
    font-size: 15px;
    letter-spacing: -0.5px;
  }

  h2 > span {
    font-size: 9px;
  }

  .section-heading .text-button {
    font-size: 9px;
  }

  .set-grid {
    display: flex;
    overflow-x: auto;
    gap: 5px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .set-grid::-webkit-scrollbar {
    display: none;
  }

  .set-card {
    display: flex;
    gap: 10px;
    min-width: 219px;
    max-width: 219px;
    min-height: 88px;
    padding: 10px;
    scroll-snap-align: start;
  }

  .set-art {
    width: 64px;
    height: 66px;
    margin: 0;
  }

  .set-info strong {
    font-size: 11px;
    max-width: 129px;
  }

  .set-info p {
    font-size: 8px;
    margin: 5px 0 10px;
  }

  .set-pill {
    font-size: 5.5px;
    letter-spacing: 0.7px;
    padding: 3px 4px;
  }

  .library-section {
    margin-top: 25px;
  }

  .library-heading {
    margin-bottom: 9px;
  }

  .table-actions {
    gap: 5px;
  }

  .table-actions .button {
    font-size: 8px;
    padding: 7px 9px;
    min-height: 32px;
  }

  .table-actions .button svg {
    height: 11px;
    width: 11px;
  }

  .table-actions #rename-set {
    font-size: 0;
    gap: 0;
    padding: 7px;
  }

  .chevron {
    margin-left: 0;
  }

  .studio-entry {
    padding: 8px 2px 10px;
    margin-bottom: 4px;
    gap: 8px;
  }

  .studio-entry > .button {
    font-size: 10px;
    min-height: 30px;
    gap: 7px;
  }

  .studio-entry > .button svg {
    width: 13px;
    height: 13px;
  }

  .studio-entry > span {
    max-width: 145px;
    font-size: 7px;
    line-height: 1.7;
    text-align: right;
  }

  .studio-new {
    font-size: 5px;
    padding: 3px 4px;
  }

  .search-wrap input {
    font-size: 10px;
    min-height: 41px;
    padding: 12px 0;
  }

  .filter-group {
    gap: 5px;
    margin-top: 7px;
  }

  .filter-group select {
    font-size: 8px;
    padding: 8px 6px;
    min-height: 31px;
    max-width: none;
  }

  .filter-group .icon-button {
    width: 29px;
    min-height: 31px;
    flex-shrink: 0;
  }

  .filter-group .icon-button svg {
    height: 12px;
    width: 12px;
  }

  .number-cell {
    display: none;
  }

  .check-cell {
    width: 23px;
    padding-right: 6px;
  }

  input[type="checkbox"] {
    width: 14px;
    height: 14px;
  }

  th,
  td {
    padding-left: 7px;
    padding-right: 7px;
  }

  th {
    height: 31px;
    font-size: 6px;
    letter-spacing: 0.7px;
  }

  td {
    height: 61px;
  }

  .bpm-col,
  .time-col {
    font-size: 8px;
  }

  .track-main {
    min-width: 156px;
    gap: 9px;
  }

  .cover {
    height: 34px;
    width: 34px;
  }

  .track-text strong {
    font-size: 10px;
    max-width: 162px;
  }

  .track-text small {
    font-size: 8px;
    gap: 5px;
    margin-top: 5px;
    max-width: 162px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .format-badge {
    font-size: 5px;
  }

  .row-actions .heart-button {
    display: none;
  }

  .row-actions .more-button {
    width: 26px;
    height: 34px;
    padding: 3px;
    font-size: 18px;
  }

  .end-col {
    width: 27px;
  }

  .table-footer {
    font-size: 7px;
    padding: 13px 0;
  }

  .table-footer #demo-note {
    max-width: 155px;
    line-height: 1.7;
  }

  .backup-card {
    gap: 11px;
    padding: 13px;
    margin-top: 8px;
  }

  .backup-card-icon {
    padding: 8px;
  }

  .backup-card-icon svg {
    width: 16px;
    height: 16px;
  }

  .backup-card strong {
    font-size: 10px;
  }

  .backup-card small {
    font-size: 8px;
    margin-top: 5px;
  }

  .bottom-note {
    font-size: 6px;
    letter-spacing: 0.8px;
    margin-top: 19px;
  }

  .selection-bar {
    position: sticky;
    top: 59px;
    z-index: 10;
    flex-wrap: wrap;
    gap: 3px;
    padding: 9px 10px;
    font-size: 9px;
  }

  .selection-bar > div {
    gap: 12px;
  }

  .selection-bar .text-button {
    font-size: 9px;
    min-height: 27px;
  }

  .selection-bar .icon-button {
    padding: 4px;
  }

  .mobile-tabs {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    background: var(--theme-raised, #e5e5e5);
    border-top: 1px solid var(--theme-line, #d6d6d6);
    padding: 5px 12px calc(5px + env(safe-area-inset-bottom));
    height: calc(60px + env(safe-area-inset-bottom));
    z-index: 50;
  }

  .mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-width: 63px;
    min-height: 46px;
    padding: 6px 10px;
    border: 0;
    border-radius: 0;
    background: none;
    color: var(--theme-muted, #888);
    font-size: 7px;
  }

  .mobile-tab > span {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-tab svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
  }

  .mobile-tab.active {
    background: #171717;
    color: #fff;
  }

  .mobile-tab.active svg {
    color: #fff;
  }

  .player {
    bottom: calc(60px + env(safe-area-inset-bottom));
    height: 62px;
    background: var(--theme-surface, #eee);
    border-top: 1px solid var(--theme-line, #d8d8d8);
    grid-template-columns: 1.2fr 1fr;
    padding: 0 15px;
    gap: 18px;
  }

  .player-cover {
    height: 33px;
    width: 33px;
  }

  .now-playing {
    gap: 9px;
  }

  .now-playing strong {
    font-size: 9px;
  }

  .now-playing span {
    font-size: 7px;
    margin-top: 4px;
  }

  .now-playing .icon-button {
    display: none;
  }

  .playback-buttons {
    gap: 14px;
    margin-bottom: 4px;
  }

  .playback-buttons .icon-button {
    padding: 4px;
  }

  .playback-buttons .icon-button svg {
    height: 10px;
    width: 10px;
  }

  .play-button {
    height: 24px;
    width: 24px;
  }

  .play-button svg {
    height: 10px;
    width: 10px;
  }

  .progress-row {
    gap: 5px;
    font-size: 6px;
  }

  .progress-row span {
    min-width: 19px;
  }

  .progress-row input {
    margin: 0;
  }

  .player-tag {
    display: none;
  }

  dialog {
    padding: 23px 20px;
    max-height: 90vh;
    border-radius: 4px;
  }

  .modal-heading h2 {
    font-size: 21px;
  }

  .modal-close {
    height: 34px;
    width: 34px;
  }

  .modal-copy {
    font-size: 10px;
  }

  .option-button {
    min-height: 60px;
    padding: 12px 10px;
    gap: 10px;
  }

  .option-button strong {
    font-size: 10px;
  }

  .option-button small {
    font-size: 8px;
    line-height: 1.8;
  }

  .modal-footer .button {
    min-height: 40px;
    font-size: 10px;
    padding: 10px 13px;
  }

  .modal-footer {
    gap: 7px;
  }

  .notice {
    font-size: 8px;
    line-height: 1.9;
  }

  .form-input {
    font-size: 12px;
    min-height: 40px;
  }

  .form-row {
    gap: 10px;
  }

  .form-label {
    font-size: 9px;
  }

  .studio-stats strong {
    font-size: 25px;
  }

  .studio-stats span {
    font-size: 7px;
  }

  .patch-field {
    grid-template-columns: 37px 1fr 9px 1fr;
    gap: 6px;
    font-size: 9px;
  }

  .patch-track strong {
    font-size: 11px;
  }

  .bulk-field {
    grid-template-columns: 80px 1fr;
    gap: 8px;
  }

  .check-option {
    font-size: 10px;
  }

  .genre-item > small {
    font-size: 8px;
  }

  .genre-item p {
    font-size: 10px;
  }

  .genre-title {
    font-size: 11px;
  }

  .settings-stat {
    font-size: 10px;
  }

  .set-picker-item {
    font-size: 11px;
  }

  .pagination {
    font-size: 8px;
  }

  .pagination .button {
    font-size: 8px;
  }

  #toast {
    left: 50%;
    bottom: calc(139px + env(safe-area-inset-bottom));
    font-size: 10px;
    width: max-content;
    max-width: 90vw;
    padding: 12px 15px;
  }
}

@media (width <= 370px) {
  main {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-heading h1 {
    font-size: 28px;
  }

  .collection-overview {
    grid-template-columns: 1.2fr 1fr;
  }

  .collection-number > strong {
    font-size: 58px;
  }

  .collection-number > span {
    font-size: 9px;
  }

  .collection-panel {
    padding: 14px 12px;
  }

  .health-graphic {
    height: 103px;
    width: 103px;
  }

  .track-text strong {
    max-width: 130px;
  }

  .track-text small {
    max-width: 130px;
  }

  .track-main {
    min-width: 146px;
  }

  .studio-entry > span {
    max-width: 120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}

@media (width <= 620px) {
  .collection-panel .panel-topline,
  .health-panel .panel-topline,
  .sets-metric .panel-topline,
  .storage-metric .panel-topline {
    font-size: 8px;
  }

  .collection-panel .panel-bottomline,
  .health-panel .panel-bottomline {
    font-size: 8px;
  }

  .page-heading .button {
    font-size: 10px;
    min-height: 42px;
  }

  .view-tab {
    font-size: 10px;
    min-height: 40px;
  }

  .metric-caption {
    font-size: 8px;
  }

  .studio-new {
    font-size: 6px;
  }

  .track-text strong {
    font-size: 11px;
  }

  .track-text small {
    font-size: 9px;
  }

  .format-badge {
    font-size: 6px;
  }

  .bpm-col,
  .time-col {
    font-size: 9px;
  }

  .option-button strong {
    font-size: 11px;
  }

  .option-button small {
    font-size: 9px;
  }

  .set-info strong {
    font-size: 12px;
  }

  .set-info p {
    font-size: 9px;
  }

  .set-pill {
    font-size: 6px;
  }

  .table-actions .button {
    font-size: 9px;
    min-height: 35px;
  }
}

.page-heading > div {
  min-width: 0;
}

.set-heading h1 {
  overflow-wrap: anywhere;
}

@media (width <= 620px) {
  .form-input {
    font-size: 16px;
  }
}

/* Creative studio: calm browsing → graphic set creation → immersive listening. */
:root {
  --paper: #fff;
  --muted: #686663;
  --cover-enter: 360ms;
  --sheet-enter: 220ms;
  --flow-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

body {
  font-size: 14px;
}

.app-shell {
  padding-bottom: 32px;
}

.has-player .app-shell {
  padding-bottom: 112px;
}

.sidebar {
  bottom: 0;
  background: var(--theme-glass, #ffffffed);
}

.has-player .sidebar {
  padding-bottom: 84px;
}

.topbar {
  background: var(--paper);
  border-color: var(--theme-line, #e3e1dd);
}

.sidebar nav {
  gap: 5px;
}

.nav-item {
  min-height: 44px;
  font-size: 12px;
  border-radius: 5px;
}

.nav-count {
  font-size: 11px;
}

.sidebar-bottom p {
  font-size: 11px;
}

.sidebar-bottom strong {
  font-size: 12px;
}

.sidebar-bottom .text-button {
  font-size: 11px;
}

.sidebar-foot {
  font-size: 11px;
}

.nav-label {
  color: var(--theme-muted, #73716f);
}

.workspace {
  font-size: 12px;
}

.workspace small {
  font-size: 10px;
}

main {
  max-width: 1280px;
  padding: 42px 42px 30px;
}

.page-heading {
  margin-bottom: 35px;
  align-items: center;
}

h1 {
  font-size: 44px;
  font-weight: 400;
  letter-spacing: -2.1px;
  line-height: 1.08;
}

h1 > span {
  display: block;
  margin: 2px 0 0;
  color: var(--theme-muted, #96918c);
}

.page-heading p {
  font-size: 13px;
  color: var(--theme-muted, #6f6a65);
  margin-top: 14px;
  max-width: 440px;
}

.eyebrow {
  font-size: 9px;
  color: var(--theme-muted, #77716c);
  letter-spacing: 1.8px;
  margin-bottom: 13px;
}

.button {
  font-size: 13px;
  min-height: 44px;
  padding: 12px 18px;
  border-radius: 5px;
}

.primary {
  background: #181817;
}

.primary:hover {
  background: #ff0155;
}

.secondary {
  background: transparent;
  border-color: var(--theme-line, #d3d0cb);
  color: var(--theme-text, #494642);
}

.small-button {
  min-height: 40px;
  font-size: 12px;
  padding: 9px 12px;
}

.icon-button {
  min-height: 40px;
  min-width: 40px;
  border-radius: 5px;
}

.text-button {
  font-size: 12px;
  min-height: 40px;
}

.micro-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--theme-muted, #706c67);
  text-transform: uppercase;
}

.home-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 65px;
  align-items: center;
  max-width: 940px;
  margin: 0 auto 42px;
}

.home-intro h2 {
  font-size: clamp(42px, 4.4vw, 68px);
  line-height: 1.02;
  letter-spacing: -3px;
  font-weight: 400;
  margin: 20px 0;
}

.home-intro > p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--theme-muted, #706b65);
  max-width: 310px;
  margin: 0 0 28px;
}

.home-intro .primary {
  background: var(--accent);
  color: white;
  gap: 35px;
  min-height: 48px;
}

.home-intro .primary:hover {
  background: #dc0049;
}

.home-library-link {
  display: flex;
  width: max-content;
  margin-top: 10px;
  color: var(--theme-text, #625c56);
  gap: 30px;
}

.home-library-note {
  font-size: 11px;
  color: var(--theme-muted, #77716a);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 37px;
}

.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.featured-set {
  border: 0;
  padding: 0;
  text-align: left;
  background: transparent;
  width: 100%;
  transform: rotate(2deg);
  transition: transform 0.4s var(--flow-ease);
}

.featured-set:hover {
  transform: rotate(0deg) translateY(-4px);
}

.featured-set > img {
  width: 100%;
  display: block;
  box-shadow: 0 22px 30px -25px #25110a66;
}

.featured-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0 0;
  gap: 10px;
}

.featured-caption small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.4px;
  color: var(--theme-muted, #756d66);
}

.featured-caption strong {
  display: block;
  font-size: 16px;
  font-weight: 450;
  margin-top: 6px;
}

.featured-caption > span:last-child {
  font-size: 22px;
}

.home-utilities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--theme-line, #d8d4ce);
  max-width: 940px;
  margin: 0 auto;
}

.home-utilities > button {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 24px 0;
  border: 0;
  background: none;
  text-align: left;
}

.home-utilities > button + button {
  padding-left: 30px;
}

.home-utilities > button > svg {
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.home-utilities strong {
  display: block;
  font-size: 13px;
  font-weight: 450;
}

.home-utilities small {
  display: block;
  color: var(--theme-muted, #77716b);
  font-size: 11px;
  margin-top: 5px;
}

.home-utilities > button > span:last-child {
  margin-left: auto;
  font-size: 20px;
  padding-right: 20px;
}

.blank-poster {
  aspect-ratio: 1;
  background: #ff0155;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border: 0;
  text-align: left;
}

.blank-poster > span {
  font-size: 48px;
  line-height: 1;
  letter-spacing: -2px;
}

.blank-poster small {
  letter-spacing: 2px;
}

body[data-page="home"] .page-heading {
  margin-bottom: 40px;
}

body[data-page="home"] h1 {
  font-size: 30px;
  letter-spacing: -1px;
}

body[data-page="home"] h1 > span {
  display: inline;
  margin-left: 7px;
}

body[data-page="home"] .page-heading p {
  display: none;
}

.sets-section {
  margin-top: 10px;
}

.section-heading h2 {
  font-size: 20px;
}

.section-heading h2 > span {
  font-size: 12px;
}

.section-heading .text-button {
  font-size: 12px;
}

.set-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.set-card {
  display: block;
  min-width: 0;
  max-width: none;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.set-card:hover {
  background: transparent;
}

.set-art {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  background: var(--theme-raised, #e9e2d9);
  margin: 0 0 16px;
  transition: transform 0.3s var(--flow-ease);
}

.set-card:hover .set-art {
  transform: translateY(-5px);
}

.set-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.set-info strong {
  font-size: 16px;
  font-weight: 450;
  max-width: 90%;
  padding: 0;
}

.set-info p {
  font-size: 12px;
  color: var(--theme-muted, #77716a);
  margin: 7px 0 12px;
}

.set-arrow {
  top: auto;
  right: 0;
  bottom: 30px;
  font-size: 20px;
}

.new-set-card {
  aspect-ratio: 1;
  background: var(--theme-raised, #e9e4de);
  border: 1px dashed var(--theme-line, #bcb2a9);
  text-align: center;
  padding: 25px;
}

.new-set-card > span {
  display: block;
  font-size: 50px;
  color: #ff0155;
}

.new-set-card > strong {
  font-size: 20px;
  font-weight: 400;
}

.set-stage {
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 0 0 30px;
  margin-top: -10px;
  border-bottom: 1px solid var(--theme-line, #ded9d2);
}

.stage-art {
  width: 225px;
  aspect-ratio: 1;
  object-fit: cover;
  box-shadow: 0 15px 25px -25px #0008;
}

.stage-copy h2 {
  font-size: 33px;
  letter-spacing: -1.1px;
  font-weight: 400;
  margin: 12px 0;
}

.stage-copy p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--theme-muted, #756d65);
  max-width: 350px;
}

.stage-actions {
  display: flex;
  gap: 8px;
  margin: 18px 0 2px;
}

.stage-copy .text-button {
  font-size: 12px;
  color: var(--theme-muted, #797169);
}

.set-heading h1 {
  font-size: 38px;
}

.set-heading p:empty {
  display: none;
}

.library-section {
  margin-top: 27px;
}

.library-heading {
  align-items: center;
  gap: 15px;
}

.library-heading h2 {
  font-size: 20px;
}

.table-actions {
  gap: 7px;
}

.table-actions #rename-set {
  font-size: 12px;
  gap: 7px;
}

.view-tabs {
  border: 0;
  gap: 7px;
  margin-bottom: 25px;
}

.view-tab {
  font-size: 12px;
  min-height: 42px;
  background: transparent;
  border-radius: 5px;
  color: var(--theme-muted, #6f6963);
  padding: 10px 17px;
}

.view-tab.active {
  background: var(--dark);
  color: #fff;
}

.studio-entry {
  margin-bottom: 10px;
  padding: 0 0 10px;
}

.studio-entry > .button {
  font-size: 13px;
  min-height: 44px;
}

.studio-entry > span {
  font-size: 11px;
  color: var(--theme-muted, #79726c);
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.search-wrap {
  flex-basis: 0;
  min-width: 140px;
  background: var(--theme-raised, #eae7e1);
  padding: 0 13px;
  border: 0;
  border-radius: 5px;
}

.search-wrap input {
  font-size: 13px;
  min-height: 46px;
}

.search-wrap input::placeholder {
  color: var(--theme-muted, #7b756d);
}

.filter-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  min-height: 46px;
  background: none;
  border: 1px solid var(--theme-line, #d9d3cc);
  border-radius: 5px;
  color: var(--theme-muted, #6e675f);
  font-size: 12px;
}

.filter-toggle[aria-expanded="true"] {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.filter-toggle svg {
  height: 16px;
  width: 16px;
}

.filter-group {
  flex-basis: 100%;
  width: 100%;
  margin: 0;
  justify-content: flex-start;
  gap: 8px;
}

.filter-group select {
  min-height: 44px;
  font-size: 12px;
  max-width: 220px;
  flex: 1;
  background: var(--theme-raised, #e9e5de);
  color: var(--theme-text, #5f574f);
  border-radius: 4px;
  padding: 10px;
}

.table-scroll table {
  table-layout: auto;
}

.check-cell {
  display: none;
}

.selection-mode .check-cell {
  display: table-cell;
  min-width: 32px;
}

.selection-mode .number-cell {
  display: none;
}

.check-cell input {
  height: 21px;
  width: 21px;
}

.check-cell input:checked::after {
  font-size: 13px;
}

.number-cell {
  width: 35px;
}

.track-main {
  gap: 13px;
}

.cover {
  height: 43px;
  width: 43px;
}

.track-text strong {
  font-size: 13px;
  font-weight: 450;
  max-width: 280px;
}

.track-text small {
  font-size: 11px;
  margin-top: 5px;
  color: var(--theme-muted, #7d756d);
}

.format-badge {
  font-size: 7px;
  color: var(--theme-muted, #766d64);
}

th {
  font-size: 9px;
  color: var(--theme-muted, #81786e);
  height: 39px;
}

td {
  height: 76px;
  border-color: var(--theme-line, #e1dbd4);
  font-size: 12px;
}

.album-col,
.genre-col,
.bpm-col,
.time-col {
  font-size: 12px;
}

.key-badge {
  font-size: 10px;
  background: transparent;
}

.row-actions .icon-button {
  min-width: 35px;
  min-height: 44px;
}

.row-actions svg {
  width: 16px;
  height: 16px;
}

.row-actions .more-button {
  font-size: 22px;
}

.table-footer {
  font-size: 10px;
  line-height: 1.8;
}

.table-footer #demo-note {
  color: var(--theme-muted, #7b7269);
}

.backup-card {
  background: transparent;
  border-top: 1px solid var(--theme-line, #ded7ce);
  margin-top: 15px;
  padding: 20px 0;
}

.backup-card:hover {
  background: var(--theme-raised, #ede9e2);
}

.backup-card strong {
  font-size: 13px;
}

.backup-card small {
  font-size: 11px;
}

.bottom-note {
  font-size: 9px;
}

.selection-bar {
  border-radius: 5px;
  font-size: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  gap: 8px;
}

.selection-bar .text-button {
  font-size: 12px;
  min-height: 40px;
}

.selection-bar > div {
  gap: 16px;
  flex-wrap: wrap;
}

.selection-bar > span {
  margin-right: auto;
}

.pagination {
  font-size: 11px;
}

.pagination .button {
  font-size: 12px;
}

/* Sheets reveal choices in small, readable steps. */
dialog {
  width: 540px;
  max-width: calc(100% - 32px);
  max-height: 90dvh;
  border-radius: 16px;
  padding: 28px;
  background: var(--theme-surface, #f8f6f2);
  box-shadow: 0 30px 110px #21130740;
}

dialog[open] {
  animation: sheet-in var(--sheet-enter) var(--flow-ease);
}

.modal-heading {
  margin-bottom: 20px;
  gap: 10px;
}

.modal-heading h2 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.modal-heading .icon-button {
  min-width: 44px;
  min-height: 44px;
  background: var(--theme-raised, #e9e4dd);
  border-radius: 50%;
  font-size: 25px;
}

.modal-copy {
  font-size: 13px;
  line-height: 1.7;
  color: var(--theme-muted, #746c64);
}

.notice {
  font-size: 11px;
  line-height: 1.8;
  color: var(--theme-muted, #766c62);
}

.form-label {
  font-size: 12px;
  margin: 18px 0 8px;
  color: var(--theme-muted, #645b52);
}

.form-input {
  font-size: 16px;
  min-height: 46px;
  border: 1px solid var(--theme-line, #d7cfc5);
  background: var(--theme-raised, #f0ece6);
  border-radius: 5px;
  padding: 12px;
}

.modal-footer {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.modal-footer .button {
  font-size: 13px;
  min-height: 46px;
}

.option-button {
  min-height: 76px;
  padding: 16px 12px;
  border-radius: 5px;
  gap: 14px;
}

.option-button strong {
  font-size: 14px;
  font-weight: 450;
  line-height: 1.4;
}

.option-button small {
  font-size: 12px;
  line-height: 1.6;
  color: var(--theme-muted, #797066);
}

.option-button > svg {
  flex-shrink: 0;
  color: var(--accent);
  width: 20px;
  height: 20px;
}

.option-button > span:nth-child(2) {
  flex: 1;
}

.settings-stat {
  font-size: 13px;
}

.set-picker-item {
  font-size: 14px;
  min-height: 76px;
  gap: 14px;
}

.picker-cover {
  width: 45px;
  height: 45px;
}

.set-picker-item small {
  font-size: 11px;
}

.quiet-details {
  border-top: 1px solid var(--theme-line, #ddd5ca);
  padding-top: 12px;
  margin-top: 20px;
  color: var(--theme-muted, #756a60);
  font-size: 12px;
}

.quiet-details summary {
  min-height: 32px;
  cursor: pointer;
}

.optional {
  float: right;
  color: var(--theme-muted, #999);
  font-size: 10px;
}

.create-dialog {
  width: 760px;
}

.create-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.create-preview {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  position: sticky;
  top: 0;
}

.create-layout .form-label:first-child {
  margin-top: 0;
}

.set-name-input {
  font-size: 18px;
  letter-spacing: -0.4px;
}

.mood-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.mood-chips button {
  border: 1px solid var(--theme-line, #ddd4c9);
  background: none;
  border-radius: 20px;
  min-height: 36px;
  padding: 6px 10px;
  font-size: 10px;
  color: var(--theme-muted, #776b60);
}

.mood-chips button:hover {
  background: var(--theme-raised, #e8dfd3);
}

.cover-choices {
  display: flex;
  gap: 7px;
}

.cover-choices button {
  flex: 1;
  border: 2px solid transparent;
  min-height: 49px;
  font-size: 11px;
}

.cover-choices button[aria-pressed="true"] {
  outline: 1px solid var(--theme-line, #151515);
  outline-offset: 3px;
}

.style-orbit {
  background: #ff0155;
  color: white;
}

.style-ripple {
  background: #171717;
  color: #ff759e;
}

.style-grid {
  background: #e1d7c8;
  color: #30241b;
}

.create-dialog .modal-footer .danger {
  margin-right: auto;
}

.picker-search {
  margin-bottom: 12px;
}

.picker-songs {
  overflow: visible;
}

.song-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  border-bottom: 1px solid var(--theme-line, #e2dace);
  cursor: pointer;
  padding: 10px 4px;
}

.song-choice input {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.song-choice input:checked::after {
  font-size: 14px;
}

.song-choice > span {
  min-width: 0;
  flex: 1;
}

.song-choice strong {
  display: block;
  font-size: 13px;
  font-weight: 450;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.song-choice small {
  display: block;
  font-size: 11px;
  color: var(--theme-muted, #86796c);
  margin-top: 4px;
}

.song-choice > small {
  font-size: 10px;
  flex-shrink: 0;
}

.song-choice.already-added {
  opacity: 0.5;
}

.picker-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-top: 10px;
  color: var(--theme-muted, #8a7d70);
}

.picker-footer {
  justify-content: space-between;
}

.picker-empty {
  padding: 30px 12px;
}

.export-choice {
  background: var(--theme-raised, #eee8df);
  margin-bottom: 9px;
}

.export-choice:hover {
  background: var(--theme-raised, #e8dfd3);
}

.export-formats > label,
.export-formats details label {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 9px;
  border-bottom: 1px solid var(--theme-line, #e0d7ca);
  cursor: pointer;
  min-height: 78px;
}

.export-formats input {
  accent-color: #ff0155;
  min-width: 19px;
  height: 19px;
}

.export-formats strong {
  display: block;
  font-weight: 450;
  font-size: 14px;
}

.export-formats small {
  display: block;
  font-size: 11px;
  color: var(--theme-muted, #817363);
  margin-top: 5px;
}

.import-art {
  height: 230px;
  background: #ff0155;
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  color: #ffbad1;
}

.import-art i {
  position: absolute;
  width: 180px;
  height: 270px;
  border: 1px solid currentcolor;
  border-radius: 50%;
  left: 50%;
  top: -100px;
  transform: rotate(-35deg);
}

.import-art i:nth-child(2) {
  width: 220px;
  height: 310px;
  left: 43%;
  top: -110px;
}

.import-art i:nth-child(3) {
  width: 260px;
  height: 350px;
  left: 36%;
  top: -120px;
}

.import-art i:nth-child(4) {
  width: 300px;
  height: 390px;
  left: 29%;
  top: -130px;
}

.import-art > span {
  position: absolute;
  bottom: 25px;
  left: 24px;
  font-size: 28px;
  letter-spacing: -1px;
  color: white;
}

.import-dialog .modal-copy {
  overflow-wrap: anywhere;
}

.import-progress {
  width: 100%;
  height: 4px;
  accent-color: #ff0155;
  display: block;
  border: 0;
}

.import-progress::-webkit-progress-bar {
  background: var(--theme-raised, #e2d8cc);
}

.import-progress::-webkit-progress-value {
  background: #ff0155;
}

.import-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--theme-muted, #756555);
}

.import-status .text-button {
  font-size: 12px;
}

.import-complete-number {
  font-size: 110px;
  letter-spacing: -8px;
  color: #ff0155;
  font-weight: 350;
  line-height: 1;
  margin: 28px 0;
}

.import-complete-number > span {
  display: block;
  font-size: 16px;
  letter-spacing: -0.3px;
  color: var(--theme-text, #60574e);
  line-height: 1.5;
  margin-top: 14px;
}

.now-playing-info {
  min-width: 0;
  flex: 1;
  text-align: left;
  background: none;
  border: 0;
  padding: 5px 0;
}

.now-playing strong {
  font-size: 12px;
}

.now-playing span {
  font-size: 10px;
}

.player {
  background: var(--theme-raised, #ede9e2);
}

#toast {
  font-size: 13px;
  background: #181717;
  color: white;
  z-index: 1000;
  pointer-events: none;
}

body:not(.has-player) #toast {
  bottom: 30px;
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (width >= 621px) and (width <= 1000px) {
  main {
    padding: 32px 26px;
  }

  .home-layout {
    gap: 32px;
  }

  .home-intro h2 {
    font-size: 48px;
  }

  .home-intro > p {
    font-size: 13px;
  }

  .home-library-note {
    font-size: 10px;
  }

  .home-utilities strong {
    font-size: 12px;
  }

  .stage-art {
    width: 190px;
  }

  .set-grid {
    gap: 15px;
  }

  .track-text strong {
    max-width: 190px;
  }

  .album-col {
    display: none;
  }

  .page-heading h1 {
    font-size: 36px;
  }
}

@media (width <= 620px) {
  .app-shell {
    padding-bottom: calc(77px + env(safe-area-inset-bottom));
  }

  .has-player .app-shell {
    padding-bottom: calc(146px + env(safe-area-inset-bottom));
  }

  .sidebar {
    padding-bottom: calc(65px + env(safe-area-inset-bottom));
  }

  .has-player .sidebar {
    padding-bottom: calc(135px + env(safe-area-inset-bottom));
  }

  .topbar {
    height: 58px;
    background: var(--theme-glass, #fffe);
    padding: 0 21px;
  }

  .mobile-menu {
    min-height: 44px;
    min-width: 40px;
  }

  .top-wordmark {
    font-size: 26px;
  }

  .top-avatar {
    height: 30px;
    width: 30px;
    font-size: 9px;
  }

  main {
    padding: 28px 21px 20px;
  }

  .page-heading {
    margin: 0 0 25px;
    gap: 16px;
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 37px;
    line-height: 1.06;
    letter-spacing: -1.8px;
  }

  .page-heading h1 > span {
    margin-top: 2px;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
    margin-bottom: 12px;
  }

  .page-heading p {
    font-size: 12px;
    line-height: 1.6;
    margin-top: 13px;
  }

  .page-heading .button {
    font-size: 11px;
    min-height: 44px;
    padding: 10px 12px;
    margin-top: 0;
    gap: 7px;
    flex-shrink: 0;
  }

  .page-heading .button svg {
    height: 15px;
    width: 15px;
  }

  body[data-page="home"] .page-heading {
    margin-bottom: 28px;
    align-items: center;
  }

  body[data-page="home"] h1 {
    font-size: 24px;
    letter-spacing: -1px;
  }

  body[data-page="home"] h1 > span {
    display: block;
    margin: 3px 0 0;
  }

  .home-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 30px;
  }

  .home-intro {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0 16px;
  }

  .home-intro > .micro-label {
    grid-column: 1/-1;
    font-size: 8px;
  }

  .home-intro h2 {
    font-size: 47px;
    letter-spacing: -2.4px;
    line-height: 1.02;
    margin: 13px 0 0;
  }

  .home-intro h2 br {
    display: block;
  }

  .home-intro > p {
    display: none;
  }

  .home-intro .primary {
    grid-row: 2;
    grid-column: 2;
    font-size: 11px;
    min-height: 46px;
    gap: 9px;
    padding: 12px;
  }

  .home-intro .primary svg {
    height: 14px;
    width: 14px;
  }

  .home-library-link {
    font-size: 12px;
    margin-top: 9px;
    gap: 10px;
    min-height: 34px;
  }

  .home-library-note {
    grid-column: 1/-1;
    font-size: 10px;
    margin-top: 9px;
  }

  .featured-set {
    width: calc(100% - 14px);
    margin: 0 7px;
    transform: rotate(2deg);
  }

  .featured-caption {
    padding-top: 13px;
  }

  .featured-caption strong {
    font-size: 15px;
  }

  .featured-caption small {
    font-size: 7px;
    letter-spacing: 1.1px;
  }

  .home-utilities {
    grid-template-columns: 1fr;
  }

  .home-utilities > button {
    padding: 22px 0;
    min-height: 82px;
  }

  .home-utilities > button + button {
    padding-left: 0;
    border-top: 1px solid var(--theme-line, #e3dbd0);
  }

  .home-utilities strong {
    font-size: 13px;
  }

  .home-utilities small {
    font-size: 11px;
  }

  .home-utilities > button > span:last-child {
    padding-right: 3px;
  }

  .sets-section .section-heading h2 {
    font-size: 17px;
  }

  .section-heading .text-button {
    font-size: 12px;
    min-height: 44px;
  }

  .set-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 15px;
    overflow: visible;
  }

  .set-card {
    min-width: 0;
    max-width: none;
    display: block;
    padding: 0;
    min-height: 0;
  }

  .set-art {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 12px;
  }

  .set-info strong {
    font-size: 14px;
    max-width: 100%;
    padding-right: 0;
  }

  .set-info p {
    font-size: 10px;
    margin: 6px 0 0;
  }

  .set-arrow {
    display: none;
  }

  .set-heading h1 {
    font-size: 32px;
  }

  .set-heading .button {
    font-size: 11px;
  }

  .set-stage {
    gap: 19px;
    align-items: center;
    padding-bottom: 26px;
    margin-top: 0;
  }

  .stage-art {
    width: 44%;
    max-width: 180px;
  }

  .stage-copy {
    min-width: 0;
    flex: 1;
  }

  .stage-copy > .micro-label {
    font-size: 8px;
    letter-spacing: 1px;
  }

  .stage-copy h2 {
    font-size: 25px;
    letter-spacing: -1px;
    margin: 10px 0;
  }

  .stage-copy p {
    font-size: 10px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .stage-actions {
    gap: 7px;
    flex-wrap: wrap;
    margin: 0;
  }

  .stage-actions .button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 10px;
    gap: 6px;
  }

  .stage-actions .button svg {
    height: 12px;
    width: 12px;
  }

  .stage-copy .text-button {
    font-size: 10px;
    min-height: 34px;
    gap: 10px;
  }

  .library-section {
    margin-top: 24px;
  }

  .library-heading {
    margin: 0 0 12px;
    align-items: center;
    flex-wrap: wrap;
  }

  .library-heading h2 {
    font-size: 18px;
  }

  .table-actions {
    gap: 5px;
    margin-left: auto;
  }

  .table-actions .button,
  .table-actions #rename-set {
    min-height: 40px;
    padding: 8px 9px;
    font-size: 10px;
    gap: 5px;
  }

  .table-actions .button svg {
    height: 13px;
    width: 13px;
  }

  .table-actions #share-button svg {
    display: none;
  }

  .table-actions .chevron {
    display: none;
  }

  body[data-page="set"] .library-heading {
    gap: 9px;
  }

  body[data-page="set"] .library-heading h2 {
    flex-basis: 100%;
  }

  body[data-page="set"] .table-actions {
    margin-left: 0;
    width: 100%;
  }

  body[data-page="set"] .table-actions .button {
    flex: 1;
  }

  .view-tab {
    font-size: 12px;
    min-height: 44px;
    padding: 11px 7px;
  }

  .view-tabs {
    gap: 5px;
    margin-bottom: 24px;
  }

  .studio-entry {
    margin-bottom: 12px;
    padding: 0 0 7px;
  }

  .studio-entry > .button {
    font-size: 12px;
    min-height: 42px;
  }

  .studio-entry > .button svg {
    height: 15px;
    width: 15px;
  }

  .studio-entry > span {
    display: none;
  }

  .toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
  }

  .search-wrap {
    min-width: 120px;
    flex: 1;
    padding: 0 11px;
    border: 0;
  }

  .search-wrap input {
    min-height: 46px;
    font-size: 13px;
    padding: 10px 0;
  }

  .search-wrap svg {
    height: 16px;
    width: 16px;
  }

  .filter-toggle {
    height: 46px;
    min-width: 44px;
    padding: 10px;
    border-color: var(--theme-line, #d8d1c8);
  }

  .filter-toggle > span:last-child {
    display: none;
  }

  .filter-toggle svg {
    height: 18px;
    width: 18px;
  }

  .filter-group {
    flex-basis: 100%;
    gap: 5px;
    margin: 0;
  }

  .filter-group select {
    min-height: 44px;
    font-size: 10px;
    padding: 9px 5px;
    max-width: none;
  }

  .filter-group .icon-button {
    min-height: 44px;
    min-width: 36px;
  }

  .check-cell {
    width: 31px;
    padding-right: 5px;
  }

  .check-cell input {
    height: 21px;
    width: 21px;
  }

  .number-cell {
    display: none;
  }

  th,
  td {
    padding: 8px 5px;
  }

  th {
    height: 35px;
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  td {
    height: 76px;
  }

  .track-main {
    min-width: 0;
    gap: 11px;
  }

  .cover {
    width: 42px;
    height: 42px;
  }

  .track-play .cover svg {
    display: block;
    height: 13px;
    width: 13px;
    opacity: 0.8;
  }

  .track-text {
    max-width: calc(100vw - 182px);
    min-width: 0;
  }

  .track-text strong {
    max-width: none;
    font-size: 13px;
    font-weight: 450;
  }

  .track-text small {
    font-size: 11px;
    max-width: none;
    gap: 6px;
  }

  .format-badge {
    font-size: 6px;
  }

  .bpm-col {
    display: none;
  }

  .time-col {
    font-size: 10px;
    padding-right: 2px;
    color: var(--theme-muted, #948675);
  }

  .selection-mode .time-col {
    display: none;
  }

  .selection-mode .track-text {
    max-width: calc(100vw - 180px);
  }

  .end-col {
    width: 35px;
  }

  .row-actions .more-button {
    height: 44px;
    min-width: 32px;
    width: 32px;
    padding: 5px;
    font-size: 23px;
  }

  .row-actions .heart-button {
    display: none;
  }

  .table-footer {
    font-size: 9px;
    align-items: flex-start;
    gap: 15px;
  }

  .table-footer #demo-note {
    max-width: 167px;
    line-height: 1.7;
  }

  .backup-card {
    padding: 18px 0;
    gap: 12px;
  }

  .backup-card strong {
    font-size: 12px;
  }

  .backup-card small {
    font-size: 10px;
    line-height: 1.5;
  }

  .backup-card-icon {
    padding: 9px;
  }

  .bottom-note {
    font-size: 8px;
    letter-spacing: 0.5px;
  }

  .selection-bar {
    top: 64px;
    padding: 10px 12px;
    gap: 0;
  }

  .selection-bar > span {
    font-size: 11px;
    min-height: 30px;
  }

  .selection-bar > div {
    width: 100%;
    gap: 12px;
    justify-content: space-between;
  }

  .selection-bar .text-button {
    min-height: 40px;
    font-size: 11px;
  }

  .selection-bar .icon-button {
    min-height: 40px;
    min-width: 24px;
  }

  .selection-bar #select-matching {
    font-size: 10px;
  }

  .mobile-tabs {
    height: calc(65px + env(safe-area-inset-bottom));
    padding: 5px 15px calc(5px + env(safe-area-inset-bottom));
    background: var(--theme-glass, #f5f4f1f5);
    backdrop-filter: blur(15px);
    border-color: var(--theme-line, #dcd5cc);
  }

  .mobile-tab {
    min-height: 48px;
    gap: 5px;
    min-width: 68px;
    font-size: 10px;
    color: var(--theme-muted, #7b7166);
    border-radius: 6px;
  }

  .mobile-tab svg {
    height: 19px;
    width: 19px;
  }

  .mobile-tab.active {
    background: transparent;
    color: var(--theme-text, #211a15);
  }

  .mobile-tab.active svg {
    color: #ff0155;
    stroke-width: 1.9;
  }

  .mobile-tab.active > span {
    position: relative;
  }

  .mobile-tab.active > span::after {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff0155;
    border-radius: 50%;
    bottom: -23px;
  }

  .player {
    bottom: calc(65px + env(safe-area-inset-bottom));
    height: 70px;
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 15px;
    padding: 0 18px;
    background: var(--theme-raised, #e9e3da);
  }

  .now-playing {
    gap: 10px;
    min-width: 0;
  }

  .now-playing-info {
    width: 0;
    min-width: 0;
  }

  .now-playing strong {
    font-size: 12px;
  }

  .now-playing span {
    font-size: 10px;
    margin-top: 4px;
  }

  .player-cover {
    height: 38px;
    width: 38px;
    flex-shrink: 0;
  }

  .player-center .progress-row {
    display: none;
  }

  .playback-buttons {
    gap: 9px;
    margin: 0;
    justify-content: flex-end;
  }

  .playback-buttons .play-button {
    width: 38px;
    height: 38px;
  }

  .playback-buttons .play-button svg {
    height: 15px;
    width: 15px;
  }

  .playback-buttons #previous-track {
    display: none;
  }

  .playback-buttons .icon-button {
    min-width: 40px;
    min-height: 44px;
  }

  .playback-buttons .icon-button svg {
    width: 15px;
    height: 15px;
  }

  dialog {
    padding: 23px 21px;
    max-height: 90dvh;
    width: calc(100% - 20px);
    max-width: calc(100% - 20px);
    border-radius: 16px;
  }

  .modal-heading {
    margin-bottom: 19px;
  }

  .modal-heading h2 {
    font-size: 25px;
    letter-spacing: -1px;
  }

  .modal-heading .icon-button {
    width: 40px;
    height: 40px;
    min-height: 40px;
    min-width: 40px;
  }

  .modal-copy {
    font-size: 13px;
  }

  .option-button {
    min-height: 81px;
    gap: 12px;
    padding: 16px 10px;
  }

  .option-button strong {
    font-size: 14px;
  }

  .option-button small {
    font-size: 12px;
    line-height: 1.6;
  }

  .modal-footer .button {
    min-height: 46px;
    font-size: 13px;
    padding: 12px 15px;
  }

  .notice {
    font-size: 11px;
    line-height: 1.8;
  }

  .form-label {
    font-size: 12px;
  }

  .form-input {
    font-size: 16px;
    min-height: 46px;
  }

  .settings-stat {
    font-size: 12px;
  }

  .create-layout {
    grid-template-columns: 1fr;
    gap: 23px;
  }

  .create-preview {
    position: static;
    width: 180px;
    margin: auto;
  }

  .create-layout .form-label:first-child {
    margin-top: 0;
  }

  .set-name-input {
    font-size: 18px;
  }

  .mood-chips button {
    min-height: 38px;
    font-size: 11px;
  }

  .cover-choices button {
    min-height: 50px;
    font-size: 12px;
  }

  .create-dialog .modal-heading h2 {
    max-width: 250px;
  }

  .picker-search {
    flex-basis: auto;
    width: 100%;
  }

  .song-choice {
    min-height: 73px;
  }

  .song-choice strong {
    font-size: 13px;
  }

  .song-choice small {
    font-size: 11px;
  }

  .picker-footer {
    gap: 7px;
  }

  .picker-footer .text-button {
    font-size: 11px;
  }

  .set-picker-item {
    font-size: 13px;
  }

  .set-picker-item small {
    font-size: 10px;
  }

  .import-art {
    height: 210px;
  }

  .import-art > span {
    font-size: 27px;
  }

  body:not(.has-player) #toast {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }

  #toast {
    bottom: calc(148px + env(safe-area-inset-bottom));
    font-size: 12px;
    max-width: 90vw;
    padding: 13px 16px;
  }

  .empty-state h3 {
    font-size: 20px;
  }

  .empty-state p {
    font-size: 13px;
  }

  .empty-state .button {
    font-size: 13px;
    min-height: 46px;
  }

  .pagination {
    font-size: 11px;
  }

  .pagination .button {
    font-size: 11px;
  }
}

@media (width <= 370px) {
  main {
    padding-left: 17px;
    padding-right: 17px;
  }

  .home-intro h2 {
    font-size: 41px;
  }

  .home-intro .primary {
    font-size: 10px;
    padding: 10px;
  }

  .table-actions .button {
    font-size: 9px;
    padding: 8px;
  }

  .track-text {
    max-width: calc(100vw - 174px);
  }

  .selection-mode .track-text {
    max-width: calc(100vw - 175px);
  }

  .stage-copy h2 {
    font-size: 22px;
  }

  .stage-copy p {
    font-size: 9px;
  }

  .stage-actions .button {
    font-size: 9px;
    gap: 4px;
  }

  .stage-actions .button svg {
    width: 10px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog[open] {
    animation: none;
  }

  .featured-set,
  .set-art {
    transition: none;
  }
}

.create-dialog .modal-footer {
  position: sticky;
  bottom: -24px;
  padding: 14px 0 8px;
  background: var(--theme-surface, #f8f6f2);
  border-top: 1px solid var(--theme-line, #e4dcd1);
  z-index: 2;
}

.friendly-studio {
  max-height: none;
}

.friendly-studio .quiet-details summary {
  min-height: 44px;
  font-size: 13px;
}

.friendly-studio .quiet-details {
  margin-top: 15px;
}

@media (width <= 620px) {
  .create-preview {
    width: 140px;
  }
}

/* iPhone status bar, sensor housing and landscape safe areas. */
.transfer-steps {
  padding-left: 22px;
  margin: 0;
  color: var(--theme-muted, #746c64);
  font-size: 13px;
  line-height: 1.7;
}

.transfer-steps li {
  padding-left: 7px;
  margin: 18px 0;
}

.transfer-steps strong {
  font-weight: 500;
  color: var(--theme-text, #29231e);
}

.transfer-steps p {
  margin: 5px 0 0;
}

@media (width <= 620px) {
  .topbar {
    height: calc(58px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .sidebar {
    padding-top: calc(29px + env(safe-area-inset-top));
  }

  .search-wrap input,
  .filter-group select,
  .picker-search input {
    font-size: 16px;
  }

  .selection-bar {
    top: calc(64px + env(safe-area-inset-top));
  }

  dialog {
    max-height: min(
      90dvh,
      calc(
        100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 20px
      )
    );
  }

  .transfer-steps {
    font-size: 13px;
  }
}

@media (orientation: landscape) and (height <= 620px) {
  .app-shell {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  dialog {
    max-height: min(90dvh, calc(100dvh - 16px));
  }
}

/* Song editing is shared with the native app: embedded tags and artwork. */
.cover > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.track-play .cover {
  position: relative;
  overflow: hidden;
}

.cover-control {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.cover:has(> img) .cover-control {
  opacity: 0;
  background: #0005;
  color: #fff;
}

.track-play:hover .cover-control,
.track-play:focus-visible .cover-control,
.playing .cover-control {
  opacity: 1;
}

.song-editor-dialog {
  width: 650px;
}

.song-cover-editor {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 8px 0 24px;
}

.song-cover-preview {
  width: 112px;
  height: 112px;
  flex: none;
  overflow: hidden;
  border-radius: 10px;
  background: #ff0155;
  color: #fff;
  display: grid;
  place-items: center;
}

.song-cover-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song-cover-preview svg {
  width: 36px;
  height: 36px;
}

.song-cover-editor > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.song-cover-editor small {
  font-size: 11px;
  color: var(--theme-muted, #85776b);
}

.song-cover-editor .text-button {
  min-height: 32px;
}

.song-save-status {
  font-size: 13px;
  line-height: 1.6;
  color: #a21b47;
  min-height: 1.6em;
}

.song-editor-dialog .modal-footer {
  position: sticky;
  bottom: -24px;
  background: var(--theme-surface, #f8f6f2);
  padding: 14px 0 8px;
  border-top: 1px solid var(--theme-line, #e4dcd1);
}

.song-editor-dialog textarea {
  resize: vertical;
}

.song-editor-dialog .form-row {
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

@media (width <= 600px) {
  .song-editor-dialog .form-row {
    grid-template-columns: 1fr;
  }

  .song-cover-editor {
    gap: 16px;
  }

  .song-cover-preview {
    width: 100px;
    height: 100px;
  }
}

/* Full-screen listening: artwork and controls share the desktop stage. */
html:has(dialog.focus-dialog[open]) {
  overflow: hidden;
}

dialog.focus-dialog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: clamp(20px, 3vw, 40px);
  border: 0;
  border-radius: 0;
  overflow: hidden auto;
  overscroll-behavior: contain;
  background: #101116;
  color: #fff;
  color-scheme: dark;
  box-shadow: none;
}

dialog.focus-dialog[open] {
  animation: player-reveal var(--sheet-enter) var(--flow-ease);
}

.focus-dialog #modal-content {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 24px;
  min-height: 100%;
  min-width: 0;
}

.focus-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: transparent;
}

.focus-backdrop img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.14);
  filter: blur(32px);
  opacity: 0.95;
}

.focus-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0b0e164d 0%,
    #0b0e1680 45%,
    #090b12cc 100%
  );
}

.focus-dialog .modal-heading {
  min-height: 44px;
  margin: 0;
  padding-right: 60px;
}

.focus-dialog .modal-heading h2 {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: #ffffffbf;
}

.focus-dialog .modal-heading .icon-button {
  position: fixed;
  top: clamp(20px, 3vw, 40px);
  right: clamp(20px, 3vw, 40px);
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  background: #10131f66;
  color: #fff;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.focus-player {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  width: min(100%, 1080px);
  max-width: none;
  min-width: 0;
  margin: auto;
  padding: 24px 0;
}

.focus-art {
  aspect-ratio: 1;
  width: min(100%, calc(100dvh - 180px), 520px);
  margin: 0;
  justify-self: center;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 24px 64px #0006;
}

.focus-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.focus-details {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid #ffffff14;
  border-radius: 24px;
  background: linear-gradient(180deg, #0b0e164d, #0b0e168c);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.focus-player .micro-label {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 1.1px;
  color: #ffffffb8;
}

.focus-details > h2 {
  margin: 14px 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.2px;
  overflow-wrap: anywhere;
  color: #fff;
}

.focus-details > p {
  margin: 0 0 24px;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  color: #fffc;
}

.focus-details > #focus-seek {
  display: block;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
}

#focus-seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    var(--accent) var(--played, 0%),
    #ffffff38 var(--played, 0%)
  );
}

#focus-seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

#focus-seek::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: #ffffff38;
}

#focus-seek::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
}

#focus-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

#focus-seek:disabled {
  opacity: 0.45;
  cursor: default;
}

.focus-times {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: #ffffffb8;
}

.focus-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin: 28px 0 24px;
}

.focus-controls .play-button {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  padding: 0;
  background: var(--accent);
  color: #fff;
}

.focus-controls .play-button svg {
  width: 26px;
  height: 26px;
}

.focus-controls .icon-button {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  color: #fff;
}

.focus-controls .icon-button svg {
  width: 23px;
  height: 23px;
}

.focus-controls .icon-button:hover,
.focus-dialog .modal-close:hover {
  background: #ffffff1a;
}

.focus-controls .play-button:hover {
  background: #e6004c;
}

.focus-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid #ffffff1f;
}

.focus-extras .text-button {
  min-height: 40px;
  font-size: 11px;
  line-height: 1.5;
  color: #ffffffe6;
}

.focus-extras .text-button:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (width <= 760px) {
  .focus-player {
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 480px);
    gap: 24px;
    padding: 12px 0;
  }

  .focus-art {
    width: min(100%, 36dvh, 360px);
  }

  .focus-details {
    padding: 24px;
    border-radius: 20px;
  }

  .focus-details > h2 {
    font-size: 28px;
  }
}

@media (width >= 761px) and (height <= 620px) {
  dialog.focus-dialog {
    padding: 20px 28px;
  }

  .focus-dialog .modal-heading .icon-button {
    top: 20px;
    right: 28px;
  }

  .focus-dialog #modal-content {
    gap: 12px;
  }

  .focus-player {
    padding: 8px 0;
    gap: 32px;
  }

  .focus-art {
    width: min(100%, calc(100dvh - 124px));
  }

  .focus-details {
    padding: 24px;
  }

  .focus-details > h2 {
    font-size: 28px;
  }

  .focus-details > p {
    margin-bottom: 16px;
  }

  .focus-controls {
    margin: 20px 0 16px;
  }

  .focus-controls .play-button {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .focus-details {
    background: #10131a;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .focus-dialog .modal-heading .icon-button {
    background: #20232b;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@keyframes player-reveal {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  dialog.focus-dialog[open] {
    animation: none;
  }
}

/* File formats are quiet text labels, not chips. */
.format-badge {
  background: none;
  border: 0;
  padding: 0;
}

/* The compact navigation floats above a dismissible page backdrop. */
.sidebar-backdrop {
  display: none;
}

@media (width <= 620px) {
  body.menu-open {
    overflow: hidden;
  }

  .sidebar {
    z-index: 61;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .player {
    z-index: 62;
  }

  .mobile-tabs {
    z-index: 63;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0 0 calc(65px + env(safe-area-inset-bottom));
    z-index: 60;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #0006;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
    touch-action: none;
  }

  .has-player .sidebar-backdrop {
    bottom: calc(135px + env(safe-area-inset-bottom));
  }

  .sidebar.open + .sidebar-backdrop {
    display: block;
  }
}

/* A trace of the current cover sits behind the compact player controls. */
.player {
  background: var(--theme-paper, #fff);
  isolation: isolate;
  overflow: hidden;
}

.player::before {
  content: "";
  position: absolute;
  inset: -30px;
  z-index: -1;
  background-image: var(--player-artwork, none);
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  opacity: 0.12;
  pointer-events: none;
}

.genre-hint {
  display: block;
  margin-top: 7px;
  color: var(--theme-muted, #777);
  font-size: 11px;
}

.genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.genre-tags > span {
  padding: 4px 9px;
  border: 1px solid var(--theme-line, #ddd);
  border-radius: 20px;
  font-size: 11px;
}

.song-editor-dialog .genre-field,
.dj-detection {
  grid-column: 1/-1;
}

.dj-detection {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

.dj-detection > span {
  font-size: 12px;
  color: var(--theme-muted, #777);
  line-height: 1.6;
}

@media (width <= 620px) {
  .dj-detection {
    align-items: flex-start;
    flex-direction: column;
  }

  .dj-detection .button {
    min-height: 44px;
  }
}

/* The field guide: a record sleeve, four sides of the story, and a little soul. */
.home-guide-link {
  margin-top: 24px;
  gap: 10px;
  font-size: 12px;
  color: var(--theme-muted, #777);
}

.home-guide-link span {
  color: var(--ink);
}

.how-it-works {
  --guide-pink: #ff0155;
  --guide-quiet: #f1f1ef;

  max-width: 1240px;
  margin: 0 auto;
}

.guide-topline,
.guide-colophon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 9px;
  letter-spacing: 1.4px;
  padding: 0 0 19px;
  border-bottom: 1px solid var(--line);
}

.guide-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 500;
}

.guide-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: center;
  padding: 58px 0 52px;
}

.guide-hero h1 {
  font-size: clamp(44px, 4.7vw, 76px);
  font-weight: 400;
  letter-spacing: -3.5px;
  line-height: 1.03;
  margin: 24px 0;
}

.guide-hero h1 em {
  color: var(--guide-pink);
  font-style: normal;
}

.guide-hero-copy > p {
  max-width: 330px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--theme-muted, #666);
  margin: 0 0 27px;
}

.how-it-works .button {
  min-height: 46px;
  gap: 25px;
  font-size: 12px;
  padding: 13px 19px;
}

.guide-local {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--theme-muted, #686868);
  margin-top: 20px;
}

.guide-local i {
  width: 5px;
  height: 5px;
  background: var(--guide-pink);
  border-radius: 50%;
}

.guide-hero-art {
  position: relative;
  aspect-ratio: 1.05;
  isolation: isolate;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 25px 0 25px 3%;
}

.guide-sleeve {
  position: relative;
  background: var(--guide-pink);
  color: white;
  width: 73%;
  aspect-ratio: 1;
  transform: rotate(-7deg);
  padding: 26px 19px;
  box-shadow: 0 22px 30px #0002;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.guide-sleeve > span {
  font-size: clamp(26px, 3.4vw, 50px);
  line-height: 0.97;
  letter-spacing: -2px;
  position: relative;
  z-index: 1;
}

.guide-sleeve small {
  font-size: 6px;
  letter-spacing: 0.7px;
}

.guide-sleeve i {
  font-style: normal;
  font-size: 80px;
  line-height: 1;
  align-self: flex-end;
  margin: auto 0 10px;
}

.guide-vinyl {
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  right: 0;
  border-radius: 50%;
  background: repeating-radial-gradient(
    circle,
    #202020 0 1px,
    #111 2px 3px,
    #242424 4px,
    #151515 5px 7px
  );
  box-shadow: 0 15px 25px #0002;
  display: grid;
  place-items: center;
  transform: rotate(15deg);
}

.guide-vinyl::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    transparent 0deg,
    #fff2 45deg,
    transparent 85deg,
    transparent 180deg,
    #fff2 230deg,
    transparent 280deg
  );
}

.guide-vinyl > span {
  display: grid;
  place-content: center;
  width: 32%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #eeeade;
  text-align: center;
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1.2;
  color: #171717;
}

.guide-vinyl small {
  font-size: 5px;
  margin-top: 8px;
}

.guide-art-edition {
  position: absolute;
  bottom: 0;
  right: 3%;
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--theme-muted, #777);
}

.guide-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 23px 0;
  border-block: 1px solid var(--line);
  font-size: clamp(15px, 2vw, 26px);
  letter-spacing: -0.5px;
}

.guide-strip i {
  font-size: 28px;
  line-height: 1;
  font-style: normal;
  color: var(--guide-pink);
}

.guide-walkthrough {
  padding: 58px 0 0;
  scroll-margin-top: 85px;
}

.guide-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin-bottom: 24px;
}

.guide-section-heading h2 {
  font-weight: 400;
  font-size: 25px;
  letter-spacing: -0.8px;
  margin: 0;
}

.guide-section-heading > span {
  font-size: 8px;
  letter-spacing: 1.3px;
  color: var(--theme-muted, #777);
}

.guide-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}

.guide-tabs button {
  background: var(--theme-paper, white);
  border: 0;
  border-right: 1px solid var(--line);
  text-align: left;
  padding: 18px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  transition:
    background 0.18s,
    color 0.18s;
}

.guide-tabs button:last-child {
  border-right: 0;
}

.guide-tabs button > span:first-child {
  font-size: 10px;
  opacity: 0.6;
}

.guide-tabs button > span:last-child {
  margin-left: auto;
}

.guide-tabs button[aria-selected="true"] {
  background: #171717;
  color: white;
}

.guide-tabs button:hover:not([aria-selected="true"]) {
  background: var(--theme-surface, #f5f5f3);
}

.guide-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 355px;
  border: 1px solid var(--line);
  border-top: 0;
}

.guide-step-copy {
  padding: 38px;
}

.guide-step-copy .guide-kicker {
  font-size: 8px;
  color: var(--theme-muted, #777);
}

.guide-step-copy h3 {
  font-size: 32px;
  line-height: 1.08;
  letter-spacing: -1.3px;
  font-weight: 400;
  max-width: 300px;
  margin: 19px 0;
}

.guide-step-copy p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--theme-muted, #666);
  max-width: 340px;
  margin: 0 0 23px;
}

.guide-step-copy > small {
  display: block;
  max-width: 340px;
  font-size: 10px;
  line-height: 1.7;
  color: var(--theme-muted, #777);
  margin-top: 17px;
}

.guide-step-art {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--guide-quiet);
  min-height: 340px;
  padding: 35px 24px 60px;
}

.guide-art-caption {
  position: absolute;
  bottom: 22px;
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--theme-muted, #666);
}

.guide-files {
  display: flex;
  gap: 12px;
  transform: rotate(-5deg);
  margin-bottom: 20px;
}

.guide-files > span {
  background: var(--theme-paper, white);
  border: 1px solid var(--theme-line, #ddd);
  padding: 19px 12px 12px;
  width: 66px;
  box-shadow: 4px 5px #ddd;
  font-size: 12px;
}

.guide-files i {
  display: block;
  font-style: normal;
  color: var(--guide-pink);
  font-size: 25px;
  margin-top: 13px;
}

.guide-files > span:nth-child(2) {
  transform: translateY(-12px) rotate(10deg);
}

.guide-file-home {
  font-size: 52px;
  letter-spacing: -3px;
  line-height: 1;
  padding: 9px 27px 17px;
  background: #171717;
  color: #fff;
  transform: rotate(3deg);
}

.guide-file-home > span {
  color: var(--guide-pink);
}

.guide-file-home small {
  display: block;
  font-size: 7px;
  letter-spacing: 1px;
  margin-top: 10px;
}

.guide-tag-card {
  padding: 25px;
  background: var(--theme-paper, white);
  border: 1px solid var(--theme-line, #ddd);
  width: 100%;
  max-width: 290px;
  box-shadow: 9px 9px #dededb;
  transform: rotate(-4deg);
}

.guide-tag-card > span {
  font-size: 7px;
  letter-spacing: 1px;
  color: var(--theme-muted, #777);
}

.guide-tag-card > strong {
  display: block;
  font-size: 27px;
  letter-spacing: -1px;
  line-height: 1.1;
  font-weight: 400;
  margin: 20px 0;
}

.guide-tag-card > div {
  border-block: 1px solid var(--theme-line, #ddd);
  padding: 15px 0;
  display: flex;
  gap: 15px;
}

.guide-tag-card > div > span {
  font-size: 7px;
  color: var(--theme-muted, #777);
  flex: 1;
}

.guide-tag-card b {
  display: block;
  font-size: 11px;
  color: var(--theme-text, #222);
  font-weight: 400;
  margin-top: 5px;
}

.guide-tag-card > small {
  display: block;
  font-size: 11px;
  color: #b9003d;
  margin-top: 17px;
}

.guide-set-stack {
  position: relative;
  width: 210px;
  aspect-ratio: 1;
  margin: 10px;
}

.guide-set-stack > span {
  position: absolute;
  inset: 0;
  background: #bbb;
  transform: rotate(10deg) translateX(10px);
}

.guide-set-stack > span:nth-child(2) {
  background: #333;
  transform: rotate(-8deg);
}

.guide-set-stack > div {
  position: relative;
  height: 100%;
  background: var(--guide-pink);
  color: white;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: -2px;
  padding: 20px;
}

.guide-set-stack > div > span {
  position: absolute;
  left: 20px;
  bottom: 18px;
  font-size: 6px;
  letter-spacing: 0.8px;
  line-height: 1.4;
}

.guide-set-stack i {
  font-style: normal;
  position: absolute;
  right: 16px;
  bottom: 25px;
  font-size: 70px;
}

.guide-art-set {
  background: var(--theme-raised, #e9e8e4);
}

.guide-backup-file {
  background: #171717;
  color: white;
  padding: 22px;
  width: 205px;
  transform: rotate(5deg);
  box-shadow: 10px 10px #ddd;
}

.guide-backup-file > span {
  display: block;
  color: var(--guide-pink);
  font-size: 49px;
  line-height: 1;
}

.guide-backup-file strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -1px;
  font-weight: 400;
  margin: 18px 0 25px;
}

.guide-backup-file small {
  font-size: 7px;
  letter-spacing: 1px;
}

.guide-backup-caption {
  font-size: 10px;
  background: var(--guide-pink);
  color: white;
  padding: 8px 12px;
  transform: translate(10px, -5px) rotate(-4deg);
}

.guide-faq {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 55px;
  padding: 68px 0;
}

.guide-faq .guide-kicker {
  font-size: 8px;
  color: var(--theme-muted, #777);
}

.guide-faq h2 {
  font-weight: 400;
  font-size: 36px;
  letter-spacing: -1.5px;
  line-height: 1.08;
  margin: 21px 0;
}

.guide-faq > div > p {
  color: var(--theme-muted, #777);
  font-size: 12px;
  line-height: 1.7;
}

.guide-questions details {
  border-bottom: 1px solid var(--line);
}

.guide-questions details:first-child {
  border-top: 1px solid var(--line);
}

.guide-questions summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 63px;
  font-size: 12px;
  cursor: pointer;
  padding: 14px 0;
}

.guide-questions summary::-webkit-details-marker {
  display: none;
}

.guide-questions summary > span {
  color: var(--guide-pink);
  font-size: 23px;
  flex: none;
  font-weight: 300;
}

.guide-questions details[open] summary > span {
  transform: rotate(45deg);
}

.guide-questions details > p {
  margin: 0 25px 21px 0;
  color: var(--theme-muted, #666);
  font-size: 12px;
  line-height: 1.8;
}

.guide-questions summary:focus-visible {
  outline: 2px solid var(--guide-pink);
  outline-offset: 4px;
}

.guide-finale {
  position: relative;
  overflow: hidden;
  background: var(--guide-pink);
  color: white;
  padding: 40px;
}

.guide-finale .guide-kicker {
  font-size: 9px;
}

.guide-finale h2 {
  position: relative;
  z-index: 1;
  font-size: 54px;
  font-weight: 400;
  letter-spacing: -2.5px;
  line-height: 1;
  margin: 23px 0 26px;
}

.guide-finale > .button {
  background: white;
  border: 0;
  color: #171717;
  position: relative;
  z-index: 1;
}

.guide-demo-link {
  position: relative;
  z-index: 1;
  display: block;
  border: 0;
  padding: 0;
  background: none;
  color: white;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 17px;
  min-height: 35px;
}

.guide-finale-mark {
  position: absolute;
  right: 18px;
  top: 8px;
  font-size: 310px;
  line-height: 1;
  color: #ffffff40;
  transform: rotate(12deg);
}

.guide-colophon {
  padding: 24px 0 0;
  border: 0;
  letter-spacing: 1px;
  font-size: 7px;
}

.guide-colophon > span:first-child {
  font-size: 25px;
  letter-spacing: -1.4px;
}

.guide-colophon button {
  background: none;
  border: 0;
  font-size: 10px;
  padding: 10px 0;
  letter-spacing: 0;
}

@media (width >= 621px) and (width <= 1050px) {
  .guide-hero {
    gap: 15px;
  }

  .guide-hero h1 {
    font-size: 48px;
    letter-spacing: -2.5px;
  }

  .guide-sleeve {
    padding: 20px 14px;
  }

  .guide-sleeve > span {
    font-size: 30px;
    letter-spacing: -1.3px;
  }

  .guide-step-copy {
    padding: 25px;
  }

  .guide-tabs button {
    padding: 15px 10px;
    font-size: 10px;
    gap: 7px;
  }

  .guide-section-heading > span {
    display: none;
  }

  .guide-faq {
    gap: 30px;
  }

  .guide-faq h2 {
    font-size: 30px;
  }
}

@media (width <= 620px) {
  .guide-topline {
    font-size: 7px;
    letter-spacing: 0.8px;
    padding-bottom: 15px;
    gap: 10px;
  }

  .guide-hero {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 35px 0 28px;
  }

  .guide-hero h1 {
    font-size: clamp(41px, 10.7vw, 65px);
    letter-spacing: -2.6px;
    margin: 20px 0;
  }

  .guide-hero-copy > p {
    font-size: 14px;
    max-width: 310px;
  }

  .guide-kicker {
    font-size: 9px;
  }

  .guide-hero-art {
    width: 85%;
    max-width: 380px;
    justify-self: center;
    aspect-ratio: 1.23;
    padding-bottom: 28px;
  }

  .guide-sleeve {
    width: 70%;
    padding: 23px 18px;
  }

  .guide-sleeve > span {
    font-size: clamp(27px, 8vw, 38px);
  }

  .guide-sleeve i {
    font-size: 65px;
    margin-bottom: 0;
  }

  .guide-art-edition {
    font-size: 6px;
  }

  .guide-strip {
    gap: 8px;
    padding: 18px 0;
    font-size: 14px;
  }

  .guide-strip i {
    font-size: 18px;
  }

  .guide-strip i:last-child {
    display: none;
  }

  .guide-walkthrough {
    padding-top: 35px;
  }

  .guide-section-heading {
    margin-bottom: 18px;
  }

  .guide-section-heading h2 {
    font-size: 23px;
  }

  .guide-section-heading > span {
    display: none;
  }

  .guide-tabs {
    grid-template-columns: 1fr 1fr;
  }

  .guide-tabs button {
    min-height: 58px;
    font-size: 11px;
    padding: 15px 12px;
    border-bottom: 1px solid var(--line);
  }

  .guide-tabs button:nth-child(2) {
    border-right: 0;
  }

  .guide-tabs button:nth-child(n + 3) {
    border-bottom: 0;
  }

  .guide-panel {
    grid-template-columns: 1fr;
  }

  .guide-step-copy {
    padding: 27px 23px;
  }

  .guide-step-copy h3 {
    font-size: 32px;
    max-width: 270px;
  }

  .guide-step-copy p {
    font-size: 13px;
    max-width: none;
  }

  .guide-step-art {
    min-height: 300px;
  }

  .guide-faq {
    grid-template-columns: 1fr;
    padding: 40px 0;
    gap: 20px;
  }

  .guide-faq h2 {
    font-size: 34px;
  }

  .guide-faq > div > p {
    display: none;
  }

  .guide-questions summary {
    min-height: 65px;
    font-size: 13px;
  }

  .guide-questions details > p {
    font-size: 13px;
  }

  .guide-finale {
    padding: 30px 24px;
  }

  .guide-finale h2 {
    font-size: 45px;
    letter-spacing: -2px;
  }

  .guide-finale-mark {
    font-size: 230px;
    right: -65px;
    top: 30px;
  }

  .guide-colophon {
    gap: 10px;
  }

  .guide-colophon > span:nth-child(2) {
    display: none;
  }

  .home-guide-link {
    font-size: 11px;
    flex-wrap: wrap;
    text-align: left;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .guide-hero-copy,
  .guide-hero-art {
    animation: guide-arrive 0.65s both;
  }

  .guide-hero-art {
    animation-delay: 0.1s;
  }

  .guide-panel > div {
    animation: guide-arrive 0.3s both;
  }

  @keyframes guide-arrive {
    from {
      opacity: 0;
      transform: translateY(12px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

/* Cover artwork opens the same listening view as the song title. */
button.player-cover {
  border: 0;
  padding: 0;
  flex-shrink: 0;
  overflow: hidden;
}

/* The compact player's top border doubles as a full-width seek control. */
.player {
  overflow: visible;
}

.player::before {
  inset: 0;
  clip-path: inset(0);
}

.player-center .progress-row {
  display: flex;
  position: absolute;
  inset: -18px 0 auto;
  height: 36px;
  gap: 0;
  z-index: 1;
}

.player-center .progress-row span {
  display: none;
}

#progress {
  display: block;
  flex: 1;
  width: 100%;
  height: 36px;
  margin: 0;
  background: transparent;
  border-radius: 0;
}

#progress::-webkit-slider-runnable-track {
  height: 3px;
  background: linear-gradient(
    to right,
    var(--accent) var(--played, 0%),
    var(--theme-raised, #d2d0cd) var(--played, 0%)
  );
}

#progress::-webkit-slider-thumb {
  width: 8px;
  height: 8px;
  margin-top: -2.5px;
  background: var(--accent);
  border-radius: 50%;
}

#progress::-moz-range-track {
  height: 3px;
  background: var(--theme-raised, #d2d0cd);
}

#progress::-moz-range-progress {
  height: 3px;
  background: var(--accent);
}

#progress::-moz-range-thumb {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}

#progress:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -10px;
}

#progress:disabled {
  opacity: 0.45;
  cursor: default;
}

.player-center .playback-buttons {
  margin-bottom: 0;
}

.repair-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 4px 12px;
  align-items: center;
  margin-top: 10px;
}

.repair-field .form-label {
  grid-column: 1/-1;
  margin: 0;
  font-size: 11px;
}

.repair-field del {
  display: block;
  font-size: 12px;
  color: var(--muted, #777);
  overflow-wrap: anywhere;
}

.repair-field .form-input {
  min-height: 40px;
  padding: 8px 10px;
}

.repair-reason {
  font-size: 12px;
  line-height: 1.5;
  color: var(--theme-muted, #666);
  margin: 8px 0;
}

.patch-track .check-option {
  font-weight: 600;
  align-items: flex-start;
}

.patch-track small {
  overflow-wrap: anywhere;
}

#repair-status:empty,
#xml-edit-status:empty {
  display: none;
}

.repair-field .form-label {
  text-transform: capitalize;
}

/* A light glass header lets the collection show through as it scrolls. */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border: 0;
  background: rgb(255 255 255 / 28%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

@media (prefers-reduced-transparency: reduce) {
  .topbar {
    background: var(--paper);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Keep existing workflow layout inside the React dialog boundary. */
.workflow-body {
  display: contents;
}

/* Theme tokens keep the original light palette as each declaration's fallback.
   Artwork and the full-screen listening view retain their own palettes. */
:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #151517;
  --ink: #f2f1ef;
  --muted: #afada9;
  --line: #38383d;
  --accent-soft: #3c1c29;
  --theme-paper: #151517;
  --theme-surface: #202023;
  --theme-raised: #2b2b30;
  --theme-text: #f2f1ef;
  --theme-muted: #afada9;
  --theme-line: #38383d;
  --theme-glass: #151517ed;
}

[data-theme="dark"] .topbar {
  background: rgb(21 21 23 / 80%);
}

[data-theme="dark"] .how-it-works {
  --guide-quiet: #202023;
}

[data-theme="dark"] tr.selected td,
[data-theme="dark"] .studio-new {
  background: var(--accent-soft);
}

[data-theme="dark"]
  :is(
    .danger,
    .studio-new,
    .patch-field ins,
    .genre-item p b,
    .guide-tag-card > small,
    .song-save-status
  ) {
  color: #ff8fb4;
}

[data-theme="dark"] #drop-overlay {
  background: #26121ff5;
  color: #ff8fb4;
}

[data-theme="dark"] .mobile-tab.active {
  color: var(--ink);
}

[data-theme="dark"] #progress::-webkit-slider-runnable-track {
  background: linear-gradient(
    to right,
    var(--accent) var(--played, 0%),
    var(--line) var(--played, 0%)
  );
}

[data-theme="dark"] #progress::-moz-range-track {
  background: var(--line);
}

.theme-toggle {
  flex-shrink: 0;
}

@media (prefers-reduced-transparency: reduce) {
  [data-theme="dark"] .topbar {
    background: var(--paper);
  }
}

[data-theme="dark"] .primary {
  background: var(--ink);
  color: var(--paper);
}

[data-theme="dark"] .primary:hover,
[data-theme="dark"] .home-intro .primary {
  background: var(--accent);
  color: white;
}

[data-theme="dark"] .nav-item.active,
[data-theme="dark"] .view-tab.active,
[data-theme="dark"] .filter-toggle[aria-expanded="true"] {
  background: var(--theme-raised);
}

[data-theme="dark"] input[type="checkbox"]:checked {
  background: var(--accent);
  border-color: var(--accent);
}

.topbar-right .theme-toggle {
  display: inline-flex;
}
