* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: #0c1628;
  color: #eaf2ff;
}
[hidden] {
  display: none !important;
}
.top {
  padding: 16px 18px;
  border-bottom: 1px solid #223b5f;
  background: linear-gradient(180deg,#132743,#0f1f36);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.top h1 { margin: 0; font-size: 26px; }
.top .sub { margin-top: 4px; color: #8ea5c8; font-size: 13px; }
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  position: relative;
}
.auth-summary {
  color: #9fb6d8;
  font-size: 13px;
}
.top-action-panel {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.mobile-top-menu-btn {
  display: none;
}
.mobile-nav {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: #102440;
  border-top: 1px solid #2a4166;
  padding: 8px;
  gap: 8px;
}
.mobile-nav button {
  flex: 1 1 0;
  min-height: 40px;
  white-space: nowrap;
}
.mobile-nav button.active {
  border-color: #8dd6ff;
  box-shadow: 0 0 0 1px rgba(141, 214, 255, 0.4) inset;
}

.layout {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 12px;
}
.card {
  background: #132540;
  border: 1px solid #2a4166;
  border-radius: 10px;
  padding: 10px;
}
.card h2 {
  margin: 0 0 10px;
  font-size: 17px;
  color: #8dd6ff;
}

.workspace { grid-column: span 12; }
.chat { grid-column: span 2; min-height: 280px; }
.course { grid-column: span 12; }
.editor { grid-column: span 3; min-height: 280px; }
.producer { grid-column: span 7; }
.songs { grid-column: span 12; }

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
  align-items: center;
}
.workspace-meta {
  justify-content: space-between;
}
.workspace.collapsed #workspaceBody {
  display: none;
}
.card > summary {
  cursor: pointer;
  color: #8dd6ff;
  font-weight: 700;
  margin-bottom: 10px;
}
.card[open] > summary {
  margin-bottom: 12px;
}
.card.locked {
  border-style: dashed;
}
.card.locked a,
.card.locked .clip,
.card.locked .song-head {
  pointer-events: none;
}
label { color: #a8d5ff; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
input, select, textarea, button {
  border-radius: 6px;
  border: 1px solid #6e8fbe;
}
input, select, textarea {
  background: #fff;
  color: #081426;
  padding: 8px;
}
textarea {
  width: 100%;
  min-height: 220px;
  resize: vertical;
}
.chat-input {
  min-height: 64px;
  resize: vertical;
}
button {
  background: linear-gradient(180deg,#2b4f81,#1e3c66);
  color: #eaf2ff;
  font-weight: 600;
  padding: 8px 12px;
  min-height: 36px;
  cursor: pointer;
}
button:hover { filter: brightness(1.08); }

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 6px;
  border: 1px solid #6e8fbe;
  background: linear-gradient(180deg,#2b4f81,#1e3c66);
  color: #eaf2ff;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
}
.button-link:hover {
  filter: brightness(1.08);
}
.button-link.secondary {
  background: transparent;
}
.landing-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.5;
}
.landing-list li {
  margin-bottom: 6px;
}
.landing-hero p {
  margin-top: 0;
  color: #d6e6ff;
}
.landing-footer {
  margin: 0 12px 12px;
  border: 1px solid #2a4166;
  border-radius: 10px;
  background: #132540;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.landing-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.landing-links a {
  color: #8dd6ff;
  text-decoration: underline;
}
.landing-links a:hover {
  color: #cce8ff;
}

#promptInput, #tagsInput, #negativeTagsInput { flex: 1 1 260px; }
#courseLessonSelect { min-width: 300px; }
#courseSubmissionType { min-width: 220px; }
#courseSubmissionBody { min-height: 120px; }
#courseArticleBody { min-height: 280px; max-height: 62vh; }
#courseInstructions { min-height: 150px; max-height: 340px; }
#courseLessonMeta, #courseProgressSummary {
  margin: 4px 0 8px;
}
#courseArticleTitle, #courseReadingRefs {
  margin: 4px 0 8px;
}
#courseFeedback {
  margin-top: 6px;
}
.course-history-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.course-history-item {
  border: 1px solid #2a4166;
  border-radius: 8px;
  background: #0b1524;
  padding: 10px 12px;
}
.course-history-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.course-history-attempt {
  font-weight: 700;
  color: #eaf3ff;
}
.course-history-score {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d6e6ff;
  font-size: 13px;
}
.course-badge-pass,
.course-badge-revise {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.course-badge-pass {
  border: 1px solid #2d8f5a;
  background: #103526;
  color: #8df0c0;
}
.course-badge-revise {
  border: 1px solid #94603a;
  background: #3a2413;
  color: #ffcd9f;
}
.course-history-time {
  margin-left: auto;
}
.course-history-details summary {
  cursor: pointer;
  color: #9fd3ff;
  font-size: 13px;
}
.course-history-content {
  margin-top: 8px;
}
.course-history-label {
  font-size: 13px;
  color: #bed5f6;
  margin-bottom: 6px;
}
.course-history-body {
  margin: 0 0 10px;
  padding: 10px;
  border: 1px solid #2a4166;
  border-radius: 6px;
  background: #06101f;
  color: #d8e8ff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
}
.course-history-feedback {
  margin: 0 0 6px;
  color: #d6e6ff;
  font-size: 13px;
  line-height: 1.45;
}
.course-history-feedback:last-child {
  margin-bottom: 0;
}
.lesson-rich {
  margin: 0;
  padding: 14px 16px;
  background: #0b1524;
  border: 1px solid #2a4166;
  border-radius: 6px;
  color: #d8e8ff;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.58;
  overflow: auto;
}
.lesson-rich h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
  color: #eaf3ff;
}
.lesson-rich h4 {
  margin: 12px 0 8px;
  font-size: 15px;
  color: #c9dfff;
}
.lesson-rich p {
  margin: 0 0 12px;
}
.lesson-rich p:last-child {
  margin-bottom: 0;
}
.lesson-rich ol,
.lesson-rich ul {
  margin: 0 0 14px 24px;
  padding: 0;
}
.lesson-rich li {
  margin: 0 0 8px;
}
.lesson-rich li:last-child {
  margin-bottom: 0;
}
.lesson-rich strong {
  color: #f3f8ff;
}
#projectSelect, #sessionSelect { min-width: 230px; }
#newProjectName, #newSessionName { min-width: 240px; }
#redeemCodeInput { min-width: 260px; }
#email, #password, #token { min-width: 220px; }

.hint { color: #9fb6d8; font-size: 13px; }
.hint.error { color: #ffc5c5; }
.plan {
  margin: 0;
  padding: 10px;
  background: #0b1524;
  border: 1px solid #2a4166;
  border-radius: 6px;
  color: #cfe2ff;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
}
.chat-messages {
  border: 1px solid #2a4166;
  border-radius: 6px;
  background: #0b1524;
  padding: 8px;
  max-height: 260px;
  overflow: auto;
  margin-bottom: 8px;
}
.chat-msg {
  margin-bottom: 8px;
  padding: 7px 8px;
  border-radius: 6px;
  border: 1px solid #2a4166;
  line-height: 1.35;
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
}
.chat-msg.user {
  background: #102440;
}
.chat-msg.assistant {
  background: #162b45;
}
.chat-msg .chat-role {
  display: block;
  font-size: 12px;
  color: #8dd6ff;
  margin-bottom: 2px;
  font-weight: 700;
}
.chat-text {
  white-space: pre-wrap;
  user-select: text;
  -webkit-user-select: text;
}
.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.chat-actions button {
  min-height: 32px;
  padding: 6px 10px;
  font-size: 13px;
}
.song-item {
  border: 1px solid #2a4166;
  border-left: 4px solid #2a4166;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: #0f1f36;
  transition: border-color 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease, transform 0.14s ease;
}
.song-item.clip-swipeable {
  touch-action: pan-y;
}
.song-item.clip-swipeable.swipe-active {
  transition: none;
}
.song-item.clip-swipeable.swipe-archive {
  box-shadow: 0 0 0 1px rgba(55, 192, 127, 0.45) inset;
  background: #103023;
}
.song-item.clip-swipeable.swipe-discard {
  box-shadow: 0 0 0 1px rgba(226, 122, 122, 0.45) inset;
  background: #311a1a;
}
.song-item.selected {
  border-color: #7bb8ff;
  border-left-color: #ffe082;
  box-shadow: 0 0 0 1px rgba(123, 184, 255, 0.4) inset;
  background: #112746;
}
.song-item.bulk-selected {
  box-shadow: 0 0 0 1px rgba(118, 212, 255, 0.24) inset;
}
.song-item.playing {
  border-color: #4ccf8f;
  border-left-color: #62e8a6;
  box-shadow: 0 0 0 1px rgba(98, 232, 166, 0.35) inset, 0 0 10px rgba(98, 232, 166, 0.14);
  background: #102a26;
}
.song-item.selected.playing {
  border-left-color: #ffe082;
  box-shadow: 0 0 0 1px rgba(123, 184, 255, 0.4) inset, 0 0 10px rgba(98, 232, 166, 0.2);
}
.song-item.archived {
  opacity: 0.84;
}
.song-item.state-pending { border-left-color: #7a8da9; }
.song-item.state-running { border-left-color: #8db5ff; }
.song-item.state-succeeded { border-left-color: #37c07f; }
.song-item.state-success { border-left-color: #37c07f; }
.song-item.state-ready { border-left-color: #37c07f; }
.song-item.state-failed { border-left-color: #e27a7a; }
.song-item.state-error { border-left-color: #e27a7a; }
.song-item.state-canceled { border-left-color: #d4a45e; }
.song-item.state-unknown { border-left-color: #5c6f89; }
.song-item.finished {
  box-shadow: inset 0 0 0 1px rgba(255, 224, 130, 0.35);
}
.mobile-master-toggle {
  margin-left: auto;
}
.song-control-panel {
  border: 1px solid #2a4166;
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 10px;
  background: #0e1e34;
}
.producer-deck {
  display: grid;
  gap: 12px;
}
.producer-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 12px;
}
.producer-hero-grid > * {
  min-width: 0;
}
.producer-surface {
  border: 1px solid rgba(54, 82, 124, 0.95);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at top right, rgba(120, 162, 214, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(12, 28, 49, 0.98), rgba(8, 19, 34, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 24px rgba(4, 10, 18, 0.18);
}
.producer-core-surface {
  background:
    radial-gradient(circle at top right, rgba(69, 168, 217, 0.14), transparent 30%),
    linear-gradient(180deg, rgba(13, 32, 56, 0.98), rgba(8, 20, 36, 0.96));
}
.producer-prompt-surface {
  background:
    radial-gradient(circle at top right, rgba(255, 209, 122, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(17, 30, 52, 0.98), rgba(9, 18, 32, 0.96));
}
.producer-reference-surface {
  background:
    radial-gradient(circle at top right, rgba(162, 122, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(13, 27, 49, 0.98), rgba(7, 18, 31, 0.96));
}
.producer-surface-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.producer-surface-kicker {
  color: #8dd6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.producer-surface-note {
  color: #7f9fc9;
  font-size: 12px;
}
.producer-identity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.producer-band-strip {
  width: 100%;
}
.producer-band-strip-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.55fr);
  gap: 10px;
  align-items: start;
}
.producer-band-actions {
  justify-content: flex-end;
}
.producer-select-tile {
  min-width: 0;
  display: grid;
  gap: 6px;
  align-items: start;
  padding: 10px 12px;
  border: 1px solid rgba(75, 105, 148, 0.88);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(180deg, rgba(19, 34, 58, 0.98), rgba(10, 19, 34, 0.96));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.producer-select-tile select,
.producer-select-tile input {
  width: 100%;
  min-width: 0;
}
.producer-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.producer-toggle-row .studio-toggle {
  flex: 1 1 220px;
}
.producer-prompt-field input {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border-color: rgba(103, 137, 185, 0.88);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.06);
}
.producer-generate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.producer-generate-grid button {
  min-height: 48px;
}
.producer-primary-fire {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.14), transparent 26%),
    linear-gradient(180deg, #2f6ea8, #1b4f86);
  box-shadow:
    0 0 0 1px rgba(153, 218, 255, 0.18),
    0 12px 24px rgba(4, 18, 34, 0.22);
}
.producer-reference-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: start;
}
.reference-mode-bank {
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid rgba(95, 109, 164, 0.5);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(175, 153, 255, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(24, 29, 56, 0.98), rgba(11, 15, 33, 0.96));
}
.reference-mode-bank-label {
  margin-bottom: 8px;
}
.reference-mode-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.reference-mode-chip {
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 104, 168, 0.42);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(180deg, rgba(44, 35, 73, 0.98), rgba(19, 15, 34, 0.96));
  color: #f1eaff;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.reference-mode-chip.active {
  border-color: rgba(196, 160, 255, 0.72);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(180deg, rgba(109, 76, 187, 0.98), rgba(59, 37, 112, 0.96));
  box-shadow:
    0 0 0 1px rgba(205, 182, 255, 0.22),
    0 12px 20px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.producer-reference-status {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.producer-reference-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.producer-reference-mode-tile {
  min-width: 180px;
}
.producer-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.producer-mini-surface {
  min-width: 0;
}
.producer-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.producer-shaping-grid {
  display: grid;
  gap: 10px;
}
.producer-identity-actions {
  display: grid;
  gap: 10px;
}
.producer-button-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.producer-button-bank button {
  min-height: 40px;
}
.control-group {
  border: 1px solid rgba(42, 65, 102, 0.9);
  border-radius: 8px;
  padding: 8px;
  margin-bottom: 8px;
  background: rgba(10, 24, 43, 0.45);
}
.control-group:last-child {
  margin-bottom: 0;
}
.control-group-label {
  margin: 0 0 8px;
  color: #8dd6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tactile-hidden-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.studio-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 10px 14px;
  border: 1px solid rgba(75, 105, 148, 0.88);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(120, 162, 214, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(18, 34, 58, 0.98), rgba(10, 20, 36, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 18px rgba(5, 12, 22, 0.18);
  cursor: pointer;
}
.studio-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.studio-toggle-ui {
  position: relative;
  width: 50px;
  height: 28px;
  flex: 0 0 auto;
}
.studio-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #223754, #101c2f);
  border: 1px solid rgba(123, 156, 202, 0.36);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.4);
}
.studio-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f6f9ff, #9ebbe7);
  box-shadow:
    0 2px 8px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.7);
  transition: transform 0.18s ease, background 0.18s ease;
}
.studio-toggle-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.studio-toggle-copy strong {
  font-size: 13px;
  color: #ecf4ff;
}
.studio-toggle-copy span {
  font-size: 11px;
  color: #9cb4d8;
}
.studio-toggle input:checked + .studio-toggle-ui .studio-toggle-track {
  background: linear-gradient(180deg, #235c8d, #123b61);
  border-color: rgba(126, 224, 255, 0.45);
}
.studio-toggle input:checked + .studio-toggle-ui .studio-toggle-thumb {
  transform: translateX(22px);
  background: linear-gradient(180deg, #dbfff3, #73e4bf);
}
.vocal-bank {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(75, 105, 148, 0.88);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(173, 129, 235, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(22, 30, 58, 0.98), rgba(11, 17, 35, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 10px 18px rgba(5, 12, 22, 0.18);
}
.vocal-bank-label {
  margin-bottom: 8px;
}
.vocal-quick-select {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(99, 83, 146, 0.34);
  border-radius: 16px;
  background: rgba(10, 14, 28, 0.34);
}
.vocal-chip {
  min-height: 48px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(116, 104, 168, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(180deg, rgba(31, 24, 51, 0.98), rgba(16, 12, 28, 0.96));
  color: #d8ccf4;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    inset 0 -1px 0 rgba(0,0,0,0.18);
}
.vocal-chip.active {
  border-color: rgba(196, 160, 255, 0.72);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.16), transparent 26%),
    linear-gradient(180deg, rgba(109, 76, 187, 0.98), rgba(59, 37, 112, 0.96));
  box-shadow:
    0 0 0 1px rgba(205, 182, 255, 0.22),
    0 12px 20px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.reference-dial-card {
  position: relative;
  min-width: 220px;
  padding: 12px 14px;
  border: 1px solid rgba(75, 105, 148, 0.88);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(120, 162, 214, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(18, 34, 58, 0.98), rgba(10, 20, 36, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 20px rgba(5, 12, 22, 0.18);
}
.reference-dial-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.reference-dial-label {
  margin: 0;
}
.reference-dial-readout {
  color: #dff3ff;
  font-size: 12px;
  font-weight: 700;
}
.reference-dial-face {
  display: flex;
  justify-content: center;
  padding: 10px 0 8px;
}
.reference-dial-badge {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(132, 170, 219, 0.38);
  background:
    radial-gradient(circle at 35% 30%, rgba(255,255,255,0.24), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(69, 125, 191, 0.35), rgba(11, 22, 38, 0.95) 72%);
  color: #eef7ff;
  font-size: 15px;
  font-weight: 800;
  box-shadow:
    inset 0 2px 5px rgba(255,255,255,0.08),
    0 10px 20px rgba(0,0,0,0.28);
}
.reference-strength-slider {
  width: 100%;
  accent-color: #7ee0ff;
  margin: 2px 0 6px;
}
.reference-strength-stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-size: 11px;
  color: #a4bddf;
  text-align: center;
}
.mastering-console {
  position: relative;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(75, 105, 148, 0.88);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 216, 126, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(26, 31, 44, 0.98), rgba(12, 17, 28, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.04),
    0 12px 20px rgba(5, 12, 22, 0.18);
}
.mastering-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.mastering-console-label {
  color: #ffdba3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mastering-console-readout {
  color: #fff1db;
  font-size: 12px;
  font-weight: 700;
}
.mastering-console-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}
.mastering-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.master-preset-btn {
  min-height: 46px;
  padding: 8px 10px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid rgba(151, 126, 77, 0.44);
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 28%),
    linear-gradient(180deg, rgba(55, 44, 24, 0.98), rgba(20, 17, 11, 0.96));
}
.master-preset-btn strong {
  display: block;
  font-size: 12px;
  color: #fff1db;
}
.master-preset-btn span {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #d9c3a0;
}
.master-preset-btn.active {
  border-color: rgba(255, 213, 132, 0.62);
  box-shadow:
    0 0 0 1px rgba(255, 213, 132, 0.28),
    0 12px 20px rgba(0,0,0,0.2);
  transform: translateY(-1px);
}
.mastering-fire-btn {
  min-width: 132px;
  min-height: 46px;
  align-self: stretch;
}
.song-control-panel .advanced-access {
  margin-top: 8px;
}
.song-advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.song-advanced-bank {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(54, 82, 124, 0.85);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(120, 162, 214, 0.06), transparent 28%),
    linear-gradient(180deg, rgba(13, 27, 49, 0.98), rgba(8, 18, 31, 0.96));
}
.song-advanced-label {
  margin-bottom: 8px;
  color: #8dd6ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.song-advanced-bank .row:last-child {
  margin-bottom: 0;
}
.song-advanced-field {
  margin-bottom: 8px;
}
.song-advanced-field input {
  width: 100%;
}
.song-advanced-stem-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.song-advanced-stem-row label {
  font-size: 12px;
  font-weight: 700;
  color: #b8d4f4;
}
.song-advanced-stem-row select {
  min-width: 120px;
}
.song-action-status {
  margin-top: 8px;
  min-height: 20px;
  color: #9fb6d8;
  font-size: 12px;
  line-height: 1.4;
}
.song-action-status.error {
  color: #ffc5c5;
}
.song-action-status.busy {
  color: #9ee8ff;
}
.producer .control-group {
  background: #0f1f36;
}
.producer .action-scroll,
.song-control-panel .action-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  overflow: visible;
  padding-bottom: 0;
}
.producer .action-scroll > *,
.song-control-panel .action-scroll > * {
  flex: 0 0 auto;
}
.producer .action-scroll button,
.song-control-panel .action-scroll button {
  white-space: nowrap;
}
.producer-primary-actions button {
  min-width: 148px;
}
.producer-reference-row button {
  min-width: 170px;
}
.session-reference-label {
  flex: 1 1 340px;
  min-width: 220px;
}
.producer-mode-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 8px 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(42, 65, 102, 0.9);
  border-radius: 8px;
  background: #0f1f36;
}
.producer-mode-summary .badge {
  display: inline-flex;
  align-items: center;
}
.badge.persona-mode { background: #7a4cb2; color: #f5edff; }
.badge.persona-detail { background: #4f5f8f; color: #eef3ff; }
.badge.band-mode { background: #236f85; color: #ecfbff; }
.badge.band-genre { background: #36507f; color: #edf3ff; }
.badge.normal-mode { background: #506178; color: #edf3ff; }
.badge.reference-mode { background: #5f4a90; color: #f3ecff; }
.library-playback-panel {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.song-control-panel .library-playback-panel #player {
  width: 100%;
  margin: 0;
}
.clip-bulk-actions {
  margin: 10px 0 8px;
  padding: 10px;
  border: 1px solid #2a4166;
  border-radius: 8px;
  background: #0f1f36;
}
.clip-bulk-actions > .row {
  margin-top: 8px;
}
.clip-bulk-actions .action-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.clip-bulk-actions .action-scroll button {
  white-space: nowrap;
}
.trash-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.song-item.trashed {
  border-style: dashed;
  opacity: 0.92;
}
.trash-actions {
  margin-top: 0.75rem;
}
.overlay-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(3, 10, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.overlay-modal[hidden] {
  display: none !important;
}
.overlay-card {
  width: min(860px, 100%);
  max-height: min(80vh, 760px);
  overflow: auto;
  border: 1px solid #2a4166;
  border-radius: 10px;
  padding: 10px;
  background: #10233f;
}
.quick-start-card {
  width: min(960px, 100%);
}
.quick-start-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.quick-start-panel {
  border: 1px solid #2a4166;
  border-radius: 10px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(8, 22, 43, 0.96), rgba(9, 20, 36, 0.98));
}
.quick-start-panel h3 {
  margin: 0 0 8px;
  color: #dfeaff;
}
.quick-start-panel-wide {
  grid-column: 1 / -1;
}
.quick-start-list {
  margin: 0;
  padding-left: 18px;
}
.quick-start-list li {
  margin: 0 0 6px;
}
.quick-start-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quick-start-tags span {
  border: 1px solid #33527e;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(18, 41, 74, 0.92);
  color: #cfe4ff;
  font-size: 13px;
}
.quick-start-panel pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: Consolas, "Courier New", monospace;
  color: #eaf2ff;
}
.reference-picker-list {
  margin-top: 8px;
  display: grid;
  gap: 8px;
}
.reference-picker-item {
  border: 1px solid #2a4166;
  border-radius: 8px;
  padding: 8px;
  background: #0d1f38;
}
.reference-picker-item .title {
  color: #dce9ff;
  font-weight: 700;
}
.reference-picker-item .meta {
  color: #9fb6d8;
  font-size: 13px;
  margin-top: 4px;
}
.song-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}
.clip-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.clip-bulk-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #b9c9e3;
  font-size: 12px;
  cursor: pointer;
  user-select: none;
}
.clip-bulk-select input {
  margin: 0;
}
.song-title-link {
  color: #eaf2ff;
  margin-right: 8px;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(141, 214, 255, 0.4);
  text-underline-offset: 2px;
}
.song-title-link:hover {
  color: #8dd6ff;
}
.song-title-link.state-pending,
.clip-title-link.state-pending { color: #d6e2f7; }
.song-title-link.state-running,
.clip-title-link.state-running { color: #9bc7ff; }
.song-title-link.state-succeeded,
.song-title-link.state-success,
.song-title-link.state-ready,
.clip-title-link.state-succeeded,
.clip-title-link.state-success,
.clip-title-link.state-ready { color: #7ce9af; }
.song-title-link.state-failed,
.song-title-link.state-error,
.clip-title-link.state-failed,
.clip-title-link.state-error { color: #ff9f9f; }
.song-title-link.state-canceled,
.clip-title-link.state-canceled { color: #f0c47a; }
.song-item.selected .song-title-link,
.song-item.selected .clip-title-link {
  color: #ffe082;
  text-decoration-color: rgba(255, 224, 130, 0.75);
}
.song-title-link:focus-visible {
  outline: 2px solid #7bb8ff;
  outline-offset: 2px;
  border-radius: 4px;
}
.badge {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #f3f8ff;
  text-transform: lowercase;
  letter-spacing: 0.2px;
}
.badge.pending { background: #5c6f89; }
.badge.running { background: #6f84a8; }
.badge.succeeded { background: #2b8a57; }
.badge.success { background: #2b8a57; }
.badge.ready { background: #2b8a57; }
.badge.failed { background: #8e3a3a; }
.badge.error { background: #8e3a3a; }
.badge.canceled { background: #8a6b3f; }
.badge.unknown { background: #4f5f77; }
.badge.kept { background: #28754e; }
.badge.archived { background: #6d5a2d; }
.badge.finished { background: #8f6a1f; color: #fff4d3; }
.badge.final { background: #a97d26; color: #fff4d3; }
.badge.listened { background: #2a6f8f; color: #e8f8ff; }
.badge.playing { background: #1a9f67; color: #eafff3; }
.badge.reference { background: #7d55c7; color: #f3ecff; }
.badge.version { background: #4b5f8d; color: #edf3ff; }
.badge.mastered { background: #1f6f78; color: #e8fdff; }
.badge.master-source { background: #0c8f78; color: #effffb; }
.clips { margin-top: 6px; }
.clip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  cursor: pointer;
}
.clip.selected {
  border-left: 3px solid #7bb8ff;
  padding-left: 6px;
}
.clip-title-link {
  color: #d7e8ff;
  padding: 0;
  text-align: left;
  text-decoration: underline;
  text-decoration-color: rgba(141, 214, 255, 0.35);
  text-underline-offset: 2px;
  cursor: pointer;
  font-size: 14px;
  min-height: 32px;
}
.clip-title-link:hover {
  color: #8dd6ff;
}
.clip-title-link:focus-visible {
  outline: 2px solid #7bb8ff;
  outline-offset: 2px;
  border-radius: 4px;
}
body.ui-simple .song-item .meta-extended {
  display: none;
}
body.ui-simple .song-item.selected .meta-extended,
body.ui-simple .song-item.playing .meta-extended {
  display: block;
}
body.ui-simple .song-item .badge-minor {
  display: none;
}
body.ui-simple .song-item.selected .badge-minor,
body.ui-simple .song-item.playing .badge-minor {
  display: inline-flex;
}
body.ui-simple .top .sub,
body.ui-simple .auth-summary {
  display: none;
}
.song-control-panel .row button {
  min-height: 36px;
}
.producer-advanced {
  border: 1px solid #2a4166;
  border-radius: 8px;
  padding: 8px;
  background: #0f1f36;
}
.producer-advanced > summary {
  cursor: pointer;
  color: #8dd6ff;
  font-weight: 700;
  margin-bottom: 8px;
}

#player {
  width: calc(100% - 24px);
  margin: 0 12px 12px;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 16px;
}

.auth-wrap {
  width: min(860px, 100%);
}

.auth-card h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

.auth-card h2 {
  margin-top: 14px;
}

.auth-card #token {
  min-width: 360px;
  flex: 1 1 420px;
}

.auth-card #redeemCode {
  min-width: 360px;
  flex: 1 1 420px;
}

.auth-actions {
  justify-content: flex-end;
}

.advanced-access {
  margin-top: 12px;
  border: 1px solid #2a4166;
  border-radius: 8px;
  padding: 8px;
  background: #0f1f36;
}

.advanced-access > summary {
  cursor: pointer;
  color: #8dd6ff;
  font-weight: 700;
  margin-bottom: 8px;
}

.advanced-access[open] > summary {
  margin-bottom: 12px;
}

.profile-card,
.admin-card {
  grid-column: span 12;
}

.profile-card input[readonly] {
  background: #eaf2ff;
  color: #233a5f;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.overview-card {
  border: 1px solid #2a4166;
  border-radius: 8px;
  background: #0f1f36;
  padding: 10px;
}

.overview-label {
  color: #8ea5c8;
  font-size: 12px;
}

.overview-value {
  font-size: 22px;
  font-weight: 700;
  margin-top: 4px;
}

.created-codes {
  min-height: 160px;
  font-family: Consolas, "Courier New", monospace;
}

.table-wrap {
  overflow: auto;
  border: 1px solid #2a4166;
  border-radius: 8px;
  background: #0f1f36;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.admin-table th,
.admin-table td {
  border-bottom: 1px solid #2a4166;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #8dd6ff;
  font-size: 13px;
  background: #132540;
}

.admin-table td code {
  color: #d2f0ff;
}

.row.tight {
  margin: 0;
}

.row.tight input {
  width: 88px;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.approval-chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.approval-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #2a4166;
  border-radius: 999px;
  background: #0f1f36;
}

.approval-chip span {
  color: #d2f0ff;
  font-size: 13px;
}

.approval-chip button {
  padding: 4px 10px;
  min-height: auto;
}

@media (max-width: 1100px) {
  .chat, .editor { grid-column: span 6; }
  .course { grid-column: span 12; }
  .producer { grid-column: span 12; }
  .producer-hero-grid,
  .producer-reference-grid,
  .producer-advanced-grid,
  .producer-band-strip-grid {
    grid-template-columns: 1fr;
  }
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .top-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 14px;
  }
  .top h1 {
    font-size: 22px;
  }
  .row {
    gap: 6px;
  }
  #projectSelect, #sessionSelect, #newProjectName, #newSessionName {
    min-width: 0;
    width: 100%;
    flex: 1 1 100%;
  }
  .layout {
    padding: 8px;
    gap: 8px;
  }
  .card {
    padding: 8px;
  }
  button {
    padding: 10px 12px;
    min-height: 40px;
  }
  #player {
    width: calc(100% - 16px);
    margin: 0 8px 8px;
  }
  .chat, .course, .editor, .producer, .songs, .workspace {
    grid-column: span 12;
  }
  .producer-identity-grid,
  .producer-mini-grid,
  .producer-generate-grid,
  .mastering-preset-grid,
  .song-advanced-grid {
    grid-template-columns: 1fr;
  }
  .mastering-console-body {
    grid-template-columns: 1fr;
  }
  .mastering-fire-btn {
    width: 100%;
  }
  .producer-band-actions {
    justify-content: flex-start;
  }
  .producer-surface-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .song-control-panel .row {
    gap: 6px;
  }
  .producer .action-scroll,
  .song-control-panel .action-scroll {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .producer .action-scroll button,
  .song-control-panel .action-scroll button {
    flex: 0 0 auto;
    min-width: 132px;
  }
  .clip-bulk-actions .action-scroll button {
    flex: 0 0 auto;
    min-width: 132px;
  }
  .chat-actions button {
    flex: 1 1 calc(50% - 6px);
    min-width: 120px;
  }
  .song-title-link {
    font-size: 16px;
  }
  .admin-table {
    min-width: 640px;
  }
  .landing-footer {
    margin: 0 8px 8px;
  }
  body.mobile-simple {
    padding-bottom: 72px;
  }
  body.mobile-simple > #player {
    margin-bottom: 8px;
  }
  .auth-summary {
    display: none;
  }
  .mobile-top-menu-btn {
    display: inline-flex;
  }
  .top-action-panel {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    min-width: 210px;
    background: #132540;
    border: 1px solid #2a4166;
    border-radius: 8px;
    padding: 8px;
    flex-direction: column;
    align-items: stretch;
    z-index: 60;
  }
  .top-action-panel.open {
    display: flex;
  }
  .top-action-panel button {
    width: 100%;
    text-align: left;
  }
}

@media (max-width: 900px) and (min-width: 701px) {
  .chat, .course, .editor, .producer {
    grid-column: span 12;
  }
}

.view-choice-card,
.mobile-quick-card {
  max-width: 960px;
}

.view-choice-actions {
  justify-content: center;
}

html,
body.mobile-quick-page,
body.mobile-quick-page main {
  max-width: 100%;
}

.mobile-quick-page {
  width: 100%;
  max-width: 100vw;
  padding-bottom: 96px;
  overflow-x: hidden;
}

.mobile-quick-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  padding-bottom: 100px;
  max-width: 100%;
  min-width: 0;
  padding-left: 12px;
  padding-right: 12px;
  margin: 0 auto;
  overflow-x: hidden;
}

.mobile-session-row,
.mobile-player-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.mobile-session-row > *,
.mobile-player-row > * {
  min-width: 0;
}

.mobile-session-label {
  font-size: 1.05rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.mobile-top-session {
  margin-top: 4px;
}

.mobile-status-line {
  margin-bottom: 8px;
}

.mobile-menu {
  position: relative;
}

.mobile-menu summary {
  list-style: none;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #6e8fbe;
  background: linear-gradient(180deg,#2b4f81,#1e3c66);
  color: #eaf2ff;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.mobile-menu[open] .mobile-menu-btn {
  border-color: #8dd6ff;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid #2a4166;
  border-radius: 10px;
  background: #132540;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28);
  z-index: 30;
}

.mobile-menu-panel button {
  width: 100%;
  text-align: left;
}

.mobile-help-shell {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(4, 10, 20, 0.64);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: flex-end;
}

.mobile-help-window {
  width: min(92vw, 420px);
  height: 100%;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at top left, rgba(87, 148, 255, 0.14), transparent 28%),
    radial-gradient(circle at bottom right, rgba(104, 255, 197, 0.12), transparent 26%),
    linear-gradient(180deg, #111d31, #0a1324 72%);
  border-left: 1px solid rgba(120, 164, 215, 0.34);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.34);
}

.mobile-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid rgba(120, 164, 215, 0.22);
  background: linear-gradient(180deg, rgba(33, 55, 89, 0.9), rgba(15, 29, 49, 0.84));
}

.mobile-help-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #90c6ff;
  margin-bottom: 6px;
}

.mobile-help-head strong {
  font-size: 1.15rem;
  color: #f2f7ff;
}

.mobile-help-body {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}

.mobile-help-card {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(117, 150, 196, 0.26);
  background:
    linear-gradient(180deg, rgba(24, 38, 63, 0.92), rgba(11, 20, 35, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 10px 20px rgba(0, 0, 0, 0.18);
}

.mobile-help-card h3 {
  margin: 0 0 8px;
  color: #8dd6ff;
  font-size: 0.98rem;
}

.mobile-help-card p {
  margin: 0;
  color: #d5e5ff;
  line-height: 1.45;
}

.mobile-help-card pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  line-height: 1.45;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 12px;
  color: #eff5ff;
  background: rgba(4, 10, 19, 0.72);
  border: 1px solid rgba(107, 132, 169, 0.28);
  border-radius: 12px;
  padding: 12px;
}

.mobile-help-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-help-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(121, 196, 255, 0.34);
  background: rgba(20, 57, 92, 0.82);
  color: #e7f4ff;
  font-size: 12px;
  font-weight: 600;
}

.mobile-help-tags-avoid span {
  border-color: rgba(255, 193, 120, 0.34);
  background: rgba(87, 52, 19, 0.78);
  color: #ffe7c5;
}

.mobile-lyrics-input {
  min-height: 220px;
  width: 100%;
  max-width: 100%;
}

.mobile-carousel {
  position: relative;
  width: 100%;
  max-width: 100%;
  padding: 4px 0 8px;
  overflow: hidden;
}

.mobile-carousel::before,
.mobile-carousel::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 18px;
  z-index: 2;
  pointer-events: none;
}

.mobile-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(12, 22, 40, 0.95), rgba(12, 22, 40, 0));
}

.mobile-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(12, 22, 40, 0.95), rgba(12, 22, 40, 0));
}

.mobile-carousel-viewport {
  overflow: hidden;
  width: 100%;
}

.mobile-carousel-container {
  display: flex;
  align-items: stretch;
  gap: 10px;
  min-width: 0;
  padding: 2px 12px 6px;
}

.mobile-carousel-slide {
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-band-card {
  min-width: 170px;
  min-height: 82px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 20px;
  border: 1px solid rgba(126, 160, 204, 0.24);
  color: #edf5ff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(180deg, rgba(24, 36, 59, 0.98), rgba(10, 18, 33, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 16px 28px rgba(6, 12, 24, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.mobile-band-card.active {
  transform: translateY(-2px) scale(1.03);
  border-color: rgba(150, 212, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(130, 196, 255, 0.24),
    0 18px 32px rgba(6, 12, 24, 0.28);
}

.mobile-band-card-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-band-card-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.mobile-band-card-copy strong {
  font-size: 0.96rem;
  line-height: 1.06;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-band-card-copy span {
  font-size: 12px;
  color: #d3e5ff;
  opacity: 0.88;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-band-card-art {
  display: grid;
  align-items: end;
  justify-items: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 32px;
  height: 34px;
  padding: 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-band-card-art span {
  width: 100%;
  border-radius: 999px;
  background: rgba(246, 249, 255, 0.86);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.14);
}

.mobile-band-card-art span:nth-child(1) { height: 12px; }
.mobile-band-card-art span:nth-child(2) { height: 20px; }
.mobile-band-card-art span:nth-child(3) { height: 28px; }

.mobile-band-card.tone-faith { background: radial-gradient(circle at top right, rgba(130, 196, 255, 0.22), transparent 28%), linear-gradient(180deg, #203a64, #0d1c33 75%); }
.mobile-band-card.tone-country { background: radial-gradient(circle at top right, rgba(255, 209, 124, 0.2), transparent 28%), linear-gradient(180deg, #4f3520, #1e160f 75%); }
.mobile-band-card.tone-urban { background: radial-gradient(circle at top right, rgba(126, 143, 255, 0.18), transparent 28%), linear-gradient(180deg, #25274d, #111324 75%); }
.mobile-band-card.tone-heavy { background: radial-gradient(circle at top right, rgba(255, 116, 116, 0.18), transparent 28%), linear-gradient(180deg, #3e2026, #160c12 75%); }
.mobile-band-card.tone-blues { background: radial-gradient(circle at top right, rgba(98, 178, 255, 0.2), transparent 28%), linear-gradient(180deg, #1f3147, #0d1624 75%); }
.mobile-band-card.tone-cinematic { background: radial-gradient(circle at top right, rgba(172, 134, 255, 0.2), transparent 28%), linear-gradient(180deg, #2d2647, #14111f 75%); }
.mobile-band-card.tone-soul { background: radial-gradient(circle at top right, rgba(255, 142, 186, 0.18), transparent 28%), linear-gradient(180deg, #44233f, #180f1b 75%); }
.mobile-band-card.tone-pop { background: radial-gradient(circle at top right, rgba(108, 255, 214, 0.18), transparent 28%), linear-gradient(180deg, #1d3f45, #0f1b1e 75%); }

.mobile-band-card.tone-country .mobile-band-card-art span:nth-child(1) { height: 18px; }
.mobile-band-card.tone-country .mobile-band-card-art span:nth-child(2) { height: 12px; }
.mobile-band-card.tone-country .mobile-band-card-art span:nth-child(3) { height: 24px; }
.mobile-band-card.tone-urban .mobile-band-card-art span:nth-child(1) { height: 24px; }
.mobile-band-card.tone-urban .mobile-band-card-art span:nth-child(2) { height: 18px; }
.mobile-band-card.tone-urban .mobile-band-card-art span:nth-child(3) { height: 10px; }
.mobile-band-card.tone-heavy .mobile-band-card-art span:nth-child(1) { height: 26px; }
.mobile-band-card.tone-heavy .mobile-band-card-art span:nth-child(2) { height: 14px; }
.mobile-band-card.tone-heavy .mobile-band-card-art span:nth-child(3) { height: 30px; }
.mobile-band-card.tone-faith .mobile-band-card-art span:nth-child(1) { height: 10px; }
.mobile-band-card.tone-faith .mobile-band-card-art span:nth-child(2) { height: 26px; }
.mobile-band-card.tone-faith .mobile-band-card-art span:nth-child(3) { height: 16px; }
.mobile-band-card.tone-cinematic .mobile-band-card-art span:nth-child(1) { height: 8px; }
.mobile-band-card.tone-cinematic .mobile-band-card-art span:nth-child(2) { height: 16px; }
.mobile-band-card.tone-cinematic .mobile-band-card-art span:nth-child(3) { height: 30px; }
.mobile-band-card.tone-soul .mobile-band-card-art span:nth-child(1) { height: 14px; }
.mobile-band-card.tone-soul .mobile-band-card-art span:nth-child(2) { height: 24px; }
.mobile-band-card.tone-soul .mobile-band-card-art span:nth-child(3) { height: 18px; }

.mobile-chip-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  touch-action: pan-x pinch-zoom;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mobile-chip-row::-webkit-scrollbar {
  display: none;
}

.mobile-chip {
  flex: 0 0 auto;
  border: 1px solid var(--border);
  background: #173155;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 16px;
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  touch-action: manipulation;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  box-shadow: 0 8px 18px rgba(6, 13, 26, 0.18);
}

.mobile-chip.active {
  background: #1f6aa5;
  border-color: #6cb8ff;
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 1px rgba(108, 184, 255, 0.35),
    0 12px 22px rgba(7, 17, 35, 0.28);
}

.mobile-chip.disabled,
.mobile-chip:disabled {
  opacity: 0.46;
  cursor: default;
}

.mobile-chip-muted.active {
  background: #295143;
  border-color: #63d3a3;
}

.mobile-clips-list {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.mobile-now-playing {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  z-index: 42;
  padding: 10px 12px 12px;
  border-radius: 18px;
  border: 1px solid rgba(121, 168, 219, 0.28);
  background:
    radial-gradient(circle at top right, rgba(104, 255, 197, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(18, 32, 52, 0.96), rgba(9, 17, 31, 0.98));
  box-shadow: 0 18px 32px rgba(5, 11, 22, 0.35);
  backdrop-filter: blur(10px);
}

.mobile-now-playing:has(.mobile-now-playing-actions button:disabled) {
  border-color: rgba(121, 168, 219, 0.18);
  background:
    radial-gradient(circle at top right, rgba(141, 214, 255, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(15, 26, 43, 0.94), rgba(8, 14, 26, 0.96));
}

.mobile-now-playing-main {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.mobile-now-playing-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-now-playing-kicker {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8ed4ff;
}

.mobile-now-playing-copy strong {
  font-size: 0.95rem;
  color: #f1f6ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-now-playing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-now-playing-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}

.mobile-now-playing-actions button {
  min-height: 34px;
  padding: 6px 10px;
  border-radius: 999px;
}

.mobile-now-playing-actions button:disabled {
  opacity: 0.5;
  cursor: default;
}

.mobile-now-playing-progress {
  height: 10px;
  margin-top: 10px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1));
  border: 1px solid rgba(197, 223, 255, 0.22);
  overflow: hidden;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(8, 17, 31, 0.14);
}

.mobile-now-playing-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #00ff7b 0%, #54ff9c 38%, #9effca 72%, #d4fff0 100%);
  transition: width 0.12s linear;
  box-shadow:
    0 0 18px rgba(0, 255, 123, 0.65),
    0 0 8px rgba(170, 255, 220, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.mobile-clip-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  transition: transform 0.12s ease;
  touch-action: pan-y;
}

.mobile-clip-card.swipe-active {
  transition: none;
}

.mobile-clip-card.swipe-discard {
  filter: saturate(0.7);
}

.mobile-radio-open {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  min-width: 0;
}

.mobile-radio-open strong,
.mobile-radio-open span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.mobile-radio-shell {
  position: relative;
  min-height: 78px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 62px;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 18px;
  border: 1px solid rgba(173, 192, 219, 0.7);
  background:
    linear-gradient(180deg, rgba(228, 231, 238, 0.94), rgba(92, 104, 123, 0.9) 8%, rgba(25, 31, 40, 0.94) 16%, rgba(175, 181, 191, 0.82) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(12, 18, 26, 0.68),
    0 14px 24px rgba(7, 17, 35, 0.22);
}

.mobile-clip-card.active .mobile-radio-shell {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(12, 18, 26, 0.68),
    0 0 0 1px rgba(99, 211, 163, 0.35),
    0 16px 28px rgba(7, 17, 35, 0.24);
}

.mobile-clip-card.kept .mobile-radio-shell {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(12, 18, 26, 0.68),
    0 0 0 1px rgba(123, 184, 255, 0.28),
    0 16px 28px rgba(7, 17, 35, 0.22);
}

.mobile-radio-shell.playing {
  transform: translateY(-1px);
}

.mobile-radio-shell.failed {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(12, 18, 26, 0.68),
    0 0 0 1px rgba(226, 122, 122, 0.28),
    0 16px 28px rgba(35, 7, 7, 0.28);
}

.mobile-radio-clef {
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  color: #f7f8fb;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 8px rgba(0, 0, 0, 0.45);
}

.mobile-radio-panel {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 58px;
  padding: 8px 12px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 20%, rgba(87, 61, 28, 0.2), transparent 40%),
    linear-gradient(180deg, #0d0d10, #1a140f 55%, #0c0c0e);
  border: 1px solid rgba(67, 54, 37, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    inset 0 0 18px rgba(0, 0, 0, 0.52);
}

.mobile-radio-title {
  font-size: 0.98rem;
  line-height: 1.08;
  color: #f4efe7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-radio-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.mobile-radio-meta .hint {
  color: #dac8b0;
  opacity: 0.9;
}

.mobile-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #6be3bb;
  background: rgba(44, 165, 122, 0.24);
  color: #dffff4;
  font-size: 12px;
  font-weight: 700;
}

.mobile-live-badge.queued {
  border-color: #cab48b;
  background: rgba(96, 73, 38, 0.38);
  color: #f9e7bf;
}

.mobile-radio-display {
  display: grid;
  place-items: center;
}

.mobile-radio-screen {
  width: 46px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(225, 226, 230, 0.55);
  background: #8f8f8f;
  box-shadow:
    inset 0 0 0 2px rgba(22, 22, 26, 0.4),
    inset 0 0 10px rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.28);
}

.mobile-radio-shell.working .mobile-radio-screen {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 244, 176, 0.92), rgba(232, 184, 54, 0.8) 60%, rgba(108, 72, 9, 0.85) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(22, 22, 26, 0.38),
    0 0 16px rgba(241, 194, 70, 0.35);
}

.mobile-radio-shell.ready .mobile-radio-screen {
  background:
    radial-gradient(circle at 50% 40%, rgba(197, 255, 194, 0.95), rgba(91, 203, 92, 0.82) 60%, rgba(21, 92, 27, 0.88) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(22, 22, 26, 0.38),
    0 0 16px rgba(82, 209, 97, 0.32);
}

.mobile-radio-shell.failed .mobile-radio-screen {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 199, 184, 0.95), rgba(232, 83, 52, 0.82) 60%, rgba(119, 18, 11, 0.88) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(22, 22, 26, 0.38),
    0 0 16px rgba(232, 83, 52, 0.32);
}

.mobile-radio-shell.playing .mobile-radio-screen {
  animation: mobile-radio-pulse 1.4s ease-in-out infinite;
}

.mobile-radio-like {
  position: absolute;
  right: 10px;
  bottom: -7px;
  min-width: 72px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #7bb8ff;
  background: rgba(10, 24, 48, 0.94);
  color: #d9ecff;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(8, 18, 36, 0.24);
}

.mobile-radio-like.kept {
  background: linear-gradient(180deg, #2d6fcc, #1d4c94);
  border-color: #9ed0ff;
}

@keyframes mobile-radio-pulse {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.05); filter: saturate(1.18); }
}

.mobile-produce-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 18, 36, 0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.mobile-produce-bar button {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
}

.mobile-top .top-actions {
  gap: 8px;
}

.mobile-quick-page .top,
.mobile-quick-page .card,
.mobile-quick-page textarea,
.mobile-quick-page input,
.mobile-quick-page select,
.mobile-quick-page audio {
  width: 100%;
  max-width: 100%;
}

.mobile-quick-card,
.mobile-chip-row,
.mobile-clips-list,
.mobile-lyrics-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.mobile-chip,
.mobile-top .top-actions button,
.mobile-clip-actions button {
  width: auto;
  max-width: 100%;
}

.mobile-quick-page .card {
  margin: 0;
}

.mobile-quick-page audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.mobile-radio-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(20, 170, 150, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 194, 85, 0.12), transparent 24%),
    linear-gradient(180deg, #08111f, #0d1829 45%, #09111f 100%);
}

.mobile-radio-layout {
  padding: 14px 14px 28px;
  display: grid;
  gap: 14px;
}

.mobile-radio-card {
  overflow: hidden;
}

.mobile-radio-top .top-actions {
  align-items: flex-start;
}

.mobile-jukebox-shell {
  position: relative;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(155, 175, 208, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 204, 102, 0.14), transparent 22%),
    linear-gradient(180deg, rgba(18, 30, 50, 0.98), rgba(7, 13, 23, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 22px 48px rgba(2, 7, 15, 0.45);
}

.mobile-jukebox-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mobile-jukebox-kicker {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: #8fd6ff;
  margin-bottom: 4px;
}

.mobile-radio-publish-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(121, 150, 202, 0.4);
  background: rgba(12, 24, 44, 0.7);
  color: #d8eaff;
  font-size: 12px;
  font-weight: 700;
}

.mobile-jukebox-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 108px;
  gap: 14px;
  align-items: stretch;
}

.mobile-jukebox-panel {
  min-width: 0;
  border-radius: 20px;
  padding: 14px;
  border: 1px solid rgba(149, 137, 105, 0.42);
  background:
    linear-gradient(180deg, rgba(52, 42, 26, 0.32), rgba(11, 11, 13, 0.94) 26%, rgba(22, 15, 8, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 244, 217, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.52),
    inset 0 0 30px rgba(0, 0, 0, 0.38);
}

.mobile-jukebox-marquee {
  min-height: 24px;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #f4dca0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-jukebox-screen {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(93, 74, 42, 0.58);
  background:
    radial-gradient(circle at 25% 18%, rgba(177, 131, 55, 0.16), transparent 22%),
    linear-gradient(180deg, #0f1012, #16100d 46%, #09090a);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 20px rgba(0, 0, 0, 0.52);
}

.mobile-jukebox-screen strong {
  color: #f7efe0;
  font-size: 1rem;
  line-height: 1.18;
}

.mobile-jukebox-screen .hint {
  color: #d5b98a;
}

.mobile-jukebox-screen-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  color: #8fd6ff;
}

.mobile-jukebox-meter {
  border-radius: 18px;
  padding: 12px 10px;
  border: 1px solid rgba(181, 191, 207, 0.42);
  background:
    linear-gradient(180deg, rgba(225, 229, 236, 0.18), rgba(26, 32, 44, 0.98));
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.46);
}

.mobile-jukebox-lamp {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  border: 1px solid rgba(232, 237, 244, 0.52);
  background: radial-gradient(circle at 50% 35%, rgba(244, 242, 227, 0.75), rgba(126, 135, 149, 0.72) 62%, rgba(38, 44, 53, 0.92) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(18, 20, 27, 0.32),
    inset 0 0 14px rgba(255, 255, 255, 0.1);
}

.mobile-jukebox-lamp.idle {
  background: radial-gradient(circle at 50% 35%, rgba(255, 234, 173, 0.9), rgba(204, 157, 44, 0.82) 58%, rgba(89, 60, 10, 0.92) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(18, 20, 27, 0.32),
    0 0 18px rgba(228, 183, 52, 0.42);
}

.mobile-jukebox-lamp.ready,
.mobile-jukebox-lamp.playing {
  background: radial-gradient(circle at 50% 35%, rgba(214, 255, 200, 0.96), rgba(73, 209, 95, 0.86) 58%, rgba(15, 87, 26, 0.92) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(18, 20, 27, 0.32),
    0 0 22px rgba(70, 225, 112, 0.46);
}

.mobile-jukebox-lamp.private {
  background: radial-gradient(circle at 50% 35%, rgba(255, 218, 167, 0.92), rgba(236, 179, 74, 0.84) 58%, rgba(116, 74, 13, 0.92) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(18, 20, 27, 0.32),
    0 0 18px rgba(236, 179, 74, 0.38);
}

.mobile-jukebox-lamp.failed {
  background: radial-gradient(circle at 50% 35%, rgba(255, 212, 197, 0.96), rgba(230, 87, 60, 0.86) 58%, rgba(112, 18, 10, 0.92) 100%);
  box-shadow:
    inset 0 0 0 2px rgba(18, 20, 27, 0.32),
    0 0 20px rgba(236, 81, 52, 0.42);
}

.mobile-jukebox-meter-label {
  font-size: 12px;
  font-weight: 700;
  color: #cfe4ff;
}

.mobile-jukebox-bars {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 5px;
  min-height: 34px;
}

.mobile-jukebox-bars span {
  width: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(214, 250, 255, 0.92), rgba(58, 192, 122, 0.68));
  box-shadow: 0 0 10px rgba(88, 214, 164, 0.26);
}

.mobile-jukebox-bars span:nth-child(1) { height: 10px; }
.mobile-jukebox-bars span:nth-child(2) { height: 18px; }
.mobile-jukebox-bars span:nth-child(3) { height: 24px; }
.mobile-jukebox-bars span:nth-child(4) { height: 14px; }

.mobile-jukebox-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mobile-jukebox-controls button {
  min-height: 46px;
}

.mobile-jukebox-progress-wrap {
  margin-top: 14px;
}

.mobile-jukebox-time-row {
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.mobile-radio-playlist-chip {
  min-width: 188px;
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(112, 138, 182, 0.32);
  background:
    radial-gradient(circle at top right, rgba(255, 199, 78, 0.14), transparent 26%),
    linear-gradient(180deg, #1a2b47, #0b1526 78%);
  color: #eaf4ff;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mobile-radio-playlist-chip strong {
  font-size: 0.98rem;
}

.mobile-radio-playlist-chip span {
  color: #a6c1e6;
  font-size: 12px;
}

.mobile-radio-playlist-chip.active {
  border-color: rgba(126, 231, 193, 0.58);
  box-shadow:
    0 0 0 1px rgba(126, 231, 193, 0.22),
    0 10px 24px rgba(7, 19, 36, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-radio-playlist-chip.empty {
  min-width: 220px;
  border-style: dashed;
  color: #b8c9df;
}

.mobile-radio-queue {
  display: grid;
  gap: 10px;
}

.mobile-radio-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(93, 114, 148, 0.3);
  background:
    radial-gradient(circle at top left, rgba(91, 202, 170, 0.12), transparent 24%),
    linear-gradient(180deg, #1a213d, #10172d 84%);
  color: #ecf5ff;
  text-align: left;
}

.mobile-radio-track.active {
  border-color: rgba(126, 231, 193, 0.58);
  box-shadow:
    0 0 0 1px rgba(126, 231, 193, 0.24),
    0 12px 26px rgba(6, 16, 30, 0.24);
}

.mobile-radio-track-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.mobile-radio-track-copy strong {
  font-size: 0.98rem;
  color: #f4fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-radio-track-copy span {
  font-size: 12px;
  color: #9fb4d3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-radio-track-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(116, 232, 193, 0.45);
  color: #dfffee;
  background: rgba(18, 59, 63, 0.5);
  font-size: 12px;
  font-weight: 700;
}

.mobile-radio-page audio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 760px) {
  .mobile-jukebox-stage {
    grid-template-columns: 1fr;
  }

  .mobile-jukebox-meter {
    grid-template-columns: auto auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 12px;
  }

  .mobile-jukebox-bars {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .mobile-radio-layout {
    padding: 12px 12px 24px;
  }

  .mobile-jukebox-controls {
    grid-template-columns: 1fr;
  }

  .mobile-jukebox-time-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .mobile-radio-playlist-chip {
    min-width: 164px;
    min-height: 76px;
  }

  .mobile-radio-track {
    padding: 12px 14px;
  }
}

@media (max-width: 700px) {
  .mobile-quick-page .top {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-top .top-actions {
    width: 100%;
    justify-content: stretch;
  }

  .mobile-session-row,
  .mobile-player-row {
    flex-direction: column;
    align-items: stretch;
  }

  .mobile-player-row button {
    width: 100%;
  }

  .mobile-quick-layout {
    gap: 10px;
    padding-bottom: 90px;
  }

  .mobile-chip {
    padding: 10px 12px;
  }

  .mobile-band-card {
    min-width: 156px;
    min-height: 76px;
    padding: 11px 12px;
  }

  .mobile-radio-shell {
    grid-template-columns: 34px minmax(0, 1fr) 52px;
    gap: 8px;
    min-height: 72px;
    padding: 8px 8px 8px 10px;
  }

  .mobile-radio-clef {
    font-size: 1.65rem;
  }

  .mobile-radio-panel {
    min-height: 52px;
    padding: 7px 10px;
  }

  .mobile-radio-title {
    font-size: 0.92rem;
  }

  .mobile-radio-screen {
    width: 38px;
    height: 28px;
  }

  .mobile-radio-like {
    right: 8px;
  }

  .mobile-now-playing {
    left: 10px;
    right: 10px;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-now-playing-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .mobile-now-playing-actions {
    width: 100%;
  }

  .mobile-now-playing-actions button {
    flex: 1 1 0;
  }
}

@media (max-width: 420px) {
  .mobile-menu-panel {
    right: auto;
    left: 0;
    min-width: min(220px, calc(100vw - 24px));
  }

  .mobile-help-window {
    width: 100vw;
  }
}

@media (min-width: 768px) {
  .mobile-quick-layout {
    max-width: 900px;
    margin: 0 auto;
  }
}
