:root {
  --bg: #101114;
  --surface: #191B20;
  --elevated: #22252B;
  --accent: #C7F464;
  --text: #F5F5F5;
  --muted: #A6A8B0;
  --border: #30333A;
  --error: #ff6b6b;
  --ok: #7dcea0;
  --sidebar-w: 240px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  max-height: 100vh;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 20;
}
.sidebar-brand-row {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}
.sidebar-brand-row .brand {
  flex: 1;
  min-width: 0;
}
.sidebar-version {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--accent);
  opacity: 0.9;
  line-height: 1.2;
}
.brand img, .brand-logo, .auth-logo {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand .brand-logo { max-width: 200px; }
.auth-logo { max-width: min(280px, 100%); margin: 0 auto 1rem; }
.sidebar-nav-toggle {
  display: none;
}
.sidebar-nav-panel {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 0.15rem;
}
.nav a {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
}
.nav a:hover { background: var(--elevated); text-decoration: none; }
.nav-link--badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
}
.nav-badge {
  flex-shrink: 0;
  min-width: 1.35rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: #101114;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(199, 244, 100, 0.35);
}
.sidebar-foot {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  font-size: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  padding-bottom: 0.65rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}
.has-studio-footer .sidebar {
  padding-bottom: 5.5rem;
}
.has-studio-footer .sidebar-foot {
  margin-bottom: 0;
  padding-bottom: 0.35rem;
}
.user-chip {
  display: block;
  margin: 0;
  width: 100%;
  text-align: center;
  color: var(--text);
  line-height: 1.35;
}
.user-chip__role { color: var(--muted); font-weight: 400; font-size: 0.9em; }
.studio-path { font-size: 0.8rem; word-break: break-all; }
.link-muted { color: var(--muted); font-size: 0.85rem; }
.btn--logout {
  color: #ff8a8a;
  border-color: rgba(255, 107, 107, 0.55);
  background: rgba(255, 107, 107, 0.12);
  text-decoration: none;
  width: auto;
  display: inline-block;
}
.btn--logout:hover {
  color: #fff;
  background: #e53935;
  border-color: #e53935;
  text-decoration: none;
}
.sidebar-foot .btn--logout {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 0.15rem;
}
.sidebar-foot .studio-switch-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.main { flex: 1; padding: 1.25rem 1.5rem 2rem; max-width: 1200px; }
.has-studio-footer .main { padding-bottom: 12rem; }
.has-studio-footer .studio-footer {
  left: var(--sidebar-w);
  transition: left 0.22s ease;
}
html:has(.main--auth),
body:has(.main--auth) {
  height: 100%;
  overflow: hidden;
}
.main--auth {
  display: flex;
  align-items: stretch;
  justify-content: center;
  min-height: 100dvh;
  height: 100dvh;
  max-height: 100dvh;
  max-width: none;
  width: 100%;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.page-header h1 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.page-header--catalog {
  display: block;
}
.page-header__catalog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}
.page-header--catalog .page-header__catalog-head h1 {
  margin: 0;
  flex: 0 1 auto;
  min-width: 0;
}
.page-header__catalog-meta {
  margin: 0.3rem 0 0;
}
.catalog-player-bar.page-header__player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
  width: auto;
  min-width: 0;
  margin: 0;
  flex: 0 0 auto;
}
.page-header__player-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex: 0 1 auto;
  min-width: 0;
}
.page-header__player-actions .studio-footer__actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(36rem, 100%);
}
.page-header__player-actions .studio-footer__claim-gap {
  flex: 1 1 6.5rem;
  min-width: 5.75rem;
  max-width: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}
.page-header__player-actions .studio-footer__claim {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  text-align: center;
}
.page-header__player-actions .studio-footer__volume {
  flex: 0 0 auto;
  flex-shrink: 0;
  position: relative;
  width: auto;
  max-width: none;
  min-width: 0;
}
.catalog-player-bar.page-header__player-actions > .studio-footer__actions {
  flex: 0 1 auto;
  min-width: 0;
}
.catalog-player-bar.page-header__player-actions > .studio-footer__volume {
  flex: 0 0 auto;
  margin-left: 0.25rem;
}
@media (min-width: 901px) {
  .main.main--catalog {
    max-width: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .main.main--catalog .table-wrap {
    width: 100%;
    max-width: none;
    overflow-x: auto;
  }
  .main.main--catalog .data-table--catalog {
    width: 100%;
    min-width: 720px;
  }
  .main.main--catalog .data-table--catalog .beat-catalog-actions {
    gap: 0.65rem;
    flex-wrap: nowrap;
  }
  .main.main--catalog .data-table--catalog .beat-catalog-actions .catalog-like {
    margin-right: 0.55rem;
  }
  .main.main--catalog .data-table--catalog td:has(.beat-catalog-actions) {
    padding-right: 0.85rem;
    white-space: nowrap;
  }
  .main.main--catalog .data-table--catalog td:has([data-catalog-claim]),
  .main.main--catalog .data-table--catalog td:has([data-catalog-release]) {
    padding-left: 1.5rem;
    text-align: right;
    white-space: nowrap;
  }
  .main.main--catalog .pagination {
    width: 100%;
  }
  .has-studio-footer .catalog-sticky-top {
    position: sticky;
    top: 0;
    z-index: 45;
    margin: -1.25rem -1.5rem 0.75rem;
    padding: 1.25rem 1.5rem 0.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .has-studio-footer .catalog-sticky-top .toolbar--catalog {
    margin-bottom: 0.35rem;
  }
  .page-header--catalog .page-header__catalog-meta {
    margin-bottom: 0.45rem;
  }
  .catalog-player-bar.page-header__player-actions [data-footer-like],
  .catalog-player-bar.page-header__player-actions .studio-footer__claim-gap,
  .catalog-player-bar.page-header__player-actions [data-footer-release],
  .catalog-player-bar.page-header__player-actions [data-footer-pending] {
    display: none !important;
  }
  .catalog-player-bar.page-header__player-actions {
    gap: 0.85rem;
  }
  .catalog-player-bar .studio-footer__actions {
    flex: 0 1 auto;
    max-width: none;
    gap: 0.75rem;
  }
  .catalog-player-bar .studio-footer__statuses {
    gap: 0.6rem;
  }
  .catalog-player-bar .studio-footer__status:not(.studio-footer__status--spotify) {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1.08rem;
    border-radius: 10px;
  }
  .catalog-player-bar .studio-footer__status--spotify {
    min-width: 3.65rem;
    height: 2.55rem;
    font-size: 0.78rem;
    padding: 0 0.6rem;
    border-radius: 10px;
  }
  .catalog-player-bar .studio-footer__volume {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0.35rem 0.65rem;
    border-radius: 10px;
    gap: 0.45rem;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }
  .catalog-player-bar .studio-footer__volume-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
  }
  .catalog-player-bar .studio-footer__volume-slider-wrap {
    display: block;
    flex: 0 0 7.25rem;
    width: 7.25rem;
    min-width: 7.25rem;
    max-width: 7.25rem;
  }
  .catalog-player-bar .studio-footer__volume-slider {
    display: block;
    width: 100%;
    height: 0.45rem;
    margin: 0;
    writing-mode: horizontal-tb;
    -webkit-appearance: none;
    appearance: none;
  }
}
@media (max-width: 900px) {
  .catalog-player-bar.page-header__player-actions {
    display: none !important;
  }
  .page-header--catalog .page-header__catalog-head h1 {
    font-size: 1.28rem;
  }
  .page-header--catalog .page-header__catalog-meta {
    display: block;
    margin-top: 0.2rem;
    margin-bottom: 0.95rem;
  }
  .page-header__catalog-head .catalog-player-bar {
    display: none !important;
  }
  .toolbar--catalog {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    margin-bottom: 0.85rem;
  }
  .toolbar--catalog input[type="search"] {
    width: 100%;
    box-sizing: border-box;
  }
  .toolbar--catalog .catalog-claim-picker {
    width: 100%;
  }
  .toolbar--catalog .catalog-claim-picker__trigger {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
  }
  .toolbar--catalog [data-catalog-filter-reset] {
    width: 100%;
    justify-content: center;
  }
}
.muted { color: var(--muted); margin: 0; }
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}
.metric-label { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.metric-value { font-size: 1.6rem; }
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
}
.toolbar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem;
  align-items: center;
}
.catalog-claim-picker {
  position: relative;
  flex-shrink: 0;
}
.catalog-claim-picker__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 7.5rem;
  max-width: 14rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
}
.catalog-claim-picker__trigger:hover {
  border-color: rgba(199, 244, 100, 0.35);
}
.catalog-claim-picker__label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-claim-picker__chev {
  flex-shrink: 0;
  opacity: 0.75;
  font-size: 0.75rem;
}
.catalog-claim-picker__menu {
  position: absolute;
  z-index: 120;
  top: calc(100% + 0.25rem);
  left: 0;
  min-width: 100%;
  max-width: min(18rem, 92vw);
  max-height: min(16rem, 50vh);
  overflow: auto;
  padding: 0.35rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}
.catalog-claim-picker__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  font-size: 0.88rem;
  line-height: 1.25;
}
.catalog-claim-picker__option:hover {
  background: rgba(199, 244, 100, 0.08);
}
.catalog-claim-picker__option input[type="checkbox"] {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.catalog-claim-picker__option span {
  min-width: 0;
}
.catalog-claim-picker__option .tag {
  flex-shrink: 0;
}
.catalog-claim-picker__option--like .catalog-claim-picker__like {
  font-size: 1.05rem;
  line-height: 1;
  color: var(--muted);
}
.catalog-claim-picker__option--like input:checked ~ .catalog-claim-picker__like {
  color: #ff7b9c;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.toolbar input, .toolbar select, .form input, .form textarea, .form select {
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}
.form label { display: block; margin-bottom: 0.75rem; font-size: 0.9rem; }
.form label.field-password { display: block; }
.form input, .form textarea { width: 100%; margin-top: 0.25rem; }
.password-field {
  position: relative;
  width: 100%;
  margin-top: 0.25rem;
}
.password-field input {
  width: 100%;
  padding-right: 2.75rem;
}
.password-field__toggle {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.password-field__toggle:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.password-field__toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.password-field__icon { display: block; }
.password-field__icon--hide { display: none; }
.password-field__toggle.is-revealed .password-field__icon--show { display: none; }
.password-field__toggle.is-revealed .password-field__icon--hide { display: block; }
.admin-user-password {
  min-width: 10.5rem;
  max-width: 15rem;
}
.admin-user-password .field-password {
  margin: 0;
  display: block;
}
.admin-user-password .password-field input {
  font-size: 0.8rem;
  padding: 0.35rem 2.1rem 0.35rem 0.45rem;
}
.admin-user-password__hint {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  line-height: 1.3;
}
.admin-user-password .btn {
  margin-top: 0.35rem;
}
.btn {
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font: inherit;
}
.btn--primary {
  background: var(--accent);
  color: #101114;
  border-color: transparent;
  font-weight: 600;
}
/* Links als Button: globales a { color: accent } sonst unleserlich auf Grün */
a.btn--primary,
a.btn--primary:hover,
a.btn--primary:focus-visible {
  color: #101114;
  text-decoration: none;
}
.btn--ghost { background: transparent; }
.btn--small { padding: 0.25rem 0.5rem; font-size: 0.85rem; }
.alert { padding: 0.65rem 0.85rem; border-radius: 8px; margin-bottom: 1rem; }
.alert--error { background: rgba(255,107,107,0.15); border: 1px solid var(--error); }
.alert--success { background: rgba(125,206,160,0.12); border: 1px solid var(--ok); }
.auth-scene {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100dvh;
  height: 100%;
  padding: 1.5rem 1.25rem;
  padding-bottom: min(22vh, 160px);
  overflow: hidden;
  box-sizing: border-box;
}
.auth-scene__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(199, 244, 100, 0.2), transparent 55%),
    radial-gradient(ellipse 45% 40% at 95% 45%, rgba(199, 244, 100, 0.08), transparent 50%),
    radial-gradient(ellipse 40% 35% at 5% 75%, rgba(140, 170, 255, 0.07), transparent 50%),
    var(--bg);
}
.auth-scene__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(199, 244, 100, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(199, 244, 100, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 20%, transparent 72%);
}
.auth-scene__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  pointer-events: none;
  animation: auth-glow-drift 14s ease-in-out infinite;
}
.auth-scene__glow--a {
  width: min(42vw, 360px);
  height: min(42vw, 360px);
  top: 8%;
  left: 12%;
  background: rgba(199, 244, 100, 0.28);
}
.auth-scene__glow--b {
  width: min(38vw, 300px);
  height: min(38vw, 300px);
  right: 8%;
  bottom: 18%;
  background: rgba(199, 244, 100, 0.14);
  animation-delay: -5s;
}
.auth-scene__glow--c {
  width: min(28vw, 220px);
  height: min(28vw, 220px);
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  background: rgba(199, 244, 100, 0.1);
  animation-delay: -9s;
}
@keyframes auth-glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(24px, -18px) scale(1.06); }
  66% { transform: translate(-16px, 12px) scale(0.96); }
}
.auth-mixer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: min(42vh, 300px);
  min-height: 150px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  perspective: 820px;
  padding: 0 0.5rem;
  box-sizing: border-box;
}
.auth-mixer__tilt {
  width: min(960px, 96vw);
  transform: rotateX(48deg);
  transform-origin: center bottom;
}
.auth-mixer__body {
  width: 100%;
  padding: 0.55rem 0.85rem 0.75rem;
  background: linear-gradient(180deg, #2c3038 0%, #181a1f 55%, #121418 100%);
  border: 1px solid rgba(80, 86, 98, 0.85);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  box-shadow:
    0 -12px 48px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateZ(0);
  backface-visibility: hidden;
}
.auth-mixer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(48, 51, 58, 0.9);
}
.auth-mixer__brand {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  color: rgba(199, 244, 100, 0.55);
  font-weight: 700;
}
.auth-mixer__meter-strip {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  height: 14px;
}
.auth-mixer__meter {
  width: 4px;
  height: 100%;
  border-radius: 1px;
  background: rgba(48, 51, 58, 0.9);
  transform-origin: bottom;
  animation: mixer-meter 0.85s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.07s);
  will-change: transform, background;
}
@keyframes mixer-meter {
  0%, 100% { transform: scaleY(0.25); background: rgba(48, 51, 58, 0.9); }
  40% { transform: scaleY(1); background: var(--accent); box-shadow: 0 0 8px rgba(199, 244, 100, 0.65); }
  70% { transform: scaleY(0.55); background: rgba(199, 244, 100, 0.45); }
}
.auth-mixer__channels {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.25rem;
}
.auth-mixer__ch,
.auth-mixer__master {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
}
.auth-mixer__master {
  flex: 0 0 2.2rem;
  padding-left: 0.35rem;
  border-left: 1px solid rgba(48, 51, 58, 0.75);
}
.auth-mixer__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}
.auth-mixer__led--sig {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(199, 244, 100, 0.8);
  animation: mixer-led-pulse 1.4s ease-in-out infinite;
  animation-delay: calc(var(--ch) * 0.11s);
  will-change: transform, opacity;
}
.auth-mixer__led--peak {
  background: #ffb347;
  box-shadow: 0 0 5px rgba(255, 179, 71, 0.7);
  animation: mixer-led-blink 0.65s steps(2, end) infinite;
  animation-delay: calc(var(--ch) * 0.17s);
}
.auth-mixer__led--rec {
  background: #ff5c6a;
  box-shadow: 0 0 8px rgba(255, 92, 106, 0.85);
  animation: mixer-led-blink 0.45s steps(2, end) infinite;
}
@keyframes mixer-led-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.2); }
}
@keyframes mixer-led-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0.12; }
}
.auth-mixer__fader {
  position: relative;
  width: 12px;
  height: 46px;
  border-radius: 4px;
  background: linear-gradient(90deg, #0a0b0d, #1a1c22, #0a0b0d);
  border: 1px solid #454a55;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65);
}
.auth-mixer__fader--tall { height: 58px; width: 14px; }
.auth-mixer__fader-cap {
  position: absolute;
  left: 1px;
  right: 1px;
  height: 9px;
  top: 58%;
  border-radius: 2px;
  background: linear-gradient(180deg, #b8bcc6, #5a5f6a 45%, #3a3f48);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
  animation: mixer-fader-glow 2.2s ease-in-out infinite;
  animation-delay: calc(var(--ch) * 0.13s);
  will-change: box-shadow;
}
.auth-mixer__fader-cap--high { top: 42%; }
.auth-mixer__ch:nth-child(odd) .auth-mixer__fader-cap { top: 38%; }
.auth-mixer__ch:nth-child(3n) .auth-mixer__fader-cap { top: 68%; }
@keyframes mixer-fader-glow {
  0%, 100% { box-shadow: 0 2px 4px rgba(0, 0, 0, 0.45); }
  50% { box-shadow: 0 0 10px rgba(199, 244, 100, 0.35), 0 2px 4px rgba(0, 0, 0, 0.45); }
}
.auth-mixer__knob {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #5a606a, #22252b 55%, #121418);
  border: 1px solid #4a505a;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.5), 0 2px 3px rgba(0, 0, 0, 0.35);
}
.auth-mixer__knob--lg {
  width: 26px;
  height: 26px;
}
.auth-mixer__knob::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1px;
  transform-origin: center 9px;
  animation: mixer-knob-turn 4s ease-in-out infinite;
  animation-delay: calc(var(--ch) * 0.2s);
}
.auth-mixer__knob-led {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1px solid transparent;
  animation: mixer-knob-ring 1.8s ease-in-out infinite;
  animation-delay: calc(var(--ch) * 0.15s);
}
@keyframes mixer-knob-turn {
  0%, 100% { transform: rotate(-28deg); }
  50% { transform: rotate(32deg); }
}
@keyframes mixer-knob-ring {
  0%, 100% { border-color: transparent; box-shadow: none; }
  50% { border-color: rgba(199, 244, 100, 0.55); box-shadow: 0 0 12px rgba(199, 244, 100, 0.35); }
}
.auth-mixer__label {
  font-size: 0.5rem;
  color: rgba(166, 168, 176, 0.65);
  letter-spacing: 0.05em;
}
.auth-card {
  position: relative;
  z-index: 2;
  width: min(400px, 100%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.65rem 1.5rem 1.5rem;
}
@media (prefers-reduced-motion: reduce) {
  .auth-scene__glow {
    animation: none !important;
  }
}
.auth-card--glass {
  background: rgba(22, 24, 29, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(199, 244, 100, 0.22);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 80px rgba(199, 244, 100, 0.07);
}
.auth-card h1 {
  margin: 0 0 0.35rem;
  text-align: center;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}
.auth-tagline {
  text-align: center;
  margin: 0 0 1.25rem;
  font-size: 0.88rem;
}
.auth-logo {
  display: block;
  margin: 0 auto 1.1rem;
  max-width: min(260px, 88%);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.auth-form .auth-form__submit {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 28px rgba(199, 244, 100, 0.25);
}
.auth-form label input {
  background: rgba(16, 17, 20, 0.65);
  border-color: rgba(48, 51, 58, 0.9);
}
.auth-form .password-field input {
  background: rgba(16, 17, 20, 0.65);
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { border-bottom: 1px solid var(--border); padding: 0.5rem 0.4rem; text-align: left; }
.data-table--catalog tbody tr:has([data-beat-play].is-playing) {
  background: rgba(199, 244, 100, 0.045);
}
.data-table--catalog tbody tr:has([data-beat-play].is-playing) td {
  border-bottom-color: rgba(199, 244, 100, 0.12);
}
.beat-card:has([data-beat-play].is-playing) {
  background: rgba(199, 244, 100, 0.05);
  border-color: rgba(199, 244, 100, 0.16);
}
.data-table th { color: var(--muted); font-size: 0.75rem; text-transform: uppercase; }
.th-sortable { white-space: nowrap; }
.th-sort {
  color: var(--muted);
  text-decoration: none;
  font-size: inherit;
  text-transform: inherit;
  font-weight: inherit;
}
.th-sort:hover { color: var(--accent); text-decoration: none; }
.th-sort.is-active { color: var(--accent); }
.beat-catalog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
}
.beat-catalog-actions .catalog-like {
  margin-right: 0.15rem;
}
.catalog-song-name {
  width: 100%;
  min-width: 7rem;
  max-width: 14rem;
  padding: 0.3rem 0.45rem;
  font-size: 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}
.catalog-song-name:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(199, 244, 100, 0.15);
}
.catalog-song-name-cell {
  min-width: 8rem;
}
.beat-card__song {
  margin: 0 0 0.35rem;
}
.beat-card__song .catalog-song-name {
  max-width: 100%;
}
.data-table--catalog .studio-footer__status {
  width: 1.85rem;
  height: 1.85rem;
  font-size: 0.8rem;
}
.num { font-weight: 600; color: var(--accent); }
.tag { font-size: 0.75rem; padding: 0.15rem 0.4rem; border-radius: 4px; }
.tag--free { background: rgba(199,244,100,0.15); color: var(--accent); }
.btn-like { background: transparent; border: none; cursor: pointer; font: inherit; color: var(--muted); }
.btn-like.is-on { color: #ff7b9c; }
.inline-form { display: inline; }
.sidebar-studio {
  font-size: 0.8rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  padding: 0 0.25rem;
  font-weight: 600;
}
.sidebar-studio__label {
  color: var(--text);
  font-weight: 500;
}
.sidebar-studio--warn { color: var(--muted); font-weight: 400; }
.studio-switch-form { margin: 0.5rem 0; }
.studio-switch-form select {
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.8rem;
}
.import-bulk-bar__fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
  margin-top: 0.75rem;
}
.import-bulk-bar__fields label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
.data-table--imports .col-check { width: 2.5rem; text-align: center; }
.download-pending-list { list-style: none; margin: 0; padding: 0; }
.download-pending-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
}
.btn-play.is-disabled,
.btn-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn-play.is-disabled:hover,
.btn-play:disabled:hover {
  background: var(--elevated);
  border-color: var(--border);
}
.beat-player { display: inline-flex; align-items: center; }
.beat-player--empty { font-size: 0.85rem; }
.beat-player__audio { display: none; }
.btn-play {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--elevated);
  color: var(--accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s;
}
.btn-play:hover { background: rgba(199, 244, 100, 0.12); border-color: var(--accent); }
.btn-play:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-play.is-playing {
  background: var(--accent);
  color: #101114;
  border-color: transparent;
}
.btn-play__icon { font-size: 0.65rem; line-height: 1; }
.btn-play__icon--pause { display: none; font-size: 0.55rem; letter-spacing: -1px; }
.btn-play.is-playing .btn-play__icon--play { display: none; }
.btn-play.is-playing .btn-play__icon--pause { display: block; }
.beat-card { padding: 0.65rem 0.75rem; }
.beat-card__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
}
.beat-card__producer {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.catalog-claim-name {
  font-weight: 600;
  flex-shrink: 0;
  text-align: right;
}
.account-color-fields {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  max-width: 100%;
}
.account-color-form .account-color-fields input[type="color"] {
  width: 3rem;
  height: 2.25rem;
  padding: 0.15rem;
  margin-top: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--elevated);
  cursor: pointer;
  flex: 0 0 auto;
}
.account-color-form .account-color-fields input.account-color-hex {
  width: 6.75rem;
  max-width: 6.75rem;
  margin-top: 0;
  flex: 0 0 6.75rem;
  font-family: ui-monospace, monospace;
}
.account-color-preview {
  margin: 0 0 1rem;
  font-size: 0.95rem;
}
.account-color-hint {
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}
.panel-collapse {
  padding: 0;
  overflow: hidden;
}
.panel-collapse__summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-size: 1.05rem;
  user-select: none;
}
.panel-collapse__summary::-webkit-details-marker {
  display: none;
}
.panel-collapse__summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
  transition: transform 0.2s ease;
}
.panel-collapse[open] .panel-collapse__summary::after {
  transform: rotate(-180deg);
}
.panel-collapse__body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid var(--border);
}
.panel-collapse__lead {
  font-size: 0.85rem;
  margin: 0 0 0.85rem;
}
.sidebar-guest-panel {
  width: 100%;
  max-width: 18rem;
  margin: 0.5rem auto 0.15rem;
  padding: 0.85rem 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  text-align: center;
}
.sidebar-guest-mode {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.is-guest-user .catalog-player-bar.page-header__player-actions [data-footer-like] {
  margin-inline: auto;
}

.account-panel-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.account-panel-lead {
  margin: 0 0 1rem;
}
.account-panel-actions {
  margin-top: 0.75rem;
}
.beat-card__toolbar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.beat-card__play { margin: 0; flex-shrink: 0; }
.beat-card__actions {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.25rem;
}
.beat-card__actions .beat-catalog-actions {
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.2rem;
}
.beat-card__actions .studio-footer__status {
  width: 1.7rem;
  height: 1.7rem;
  font-size: 0.72rem;
}
.beat-card__actions .studio-footer__status--spotify {
  min-width: 2.1rem;
  font-size: 0.5rem;
  padding: 0 0.2rem;
}
.beat-card__claim {
  flex-shrink: 0;
  padding: 0.28rem 0.45rem;
  font-size: 0.72rem;
  white-space: nowrap;
}
.user-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.empty { padding: 2rem; text-align: center; color: var(--muted); background: var(--surface); border-radius: 12px; }
.card-list { display: grid; gap: 0.75rem; }
.beat-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.beat-card__head { display: flex; justify-content: space-between; margin-bottom: 0.35rem; }
.pagination { display: flex; gap: 0.35rem; margin-top: 1rem; flex-wrap: wrap; }
.pagination a { padding: 0.35rem 0.55rem; border: 1px solid var(--border); border-radius: 6px; color: var(--text); text-decoration: none; }
.pagination a.is-active { background: var(--accent); color: #101114; }
.pagination__toggle {
  margin-left: 0.25rem;
  text-decoration: none;
  align-self: center;
}
.pagination a.btn--primary,
.pagination a.btn--primary:hover {
  color: #101114;
}
.pagination__more { padding: 0.35rem 0.25rem; font-size: 0.85rem; }
.desktop-only { display: block; }
.mobile-only { display: none; }
.studio-footer {
  --studio-footer-wave-h: 88px;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  background: linear-gradient(180deg, rgba(16,17,20,0.92), #101114 30%);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  padding: 0.85rem 1rem 0.95rem;
}
.studio-footer__inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem 0.5rem;
  align-items: center;
}
.studio-footer__player {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
  width: 100%;
  grid-column: 1 / -1;
}
.studio-footer__control-group {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  flex-shrink: 0;
}
.studio-footer__mode-groups {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
  margin-left: 0.35rem;
}
.studio-footer__player > .studio-footer__control-group--beat {
  margin-left: 0.55rem;
}
.studio-footer__player > .studio-footer__control-group--volume {
  margin-left: 0.55rem;
}
.studio-footer__player > .studio-footer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.28rem 0.34rem;
  flex-shrink: 0;
}
.studio-footer__control-group--volume {
  gap: 0.35rem;
  padding: 0.08rem 0.05rem 0.08rem 0.15rem;
  border-radius: 8px;
  background: rgba(199, 244, 100, 0.04);
}
.studio-footer__control-group--ab .studio-footer__mode {
  border-color: rgba(126, 200, 255, 0.32);
  background: rgba(110, 181, 255, 0.08);
}
.studio-footer__control-group--ab .studio-footer__mode:hover {
  border-color: rgba(126, 200, 255, 0.5);
  background: rgba(110, 181, 255, 0.12);
}
.studio-footer__control-group--ab .studio-footer__mode.is-on {
  border-color: rgba(126, 200, 255, 0.75);
  color: #a8dcff;
  background: rgba(110, 181, 255, 0.18);
}
.studio-footer__control-group--ab .studio-footer__mode--save.is-save-pending:not(:disabled) {
  border-color: #e85d5d;
  color: #ff7b7b;
  background: rgba(232, 93, 93, 0.18);
}
.studio-footer__control-group--ab .studio-footer__mode--save.is-save-done:not(:disabled) {
  border-color: #5ad67a;
  color: #8ee8a8;
  background: rgba(90, 214, 122, 0.18);
}
.studio-footer__control-group--playback .studio-footer__mode {
  border-color: rgba(199, 244, 100, 0.26);
  background: rgba(199, 244, 100, 0.06);
}
.studio-footer__control-group--playback .studio-footer__mode:hover {
  border-color: rgba(199, 244, 100, 0.45);
  background: rgba(199, 244, 100, 0.1);
}
.studio-footer__control-group--playback .studio-footer__mode.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(199, 244, 100, 0.14);
}
.studio-footer__control-group--beat .studio-footer__status {
  border-color: rgba(255, 170, 150, 0.28);
  background: rgba(255, 140, 120, 0.07);
}
.studio-footer__control-group--beat .studio-footer__status:hover {
  border-color: rgba(255, 170, 150, 0.45);
  background: rgba(255, 140, 120, 0.11);
}
.studio-footer__control-group--beat .studio-footer__status.is-on {
  border-color: rgba(255, 180, 160, 0.65);
  background: rgba(255, 140, 120, 0.16);
}
.studio-footer__control-group--beat .studio-footer__status--spotify {
  border-color: rgba(30, 215, 96, 0.35);
  background: rgba(30, 215, 96, 0.08);
  color: #1ed760;
}
.studio-footer__control-group--beat .studio-footer__status--spotify.is-on {
  border-color: #5ad67a;
  color: #9ef0b8;
  background: rgba(30, 215, 96, 0.16);
}
.studio-footer__control-group--beat .btn-like {
  padding: 0.12rem 0.35rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 150, 0.3);
  background: rgba(255, 100, 130, 0.08);
}
.studio-footer__control-group--beat .btn.btn--small {
  border-color: rgba(255, 170, 150, 0.35);
  background: rgba(255, 140, 120, 0.06);
}
@media (min-width: 901px) {
  .studio-footer {
    padding: 0.72rem 1rem 0.82rem;
  }
  .studio-footer__inner {
    max-width: none;
    margin: 0;
    padding-left: 0.15rem;
    padding-right: 0.35rem;
  }
  .studio-footer__player {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0.75rem;
  }
  .studio-footer__transport {
    order: 1;
    flex: 0 0 auto;
    flex-shrink: 0;
    gap: 0.45rem;
    margin-right: 0.35rem;
  }
  .studio-footer__transport-btn {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1rem;
    border-radius: 10px;
  }
  .studio-footer__player .btn-play.is-large {
    width: 3.5rem;
    height: 3.5rem;
  }
  .studio-footer__player .btn-play.is-large .btn-play__icon {
    font-size: 0.9rem;
  }
  .studio-footer__player .btn-play.is-large .btn-play__icon--pause {
    font-size: 0.75rem;
  }
  .studio-footer__wave-block {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
  }
  .studio-footer__mode-groups {
    order: 3;
    flex-shrink: 0;
  }
  .studio-footer__player > .studio-footer__actions {
    order: 4;
    flex-shrink: 0;
    flex-wrap: nowrap;
  }
  .studio-footer__player > .studio-footer__volume {
    order: 5;
    flex-shrink: 0;
  }
  .studio-footer__player > .studio-footer__volume .studio-footer__volume-icon,
  .studio-footer__player > .studio-footer__volume .studio-footer__volume-slider-wrap {
    order: unset;
  }
}
.studio-footer__transport {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
}
.studio-footer__transport-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  padding: 0;
}
.studio-footer__transport-btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: rgba(199, 244, 100, 0.1);
}
.studio-footer__transport-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.studio-footer__mode {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.7rem;
  line-height: 1;
  padding: 0;
  opacity: 0.55;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.studio-footer__mode-svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}
.studio-footer__mode[data-footer-mode-loop] .studio-footer__mode-svg--loop-all,
.studio-footer__mode[data-footer-mode-loop] .studio-footer__mode-svg--loop-one {
  display: none;
}
.studio-footer__mode[data-footer-mode-loop][data-loop-mode="all"] .studio-footer__mode-svg--loop-off,
.studio-footer__mode[data-footer-mode-loop][data-loop-mode="all"] .studio-footer__mode-svg--loop-one {
  display: none;
}
.studio-footer__mode[data-footer-mode-loop][data-loop-mode="all"] .studio-footer__mode-svg--loop-all {
  display: block;
}
.studio-footer__mode[data-footer-mode-loop][data-loop-mode="one"] .studio-footer__mode-svg--loop-off,
.studio-footer__mode[data-footer-mode-loop][data-loop-mode="one"] .studio-footer__mode-svg--loop-all {
  display: none;
}
.studio-footer__mode[data-footer-mode-loop][data-loop-mode="one"] .studio-footer__mode-svg--loop-one {
  display: block;
}
.studio-footer__mode:hover {
  border-color: var(--accent);
  color: var(--text);
}
.studio-footer__mode.is-on {
  opacity: 1;
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(199, 244, 100, 0.12);
  box-shadow: 0 0 12px rgba(199, 244, 100, 0.15);
}
.studio-footer__mode:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.studio-footer__mode--abpt {
  font-size: 0.72rem;
  font-weight: 700;
}
.studio-footer__mode--ab-clear {
  font-size: 0.9rem;
  line-height: 1;
  color: var(--muted);
}
.studio-footer__mode--ab-clear:not(:disabled):hover {
  color: #ff7b7b;
  border-color: #e85d5d;
  background: rgba(232, 93, 93, 0.12);
}
.studio-footer__mode--abpt.is-armed {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(199, 244, 100, 0.35);
}
.studio-footer__wave-wrap.is-ab-placing {
  cursor: none;
}
.studio-footer__wave-wrap.is-wave-hover {
  cursor: none;
}
.studio-footer__wave-wrap.is-wave-rubber {
  cursor: col-resize;
  user-select: none;
  touch-action: none;
}
.studio-footer__ab-region.is-selecting {
  background: rgba(110, 181, 255, 0.32);
  border-left-color: #7ec8ff;
  border-right-color: #7ec8ff;
}
.studio-footer__wave-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  transform: translateX(-50%);
  background: #e84a4a;
  box-shadow: 0 0 6px rgba(232, 74, 74, 0.65);
  pointer-events: none;
  z-index: 5;
}
.studio-footer__wave-hover-line[hidden] {
  display: none !important;
}
.studio-footer__mode[data-footer-ab-loop] {
  font-size: 0.58rem;
  font-weight: 700;
  width: auto;
  min-width: 2.15rem;
  padding: 0 0.25rem;
}
.studio-footer__mode--save:not(:disabled) {
  opacity: 1;
}
.studio-footer__mode--save.is-save-pending:not(:disabled) {
  border-color: #e85d5d;
  color: #ff7b7b;
  background: rgba(232, 93, 93, 0.18);
  box-shadow: 0 0 10px rgba(232, 93, 93, 0.2);
}
.studio-footer__mode--save.is-save-done:not(:disabled) {
  border-color: #5ad67a;
  color: #8ee8a8;
  background: rgba(90, 214, 122, 0.18);
  box-shadow: 0 0 10px rgba(90, 214, 122, 0.15);
}
.studio-footer__ab-region {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(110, 181, 255, 0.32);
  border-left: 2px solid #7ec8ff;
  border-right: 2px solid #7ec8ff;
  pointer-events: none;
  z-index: 1;
}
.studio-footer__ab-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 14px;
  padding: 0;
  margin: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  pointer-events: auto;
  cursor: ew-resize;
  z-index: 4;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.studio-footer__ab-marker::after {
  content: "";
  flex: 1 1 auto;
  width: 2px;
  min-height: 0;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.95;
  pointer-events: none;
}
.studio-footer__ab-marker--a {
  color: #7dcea0;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}
.studio-footer__ab-marker--b {
  color: #ff9f7a;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.9);
}
.studio-footer__ab-marker.is-dragging::after {
  width: 3px;
  opacity: 1;
  box-shadow: 0 0 6px currentColor;
}
.btn-play.is-large {
  width: 2.75rem;
  height: 2.75rem;
}
.studio-footer__time {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
}
.studio-footer__volume {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 1 6.5rem;
  min-width: 4.5rem;
  max-width: 7rem;
  margin: 0;
  cursor: pointer;
}
.studio-footer__volume-icon {
  font-size: 0.85rem;
  line-height: 1;
  flex-shrink: 0;
  opacity: 0.85;
}
.studio-footer__volume-slider-wrap {
  display: block;
  flex: 1;
  min-width: 0;
}
.studio-footer__volume-slider {
  width: 100%;
  height: 4px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.studio-footer__wave-block {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1 1 10rem;
  min-width: 0;
  gap: 0.4rem;
}
.studio-footer__wave-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.studio-footer__time--cur,
.studio-footer__time--dur {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}
.studio-footer__time--dur {
  text-align: right;
}
.studio-footer__player > .studio-footer__volume {
  flex: 0 1 6.5rem;
  min-width: 4.5rem;
  max-width: 7rem;
  flex-shrink: 0;
}
.studio-footer__wave-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}
.studio-footer__wave-scroll::-webkit-scrollbar {
  height: 8px;
}
.studio-footer__wave-scroll::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 4px;
}
.studio-footer__wave-scroll::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
  border: 1px solid rgba(16, 17, 20, 0.85);
}
.studio-footer__wave-scroll::-webkit-scrollbar-thumb:hover {
  background: #d4f87a;
}
.studio-footer__wave-wrap {
  position: relative;
  height: var(--studio-footer-wave-h);
  min-width: 100%;
  cursor: pointer;
  overflow: visible;
  box-sizing: border-box;
}
.studio-footer__wave-zoom-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  margin: 0;
  position: relative;
  z-index: 6;
  pointer-events: auto;
}
.studio-footer__wave-select-zoom {
  flex-shrink: 0;
  margin: 0;
  pointer-events: auto;
  padding: 0.22rem 0.4rem;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.2;
  text-transform: uppercase;
  color: #ffffff;
  background: rgba(110, 181, 255, 0.42);
  border: 1px solid #7ec8ff;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(110, 181, 255, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.studio-footer__wave-select-zoom:hover:not(.is-disabled) {
  background: rgba(126, 200, 255, 0.55);
  border-color: #9ed8ff;
}
.studio-footer__wave-select-zoom.is-disabled {
  color: #ffffff;
  opacity: 0.38;
  cursor: not-allowed;
  box-shadow: none;
}
.studio-footer__wave-zoom-label {
  font-size: 0.62rem;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.studio-footer__wave-zoom {
  flex: 1;
  width: 100%;
  height: 4px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
}
.studio-footer__wave-zoom::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.studio-footer__wave-zoom::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(16, 17, 20, 0.9);
  box-shadow: 0 0 8px rgba(199, 244, 100, 0.35);
}
.studio-footer__wave-zoom::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: var(--bg);
  border: 1px solid var(--border);
}
.studio-footer__wave-zoom::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid rgba(16, 17, 20, 0.9);
  box-shadow: 0 0 8px rgba(199, 244, 100, 0.35);
}
.studio-footer__sections-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-height: 0;
}
.studio-footer__sections-label {
  font-size: 0.7rem;
  flex-shrink: 0;
}
.studio-footer__sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  min-width: 0;
}
.studio-footer__section-chip-wrap {
  display: inline-flex;
  align-items: stretch;
  max-width: 10rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
}
.studio-footer__section-chip-wrap:hover {
  border-color: var(--accent);
}
.studio-footer__section-chip-wrap.is-active {
  border-color: var(--accent);
  background: rgba(199, 244, 100, 0.12);
}
.studio-footer__section-chip {
  font-size: 0.68rem;
  padding: 0.15rem 0.35rem 0.15rem 0.45rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.studio-footer__section-chip-wrap:hover .studio-footer__section-chip {
  color: var(--accent);
}
.studio-footer__section-chip-wrap.is-active .studio-footer__section-chip {
  color: var(--accent);
}
.studio-footer__section-chip-remove {
  flex-shrink: 0;
  width: 1.35rem;
  padding: 0;
  border: none;
  border-left: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}
.studio-footer__section-chip-wrap:hover .studio-footer__section-chip-remove {
  border-left-color: rgba(199, 244, 100, 0.35);
  color: #ff8a8a;
}
.studio-footer__section-chip-remove:hover {
  background: rgba(232, 93, 93, 0.2);
  color: #ff6b6b;
}
.studio-footer__section-dialog {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.25rem 1rem 8.5rem;
  overflow-y: auto;
  box-sizing: border-box;
}
.studio-footer__section-dialog[hidden] {
  display: none !important;
}
.studio-footer__section-dialog-inner {
  width: min(100%, 22rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.studio-footer__section-dialog-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.studio-footer__section-dialog-hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
}
.studio-footer__section-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.studio-footer__section-presets .btn.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(199, 244, 100, 0.12);
}
.studio-footer__section-custom {
  display: block;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}
.studio-footer__section-custom-input {
  width: 100%;
  margin-top: 0.25rem;
  background: var(--elevated);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
}
.studio-footer__section-dialog-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.studio-footer__wave-wrap .studio-footer__wave {
  border-radius: 8px;
}
.studio-footer__wave {
  width: 100%;
  height: var(--studio-footer-wave-h);
  display: block;
}
.studio-footer__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  z-index: 3;
  background: transparent;
  pointer-events: none;
  border-right: 2px solid var(--accent);
}
.studio-footer__action { flex-shrink: 0; }
.studio-footer__claim-gap {
  flex: 0 0 5.75rem;
  width: 5.75rem;
  min-width: 5.75rem;
  max-width: 5.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
}
.studio-footer__claim {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  text-align: center;
}
.studio-footer__claim--free .tag {
  flex-shrink: 0;
}
.studio-footer__statuses { display: flex; gap: 0.2rem; }
.studio-footer__status {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.45;
  padding: 0;
}
.studio-footer__status.is-on {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(199, 244, 100, 0.12);
}
.studio-footer__status--spotify {
  width: auto;
  min-width: 2.6rem;
  height: 2rem;
  padding: 0 0.45rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #1ed760;
  opacity: 0.55;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
}
.studio-footer__status--spotify.is-on {
  opacity: 1;
  border-color: #5ad67a;
  color: #9ef0b8;
  background: rgba(30, 215, 96, 0.14);
}
.spotify-link-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}
.spotify-link-remove {
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #ff5c5c;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.spotify-link-remove:hover {
  color: #ff8585;
  background: rgba(255, 92, 92, 0.12);
}
.spotify-link-popover {
  position: absolute;
  z-index: 30;
  right: 0;
  bottom: calc(100% + 0.35rem);
  min-width: 14rem;
  padding: 0.5rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.spotify-link-popover__title {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.spotify-link-popover__input {
  width: 100%;
  margin-bottom: 0.4rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: inherit;
  font: inherit;
  font-size: 0.78rem;
  box-sizing: border-box;
}
.spotify-link-popover__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.spotify-link-popover__actions .btn--ghost {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.68rem;
  padding: 0.3rem 0.45rem;
  white-space: normal;
  line-height: 1.2;
  text-align: center;
}
#studio-footer .spotify-link-popover {
  z-index: 10002;
  min-width: 16rem;
}
.data-table--catalog .studio-footer__status--spotify {
  min-width: 2.35rem;
  font-size: 0.55rem;
  padding: 0 0.25rem;
}
.studio-footer__audio { display: none; }
.studio-footer__scroll-top {
  display: none;
}
@media (max-width: 900px) {
  .studio-footer__scroll-top {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -58%);
    z-index: 110;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(199, 244, 100, 0.45);
    background: rgba(16, 17, 20, 0.96);
    color: var(--accent);
    font: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    white-space: nowrap;
  }
  .studio-footer__scroll-top:hover {
    background: rgba(199, 244, 100, 0.12);
    border-color: var(--accent);
  }
  .studio-footer__scroll-top:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }
  .studio-footer {
    padding-top: 0.85rem;
  }
  .studio-footer__inner {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  .studio-footer__player {
    --studio-footer-wave-lane: var(--studio-footer-wave-h);
    --footer-ui-scale: 1;
    grid-column: 1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "transport modes"
      "wave wave"
      "actions actions";
    align-items: center;
    column-gap: 0.35rem;
    row-gap: 0.38rem;
    flex-wrap: unset;
    width: 100%;
    max-width: 100%;
  }
  .has-studio-footer .main { padding-bottom: 14rem; }
  .studio-footer__transport {
    grid-area: transport;
    justify-self: start;
    position: relative;
    z-index: 3;
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: calc(0.25rem * var(--footer-ui-scale));
  }
  .studio-footer__mode-groups {
    grid-area: modes;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    min-width: 0;
    max-width: 100%;
    gap: calc(0.32rem * var(--footer-ui-scale));
    margin-left: 0;
    position: relative;
    z-index: 2;
    overflow: hidden;
  }
  .studio-footer__mode-groups .studio-footer__control-group {
    flex-shrink: 0;
    flex-wrap: nowrap;
    gap: calc(0.2rem * var(--footer-ui-scale));
  }
  .studio-footer__player > .studio-footer__control-group--volume {
    display: none !important;
  }
  .studio-footer__wave-block {
    grid-area: wave;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: var(--studio-footer-wave-lane) auto;
    align-items: center;
    column-gap: 0.28rem;
    row-gap: 0.28rem;
    width: 100%;
    min-width: 0;
    min-height: 0;
  }
  .studio-footer__wave-mid {
    display: contents;
  }
  .studio-footer__time--cur {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    justify-self: center;
    min-width: 1.95rem;
    font-size: calc(0.7rem * var(--footer-ui-scale));
    line-height: 1;
  }
  .studio-footer__time--dur {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    min-width: 1.95rem;
    font-size: calc(0.7rem * var(--footer-ui-scale));
    line-height: 1;
    text-align: right;
  }
  .studio-footer__wave-scroll {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    min-width: 0;
    width: 100%;
  }
  .studio-footer__wave-zoom-wrap {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    width: 100%;
  }
  .studio-footer__player > .studio-footer__actions {
    grid-area: actions;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: calc(0.45rem * var(--footer-ui-scale));
    margin-left: 0;
    overflow: hidden;
  }
  .studio-footer__action.btn-like {
    flex-shrink: 0;
    margin-right: 0.15rem;
  }
  .studio-footer__statuses {
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    max-width: 100%;
    gap: 0.5rem;
  }
  .studio-footer__statuses .studio-footer__status:not(.studio-footer__status--spotify) {
    width: calc(1.85rem * var(--footer-ui-scale));
    height: calc(1.85rem * var(--footer-ui-scale));
    font-size: calc(0.8rem * var(--footer-ui-scale));
    flex-shrink: 0;
  }
  .studio-footer__statuses .studio-footer__status--spotify {
    width: auto;
    min-width: calc(2.9rem * var(--footer-ui-scale));
    height: calc(1.85rem * var(--footer-ui-scale));
    font-size: calc(0.5rem * var(--footer-ui-scale));
    padding: 0 calc(0.38rem * var(--footer-ui-scale));
    letter-spacing: 0;
    flex-shrink: 0;
  }
  .studio-footer__player > .studio-footer__control-group--beat {
    margin-left: 0;
    flex-shrink: 0;
  }
  .studio-footer__transport-btn {
    width: calc(2rem * var(--footer-ui-scale));
    height: calc(2rem * var(--footer-ui-scale));
    font-size: calc(0.75rem * var(--footer-ui-scale));
    flex-shrink: 0;
  }
  .studio-footer__player .btn-play.is-large {
    width: calc(2.75rem * var(--footer-ui-scale));
    height: calc(2.75rem * var(--footer-ui-scale));
    flex-shrink: 0;
  }
  .studio-footer__mode {
    width: calc(2rem * var(--footer-ui-scale));
    height: calc(2rem * var(--footer-ui-scale));
    font-size: calc(0.7rem * var(--footer-ui-scale));
    flex-shrink: 0;
  }
  .studio-footer__mode-svg {
    width: calc(1.15rem * var(--footer-ui-scale));
    height: calc(1.15rem * var(--footer-ui-scale));
  }
  .studio-footer__action.btn-like {
    font-size: calc(0.85rem * var(--footer-ui-scale));
    flex-shrink: 0;
  }
  .studio-footer__player .btn.btn--small {
    font-size: calc(0.72rem * var(--footer-ui-scale));
    padding: calc(0.28rem * var(--footer-ui-scale)) calc(0.45rem * var(--footer-ui-scale));
    flex-shrink: 0;
  }
  .studio-footer__claim,
  .studio-footer__pending {
    font-size: calc(0.72rem * var(--footer-ui-scale));
    flex-shrink: 0;
    white-space: nowrap;
  }
  .studio-footer__transport-btn,
  .studio-footer__play,
  .studio-footer__mode,
  .studio-footer__action,
  .studio-footer__status {
    touch-action: manipulation;
  }
}
@media (max-width: 420px) {
  .studio-footer__player { --footer-ui-scale: 0.94; }
}
@media (max-width: 380px) {
  .studio-footer__player { --footer-ui-scale: 0.88; }
}
@media (max-width: 340px) {
  .studio-footer__player { --footer-ui-scale: 0.82; }
}
@media (max-width: 768px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border);
    position: static;
    height: auto;
    max-height: none;
    overflow: visible;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    padding: 0.55rem 0.65rem 0.85rem;
  }
  .has-studio-footer .sidebar {
    padding-bottom: 0.85rem;
  }
  .sidebar-brand-row {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: start;
    width: 100%;
    min-height: 2.35rem;
    padding: 0;
    box-sizing: border-box;
  }
  .sidebar-brand-row .brand {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    display: flex;
    justify-content: center;
    width: auto;
    max-width: 100%;
    margin: 0;
  }
  .sidebar-version {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    align-self: start;
    position: static;
    margin: 0.1rem 0 0;
    z-index: 1;
  }
  .sidebar .brand-logo {
    max-width: min(160px, 48vw);
    margin: 0 auto;
  }
  .sidebar-studio {
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0;
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.25;
  }
  .sidebar-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.55rem;
    height: 2.55rem;
    margin: 0.65rem auto 0.15rem;
    padding: 0;
    border: 1px solid rgba(199, 244, 100, 0.35);
    border-radius: 10px;
    background: var(--elevated);
    color: var(--accent);
    cursor: pointer;
    flex-shrink: 0;
  }
  .sidebar-nav-toggle:hover,
  .sidebar-nav-toggle:focus-visible {
    border-color: rgba(199, 244, 100, 0.45);
    background: rgba(199, 244, 100, 0.08);
    outline: none;
  }
  .sidebar.is-nav-open .sidebar-nav-toggle {
    border-color: rgba(199, 244, 100, 0.55);
    background: rgba(199, 244, 100, 0.12);
  }
  .sidebar-nav-toggle__bars {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 1.25rem;
  }
  .sidebar-nav-toggle__bars span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--accent);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .sidebar.is-nav-open .sidebar-nav-toggle__bars span:nth-child(1) {
    transform: translateY(0.42rem) rotate(45deg);
  }
  .sidebar.is-nav-open .sidebar-nav-toggle__bars span:nth-child(2) {
    opacity: 0;
  }
  .sidebar.is-nav-open .sidebar-nav-toggle__bars span:nth-child(3) {
    transform: translateY(-0.42rem) rotate(-45deg);
  }
  .sidebar-nav-panel {
    flex: none;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin 0.22s ease;
    margin-top: 0;
  }
  .sidebar.is-nav-open .sidebar-nav-panel {
    max-height: min(88vh, 34rem);
    opacity: 1;
    margin-top: 0.4rem;
    overflow-y: auto;
  }
  .nav {
    flex: none;
    overflow: visible;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    width: 100%;
    max-width: 18rem;
    margin: 0 auto;
    padding: 0;
  }
  .nav a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 2.65rem;
    padding: 0.45rem 0.65rem;
    font-size: 0.82rem;
    line-height: 1.2;
    background: var(--elevated);
    border: 1px solid var(--border);
    font-weight: 600;
    border-radius: 8px;
  }
  .nav a.nav-link--badge {
    flex-wrap: wrap;
    gap: 0.25rem 0.4rem;
  }
  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(199, 244, 100, 0.1);
    border-color: rgba(199, 244, 100, 0.35);
  }
  .sidebar-nav-panel .sidebar-foot {
    width: 100%;
    max-width: 18rem;
    margin: 0.75rem auto 0;
    padding-top: 0.75rem;
    gap: 0.45rem;
    align-items: stretch;
    text-align: center;
    border-top: 1px solid var(--border);
  }
  .user-chip {
    width: 100%;
    text-align: center;
    margin: 0;
  }
  .studio-switch-form {
    width: 100%;
    max-width: 18rem;
    text-align: center;
  }
  .studio-switch-form select {
    text-align: center;
  }
  .has-studio-footer .sidebar-foot {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
  }
  .has-studio-footer .studio-footer { left: 0; }
  .desktop-only { display: none; }
  .mobile-only { display: grid; }
}
